Home » MODDING HQ 1.13 » v1.13 Feature Requests » Cargo Trucks or Cargo Trailers
Cargo Trucks or Cargo Trailers[message #353048] Wed, 11 April 2018 05:02 Go to next message
Victor_Tadeu

 
Messages:61
Registered:December 2015
Location: Brazil
One thing I like to do a lot in JA2 since vanilla is to centralize my inventory. I like to collect everything from the map, move to a single sector, arm my mercs there choosing from all my options and, now, move out the equipment required for my militias.

While I do like it very much, it comes with some problems: there aren't many good ways to move tons of stuff around the map. Vehicles trunks and making a single merc carries 4 or more backpacks filled with stuff is the only way and it's especially difficult when moving stuff from no roads places or all across the map, and playing now with enemy dropping everything and militia requiring every single equipment to be provided by you, it's fun to run true war supply lines but it's a hell of micro.

So, asking directly: can we get a new vehicle, a big truck of some kind? It should have a bigger inventory than regular vehicles, of course, and it item limit per slot should be the same as sectors. If not possible to create suchj a vehicle, it's possible to create trailer similar to this concept where you attach to an existing vehicle and drag it around?



Born, play JA2, die, reload, die again, reload again.
Re: Cargo Trucks or Cargo Trailers[message #353053 is a reply to message #353048] Wed, 11 April 2018 08:02 Go to previous messageGo to next message
edmortimer

 
Messages:1046
Registered:January 2015
Location: Home Free
Quote:
So, asking directly: can we get a new vehicle, a big truck of some kind? It should have a bigger inventory than regular vehicles, of course, and it item limit per slot should be the same as sectors. If not possible to create suchj a vehicle, it's possible to create trailer similar to this concept where you attach to an existing vehicle and drag it around?


That would be code work as all vehicles in the game have exactly the same inventory space. However, if vehicle "pockets" use one of the pockets defined in Pockets.XML then you could mod that pocket - but I don't know if they do. Of course, if they do then modding that pocket would also change the carrying capacity of whatever LBE uses that pocket.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Cargo Trucks or Cargo Trailers[message #353058 is a reply to message #353053] Wed, 11 April 2018 09:55 Go to previous messageGo to next message
silversurfer

 
Messages:2295
Registered:May 2009
You cannot change the amount of inventory slots for vehicles without code and interface work. You can change the amount of items a "vehicle pocket" can hold in "Pockets.xml". "<pIndex>" number 3 is the vehicle pocket. Don't go over a value of 255.



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

Re: Cargo Trucks or Cargo Trailers[message #353059 is a reply to message #353058] Wed, 11 April 2018 11:05 Go to previous messageGo to next message
Victor_Tadeu

 
Messages:61
Registered:December 2015
Location: Brazil
silversurfer wrote on Wed, 11 April 2018 03:55
You cannot change the amount of inventory slots for vehicles without code and interface work. You can change the amount of items a "vehicle pocket" can hold in "Pockets.xml". "<pIndex>" number 3 is the vehicle pocket. Don't go over a value of 255.


Thanks a lot for the reply, but I can't understand what exactly I have to change. I suppose pIndex 4, "General Large", is the sector inventory. So if I change the values in Index 3 for to the same of the Index 4 it should do it?

Also, I found out the Vehicles.xml has an entry for each vechile (of course). Is there any line I could add to make a specific vehicle have another pocket index? That way maybe I could customize it so diffrent vehicles have different cargo capacity by adding another Index on the Pockets.xml, like Truck having more cargo per pocket than the Jeep. Otherwise making every vehicle have sectors slots feels kinda like cheating...



Born, play JA2, die, reload, die again, reload again.
Re: Cargo Trucks or Cargo Trailers[message #353079 is a reply to message #353059] Thu, 12 April 2018 10:08 Go to previous messageGo to next message
silversurfer

 
Messages:2295
Registered:May 2009
"General Large" is what you will find in backpacks for example. There is no pocket for sector inventory. Just increase the item capacities for pIndex 3 and your vehicle pockets will be able to hold more.
Currently it's not possible to customize vehicles to have different pockets.



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

Re: Cargo Trucks or Cargo Trailers[message #353100 is a reply to message #353079] Thu, 12 April 2018 23:37 Go to previous messageGo to next message
Victor_Tadeu

 
Messages:61
Registered:December 2015
Location: Brazil
Also, another idea. Maybe if the "Move Items" feature works in ANY sectors not just cities it already would help A LOT.



Born, play JA2, die, reload, die again, reload again.
Re: Cargo Trucks or Cargo Trailers[message #353103 is a reply to message #353100] Fri, 13 April 2018 01:41 Go to previous messageGo to next message
Flugente

 
Messages:3309
Registered:April 2009
Location: Germany
Yes it would. This would also result in moving some items instantly over long distances, and the entire guys moving would not be affected by, say, enemy patrols roaming the countryside, so... no.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Cargo Trucks or Cargo Trailers[message #353119 is a reply to message #353103] Fri, 13 April 2018 17:03 Go to previous messageGo to next message
Victor_Tadeu

 
Messages:61
Registered:December 2015
Location: Brazil
Flugente wrote on Thu, 12 April 2018 19:41
Yes it would. This would also result in moving some items instantly over long distances, and the entire guys moving would not be affected by, say, enemy patrols roaming the countryside, so... no.


I thought it could move to adjacent sector only, like H1 -> H2 -> H3 ->... H10 and so on, so if you want to move stuff around the map you still have to cross it. It's not how the code works? If so... it's possible to code it that way?



Born, play JA2, die, reload, die again, reload again.
Re: Cargo Trucks or Cargo Trailers[message #353134 is a reply to message #353119] Sat, 14 April 2018 17:47 Go to previous message
Flugente

 
Messages:3309
Registered:April 2009
Location: Germany
Move item moves items from sector A to B currently. Moving all items from A to B to C to D can of course be coded, but requires additional checks that are currently not required. Like what if some sectors on that path are enemy occupied (and the guys 'moving' the items couldnt possibly evade them). Conflicting movement commands are already possible, but would be more annoying this time.

Given that move items is already a convenient oversimplification... coding this is kinda pointless. I mean, if you want to avoid moving items that badly, just nuke the sector inventory, cheat-create the items you want at target location and be done with it.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Previous Topic: JA 2 1.13 Wiki/Website Update
Next Topic: [Idea] Cat attacks city sectors at night
Goto Forum:
  


Current Time: Thu May 24 09:10:24 EEST 2018

Total time taken to generate the page: 0.01743 seconds