ID cannot be found

Plug-in related stuff can be discussed here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
NSGSEI
Villager
Posts: 22
Joined: 29 Dec 2018, 07:36
Location: China
Plugins: Showcase Store
Version: Beta

Platform

ID cannot be found

#1

Post by NSGSEI » 11 Mar 2023, 17:40

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?
User avatar
JustAnyone
Developer
Posts: 3590
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: ID cannot be found

#2

Post by JustAnyone » 11 Mar 2023, 19:26

Please ensure that the vehicle is defined before it is used.
User avatar
NSGSEI
Villager
Posts: 22
Joined: 29 Dec 2018, 07:36
Location: China
Plugins: Showcase Store
Version: Beta

Platform

Re: ID cannot be found

#3

Post by NSGSEI » 12 Mar 2023, 15:53

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
User avatar
Kulche
Pluche
Posts: 1199
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: ID cannot be found

#4

Post by Kulche » 12 Mar 2023, 17:53

The car definition has to be loaded first. Give it's name some characters like "a" or "0" in the beginning.
User avatar
NotPFA
Townsman
Posts: 70
Joined: 28 Jan 2023, 17:34
Plugins: Showcase Store

Plugin Creator

Platform

Re: ID cannot be found

#5

Post by NotPFA » 12 Mar 2023, 18:04

or in a single json file, move the car json above the building json
Post Reply Previous topicNext topic

Return to “Plug-In Discussion”