The idea is that the program will log in with rcon and perform actions from there.
Anywho, I've run into a problem with sending PACKET_CLIENT_GETMAP, I can't seem to figure out what I'm supposed to put as the unsigned integer that I send along with it.
I've looked through the source and found this piece of code, but without knowing the revision of the release build, I'm stumped.
Code: Select all
/**
* The NewGRF revision of OTTD:
* bits meaning.
* 28-31 major version
* 24-27 minor version
* 20-23 build
* 19 1 if it is a release, 0 if it is not.
* 0-18 revision number; 0 for releases and when the revision is unknown.
*
* The 19th bit is there so the development/betas/alpha, etc. leading to a
* final release will always have a lower version number than the released
* version, thus making comparisions on specific revisions easy.
*/
...
(1 << 28 | 2 << 24 | 0 << 20 | 0 << 19 | (22280 & ((1 << 19) - 1)) )