trAInsported
trAInsported copied to clipboard
GameModes for challenge-maps
I don't see how to implement the GameModes (except for Urban/Suburban), i.e. day/rushhour, time/passengers etc. Maybe this is just an issue with the documentation...
Also, when/how would the passenger-mode end, if one of the trains does not deliver its passenger ? (E.g. a train stuck in a loop, or blocked in a traffic-jam)
The passenger game mode would never end in this case, you're right. That's one of the reasons why the server runs a time limit game mode rather than a passenger limit.
As for how to set the game mode in challenge maps, I don't think there is a way, because the challenge map should, as opposed to a random map, specify the spawning passengers and the winning/loosing condition by itself. So if you want to make a challenge map which acts like "rush hour", you simply spawn more passengers, and if you want a passenger limit, I think you can simply let the user win after a certain amount of passengers...
Ok, for passenger-mode to end after x passengers delivered, we just have to spawn at least x+(maxAIs*maxTrains) passengers.
About the other game-modes: I was thinking about using challenge-maps for compete-mode, i.e. what changes would be required to use such a map instead of the random maps.
That would require quite some work, I guess. Challenge maps are designed to be used with only one AI, and since locally, the only AIs you have are the ones you write, I think it wouldn't be worth the trouble to get challenges working with multiple AIs, because then you'd be playing against yourself only...
Or isn't that what you mean?
I want "Compete", with custom maps instead of / in addition to random maps. (*) I can run locally all the AIs downloaded from the server, plus the old+new versions of my own AIs. Comparing them on the same map --> controlled, repeatable conditions would be very much worth the trouble.
(*) BTW: some of the random maps look nice, and I would like to have a button "save that map". Cut+paste from the console is not a very elegant solution for this...