Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
xxnypdofficerxx

Persons don't appear in vehicle menu

Recommended Posts

Hi there

I'm having a problem: the persons are not showing up in the vehicle menu, and i don't know what's wrong because both unit files (for the vehicle and person) are made correctly. Hope someone can help me!

 

Vehicle:

<unit id="AEM 1">
    <campaign>
        <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 21">
            <prototype name="mod:Prototypes/Vehicles/Ambulance/rtw.e4p" />
            <price value="500" />
            <speed value="120" />
            <space value="2" />
            <loadspace value="1" />
            <personnel>
                <unit id="DOCTOR">
                    <defaultcount value="1" />
                </unit>
                
                <unit id="PARAMEDICS">
                    <defaultcount value="1" />
                </unit>
            </personnel>
            <equipment />
        </missions>
    </campaign>
    
    <freeplay>
        <missions value="22">
            <prototype name="mod:Prototypes/Vehicles/INEM/AEM 1.e4p" />
            <price value="500" />
            <speed value="120" />
            <space value="2" />
            <loadspace value="1" />
            <count value="3" />
            <personnel>
                <unit id="TEPH">
                    <defaultcount value="2" />
                </unit>
            </personnel>
            <equipment />
        </missions>
    </freeplay>        
</unit>

 

Person: 

<unit id="TEPH">
    <campaign>
        <missions value = "22">
            <<prototypes>
                <prototype name="mod:Prototypes/Persons/INEM/medico.e4p"  level="0"/>
                <prototype name="mod:Prototypes/Persons/INEM/medico.e4p"  level="1"/>
                <prototype name="mod:Prototypes/Persons/INEM/medico.e4p"  level="2"/>
                <prototype name="mod:Prototypes/Persons/INEM/medico.e4p"  level="3"/>
            </prototypes>
            <price value="25" />
            <space value="1" />            
        </missions>
    </campaign>

    <freeplay>
        <missions value = "22">
            <prototypes>
                <prototype name="mod:Prototypes/Persons/INEM/teph.e4p" />
            </prototypes>
            <price value="25" />
            <space value="1" />
        </missions>
    </freeplay>
</unit>

 

Em4 2019-08-14 23-40-09-58.jpg

Share this post


Link to post
Share on other sites

They just don't have icons but when you buy the vehicle they are in it or the game simple doesn't spawn them at all? By the way there are two "<<" in the fourth line of your personnel unit file.

Share this post


Link to post
Share on other sites

There's a bit of a mistake in the person xml file.

Person xml

<unit id="TEPH">
    <campaign>
        <missions value = "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25">
            <prototypes>
                <prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="0"/>
                <prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="1"/>
                <prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="2"/>
                <prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="3"/>
            </prototypes>
            <price value="25" />
            <space value="1" />            
        </missions>
    </campaign>

    <freeplay>
		<missions value="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22">
            <prototypes>
				<prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="0"/>
				<prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="1"/>
				<prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="2"/>
				<prototype name="mod:Prototypes/Persons/INEM/teph.e4p" level="3"/>
            </prototypes>
            <price value="25" />
            <space value="1" />
        </missions>
    </freeplay>
</unit>

Vehicle xml

<unit id="AEM 1">
    <campaign>
        <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 21 25">
            <prototype name="mod:Prototypes/Vehicles/INEM/AEM 1.e4p" />
            <price value="500" />
            <speed value="120" />
            <space value="2" />
            <loadspace value="1" />
            <personnel>
               <unit id="TEPH">
                    <defaultcount value="2" />
                </unit>
            </personnel>
            <equipment />
        </missions>
    </campaign>

    <freeplay>
        <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 22">
            <prototype name="mod:Prototypes/Vehicles/INEM/AEM 1.e4p" />
            <price value="500" />
            <speed value="120" />
            <space value="2" />
            <loadspace value="1" />
            <count value="3" />
            <personnel>
                <unit id="TEPH">
                    <defaultcount value="2" />
                </unit>
            </personnel>
            <equipment />
        </missions>
    </freeplay>        
</unit>

I also cleaned up the vehicle xml so that it can be used in campaign.

Share this post


Link to post
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...