| Mirage Source http://miragesource.net/forums/ |
|
| SEP_CHAR & END_CHAR http://miragesource.net/forums/viewtopic.php?f=201&t=4812 |
Page 1 of 1 |
| Author: | addy [ Mon Dec 01, 2008 2:46 am ] |
| Post subject: | SEP_CHAR & END_CHAR |
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. |
|
| Author: | Matt [ Mon Dec 01, 2008 2:49 am ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
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. |
|
| Author: | addy [ Mon Dec 01, 2008 2:57 am ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
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? |
|
| Author: | Matt [ Mon Dec 01, 2008 3:01 am ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
Yupp. Good job. Most people, it takes forever for them to understand how basic packets are in Mirage. Lol. |
|
| Author: | addy [ Mon Dec 01, 2008 3:04 am ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
Well theres still alot i dont get about mirage but i learned 3 things today ha. |
|
| Author: | Matt [ Mon Dec 01, 2008 3:05 am ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
Mirage is the basic of basics, tbh. |
|
| Author: | addy [ Mon Dec 01, 2008 3:08 am ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
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 |
|
| Author: | Matt [ Mon Dec 01, 2008 3:16 am ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
Best advice anyone here will give you, is to just read the code. |
|
| Author: | William [ Mon Dec 01, 2008 7:16 pm ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
Perfekt wrote: Best advice anyone here will give you, is to just read the code. Exactly, that's what I always say |
|
| Author: | Matt [ Mon Dec 01, 2008 10:07 pm ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
William wrote: Perfekt wrote: Best advice anyone here will give you, is to just read the code. Exactly, that's what I always say That's what 90% of us say. Just none of the noobs follow that advice, piss one of us off, we blow up and they leave. Lol. |
|
| Author: | Tony [ Mon Dec 01, 2008 10:43 pm ] |
| Post subject: | Re: SEP_CHAR & END_CHAR |
I followed this. And learned it in no time. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|