acemod / ACE3

Open-source realism mod for Arma 3
https://ace3.acemod.org
Other
991 stars 735 forks source link

Cargo size and cargo capacity #5139

Closed madpat3 closed 9 months ago

madpat3 commented 7 years ago

Arma 3 Version: 1.68 (stable / rc / dev) CBA Version: 3.3.1 (stable / dev + commit hash) ACE3 Version: 3.9.1 (stable / dev + commit hash)

Mods:

- CBA_A3
- ace
- RHS

Description: -The cargo size of the vehicle ammunition boxes are to small, compared to the size of spare wheels. It should be more like 10, instead of 2. And the the cargo space of the RHS Littlebirds is too big. I don't think you can load 8 spare tires into that bird.

Steps to reproduce:

Where did the issue occur?

Placed Modules:

RPT log file:

one box is round about as big as 16 tires, but only uses the space of 2. you can load 8 tires or 4 boxes into the RHS Littlebird. 20170508235530_1

bux commented 7 years ago

test

654wak654 commented 7 years ago

Can item sizes be generated using boundingBoxReal and getMass or is that too idealistic?

kymckay commented 7 years ago

It's definitely possible (maybe could use as a backup and then override via config if necessary), though perhaps slightly idealistic as some models report totally inaccurate bounding boxes in my experience.

654wak654 commented 7 years ago

Quick test script: https://gist.github.com/654wak654/c19b2fa43bc2886e7a0343d202fb2265

All objects with an ace_cargo_size property have pretty accurate bounding boxes. The size property could be converted to the object's volume in m³, based on it's bounding box.

Vehicles and their capacity should still be done by hand, since a vehicles's bounding box doesn't really tell anything about it's cargo space. Oh it could be based on passenger capacity and/or engine power! Those are both pretty good signs.

PabstMirror commented 7 years ago

boundingBoxReal requires a real object but ace_cargo needs to work with virtual objects e.g. by default we load the ace_wheel into cars without ever creating one

654wak654 commented 7 years ago

@PabstMirror The config would be pre-generated with a script, similar to how nouniformrestrictions does it: https://github.com/acemod/ACE3/blob/master/optionals/nouniformrestrictions/functions/fnc_exportConfig.sqf

NightIntruder commented 7 years ago

It would also be great to have the cargo's mass added to transporting vehicle via setMass (ie. newmass = CurrentVehicle setMass (currentVehicleMass+CargoMass)), but I guess it would only be useful for AFM-flyers. In basic FM and for land/sea vehicles it can produce unexpected results due to how those vehicles react on heavy cargo that was added: https://community.bistudio.com/wiki/setMass

654wak654 commented 7 years ago

Volumes calculated using the test script I posted before: https://gist.github.com/654wak654/a665ba545db46913e98aebff148e5579

kripto202 commented 6 years ago

Maybe we can base the size of the items and determine how much cargo it takes up. Then take that item and try to see how many times can that vehicle hold that item and that can determine the size of cargo that the vehicle can carry. I think this should be based more on size than weight.

kymckay commented 6 years ago

We should really have a standardised size to measure other items/vehicles relative to and list it on the wiki. Spare wheels is not a bad candidate.

AndreasBrostrom commented 6 years ago

Is the idea to have a eyed size measurement or have some kind of string from the vehicle config?

Cause I could go through and size compare and make some kind of standardized system for it and post it on the wiki documentation. If needed :)

Mike-MF commented 9 months ago

Closing due to age, inactivity or already solved. May be re-opened if the issue is still present, even better just open a new up-to-date Issue.