Zum Inhalt wechseln


Foto

Attempting to create a new vehicle using an existing EM5 vehicle


  • Please log in to reply
5 replies to this topic

#1 William Stapleford

William Stapleford

    Lieutenant

  • Members
  • 99 Beiträge:

Geschrieben 15 September 2015 - 02:41

Ok so since i don't own a 3d cad software and since i can't get anything done with texturing.  I have decided to try something that should be easy.  I decided to create a new unmarked SUV using the same model and body as the civil prefab of the tech suv.  

 

I created a new project and then found the model in the vehicle prefab list.  I added it to my map and then changed several properties.  I changed it to a uservehicle and added the command array from the police car.  I added a silly little red rotating alarm light to the top.  Attached it using the link to "lights".  Then saved the prefab as police_suv.

 

I then went in search of the many files I have found are needed to add vehicles to this game.

 

I went and change the properties on the 

\data\em5\content\prefab\spawnpoint\  I added the "SUV" to the file under the police portion of the spawnpoint.

I also added "SUV" in the exit point for the ground vehicles

 

I changed the order_info file

I change the unit_info file

they now should have the "SUV" added to the file

===================================================the order info file ======================================================================================================

"Format":
{
"Type": "em5_order_info",
"Version": "1"
},
"OrderInfo":
{
//  police suv
"SUV":
{
"Prefab": "em5/prefab/vehicle/police_suv",
"AvatarIcon": "police_stw",
"SelectionIcon": "unit_suv",
"MiniMapIconType": "PoliceVehicle",
"LocalizedName": "ID_NAME_SUV",
"UnitTags": "Police Vehicle Road STW",
"OrderDepartment": "PoliceDepartment",
"OrderCost": "10",
"OrderSpeed": "10",
"UnlockCost": "0",
"NumberAvailable": "5",
"PersonnelSpace": "5",
"StartPersonnel":
{
"Policeman" : "2"
},
"PassengerSpace": "2",
"HelpPages":
[
"TUTORIAL_HELPTEXT_BACK_TO_HQ_STW",
"TUTORIAL_HELPTEXT_EXIT_STW"
]
}
}
}=================================================================================================================================================================
If im correct this line here
"LocalizedName": "ID_NAME_SUV",
determines the shortened name of the vehicle for other files.  In my case it's SUV
"SelectionIcon": "unit_suv"
this is a small .dds file that is used to select the vehicle in the dropdown list.  For me its a simple text message saying "TEST"  This does not even show up as of now
 
 
I also changed the file for the unit_pool "startup"
This file is where the vehicles for each mission and the amount of vehicles available are set.
I added "SUv" to the freeplay munich mission and then attempted to load the mod and the game.
 
The results nothing at all.  I don't even see the choice to use the vehicle on the drop down selection menu.
 
I'm not sure what I'm doing wrong if anyone wants to chime in feel free.  I'm very frustrated and lost.
 
I understand now what files have to be used to get a vehicle into the game but i have yet to have any success.
 
William516
Bill
Delaware, USA
 


#2 Walker282

Walker282

    Lieutenant

  • Members
  • 67 Beiträge:
  • Gender:Male

Geschrieben 15 September 2015 - 02:59

Defently interesting.... Something has to be missing that is worded wrong or something.... I'll try to reinact your scenario if I can and tweak the files around....

#3 William Stapleford

William Stapleford

    Lieutenant

  • Members
  • 99 Beiträge:

Geschrieben 15 September 2015 - 03:03

FINALLY !!!!!

Ok it was because my .json files were corrupted and always opening via wordpad.  File association was messed up.  I cleared it up and have my first ever success story, still not done yet but first time I have seen one of my test work. lol

below are the results

 

2015_09_14_00001.jpg

ok the "MISSING" symbol in the corner is where the user interface would go.  I have to figure out where this file is by examining some other stuff.

 

2015_09_14_00003.jpg

Still have to fix the doors and the interface add the proper equipment etc.  This does prove my concept and get some understanding of all that is needed file wise to get a vehicle into the game and choose who owns it.

 

 

William516

Bill

Delaware,USA



#4 Walker282

Walker282

    Lieutenant

  • Members
  • 67 Beiträge:
  • Gender:Male

Geschrieben 15 September 2015 - 03:15

Hot damn nice job. We shall have to talk about this haha

#5 William Stapleford

William Stapleford

    Lieutenant

  • Members
  • 99 Beiträge:

Geschrieben 15 September 2015 - 12:27

Yeah I will be putting together a general tutorial of how to get this to work. I cant post the files because they are unlocked em5 master files lol. You can still change the main core files of the game but after patch 1.4.1 you dont have to. I figured out what to do to keep the original files intact.

This tutorial will NOT include anything on 3d or textures though but if you have a model and want it in the game I now know what files are needed to see and dispatch the vehicle and what not to do to keep the game from crashing lol.

There are alot more files then I thought and ALL of them must work together or the vehicle will not show up. Im still trying to find out where the hud display is for the vehicle layout and how many spots are taken. That graphic that is always shown at the bottom right of the screen. Looking at the standard default files still has yet to show me where this graphic is at. It may be a .RML file and i have no clue how to open it.

No luck with getting a siren to work correctly either as of right now.

The current vehicle has
4 police seats
2 passenger seats
And full equipment including handgun and rifle

Still working on an interface but it feels nice to see it do something I actually told it to do now.

As of now this is just a test vehicle for proof of concept and understanding. Still no words from the developers on any questions I had.

William516
Bill
Delaware, USA

#6 Walker282

Walker282

    Lieutenant

  • Members
  • 67 Beiträge:
  • Gender:Male

Geschrieben 15 September 2015 - 12:51

Sounds good. Email me when you can about it all. I'll give it a shot today