Fixed duplicate instances being created
Altered Game Object creation to better track and identify mod for debugging / development.
I noticed that during the game some odd behavior was occurring where it seemed like some actions were fighting the user. For example switching to Manual mode from yard mode would revert back to Yard mode after a few seconds.
Using object explorer and creating a basic test Mod I was able to determine that the current method of creating an instance of Route AI leads to multiple instances getting created. The proposed pull request will resolve those issues.
Additionally the approach used to load the mod into the game was creating the instance as "New Game Object". This is not conducive to long term debugging / development. Instead the proposed fix solves this by creating a properly named parent object and binding the mod to the properly named parent instance.
Before:
Note the duplicate New Game Object Instances
After:
Note the single instance of Erabior.Dispatcher
Fixed duplicate instances being created Altered Game Object creation to better track and identify mod for debugging / development.
I noticed that during the game some odd behavior was occurring where it seemed like some actions were fighting the user. For example switching to Manual mode from yard mode would revert back to Yard mode after a few seconds.
Using object explorer and creating a basic test Mod I was able to determine that the current method of creating an instance of Route AI leads to multiple instances getting created. The proposed pull request will resolve those issues.
Additionally the approach used to load the mod into the game was creating the instance as "New Game Object". This is not conducive to long term debugging / development. Instead the proposed fix solves this by creating a properly named parent object and binding the mod to the properly named parent instance.
Before: Note the duplicate New Game Object Instances
After: Note the single instance of Erabior.Dispatcher
Adam.