Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SEP_CHAR & END_CHAR
#1
What does SEP_CHAR and END_CHAR mean?
I see them in the mirage part of ClientTCP.
With the packets. And since im trying to make a quest editor and eventually ill have to learn what they mean.
Reply
#2
Sep_char tells the parse stuff, to look between those for the data it needs. End_char tells it that it's the end of the packet.
Reply
#3
Alright i work good with examples. So tell me if this is the main concept.
First in like the game client you have stuff like this
Code:
Dim Packet As String
    
    With Item(ItemNum)
        Packet = "SAVEITEM" & SEP_CHAR & ItemNum & SEP_CHAR & Trim(.Name) & SEP_CHAR & .Pic & SEP_CHAR & .Type & SEP_CHAR & .Data1 & SEP_CHAR & .Data2 & SEP_CHAR & .Data3 & SEP_CHAR & END_CHAR
    End With
    
    Call SendData(Packet)
End Sub
So in the server part it will look for SAVEITEM then itll go to the next line and look for ItemNUm and then the next line to find Name and etc until it comes to end_char?
Reply
#4
Yupp. Good job. Most people, it takes forever for them to understand how basic packets are in Mirage. Lol.
Reply
#5
Well theres still alot i dont get about mirage but i learned 3 things today ha.
Reply
#6
Mirage is the basic of basics, tbh.
Reply
#7
Yeah its not that hard i know but its just im not use to some of this stuff.
Im a quick learner like i learned that SEP_ChAR by just checking out the packets in the server and the game and i found it out.
Im good at just comparing and looking
Reply
#8
Best advice anyone here will give you, is to just read the code.
Reply
#9
Perfekt Wrote:Best advice anyone here will give you, is to just read the code.
Exactly, that's what I always say Smile
Reply
#10
William Wrote:
Perfekt Wrote:Best advice anyone here will give you, is to just read the code.
Exactly, that's what I always say Smile

That's what 90% of us say. Big Grin

Just none of the noobs follow that advice, piss one of us off, we blow up and they leave. Lol.
Reply
#11
I followed this. And learned it in no time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)