Jump to content
Xplorer4x4

Unit.XML

Recommended Posts

Heres the unit.xml file from the dive rescue ambualnce picture I posted a day or two ago. For now I have just placed it on the map as an object, but it has no units stored in it, nor can anyone enter the unit. The XML resides in Emergency 4 Deluxe\Mods\Evansville Mod\Units\Vehicles\Fire Department\153diverescue6

<unit id="DIVE_RESCUE_6">
<campaign>
<missions value="1 2 3 4 5 6 7 8 9 10 24 25">
<prototype name="mod:Prototypes/Vehicles/02 Ev Fire Department/dive_rescue_6.e4p" />
<price value="600" />
<speed value="120" />
<space value="4" />
<loadspace value="0" />
<personnel>
<unit id="FF_DIVER" />
<defaultcount value="2" />
</unit>
<unit id="FF_EMT">
<defaultcount value="2" />
</unit>
<unit id="FF_EMT_SCBA" />
</personnel>
<equipment>
<unit id="FIRE EXTINGUISHER" />
</equipment>
</missions>
</campaign>

<freeplay>
<missions value="1 2 3 4 5 6 7 8 9 10 22">
<prototype name="mod:Prototypes/Vehicles/02 Ev Fire Department/dive_rescue_6.e4p" />
<price value="600" />
<speed value="120" />
<space value="4" />
<loadspace value="0" />
<personnel>
<unit id="FF_DIVER" />
<defaultcount value="2" />
</unit>
<unit id="FF_EMT">
<defaultcount value="2" />
</unit>
<unit id="FF_EMT_SCBA" />
</personnel>
<equipment>
<unit id="FIRE EXTINGUISHER" />
</equipment>
</missions>
</freeplay>
</unit>

Link to comment
Share on other sites

could the problem be with the

Code: <prototype name="mod:Prototypes/Vehicles/02 Ev Fire Department/dive_rescue_6.e4p" />

You stated: "The XML resides in Emergency 4 Deluxe\Mods\Evansville Mod\Units\Vehicles\Fire Department\153diverescue6"

could the problem be there? They don't look like they match to me.

Link to comment
Share on other sites

No thats correct. Look at other unit XML files, the problem, although I havent confirmed it, looks like the units id in the XML is <unit id="DIVE_RESCUE_6"> but the folder was 153diverescue6 when it should be 153diverescue6.

Sorry for wasting your time but thanks for trying. :)

Link to comment
Share on other sites

No thats correct. Look at other unit XML files, the problem, although I havent confirmed it, looks like the units id in the XML is <unit id="DIVE_RESCUE_6"> but the folder was 153diverescue6 when it should be 153diverescue6.

Sorry for wasting your time but thanks for trying. :)

Hey, anytime. I don't know a heck of a lot, but, I can try :P

Link to comment
Share on other sites

<unit id="DIVE_RESCUE_6">
<campaign>
<missions value="1 2 3 4 5 6 7 8 9 10 24 25">
<prototype name="mod:Prototypes/Vehicles/02 Ev Fire Department/dive_rescue_6.e4p" />
<price value="600" />
<speed value="120" />
<space value="4" />
<loadspace value="0" />
<personnel>
<unit id="FF_DIVER">
<defaultcount value="2" />
</unit>
<unit id="FF_EMT">
<defaultcount value="2" />
</unit>
<unit id="FF_EMT_SCBA" />
</personnel>
<equipment>
<unit id="FIRE EXTINGUISHER" />
</equipment>
</missions>
</campaign>

<freeplay>
<missions value="1 2 3 4 5 6 7 8 9 10 22">
<prototype name="mod:Prototypes/Vehicles/02 Ev Fire Department/dive_rescue_6.e4p" />
<price value="600" />
<speed value="120" />
<space value="4" />
<loadspace value="0" />
<personnel>
<unit id="FF_DIVER">
<defaultcount value="2" />
</unit>
<unit id="FF_EMT">
<defaultcount value="2" />
</unit>
<unit id="FF_EMT_SCBA" />
</personnel>
<equipment>
<unit id="FIRE EXTINGUISHER" />
</equipment>
</missions>
</freeplay>
</unit>

Changed <unit id="FF_DIVER" /> to <unit id="FF_DIVER">. Without that "/" symbol.

That slash closes the <unit id> code. That explaines why FF_EMT_SCBA has a slash and FF_EMT and FF_DIVER don't.

The <unit id> codes of FF_EMT and FF_DIVER get opened to set the <defaultcount value>. Therefore the code of FF_EMT and FF_DIVER get closed by </unit>.

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...