Un Accounted For Bits in Admin Port

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
erico252
Engineer
Engineer
Posts: 4
Joined: 27 Jun 2022 17:13

Un Accounted For Bits in Admin Port

Post by erico252 »

Hi All,

Im working with Developing with the admin port a little bit and am just getting my hands wet. I've got communication down and using https://github.com/OpenTTD/OpenTTD/blob ... cp_admin.h i am amble to see the structure of the packets with the information that i want back.

In this case i am looking at the ADMIN_PACKET_SERVER_COMPANY_ECONOMY packet. and am having 3 random bits appear that i cant seem to find any mention of in the documents.
Company_outputs.png
Deconstruction of the ADMIN_PACKET_SERVER_COMPANY_ECONOMY packet
(48.35 KiB) Not downloaded yet
in the photo above are the outputs for three company's. All is well
Corresponding Code for the company packet deconstruction
Corresponding Code for the company packet deconstruction
Company_output_code.png (62.2 KiB) Viewed 426 times
however as seen circled in red, for some reason i have to skip three bits each time i look at a new company's information.

Does anyone know why this is the case? where are these 3 bits coming form? what information am i loosing skipping them?

Thanks in advanced!
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 11 guests