Help with className error class not defined

Your forum for all discussions around Modding.
solaris193
Posts: 8
Joined: Sun Nov 28, 2021 11:07 pm

Help with className error class not defined

Post by solaris193 »

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.
Attachments
limeStation.xml
(3.8 KiB) Downloaded 49 times
items.xml
(818 Bytes) Downloaded 47 times
log.txt
(23.62 KiB) Downloaded 55 times
User avatar
strauts6
Posts: 297
Joined: Mon Nov 03, 2014 12:00 am

Re: Help with className error class not defined

Post by strauts6 »

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>
solaris193
Posts: 8
Joined: Sun Nov 28, 2021 11:07 pm

Re: Help with className error class not defined

Post by solaris193 »

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
Attachments
log.txt
(24.95 KiB) Downloaded 47 times
storeItems.xml
(4.55 KiB) Downloaded 42 times
placeables.xml
(421 Bytes) Downloaded 38 times
User avatar
strauts6
Posts: 297
Joined: Mon Nov 03, 2014 12:00 am

Re: Help with className error class not defined

Post by strauts6 »

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

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" />
In StoreItems.xml

Code: Select all

    <storeItem xmlFilename="maps/placeables/mapUS/gasStation/gasStation.xml"  />
solaris193
Posts: 8
Joined: Sun Nov 28, 2021 11:07 pm

Re: Help with className error class not defined

Post by solaris193 »

so slowly making progress. no longer an error just a warning with no store item. any thoughts?
Attachments
log.txt
(24.24 KiB) Downloaded 45 times
storeItems.xml
(4.4 KiB) Downloaded 42 times
placeables.xml
(493 Bytes) Downloaded 48 times
User avatar
strauts6
Posts: 297
Joined: Mon Nov 03, 2014 12:00 am

Re: Help with className error class not defined

Post by strauts6 »

No $data for any xml you are customising.
solaris193
Posts: 8
Joined: Sun Nov 28, 2021 11:07 pm

Re: Help with className error class not defined

Post by solaris193 »

thanks this worked
solaris193
Posts: 8
Joined: Sun Nov 28, 2021 11:07 pm

Re: Help with className error class not defined

Post by solaris193 »

any chance you know how to add a sleep trigger to a preplaced building as well?
User avatar
strauts6
Posts: 297
Joined: Mon Nov 03, 2014 12:00 am

Re: Help with className error class not defined

Post by strauts6 »

Never done that before.
Post Reply