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 is currently offline Victor_Tadeu

 
Messages:97
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.

Report message to a moderator

Corporal 1st Class
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 is currently offline edmortimer

 
Messages:1533
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.

Report message to a moderator

Sergeant Major
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:2793
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

Report message to a moderator

Lieutenant
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 is currently offline Victor_Tadeu

 
Messages:97
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.

Report message to a moderator

Corporal 1st Class
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:2793
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

Report message to a moderator

Lieutenant
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 is currently offline Victor_Tadeu

 
Messages:97
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.

Report message to a moderator

Corporal 1st Class
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:3509
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.


I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

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.

Report message to a moderator

Captain

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 is currently offline Victor_Tadeu

 
Messages:97
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.

Report message to a moderator

Corporal 1st Class
Re: Cargo Trucks or Cargo Trailers[message #353134 is a reply to message #353119] Sat, 14 April 2018 17:47 Go to previous messageGo to next message
Flugente

 
Messages:3509
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.



I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

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.

Report message to a moderator

Captain

Re: Cargo Trucks or Cargo Trailers[message #354285 is a reply to message #353134] Fri, 10 August 2018 05:40 Go to previous messageGo to next message
SabinyAk is currently offline SabinyAk

 
Messages:141
Registered:July 2015
Location: Mexico
i like this idea, there are many cars on arulco, it´d be cool if there was a caravan system where you can fill some non-usable cars with stuff and then send your militia and maybe 1 or 2 mercs moving the stuff across the map, and maybe have some enemy encounters where you have to protect your cargo, kinda like in Fallout.
it´d also be cool for the new bandits and all.

but maybe i'm the minority here, after playing the game so much i felt it was kinda short so i sort of started playing as a hoarder where i just move everything to the Drassen Airport (used to move it to Drassen Armory but it´s out of the town boundaries so it came out sort of hard to do so with the sector being out of the actual town)
and sort of play like if it was a "War tycoon" lol, like, just waiting for the mine's income, paying the mercs, selling surplus to tony.
hoarding weapons, items and resources... it'd be nice to have some "Meta-game" like this idk, but anyway back into the main subject;

This could probably work better with Crates and Boxes, let´s say have the new truck right? but instead of making it's inventory expanded there could be new items like crates and boxes and cargo containers that could be fit into the cars and filled with stuff like LBE maybe? kinda like a backpack.
it could work to make different capacities for each vehicle, it's a bit weird too to have "el dorado" being able to be filled with so much stuff when it only has a small trunk.
it would probably be weird to have to put a cargo truck on a merc's back in order to fill it up with stuff tho cheeky
but i mean those are just details, idk the limitations for this so please tell me if i'm missing something.
either way it'd be nice to be able to fit stuff into wooden crates and then move it around the country too, you could sort of organize stuff in sectors like this too idk.

[Updated on: Fri, 10 August 2018 05:50]




Oh, God please tie this rope tight, A noose that fits just right, Oh, God please tie this rope tight, Hold my head upright, Take this knife across my throat, And make amends for all my lies.

Report message to a moderator

Sergeant
Re: Cargo Trucks or Cargo Trailers[message #354287 is a reply to message #354285] Fri, 10 August 2018 10:38 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
You can vastly increase cars' cargo capacity by putting items in backpacks and vests and stuffing those in the car. IIRC I even coded a feature that would pack sector items into LBE items in sector inventory and another one for emptying LBE items in sector.

Report message to a moderator

Master Sergeant
Re: Cargo Trucks or Cargo Trailers[message #354288 is a reply to message #354287] Fri, 10 August 2018 11:59 Go to previous messageGo to next message
townltu

 
Messages:384
Registered:December 2017
Location: here
The_Bob wrote on Fri, 10 August 2018 10:38
You can vastly increase cars' cargo capacity by putting items in backpacks and vests and stuffing those in the car. IIRC I even coded a feature that would pack sector items into LBE items in sector inventory and another one for emptying LBE items in sector.
The game has issues with keeping track on items in containers placed in containers!
I use that at least since UC r4452 where it went rather smooth,
you can e.g. fill 2 big slots of an Aruc and put 2 of those into the big slots of another Aruc,
which again fits into the big slot of the aruc on the next layer, and so on...

When i used that some time later in vanilla 1.13 (iirc 1st noticed in r4870, and all the way up to at least r84xx)
I realized that in some occasions (dozens over the years!) the items inside containers had vanished when I wanted to take them out.
Keeping filled containers in sector inventory appears to increase the probability of items to vanish over time.
In some other cases it went so far that (back)packs in main hand (no container inside) had their items vanished,
in other campaigns it never happened.
However i usually save before even removing a filled container from its designated slot.


You can also change the "pockets" of a vehicle to be as big as sector inventory slots,
or tweak the pocket capacity in general,
e.g. one 5000 round ammo box of 5.56 but only seven 30 round mags of 5.56 in a vehicle slot appears disproportionately.

Report message to a moderator

Master Sergeant
Re: Cargo Trucks or Cargo Trailers[message #354295 is a reply to message #354288] Fri, 10 August 2018 18:50 Go to previous messageGo to next message
edmortimer is currently offline edmortimer

 
Messages:1533
Registered:January 2015
Location: Home Free
Yes, the game has issues with items inside containers inside other containers. It will work for a while, but when it hits a certain point in keeping track of items . . . then all the items inside a container inside another container disappear. At that point the issue will continue throughout the rest of the game. I do not think it was ever fixed.

Report message to a moderator

Sergeant Major
Re: Cargo Trucks or Cargo Trailers[message #354296 is a reply to message #354295] Fri, 10 August 2018 19:43 Go to previous messageGo to next message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
I think I fixed that around build 8400, if it still happens then I'd like to know!

Report message to a moderator

Master Sergeant
Re: Cargo Trucks or Cargo Trailers[message #354301 is a reply to message #354296] Sat, 11 August 2018 06:28 Go to previous messageGo to next message
SabinyAk is currently offline SabinyAk

 
Messages:141
Registered:July 2015
Location: Mexico
say about that crates, i haven't experimented enough with this but, as of right now can you for example put stuff inside crates like the physical ones in the maps and then fill them with items, close them, pick them up and have them work as simple containers for items?
if not that'd be nice, that could be an alternative to put stuff in vehicles without increasing size.
and idk, hostile sector inventory? you could open a vehicle and pick items from it like it was a box (because it's technically a mobile box)
and open/close it like that.
no need to put it on merc´s inventory like a backpack, you could put the container on the ground like a fortification, fill it up and load it back into a truck.
i really think the game could be fun with a more expanded use for the vehicles like this.



Oh, God please tie this rope tight, A noose that fits just right, Oh, God please tie this rope tight, Hold my head upright, Take this knife across my throat, And make amends for all my lies.

Report message to a moderator

Sergeant
Re: Cargo Trucks or Cargo Trailers[message #354303 is a reply to message #354296] Sat, 11 August 2018 10:48 Go to previous messageGo to next message
townltu

 
Messages:384
Registered:December 2017
Location: here
The_Bob wrote on Fri, 10 August 2018 19:43
I think I fixed that around build 8400, if it still happens then I'd like to know!

I think the last time I noticed it was 8408, but could be wrong and it was in the release i used before (r8293),
so if you fixed it after 8408 (btw: Thanks!) there is no indication from my side that it still happens,
and also if so pardon me for outdated/false alert.


If ever encountered again in newer release, will report asap via PM to ensure you dont miss it,
let me know here (or as pm;) if not appreciated.

Report message to a moderator

Master Sergeant
Re: Cargo Trucks or Cargo Trailers[message #354311 is a reply to message #354303] Sat, 11 August 2018 23:03 Go to previous message
The_Bob is currently offline The_Bob

 
Messages:415
Registered:May 2009
Location: Behind you.
Here's my description of how to reproduce the bug I fixed: The_Bob wrote on Tue, 19 September 2017 05:07
Around build 8400 I fixed a bug that would randomly delete the contents of all not currently worn LBE items.

It would manifest after dropping a filled LBE item in sector inventory, closing and reopening the inventory then picking up the LBE (and IIRC also equipping it). At that point, when the sector inventory was closed, the game would for some reason think the LBE was still in the sector and look for its contents (which would have been transferred to the merc by now) there, then panic and reinitialize the entire LBE contents list. That includes LBE held in hands, backpacks and stored inside vehicles. The LBE items themselves are not updated, so they will still show the blue star but their contents are likely gone, and whenever the game encounters a LBE item with missing contents it will again forget all other items' contents. Once this starts happening, placing new filled LBE items in sector inventory will make their contents appear in the bugged LBE items.

A possible way of stopping this from happening is to empty all not currently worn LBE items, which should ensure there's no "corrupted" LBE items in the game that would trigger the bug.



It's possible there's other ways for non-worn LBE inventory to get messed up, but the one I fixed would corrupt all items currently in the game so it was pretty bad.

AFAIK there's still some weird item duplication bug going on that I failed to catch, basically a "snapshot" of sector inventory would be duplicated whenever the map screen inventory view was opened for the broken sector. Items added to the sector after the bug was triggered would not be duplicated, although it was possible for it to re-trigger leading to exponential growth. Dunno what triggered it though. It may have something to do with vehicles, LBE or my LBE filling/dumping code, could be triggered to happen in a few sectors at once and could be reproduced in save games. So if you end up filling the ice cream truck with a lot of backpacks, there's a chance you'll run into that as well, and then I'd like to know what you did.

Report message to a moderator

Master Sergeant
Previous Topic: Advanced firing mode
Next Topic: Burying the dead
Goto Forum:
  


Current Time: Thu Mar 28 10:34:30 GMT+2 2024

Total time taken to generate the page: 0.01433 seconds