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
|
|
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 #361946 is a reply to message #361943]
|
Sat, 28 November 2020 00:13
|
|
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%20MODReport message to a moderator
|
|
|
|
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
|
|
Kurt |
|
Messages:420
Registered:March 2004 |
|
|
silversurfer wrote on Fri, 27 November 2020 23:13Try 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 #361956 is a reply to message #361953]
|
Sun, 29 November 2020 16:52
|
|
Kurt |
|
Messages:420
Registered:March 2004 |
|
|
silversurfer wrote on Sat, 28 November 2020 18:32It sets the transportation mask of the Hummer to "truck".
How does changing an INI setting change the contents of the "vehicles.xml" file?
silversurfer wrote on Sat, 28 November 2020 18:32The 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.
Report message to a moderator
|
Master Sergeant
|
|
|
|
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
|
|
Kurt |
|
Messages:420
Registered:March 2004 |
|
|
silversurfer wrote on Sun, 29 November 2020 17:06It 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?...
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 #361969 is a reply to message #361964]
|
Tue, 01 December 2020 16:55
|
|
Kurt |
|
Messages:420
Registered:March 2004 |
|
|
silversurfer wrote on Tue, 01 December 2020 09:34Changes 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?
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
|
|
Kitty |
|
Messages:473
Registered:October 2017 Location: Germany |
|
|
silversurfer wrote on Sat, 28 November 2020 00:13Try 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
|
|
|
|
|
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
|
|
Kitty |
|
Messages:473
Registered:October 2017 Location: Germany |
|
|
silversurfer wrote on Sun, 20 December 2020 11:36Those 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.
--
--
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.
--
--
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
|
|
|
|
|
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
|
|
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 optimistReport 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
|
|
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
|
|
|
|
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
|
|
88vs1984 |
|
Messages:15
Registered:August 2015 Location: Belarus |
|
|
Have any idea why the in-game car is called "None" instead of "El Dorado"?
[Updated on: Sat, 11 September 2021 09:31] Report message to a moderator
|
Private
|
|
|
Goto Forum:
Current Time: Tue Dec 03 22:20:53 GMT+2 2024
Total time taken to generate the page: 0.01530 seconds
|