Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
"
1,127,831ms | Simulation error: Object reference not set to an instance of an object
at Vehicle.CalculateTotalLength (uint16,int&) <0x00281>
at Vehicle.CalculateTotalLength (uint16) <0x00036>
at TrainAI.PathFindReady (uint16,Vehicle&) <0x000c5>
at CargoTrainAI.PathFindReady (uint16,Vehicle&) <0x0008b>
at (wrapper dynamic-method) TrainAI.TrainAI.SimulationStep_Patch0 (TrainAI,uint16,Vehicle&,UnityEngine.Vector3) <0x0009d>
at (wrapper dynamic-method) CargoTrainAI.CargoTrainAI.SimulationStep_Patch0 (CargoTrainAI,uint16,Vehicle&,UnityEngine.Vector3) <0x0037c>
at (wrapper dynamic-method) VehicleManager.VehicleManager.SimulationStepImpl_Patch0 (VehicleManager,int) <0x004d9>
"
Interestingly, this exception was now thrown by Vehicle Effects mod:
"
129,318ms | Vehicle Effects An exception was thrown:
NullReferenceException: Object reference not set to an instance of an object
at VehicleEffects.VehicleEffectsMod.ParseVehicleDefinitio
"
Imho this indicates that the issue points more towards this asset than to RTT mod.
Some additional info in output_log.txt related to this asset and Vehicle Effects mod:
129,314ms | Vehicle Effects Added effect Train Brake Cargo to vehicle 551161964.Trailer0
However, no explicit errors in output_log.txt referring to this asset id 551161964
I will run another test with Vehicle Effects disabled & unsubscribed.
130,499ms | Random Train Trailers: 551161964.Trailer1 can not be found!
I will now try this asset without RTT mod, and wait for it to spawn. Back in a moment.
"
The Mod C:\Program Files (x86)\Steam\steamapps\workshop\content\255710\870291141 [RandomTrainTrailers.dll] has caused an error [ModException]
Details:
System.NullReferenceException: Object reference not set to an instance of an object
at RandomTrainTrailers.TrailerManager.ApplyDefinition (RandomTrainTrailers.TrailerDefinition
"
I haven't tried your suggestions yet. I will try them and let you know asap.
Thanks for all support in advance!
Have you tried unsubscribing from this asset and the RTT mod, running Skyve's "Workshop Packages Cleanup" and then subscribing again? A fresh download like that may work
Also, does this asset work fine without RTT enabled or does that still cause issues when it spawns somewhere?
Back after a goodnight rest, cheers.
The issue with this asset, NS 2200 Mixed Cargo, is in combination with Random Train Trailers which throws an object not set to instance exception.
The issue with those other assets, like 2 Lane 2 Way - Tram Road, is an assertion failed error.
Let's minimize further ambiguity and keep things separated ;) (my bad and apologies that i caused the confusion).
For instance, the following train assets all work fine with Random Train Trailer mod:
NS 1600 Cargo Train https://sp.zhabite.com/sharedfiles/filedetails/?id=471746386
NS 1700 Intercity https://sp.zhabite.com/sharedfiles/filedetails/?id=2275677324
NS 6400 Coal Train https://sp.zhabite.com/sharedfiles/filedetails/?id=500984466
But this may be completely explainable because those assets do not have randomization applied for their trailers? While NS 2200 Mixed Cargo is the only one that does? I don't know.
The only mod that could interfere, is Random Train Trailers i believe.
If really necessary, i can perform more clean tests (as early as tomorrow).
116,403ms | Random Train Trailers: 551161964.Trailer1 can not be found!
116,404ms | Random Train Trailers: 551161964.Trailer2 can not be found!
I hope this info helps.
Output_log.txt contains:
NullReferenceException: Object reference not set to an instance of an object
at RandomTrainTrailers.TrailerManager.ApplyDefinition (RandomTrainTrailers.TrailerDefinition&) <0x01065>
at RandomTrainTrailers.TrailerManager.Setup () <0x00102>
at RandomTrainTrailers.ModLoadingExtension.OnLevelLoaded (ICities.LoadMode) <0x00057>
at (wrapper dynamic-method) LoadingWrapper.LoadingWrapper.OnLevelLoaded_Patch9 (LoadingWrapper,SimulationManager/UpdateMode) <0x00114>
I will test again in a moment and share new insights/post relevant info from output_log.txt.
To prevent comment spamming ;) i'll update comments in https://sp.zhabite.com/sharedfiles/filedetails/?id=1778587650&searchtext=2+Lane+2+Way+-+Tram+Road about this issue, since that asset, this one and a few other all report the same on my system.
Other, similar train assets did not have problem with Random Train Trailers by the way.
As for now, great to hear you don't have the problem. Maybe the game received another update which fixed things, or maybe something else on my system was indeed the problem.
Thanks again.