Page 1 of 1

ID cannot be found

Posted: 11 Mar 2023, 17:40
by NSGSEI
I put the vehicle and the vehicle generator building in two JSON, accessing the game will indicate that the vehicle ID cannot be found. i am 100% sure that the vehicle ID called by the generator exists, why is this?

Re: ID cannot be found

Posted: 11 Mar 2023, 19:26
by JustAnyone
Please ensure that the vehicle is defined before it is used.

Re: ID cannot be found

Posted: 12 Mar 2023, 15:53
by NSGSEI
JustAnyone wrote:
11 Mar 2023, 19:26
Please ensure that the vehicle is defined before it is used.
I'm sure I've defined the vehicle, but I put the code for the vehicle part in a separate JSON, does this have anything to do with the name of the JSON file, I didn't have this problem before renaming the file

Re: ID cannot be found

Posted: 12 Mar 2023, 17:53
by Kulche
The car definition has to be loaded first. Give it's name some characters like "a" or "0" in the beginning.

Re: ID cannot be found

Posted: 12 Mar 2023, 18:04
by NotPFA
or in a single json file, move the car json above the building json