

#OPENTTD SHARED ORDERS HOW TO#
I know how to build the OpenTTD source code and have applied patches before, but I don't know very much about the way the game works or the code organisation. htons(3), ntohl(3), ntohs(3): convert values between host and network byte order. When I play OpenTTD, especially with large maps and complex networks I often create a group per route, at least for trains, so this patch would be a fairly simple extension of my playing style and make management of complex networks easier.Īs a fairly competent C++ programmer, I would like to have a go at implementing this. It has always seemed a little unrealistic the way that the "replace vehicles" feature "scraps" vehicles on replacement, even though they are not that old and could be of use elsewhere (I am aware that the "scrapping" is in fact a sale and reduces the cost of replacement). It would also allow "cascades" where a player buys new vehicles for some routes and re-assigns the existing vehicles to lesser routes. It attempts to mimic the original game as closely as possible while extending it with new features. This would allow the player to create groups for each of his routes and then assign vehicles to these groups by simple drag-and-drop. OpenTTD is an open source simulation game based upon the popular Microprose game 'Transport Tycoon Deluxe', written by Chris Sawyer.

Then, any vehicles added to the group would have their orders replaced with the group orders (the orders would be shared rather than copied). Simply put, it would be to associate an order set with a vehicle group.
