#Issue With Packet
1 messages · Page 1 of 1 (latest)
Make the Packet on startup
I'd recommend having a module called Packets and just lists all the packet types
what do you mean
like a config module
local Packet = require(script.Packet)
local Packets = {
["Combat"] = Packet("Combat", Packet.String),
}
return Packets```
But also your Packet types are not correct
?
Because this doesn't say it receives a string
But yeah if you make a module like this, then put it in ReplicatedStorage to be shared
Then you can just do this from the server and client
local Packets = require(game.ReplicatedStorage.Shared.Packets)
Packets.Combat:FireServer("M1") -- Client
Packets.Combat.OnServerEvent:Connect(function(player, itemType)
end -- Server```
You gotta give it a name tho
return {
["TestPacket"] = Packet("TestPack", Packet.String),
}```
Then you can reference it by name
This is good because when you require this Packets module it will automatically make all the packets on the client and server
And it's a single storage point for all your packets
So it should make it easier to use them as well
each module inside packtsfolder is a return of a packet
so why do i have to give it a name
That is weird
yea i am wierd sry
Guess see if that fixes your issue
lol
AHH
GETCHILDREN INDEXS BY NUM
🥀
same error as always though
write u8
is there somthing wrong with it?
@tepid thorn
Are you using newest version of Packet
idk
Are there any other packets in your game?
I don't see why it would be erroring
And make sure you're using that Packets module on both client and server and that they are both valid
can we go in vc ill show u
Yes
Yeah I am not sure lol
Because the way you're doing stuff is weird lol
This is all I'd be doing lol
And this would work fine of course
I mean I will try rq I guess
Should be fine lol
Well I feel like issue is something being handled weird
No
I would just try and make sure you have newest version I guess
Version 1.7
This just weird yeah lol
You can also check in https://discord.com/channels/909926338801061961/1350829397380169814
I don't think this is right
So weird lol
I would just rewrite it all and basically try what I did up here
Just to see if it works at all
And if it does work fine then could determine that the issue is something with how it's being handled and not Packet
Should Return activePackets
Instead of using your :GetPacket method
Because you're not passing a string
And you put Packet.String in the type
I guess try removing it from the janitor
And just connect it like normal lol
lol
I think problem is something with your setup yeah lol
lol
That's why I like to keep it simple as I can
I have never used it but I've looked at the source code a little
Just to see how it was structured
Yeah it's cool
yeah nice
I don't do UI stuff very often, but Topbar is very nice yea
Purple
Like my pfp
Orange
lol sure
Yeah there's a few declarative ui modules
I think React Lua is most popular
Fusion is also really popular
lol yes
But in those you do all the ui from code
People like them for some reason
Yes
lol yeah declarative ui modules have a lot of stuff
Yeah hopefully you can get that issue fixed easily
cya
lol
But yeah whenever I have a bug that I cannot figure out, I break it down all the way from the start
Like first making sure it's not Packet
By writing code that is separate and has nothing special going on
Im just amazed by the amount of ways people found a way to break packet
crazy use styles
best way to use packet is gather all packets in a single module so they are guaranteed to be initialized at the same time as packet
other network libraries allow you to drop network events
packet doesn't
packet considers dropping network events as a bug
which is how it should be
so yes you have a bug.
im doing that now
im having another issue now
Code where
1 sec
this si bit messy trying to figure hot to go about the chat for now but here
problem is
im getting an error Kr3ativeKrayon ReplicatedStorage.Modules.Packages.Packet:275: attempt to index nil with 'ResponseReads'
@idle mantle
@pine cove
If you dont understand this maybe you shouldnt use packet
However if you do thats your solution
wait
question
since this is client -> client do i need to make it bidnbale and if so how
i have to learn it
What is "this"
Imma sleep
Se yall in hell need to wake up in 4 hours get ready with an open wound about to crash out
does packet have binables
the chat system
Same thing I linked
Just it's own version of bindables
yes ir no
wat
does packet have bindables
It has a module that mimics bindables
use Zignal trust me
it's one of the most quality signal modules out there
K
also @tepid thorn great news
Im making a new animation utility
it's gonna be using zignal
GIMMIE
Epic
Hest
Zignal new GoodSignal
it's honestly refreshing for the open source community