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
|
|
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 #353059 is a reply to message #353058]
|
Wed, 11 April 2018 11:05
|
|
Victor_Tadeu |
|
Messages:97
Registered:December 2015 Location: Brazil |
|
|
silversurfer wrote on Wed, 11 April 2018 03:55You 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 #353103 is a reply to message #353100]
|
Fri, 13 April 2018 01:41
|
|
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
|
|
|
|
Re: Cargo Trucks or Cargo Trailers[message #353119 is a reply to message #353103]
|
Fri, 13 April 2018 17:03
|
|
Victor_Tadeu |
|
Messages:97
Registered:December 2015 Location: Brazil |
|
|
Flugente wrote on Thu, 12 April 2018 19:41Yes 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
|
|
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
|
|
|
|
Re: Cargo Trucks or Cargo Trailers[message #354285 is a reply to message #353134]
|
Fri, 10 August 2018 05:40
|
|
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
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 #354288 is a reply to message #354287]
|
Fri, 10 August 2018 11:59
|
|
townltu |
|
Messages:384
Registered:December 2017 Location: here |
|
|
The_Bob wrote on Fri, 10 August 2018 10:38You 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 #354301 is a reply to message #354296]
|
Sat, 11 August 2018 06:28
|
|
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
|
|
townltu |
|
Messages:384
Registered:December 2017 Location: here |
|
|
The_Bob wrote on Fri, 10 August 2018 19:43I 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
|
|
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:07Around 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
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 06:49:50 GMT+2 2024
Total time taken to generate the page: 0.01922 seconds
|