Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » How do you add the "El Dorado" car into the game? (I feel the need for speed)
How do you add the "El Dorado" car into the game?[message #361548] Tue, 13 October 2020 15:42 Go to next message
Kurt is currently offline Kurt

 
Messages:420
Registered:March 2004
I vaguely recall it exists, with graphics and all, but Sirtech removed it from the final game for some reason I forgot. Maybe legal issues with Cadillac.

Anyway, how would I go about adding it to some existing map, just for fun, and make it usable in my game?
For starters, increase max number of vehicles from 2 to 3 and start a new game, but beyond that?
Is this even possible in JA2-1.13 build 8796?

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #361550 is a reply to message #361548] Tue, 13 October 2020 17:54 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
The El Dorado is present in JA2 1.13 game data. You can add it to a map and use it. How do you do that? It's rather simple:
  • add a new civilian to an existing map
  • set "Detailed Placement" and set his profile ID to 161 (the El Dorado)
  • save the map
  • in MercProfiles.xml change the <sSectorX> and <sSectorY> values to the sector where you placed the El Dorado.
  • start the game
You can set MAX_NUMBER_PLAYER_VEHICLES up to 6. This should allow you to use all vehicles.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: How do you add the "El Dorado" car into the game?[message #361554 is a reply to message #361550] Wed, 14 October 2020 15:50 Go to previous messageGo to next message
Kurt is currently offline Kurt

 
Messages:420
Registered:March 2004
Thanks a lot!
("change the <sSectorX> and <sSectorY>" was the part I was missing)

Now what if you want to have a fleet (of Hummers for instance)? There is only a single instance of each vehicle in MercProfiles.xml, and there are already 255 profiles in the file. 255 sounds strangely final, I guess adding 3-4 additional profiles will cause all kind of problems.

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #361943 is a reply to message #361554] Fri, 27 November 2020 17:19 Go to previous messageGo to next message
Kurt is currently offline Kurt

 
Messages:420
Registered:March 2004
I tried to change the El Dorado to another Hummer.
Reskinning it was easy (select Hummer skin in the Map Editor), and in Vehicles.xml I copied the Hummer definition (160) over to the El Dorado slot (161). And I got indeed a workable second Hummer, with one caveat: It isn't all-terrain!

So, where is the bit which tells the game if the vehicle needs to stay on roads or not? Is it hard-coded?

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #361946 is a reply to message #361943] Sat, 28 November 2020 00:13 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
Try changing its <MvtTypes> in Vehicles.xml. There are 5 movement types (foot, car, truck, tracked and air). They can move:

Foot -> everywhere
Car -> only on roads
Truck -> road, plains, sparse, hills
Tracked -> road, plains, sparse, hills, sand, river, water
Air -> everywhere



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: How do you add the "El Dorado" car into the game?[message #361949 is a reply to message #361946] Sat, 28 November 2020 16:10 Go to previous messageGo to next message
Kurt is currently offline Kurt

 
Messages:420
Registered:March 2004
silversurfer wrote on Fri, 27 November 2020 23:13
Try changing its <MvtTypes> in Vehicles.xml.
That was my first thought too, but I had copied the definition of the original Hummer (#160), including its <MvtTypes>1</MvtTypes> tag, and it didn't work: My new Hummer was restricted to roads.

The original Hummer has a "car" movement type, and still can do off-road.
Using the same "car" movement type, the El Dorado and the Ice Cream Truck can't leave the roads.
So I guess it must be something else that makes the Hummer special. What could it be?

I'm afraid it's something not (yet) externalized, some internal "If #Hummer, then Off-road" routine. Unfortunately I don't speak C, so I can't check...

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #361953 is a reply to message #361949] Sat, 28 November 2020 19:32 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
There is a setting "HUMVEE_OFFROAD" in JA2_Options.ini that allows the original Hummer to go off-road. It sets the transportation mask of the Hummer to "truck". I don't know why Headrock did it this way. The better solution would be to just change the movement type to "truck" in Vehicles.xml and remove that code from the game.


Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: How do you add the "El Dorado" car into the game?[message #361956 is a reply to message #361953] Sun, 29 November 2020 16:52 Go to previous messageGo to next message
Kurt is currently offline Kurt

 
Messages:420
Registered:March 2004
silversurfer wrote on Sat, 28 November 2020 18:32
It sets the transportation mask of the Hummer to "truck".
suprised How does changing an INI setting change the contents of the "vehicles.xml" file?


silversurfer wrote on Sat, 28 November 2020 18:32
The better solution would be to just change the movement type to "truck" in Vehicles.xml and remove that code from the game.
When I saw this file for the first time ("vehicles.xml" didn't yet exist in 3356), I thought "car" movement would be for, well, the only car in the game, the Hummer.

"Truck" would be for the Ice Cream Truck, so "car" movement type would mean off-road, and "truck" would mean road-only.

In this case the El Dorado should have a "truck" movement type, but it actually hasn't. It defaults to "car", and this isn't even a copy-paste oversight, I experimented with both movement types and failed to see any obvious difference between "car" and "truck". I wonder even if there is any, or if this is somehow still unfinished.
not sure

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #361957 is a reply to message #361956] Sun, 29 November 2020 18:06 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
Kurt wrote on Sun, 29 November 2020 15:52

suprised How does changing an INI setting change the contents of the "vehicles.xml" file?
It happens only within the game when it is running. The file is not modified at all.

Kurt wrote on Sun, 29 November 2020 15:52

"Truck" would be for the Ice Cream Truck, so "car" movement type would mean off-road, and "truck" would mean road-only.
"Truck" is for military type vehicles, not civilian vans.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: How do you add the "El Dorado" car into the game?[message #361961 is a reply to message #361957] Mon, 30 November 2020 16:47 Go to previous messageGo to next message
Kurt is currently offline Kurt

 
Messages:420
Registered:March 2004
silversurfer wrote on Sun, 29 November 2020 17:06
It happens only within the game when it is running. The file is not modified at all.
Uh-oh. That's a very bad idea: The user should always be able to see and know what is going on.

You can't just secretly change the rules of the game (no pun intended) and decide that "feature = on" actually means "feature might or might not be on, depending on conditions you will never know about (short of pestering people in this forum long enough)".


silversurfer wrote on Sun, 29 November 2020 17:06
"Truck" is for military type vehicles, not civilian vans.
Yes, that's the american meaning of the word, "heavy wheeled vehicle". But since people here are international and their grasp of English might be limited to school english, I think we should stick to the basic meaning of the words, where the "Hummer" = car, and the "Ice Cream Truck" = truck.
Having the "Hummer" be a truck, and the "Ice Cream Truck" a car, is kind of counter-intuitive, don't you agree?... big grin

Anyway, that doesn't answer my question: What determines off-road capacity?
My setting is HUMVEE_OFFROAD = TRUE, and apparently neither a "car" nor a "truck" setting allow the El Dorado to leave the roads.
Is it hard-coded?

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #361964 is a reply to message #361961] Tue, 01 December 2020 10:34 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
Changes to <MvtTypes> only take effect in a new game. I just tested it with the jeep. Changed <MvtTypes> from 1 to 2 and then loaded old savegame. Nope, no offroad capability. Started a new game. Yes, can go offroad.


Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: How do you add the "El Dorado" car into the game?[message #361969 is a reply to message #361964] Tue, 01 December 2020 16:55 Go to previous messageGo to next message
Kurt is currently offline Kurt

 
Messages:420
Registered:March 2004
silversurfer wrote on Tue, 01 December 2020 09:34
Changes to <MvtTypes> only take effect in a new game.
Okay, so that explains that, thanks!

So, officially, movement type 2 is "off-road", type 1 is "only road". I'd suggest to add this to the comment in the "vehicles.xml" file, and remove the misleading and useless definitions of "car" and "truck" altogether. As I said, the car is a truck and the truck is a car, this definitely doesn't help, especially since the only important difference is the off-road capacity...


Unrelated: Does the jeep have an entry in MercProfiles.xml? suprised
MercProfiles.xml has got awfully crowded, it's increasingly hard to add new stuff without having to overwrite something existing (and usually without having a clue if whatever you overwrite is something mission-critical or not)...

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #362076 is a reply to message #361946] Sun, 20 December 2020 02:26 Go to previous messageGo to next message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
silversurfer wrote on Sat, 28 November 2020 00:13
Try changing its <MvtTypes> in Vehicles.xml. There are 5 movement types (foot, car, truck, tracked and air). They can move:

Foot -> everywhere
Car -> only on roads
Truck -> road, plains, sparse, hills
Tracked -> road, plains, sparse, hills, sand, river, water
Air -> everywhere

Would it be possible to change Tracked to river and water only? Removing the other terrain types? Is this hardcoded?

And if being able to change this, would this result in a vehicle that only can travel between water and river sectors - like a boat?

---

While on map, the Hummer can't move on water-tiles. Which makes perfect sense for a car, but could this be reversed?

Like, having a vehicle that - while on map - only can move on water-tiles and is restricted to move on any others?



How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #362079 is a reply to message #362076] Sun, 20 December 2020 11:36 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
Those types are hardcoded. One would need to add a new type and change the code to allow water only vehicles. This wouldn't be of much use however, because there are no water only sectors that would require a water travel type.

[Updated on: Sun, 20 December 2020 11:39]




Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: How do you add the "El Dorado" car into the game?[message #362084 is a reply to message #362079] Sun, 20 December 2020 18:33 Go to previous messageGo to next message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
silversurfer wrote on Sun, 20 December 2020 11:36
Those types are hardcoded. One would need to add a new type and change the code to allow water only vehicles. This wouldn't be of much use however, because there are no water only sectors that would require a water travel type.
--

I tried to find vehicle related stuff in code, but nothing I found seems to explain why vehicles can't move on water-tiles.
What I found, are definitions of vehicle types like:

//Vehicle types
#define FOOT			0x01 //anywhere
#define CAR				0x02 //roads
#define TRUCK			0x04 //roads, plains, sparse
#define TRACKED			0x08 //roads, plains, sand, sparse
#define AIR				0x10 //can traverse all terrains at 100%

(btw, what is this 0x04, 0x08, etc. about ? Is it the number of the included cases? Or is it coincidence that the numbers match them ?)

--

But most of the stuff seems to deal with the Traversability, which I assume is traveling between sectors. But not traveling on map.

This goes probably back in time. In ancient RR, The Scorpion replaced the sti-graphics for the El Dorado with some boat graphics. With skilled use of maps and MovementCosts.xml, he was able to restrict where the boat could go and where not.
At the time, vehicles could only travel between sectors, not on maps.

--

https://s1.imagebanana.com/file/201220/zGJPc6il.jpg

--

If I would do something simular today, there is the problem, that vehicles meanwhile are able to travel on map. Expect for water tiles.


I compiled a build where I changed the transportation mask of the Hummer from "truck" to "tracked" and set Humvee Offroad = true in ini. With this, the Humvee should have movement-type "tracked".
But still, this doesn't seem to effect the on-map movement. The path is blocked, if trying to move on water.
This would of course also be true, if I would replace the graphics with a boat.

--

https://s1.imagebanana.com/file/201220/DfxEnFrd.jpg

--

Any idea where this might be hidden in code?

Needless to say, I'm a code-noob. But even if I might not be able to change this, I hope to understand how this is working. Which might be useful to find a way arround, even if I fail to change anything.

--

Some very skilled artist did amazing boats for the russian NightOps 1.4 mod, seeing those I'd love to see something simular in 1.13 (at least in a mod).

Compared to that, my boat just s*cks (but Hawkeye might be able to do something of simular quality?). Seeing those, I felt like I should give it at least a try.

--

Doesn't feel right to upload the NO boat-pictures alone. Whoever wants to take a look, at least download the whole mod from here: A.I.M. (russian forum, v1.4 also only russian (v1.1 is english, but no boats)).

[Updated on: Sun, 20 December 2020 18:51]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #362085 is a reply to message #362084] Sun, 20 December 2020 21:04 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
The 0xsomething is the bitmask for the different movement types.

If you set HUMVEE_OFFROAD to true, its movement type will be hardcoded to truck.

[Updated on: Sun, 20 December 2020 21:05]




Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: How do you add the "El Dorado" car into the game?[message #363270 is a reply to message #361550] Fri, 21 May 2021 18:18 Go to previous messageGo to next message
harveson is currently offline harveson

 
Messages:41
Registered:August 2015
Location: Minnesota
Hello,
I'm playing JA2_1.13 7609 after a few runs at JA2 vanilla.
I can see in the INI the setting in the "System Limit Settings" folder, MAX_NUMBER_PLAYER_VEHICLES, which is set to 3 initially.
I've followed the discussion about editing the XML files in the folders, but I'm a bit lost.

I'm new to this end of play, and I just wanted to "Find" the 'El Dorado'.
Vehicles.xml and Mercprofiles.xml have the settings.
I could not 'get' the game to add it, and even started a NEW campaign specifically putting the 'El Dorado' in Omerta (x=10, y=1).

I don't know how to get started "Adding a new civilian to map", where the 'MAP' is stored or what editing tools to use.
Any help?
I'm 'green' like the spring. (FAQs, how to edit file tutorials, bootcamps, anything)





Murphy was an optimist

Report message to a moderator

Corporal
Re: How do you add the "El Dorado" car into the game?[message #363271 is a reply to message #363270] Fri, 21 May 2021 20:18 Go to previous messageGo to next message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
harveson wrote on Fri, 21 May 2021 18:18
... I don't know how to get started "Adding a new civilian to map", where the 'MAP' is stored or what editing tools to use.
Any help?
I'm 'green' like the spring. (FAQs, how to edit file tutorials, bootcamps, anything)
You will need the MapEditor to open and edit maps. Inside the folder "Docs\Manuals" of your 1.13 download are two Guides for the MapEditor, those should help to understand the "add a new civilian".

Depending on where you downloaded 1.13, it may or may not contain a MapEditor. In the signature under my post, you should see a link to "How to get ...". If you follow this, you will see three download-links for "SCI-JA2-1.13". Two of those download-sources include a MapEditor.

Open the MapEditor, choose the map you added ElDorado in MercProfiles (A10?). Add civilian, change it to ElDorado, save map. You'll only see map-changes, if you never visited the map in this campaign before.



How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Re: How do you add the "El Dorado" car into the game?[message #363671 is a reply to message #361548] Sat, 11 September 2021 09:29 Go to previous message
88vs1984 is currently offline 88vs1984

 
Messages:15
Registered:August 2015
Location: Belarus
Have any idea why the in-game car is called "None" instead of "El Dorado"?
https://ibb.co/2hfTCQS

[Updated on: Sat, 11 September 2021 09:31]

Report message to a moderator

Private
Previous Topic: Are there any Interface mods besides Kmoi's that work with version 7609 or newer?
Next Topic: Has anyone endeavored to make a "realistic" sound mod?
Goto Forum:
  


Current Time: Tue Dec 03 02:34:31 GMT+2 2024

Total time taken to generate the page: 0.01490 seconds