[Asked][1.10.45a] Plugin crash (code.json:168)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
DeLobsta
Settler
Reactions:
Posts: 2
Joined: 06 Apr 2022, 20:07

[Asked][1.10.45a] Plugin crash (code.json:168)

#1

Post by DeLobsta »

Hi, I got the following error with a plugin (code.json:168):

Code: Select all

In plugins/sci-fi cityscape/transportation/railway/code.json:

java.lang.IllegalStateException: When loading "$mltrainstation00": Car id $mltrain_00 could not be found!
I'm on mobile and I've gone as far as to look at how the original coding looks in order to use it for this private plugin, but still have the same error.

Any help is appreciated.
User avatar
CommanderABab
AB
Reactions:
Posts: 11080
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Asked][1.10.45a] Plugin crash (code.json:168)

#2

Post by CommanderABab »

Be sure to define $mltrain_00 before $mltrainstation00 in sci-fi cityscape/transportation/railway/code.json.

If $mltrain_00 is defined in a different json in the folder, that name has to be alphabetically less than code.json.
User avatar
DeLobsta
Settler
Reactions:
Posts: 2
Joined: 06 Apr 2022, 20:07

Re: [Asked][1.10.45a] Plugin crash (code.json:168)

#3

Post by DeLobsta »

Awesome, works perfectly fine now after doing what you suggested. Thanks for the quick assist!
Post Reply Previous topicNext topic

Return to “Problems”