Jump to content
SergeantTomlin

Vehicle won't show up in game

Recommended Posts

I have been trying to add the car I've set up in editor into the game, following a video tutorial, and Hoppah's text tutorial. However, even though I have all of my stuff set up properly, (I've compared it to the LA Mod XMLs to double check), the car won't show up in Freeplay, or Editor. I need help with this, I can send my XMLs if they're needed. 

Link to comment
Share on other sites

Check the unis file make sure the unit ID is the same iexample (   <unit id="TAURUS_MSP" )  used in your portraits specs      <portrait 

    <portrait prototype="mod:Prototypes/Vehicles/03 LA Police/Taurus_msp.e4p" text="TAURUS_MPS" unit="TAURUS_MSP"/>. 

freeplay      <vehicle prototype="mod:Prototypes/Vehicles/03 LA Police/Taurus_msp.e4p" count="1" />

 

Link to comment
Share on other sites

4 hours ago, FInn Rescue 12 said:

Check the unis file make sure the unit ID is the same iexample (   <unit id="TAURUS_MSP" )  used in your portraits specs      <portrait 

    <portrait prototype="mod:Prototypes/Vehicles/03 LA Police/Taurus_msp.e4p" text="TAURUS_MPS" unit="TAURUS_MSP"/>. 

freeplay      <vehicle prototype="mod:Prototypes/Vehicles/03 LA Police/Taurus_msp.e4p" count="1" />

 

It is, but it still refuses to work. 

I'll attach the Specs Portrait, and the Unit xml. 

Unit XML; 

<unit id="HC_SMPA">
    <campaign>
        <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 24 26 27 28 29 30 31 32 33 34 35">
            <prototype name="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01.e4p" />
            <price value="170" />
            <speed value="120" />
            <space value="2" />
            <loadspace value="2" />
            <personnel>
                <unit id="POLICE_OFFICER">
                    <defaultcount value="3" />
                </unit>
            </personnel>
            <equipment>
                <unit id="ROAD BLOCK" />
            </equipment>
        </missions>
    </campaign>
    
    <freeplay>
        <missions value="22">
            <prototype name="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01.e4p" />
            <price value="0" />
            <speed value="170" />
            <space value="2" />
            <loadspace value="2" />
            <personnel>
                <unit id="POLICE_OFFICER">
                    <defaultcount value="3" />
                </unit>
            </personnel>
            <equipment>
                <unit id="ROAD BLOCK" />
            </equipment>
        </missions>
    </freeplay>        
</unit>

 

Portraits XML, for the police section 

    <portrait prototype="mod:Prototypes/Vehicles/Police/stw.e4p" text="STW" unit="STW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" text="MTW" unit="MTW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/sw.e4p" text="SW" unit="SW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/waw.e4p" text="WAW" unit="WAW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" text="GTW" unit="GTW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/phc.e4p" text="PHC" unit="PHC"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" text="FLIGHT" unit="FLIGHT"/>
    <portrait prototype="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01.e4p" text="HC_SMPA" unit="HC_SMPA"/>

Link to comment
Share on other sites

1 hour ago, itchboy said:

Does it have the required unit icons in it? What about the 'Lang' part for the infotexts and stuff? Portraits.xml in specs, and portraits.xml in Lang folder as well.

Sigh, I wish adding units were easier, but unfortunately they arent.

All of the icons are there, and I'm pretty sure I have the infotexts set up right. 

 

Screenshot_57.png

Link to comment
Share on other sites

2 hours ago, itchboy said:

Korean mod? Hope to see more Asian content being done.

Did you try the portraits.xml in the Lang folder?

Another thing that could have gone wrong is the folder name of the unit in the Personel/Vehicles folder.

Yup, I'm working on Seoul.

Privated for now, as I'm basically using other models to get the hang of editor and modding in general. 

But anyway, yeah, I've checked all of that. 

I'll attach all of the XMLs I have. 

Starting with the Lang folder's contents; 

Portraits.xml 

<string name="ID_PORTRAIT_HC_SMPA">Honda Civic Patrol Vehicle</string>

Infotexts.xml 

<string name="ID_NAME_HC_SMPA">SMPA Honda Civic Patrol Vehicle</string>
<string name="ID_PURPOSE_HC_SMPA">The Honda Civic Patrol Vehicle is used by Seoul's police officers to patrol their areas, and respond to 112 Emergency calls.
<string name="ID_TOOLTIP_HC_SMPA">SMPA Honda Civic Patrol Vehicle</string>
<string name="ID_ABBR_HC_SMPA">SMPAHC</string>

And moving onto the Specs folder; 

Freeplaybase.xml

    <vehicle prototype="mod:Prototypes/Vehicles/Police/stw.e4p" count="3" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" count="1" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/sw.e4p" count="1" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/phc.e4p" count="1" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/waw.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01" count="3" />
 

Freeplaybase_d.xml

    <vehicle prototype="mod:Prototypes/Vehicles/Police/stw.e4p" count="3" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" count="1" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/sw.e4p" count="1" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/phc.e4p" count="1" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/waw.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01" count="3" />

Freeplaybase_mp.xml 

<vehicle prototype="mod:Prototypes/Vehicles/Police/stw.e4p" count="3" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" count="2" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/sw.e4p" count="1" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/phc.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/Police/waw.e4p" count="0" />
    <vehicle prototype="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01" count="3" />

Metastrings.xml

<meta>
    <file name="lang:infotexts.xml" />
    <file name="lang:poi.xml" />
    <file name="lang:portraits.xml" />
    <file name="lang:fail.xml" />
    <file name="lang:ingamehelp.xml" />
    <file name="lang:objectives.xml" />
    <file name="lang:hints.xml" />
    <file name="lang:missiontitles.xml" />
    <file name="lang:missiontips.xml" />
    <file name="lang:mission.xml" />
    <file name="lang:talk.xml" />
    <file name="lang:supervobj.xml" />
    <file name="lang:supervfail.xml" />
    <file name="lang:supervresult.xml" />
    <file name="lang:supervtut.xml" />
    <file name="lang:tutorial.xml" />
    <file name="lang:command.xml" />
    <file name="lang:supervobj.xml" />
    <file name="lang:credits.xml" />
    <file name="lang:supervquest.xml" />
    <file name="lang:quest.xml" />
    <file name="lang:supervaward.xml" />
    <file name="lang:events.xml" />
    <file name="lang:supervevents.xml" />
    <file name="lang:superveventsobj.xml" />
    <file name="lang:mainmenu.xml" />
    <file name="lang:gui.xml" />
    <file name="lang:score.xml" />
    <file name="lang:strings.xml" />
    <file name="lang:voices.xml" />
</meta>

Portraits.xml

<portrait prototype="mod:Prototypes/Vehicles/Police/stw.e4p" text="STW" unit="STW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" text="MTW" unit="MTW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/sw.e4p" text="SW" unit="SW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/waw.e4p" text="WAW" unit="WAW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" text="GTW" unit="GTW"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/phc.e4p" text="PHC" unit="PHC"/>
    <portrait prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" text="FLIGHT" unit="FLIGHT"/>
    <portrait prototype="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01.e4p" text="HC_SMPA" unit="HC_SMPA"/>

The file directory where the car model and texture is are located at Seoul Modification V1 > Models > Vehicles > 03 Seoul Police > Honda Civic Patrol Car.

The file directory where the prototypes for the car are located at Seoul Modification V1 > Models > Vehicles >03 Seoul Police > Honda Civic Patrol Car. 

Link to comment
Share on other sites

As far as I can tell, there aren't any conflicts. 

Here's the unit.xml's content. 

<unit id="HC_SMPA">
    <campaign>
        <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 24 26 27 28 29 30 31 32 33 34 35">
            <prototype name="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01.e4p" />
            <price value="170" />
            <speed value="120" />
            <space value="2" />
            <loadspace value="2" />
            <personnel>
                <unit id="POLICE_OFFICER">
                    <defaultcount value="3" />
                </unit>
            </personnel>
            <equipment>
                <unit id="ROAD BLOCK" />
            </equipment>
        </missions>
    </campaign>
    
    <freeplay>
        <missions value="22">
            <prototype name="mod:Prototypes/Vehicles/03 Seoul Police/smpa_patrolcar01.e4p" />
            <price value="0" />
            <speed value="170" />
            <space value="2" />
            <loadspace value="2" />
            <personnel>
                <unit id="POLICE_OFFICER">
                    <defaultcount value="3" />
                </unit>
            </personnel>
            <equipment>
                <unit id="ROAD BLOCK" />
            </equipment>
        </missions>
    </freeplay>        
</unit>

 

And I've also attached a screenshot of the Unit's folder. 

 

As for what you said about my organization, thank you.

I am nearly OCD when it comes to organization, having specific folders helps me locate things faster. 

Screenshot_4.png

Link to comment
Share on other sites

An experimental idea. Go into the editor, go into the FP map. Plop one instance of that police cruiser in the map. Make a backup of the original. Save the edited map.

Go ingame and you should have the vehicle in the map (but not in the menu). Check if the vehicle's icons, text and commands show up.

Link to comment
Share on other sites

Got it, I'll do it now.

 

18 hours ago, itchboy said:

An experimental idea. Go into the editor, go into the FP map. Plop one instance of that police cruiser in the map. Make a backup of the original. Save the edited map.

Go ingame and you should have the vehicle in the map (but not in the menu). Check if the vehicle's icons, text and commands show up.

How do I make a backup of the original? I can't find the map file inside my mod folder. 

 

18 hours ago, itchboy said:

An experimental idea. Go into the editor, go into the FP map. Plop one instance of that police cruiser in the map. Make a backup of the original. Save the edited map.

Go ingame and you should have the vehicle in the map (but not in the menu). Check if the vehicle's icons, text and commands show up.

Alright, so I went into editor. 

Added in one Civic.

Saved.

Opened it in freeplay.

It didn't appear on the map, so I went to where I had placed it, and it was there.

The health bar popped up, along with the "big" image for it, but there were no commands and I couldn't make a unit get in it. 

Link to comment
Share on other sites

Do the texts and unit name below it appear?

For now, if you cant get the unit to spawn via menu, go into the editor and add the needed commands into the units. MoveTo, EmptyCar, GoHome, and others if need be.

Edit in the traits as well to make it a vehicleType 'POLICE_STW'.

Link to comment
Share on other sites

14 hours ago, itchboy said:

Do the texts and unit name below it appear?

For now, if you cant get the unit to spawn via menu, go into the editor and add the needed commands into the units. MoveTo, EmptyCar, GoHome, and others if need be.

Edit in the traits as well to make it a vehicleType 'POLICE_STW'.

The only thing that appears under it is ID_TOOLTIP_HC_SMPA. 

And I'll do that. 

The car can be selected now, I can place an officer inside of it, and move it around the map.

However, even though I added them, the EmptyCar and GoHome commands don't show up, and the car still isn't accessible from the menu. 

Link to comment
Share on other sites

56 minutes ago, SergeantTomlin said:

The only thing that appears under it is ID_TOOLTIP_HC_SMPA.

Means something has gone wrong in one of the xml's. The unit icons should show up correctly if everything is setup right, even if you just plopped the vehicle at random.

Go into the FP map where you plopped the vehicle. Delete it and replace it with a 'fresh' one. Commands should show up.

Link to comment
Share on other sites

1 hour ago, itchboy said:

Means something has gone wrong in one of the xml's. The unit icons should show up correctly if everything is setup right, even if you just plopped the vehicle at random.

Go into the FP map where you plopped the vehicle. Delete it and replace it with a 'fresh' one. Commands should show up.

The commands are there now.

 

Anyway, how should I go about fixing the xml's? 

Link to comment
Share on other sites

Rechecking them one by one.

Try using notepad++ as a replacement for regular notepad, in order to have a 'highlighter' that shows the end and beginning lines of the code. If things dont line up, it might show up.

Last resort is sending the files to me for me to give it a try to fix.

Link to comment
Share on other sites

2 minutes ago, itchboy said:

Rechecking them one by one.

Try using notepad++ as a replacement for regular notepad, in order to have a 'highlighter' that shows the end and beginning lines of the code. If things dont line up, it might show up.

Last resort is sending the files to me for me to give it a try to fix.

For some reason I cannot get Notepad++ to open xml files. 

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