Can anyone help me with the Class names of items, I cannot get any to load in my map.
I have attached items.xml, log.txt, and one of the items I am having issues with.
Help with className error class not defined
9 posts
Page 1 of 1
-
- Posts: 8
- Joined: Sun Nov 28, 2021 11:07 pm
Help with className error class not defined
- Attachments
-
- limeStation.xml
- (3.8 KiB) Downloaded 50 times
-
- items.xml
- (818 Bytes) Downloaded 48 times
-
- log.txt
- (23.62 KiB) Downloaded 57 times
Re: Help with className error class not defined
Do you want it preplaced in map? if so, you can put it in placeables.xml and storeItems.xml, has to be in both xml files.
Code: Select all
<placeables>
<placeable mapBoundId="gasStation"" filename="maps/mapFR/Placeables/mapUS/gasStation/gasStation.xml" position="-783.537 8.688 835.409" rotation="0 180 0" />
<placeable mapBoundId="limeStation01" filename="maps/mapFR/Placeables/lizard/limeStation/limeStation.xml" position="-783.377 15.902 920.7" rotation="180 -2.146 180" />
</placeables>
-
- Posts: 8
- Joined: Sun Nov 28, 2021 11:07 pm
Re: Help with className error class not defined
i tried to add the lines to the code to the files you described, i even went back and tried to reference the base game files since they were not altered other than the xyz, to save file space.
still getting the error code
still getting the error code
- Attachments
-
- log.txt
- (24.95 KiB) Downloaded 48 times
-
- storeItems.xml
- (4.55 KiB) Downloaded 43 times
-
- placeables.xml
- (421 Bytes) Downloaded 39 times
Re: Help with className error class not defined
No, you are getting a different error which is a good sign. Now go and reference your xml files with correct filepathas and it should work.
In Placeables.xml
In StoreItems.xml
In Placeables.xml
Code: Select all
<placeable mapBoundId="gasStation" filename="$moddir$ModMap/maps/placeables/mapUS/gasStation/gasStation.xml" position="1474.123 35.16 -1184.568" rotation="0 -62.332 0" />
Code: Select all
<storeItem xmlFilename="maps/placeables/mapUS/gasStation/gasStation.xml" />
-
- Posts: 8
- Joined: Sun Nov 28, 2021 11:07 pm
Re: Help with className error class not defined
so slowly making progress. no longer an error just a warning with no store item. any thoughts?
- Attachments
-
- log.txt
- (24.24 KiB) Downloaded 47 times
-
- storeItems.xml
- (4.4 KiB) Downloaded 43 times
-
- placeables.xml
- (493 Bytes) Downloaded 49 times
Re: Help with className error class not defined
No $data for any xml you are customising.
-
- Posts: 8
- Joined: Sun Nov 28, 2021 11:07 pm
Re: Help with className error class not defined
thanks this worked
-
- Posts: 8
- Joined: Sun Nov 28, 2021 11:07 pm
Re: Help with className error class not defined
any chance you know how to add a sleep trigger to a preplaced building as well?
Re: Help with className error class not defined
Never done that before.
9 posts
Page 1 of 1