TommyC81 / TPF2-LineManager

A mod for TPF2 (Transport Fever 2) to manage vehicle numbers on lines.
GNU General Public License v3.0
6 stars 2 forks source link

My best shot at a new parser, doubt I'd get to finish it anytime soon, so I hand it off to you #9

Closed RusteyBucket closed 2 years ago

RusteyBucket commented 2 years ago

Attempted a new parser that can parse a title into mode, sec min, sec max, rate min, rate max designated by [], ;, :, ,, .

It's not working yet, but if you can get it to work, it'd enable a bunch more options and should fix that bug with needing to space out my title elements I encounter for some odd reason

RusteyBucket commented 2 years ago

One other bug I noticed is that sometimes, LineManager determines a vehicle can't be placed on a line even though a vehicle cloning would work perfectly, I suspect that could be fixed by a fallback where you simply try to place the vehicle on any stop of the line before surrendering (Systematically going through the lineStations array until it worked). Also, when giving up on placing a vehicle, it's probably a good idea to sell the vehicle again...

TommyC81 commented 2 years ago

Failure to add a vehicle doesn't have to do with the line stop, it has to do with (failure of) finding a depot.

Anyway, this has been merged in. The new "parameter" structure should allow a better base to build on that is also generic.