Page 1 of 1
Multiplay TCP protocol information? 27/07/2012 at 15:00 #34379 | |
alvinhochun
249 posts |
I am asking if there are any information available (to public) about the network connection protocol for SimSig. I am interested in writing a simple AI that does a lightweight sim (like Drain/Lancing/Royston) through "pretending" to be a SimSig client and connecting to the sim. If there aren't any information available, I believe I might still have some idea by reverse-engineering the communication myself, but it could waste my time and effort (in case if I don't get anything meaningful :P) So I am asking about that. It would be glad if someone is able to help me. Log in to reply |
Multiplay TCP protocol information? 27/07/2012 at 15:25 #34381 | |
GeoffM
6377 posts |
The protocol isn't difficult; the content would require source data to be meaningful though.
SimSig Boss Log in to reply |
Multiplay TCP protocol information? 28/07/2012 at 10:32 #34398 | |
alvinhochun
249 posts |
Thanks for your reply, GeoffM. So I know that the contents are sim-specific, but the protocol itself doesn't differ much, does it? I think if I am provided with the protocol specifications, I can work out the meaning of the sim-specific content. For example, according to my observation, the client sends the command (in PECL) "BB([0-9A-F]{4})([A-Z0-9]{4})\s{6}" requests interposing a TD berth "$1" to the TD "$2", while "$1" is supposed to be the TD berth id and is sim-specific, then the server sends the command "sB([0-9A-F]{4})([A-Z0-9]{4})\s{6}00FFFF00000000000000000000FFFF00" to client to announce change of a TD berth "$1" to the TD "$2". Commands are separated by "|"s, am I right? I am quite interested in writing the AI for Lancing, so that I can use it to control Lancing when not enough people joins a multiplay session of Brighton. (Quite a stupid motivation, isn't it? :P) Log in to reply |
Multiplay TCP protocol information? 28/07/2012 at 14:45 #34404 | |
GeoffM
6377 posts |
You would need the source data - or a lot of patience going through every single object and hoping that it doesn't change from version to version.
SimSig Boss Log in to reply |
Multiplay TCP protocol information? 28/07/2012 at 16:26 #34411 | |
alvinhochun
249 posts |
Thanks. Will I be lucky enough to be able to obtain the source data for Lancing from the developer then?
Log in to reply |