Jump to content
Alex03

Unit XML file

Recommended Posts

Hey

I having a big problem adding personel to my truck. But I always get this erroe

?ScanVehicles: mod:Units/Vehicles/Fire Department/TSFWAR/unit.xml not found or error in file

my xml file looks like this

<unit id="TSF Wardorf">
<campaign>
<missions value="6 18 16 11 20">
<prototype name="mod:Prototypes/Vehicles/FF/tsfwardorf.e4p" />
<sendmode value = "1" />
<price value="0" />
<speed value="90" />
<space value="6" />
<loadspace value="0" />
<personnel />
<equipment />
</missions>
</campaign>

<freeplay>
<missions value="6 18 16 11 20 22">
<prototype name="mod:Prototypes/Vehicles/FF/tsfwardorf.e4p" />
<sendmode value = "1" />
<price value="0" />
<speed value="110" />
<space value="6" />
<loadspace value="0" />
<personel>
<unit id="Staffelfuhrer Wardorf">
<defaultcount value="1" />
</unit>
<unit id="Feuerwehrmann Wardorf" />
</personnel>
<equipment />
</missions>
</freeplay>
</unit>

Can anny one please help me??

Link to comment
Share on other sites

Hey

I having a big problem adding personel to my truck. But I always get this erroe

?ScanVehicles: mod:Units/Vehicles/Fire Department/TSFWAR/unit.xml not found or error in file

my xml file looks like this

<unit id="TSF Wardorf">
<campaign>
<missions value="6 18 16 11 20">
<prototype name="mod:Prototypes/Vehicles/FF/tsfwardorf.e4p" />
<sendmode value = "1" />
<price value="0" />
<speed value="90" />
<space value="6" />
<loadspace value="0" />
<personnel />
<equipment />
</missions>
</campaign>

<freeplay>
<missions value="6 18 16 11 20 22">
<prototype name="mod:Prototypes/Vehicles/FF/tsfwardorf.e4p" />
<sendmode value = "1" />
<price value="0" />
<speed value="110" />
<space value="6" />
<loadspace value="0" />
<personel>
<unit id="Staffelfuhrer Wardorf">
<defaultcount value="1" />
</unit>
<unit id="Feuerwehrmann Wardorf" />
</personnel>
<equipment />
</missions>
</freeplay>
</unit>

Can anny one please help me??

I see the error, you have used : mod:Units/Vehicles/Fire Department/TSFWAR/unit.xml

But you must do before every unit map 020 or 030 probably this is youre first time you add a new unit? if so you need to put at the begin of TSFWAR 010 so it becomes like this mod:Units/Vehicles/Fire Department/010TSFWAR/unit.xml

But every time you create a new unit you must up it with 10 so the next unit becomes like /020unitname/unit.xml

But if you start by a new ambulance unit it becomes like this /060unitname/unit.xml.

This is also the same for the police you look at the last unit name maybe like 060 and then is the next one 070 get it?

Anymore questions or problem can be asked =)

Link to comment
Share on other sites

Tried your solution didnt work, the problem is as followning

1. when I remove the persone id`s the truck shows in the ingame menu.

<personel> <unit id="Staffelfuhrer Wardorf"> <defaultcount value="1" /> </unit> <unit id="Feuerwehrmann Wardorf" /> </personnel>

2. When I add them back again the truck disapears.

<personel> <unit id="Staffelfuhrer Wardorf"> <defaultcount value="1" /> </unit> <unit id="Feuerwehrmann Wardorf" /> </personnel>

Link to comment
Share on other sites

Tried your solution didnt work, the problem is as followning

1. when I remove the persone id`s the truck shows in the ingame menu.

<personel> <unit id="Staffelfuhrer Wardorf"> <defaultcount value="1" /> </unit> <unit id="Feuerwehrmann Wardorf" /> </personnel>

2. When I add them back again the truck disapears.

<personel> <unit id="Staffelfuhrer Wardorf"> <defaultcount value="1" /> </unit> <unit id="Feuerwehrmann Wardorf" /> </personnel>

But you know you must follow that too when you create new person units?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...