SergeantTomlin Posted November 2, 2016 Report Share Posted November 2, 2016 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. Quote Link to comment Share on other sites More sharing options...
FInn Rescue 12 Posted November 2, 2016 Report Share Posted November 2, 2016 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" /> Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 2, 2016 Author Report Share Posted November 2, 2016 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"/> Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 3, 2016 Report Share Posted November 3, 2016 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. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 3, 2016 Author Report Share Posted November 3, 2016 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 3, 2016 Report Share Posted November 3, 2016 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. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 3, 2016 Author Report Share Posted November 3, 2016 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 4, 2016 Report Share Posted November 4, 2016 Thats a very organized setup you've got. Gotta commend you for that. Does the folder containing the units.xml have a filename that doesnt conflict with other vehicles? Does it also have the required .dds files for the icon on the upper left? Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 4, 2016 Author Report Share Posted November 4, 2016 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 4, 2016 Report Share Posted November 4, 2016 I think there's an issue with the folder name being 005. I think Em4 only allows new units once its above the original units in the vanila game. Try changing the number to 080 and then test. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 4, 2016 Author Report Share Posted November 4, 2016 I changed it from 005 to 080, and loaded it up, and tested it. No change, it still doesn't show up. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 4, 2016 Report Share Posted November 4, 2016 Have you checked if you're even loading your own mod? You might be going into vanilla Em4 instead. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 4, 2016 Author Report Share Posted November 4, 2016 1 minute ago, itchboy said: Have you checked if you're even loading your own mod? You might be going into vanilla Em4 instead. I've checked. Repeatedly. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 4, 2016 Report Share Posted November 4, 2016 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. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 4, 2016 Author Report Share Posted November 4, 2016 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 4, 2016 Report Share Posted November 4, 2016 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'. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 4, 2016 Author Report Share Posted November 4, 2016 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 4, 2016 Report Share Posted November 4, 2016 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. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 4, 2016 Author Report Share Posted November 4, 2016 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? Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 5, 2016 Report Share Posted November 5, 2016 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. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 5, 2016 Author Report Share Posted November 5, 2016 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. Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 5, 2016 Report Share Posted November 5, 2016 Assuming youre on Windows , right click and select 'open with'. Choose notepad++ Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 5, 2016 Author Report Share Posted November 5, 2016 49 minutes ago, itchboy said: Assuming youre on Windows , right click and select 'open with'. Choose notepad++ I was checking the HC_SMPA line in my Lang portraits.xml, and part of it highlighted. Is this normal? Quote Link to comment Share on other sites More sharing options...
itchboy Posted November 5, 2016 Report Share Posted November 5, 2016 It looks correct. The missing line seems to be an ID_TOOLTIP, which means infotexts.xml. Quote Link to comment Share on other sites More sharing options...
SergeantTomlin Posted November 5, 2016 Author Report Share Posted November 5, 2016 6 hours ago, itchboy said: It looks correct. The missing line seems to be an ID_TOOLTIP, which means infotexts.xml. The ID_TOOLTIP is there. Quote Link to comment Share on other sites More sharing options...