Mirage Source
SEP_CHAR & END_CHAR - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: SEP_CHAR & END_CHAR (/showthread.php?tid=2416)



SEP_CHAR & END_CHAR - addy - 01-12-2008

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.


Re: SEP_CHAR & END_CHAR - Matt - 01-12-2008

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.


Re: SEP_CHAR & END_CHAR - addy - 01-12-2008

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?


Re: SEP_CHAR & END_CHAR - Matt - 01-12-2008

Yupp. Good job. Most people, it takes forever for them to understand how basic packets are in Mirage. Lol.


Re: SEP_CHAR & END_CHAR - addy - 01-12-2008

Well theres still alot i dont get about mirage but i learned 3 things today ha.


Re: SEP_CHAR & END_CHAR - Matt - 01-12-2008

Mirage is the basic of basics, tbh.


Re: SEP_CHAR & END_CHAR - addy - 01-12-2008

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


Re: SEP_CHAR & END_CHAR - Matt - 01-12-2008

Best advice anyone here will give you, is to just read the code.


Re: SEP_CHAR & END_CHAR - William - 01-12-2008

Perfekt Wrote:Best advice anyone here will give you, is to just read the code.
Exactly, that's what I always say Smile


Re: SEP_CHAR & END_CHAR - Matt - 01-12-2008

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.


Re: SEP_CHAR & END_CHAR - Tony - 01-12-2008

I followed this. And learned it in no time.