CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
574 stars 85 forks source link

SingleTrainTrackAI breaks TMPE features on train tracks #787

Open originalfoo opened 4 years ago

originalfoo commented 4 years ago

Been wondering what caused this for ages and just found this on SingleTrainTrackAI workshop page:

The mod hinders some functionalities of Traffic Manager : setting traffic lights or priority signs will not work on train tracks. Other things like speed restrictions do work :)

Source repo: https://github.com/coarxflow/SingleTrainTrackAI

originalfoo commented 4 years ago

possibly related issue from ages ago: https://github.com/VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition/issues/47

LoneWolfJJR commented 2 years ago

Original STTAI repo: https://github.com/coarxflow/SingleTrainTrackAI And my fork: https://github.com/LoneWolfJJR/SingleTrainTrackAI

LoneWolfJJR commented 2 years ago

Resurrecting this old issue.

It's likely caused by Single Train Track AI detouring the TrainAI.UpdatePathTargetPositions method, which of course will skip all TM:PE changes to it. That's the only hook into the game logic the mod has.

That method is a mix of original game code & modified logic; all of the custom logic will need identifying & extracting into a transpiler I think.

(comments moved to my modding account)