Erabior / RouteManager

Mod for Railroader the game that adds basic automation for passenger routes
13 stars 6 forks source link

Version 2.0 #44

Closed AdamC1228 closed 10 months ago

AdamC1228 commented 10 months ago

Major updates to station selection logic. Currently has a minor non fatal crash once reaching end of line but that should be resolved tomorrow.

The reason for the merge is that I have tested new passenger loading and unloading logic and the new logic appears to be working quite well. This should resolve the issues surrounding leaving the station prematurely. (#36 #41)

This pull request is for the beta branch and although there is the minor non fatal crash, i feel that the station load / unload logic merits the pull request for discussion purposes. Once i sort the minor crash, I see no reason to not merge the pull request into dev.

AdamC1228 commented 10 months ago

I have stared at this for too long and am just not seeing it. Does anyone see why LocoTelem.locoTravelingWestward[locomotive] triggers index not found in the StationManger.cs around line 192?

I initialize the value twice so it should definitely exist.