Bug #29020

OA vanilla - can't add ruck into vehicle cargo

Added by Major_Shepard over 3 years ago. Updated almost 3 years ago.

Status:Closed Start date:02/29/2012
Priority:Normal Due date:
Assignee:Major_Shepard % Done:

100%

Category:-
Target version:LEA v1.x When we find a solution

Description

Analysis: get script error with addweaponcargo command. Try addBackpackCargoGlobal command:
http://community.bistudio.com/wiki/addBackpackCargoGlobal

A3D_COOP_4_Deep_Impact.Shapur_BAF.pbo (53.9 kB) GameAdd1cted, 03/04/2012 00:46

A3D_COOP_4_Deep_Impact_LEA.Shapur_BAF.pbo (53.8 kB) GameAdd1cted, 03/04/2012 23:43

A3D_COOP_4_Deep_Impact_Modified.Shapur_BAF.pbo (53.9 kB) GameAdd1cted, 03/04/2012 23:43

Test_LEA_Original.Shapur_BAF.pbo (2 kB) GameAdd1cted, 03/05/2012 08:07

Test_LEA.Shapur_BAF.pbo (7.9 kB) GameAdd1cted, 03/05/2012 08:07

History

Updated by Major_Shepard over 3 years ago

  • Assignee set to Major_Shepard

Updated by Major_Shepard over 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Used addWBackpackCargo to ruck type weapon into vehicle cargo space.

Updated by GameAdd1cted over 3 years ago

Major,

It works perfectly in SP.

Howeve, in MP there is an issue:

Description:
HMMWV (SOV) with Tripod Bag and M252 Bag.
Player takes out the M252 Bag.
In this moment, the HMMWV still has a M252 Bag.

If player drops M252 Bag away from the car and tries to get again the M252 Bag, it won't succed.
If player moves back the M252 from his gear to the vehicle's cargo, now the HMMWV will display 2 M252 bags.

Please find attached the pbo file.

Updated by Major_Shepard over 3 years ago

Could you try the new Beta 5 build 1.1.44:
> in MP use addBackpackCargoGlobal
> in SP use addBackpackCargo

Updated by Major_Shepard over 3 years ago

Major_Shepard wrote:
Could you try the new Beta 5 build 1.1.44:
*in MP use addBackpackCargoGlobal
*in SP use addBackpackCargo

Updated by GameAdd1cted over 3 years ago

I just tried the new beta.
SP checked, works.
MP checked, there are issues.

MP dedicated
- now there are 4 bags (2x"M252 Bag2, 2x"Tripod Bag")
- I checked the code and it should really add only one bag.
- as I tried this on a dedicated server with only 1 client I thought maybe addBackpackCargoGlobal is run on all clients and server(?)
- I manually modified loadout-multi.sqf as follows:

if (isServer) then {
HMMWV addBackpackCargoGlobal ["Tripod_Bag",1];
HMMWV addBackpackCargoGlobal ["M252_US_Bag_EP1",1];
};

Basically the packs will be added only on the server machine and then ARMA synchronizes it over the network.
Now it works perfectly :)

MP hosted (the same machine is server and a client, e.g. multiplayer with no dedicated)
- the bags appear, but I am unable to take out.
- it works applying the same fix (adding the bags only on server).

Notes
- I guess addBackpackCargoGlobal acts like createVehicle (see Galzohar's comment)

Let me know if you need additional details.

Updated by Major_Shepard over 3 years ago

Could you try with that fix and 2-3 guys on a dedicated? Thanks

Updated by GameAdd1cted over 3 years ago

Major,

I just tried it and there are issues :(
Trial configuration: 1 dedicated server / 2 clients

MP dedicated, original LEA script
- now there are 6 bags (3x"M252 Bag2, 3x"Tripod Bag"). So it is quite clear by now that script is run for each machine.

MP dedicated, modified script
- there are only 2 bags (1x"M252 Bag2, 1x"Tripod Bag").
- the squad leader can take any bag.
- the second player cannot take any bag!
- furthermore, if the first client (SL) picks a bag from the HMMWV and drops it a few meters away, the other client can't pick it up.
- the first client can assemble the mortar and the second client can move in as gunner. The second client can even disassemble the mortar, but once again, he's unable to pick the packs.

Notes
- for theses tests no mods are used.
- all 3 machines are on LAN. There are 2 desktops (client + server) and 1 laptop (client).
- all licenses are legal.
- ping is 0.
- I attach pbos for LEA generated script and the modified one.
- testing has been done for JIP as well. Same results.

Really strange :S

Updated by Major_Shepard over 3 years ago

Could you try with 2-3 guys without the Global and the isServer =>
HMMWV addBackpackCargo ["Tripod_Bag",1];
HMMWV addBackpackCargo["M252_US_Bag_EP1",1];

Did a try alone in MP, no issue.

Updated by GameAdd1cted over 3 years ago

Major,

Following is a detailed list of steps in order to reproduce the issue in SP and MP (hosted).
Please let me know if you can reproduce it (in order to discard specific issues on my side).

Issue description: inability to pick up a pack from a car.
ARMA: no addons loaded, no beta, updated to the latest version.

Single player testing
01 Created unit: BLUFOR > Men (Special Forces) > Forward Air Controller
02 Named it as U1
03 Created unit: BLUFOR > Men (Special Forces) > Medic
04 Named it as U2
05 U1 rank: Corporal
06 U2 rank: Private
07 Created unit: Empty > Cars > HMMWV SOV [US]
08 Named it CAR1
09 Mission saved as Test_LEA_Original
10 Mission saved as Test_LEA
11 LEA: Import mission.sqm from Test_LEA
12 LEA: Added M252_US_Bag_EP1 and Tripod_Bag to CAR1
13 LEA: Save
14 LEA: Generate loadout.sqf. (default loadout options)
15 LEA: Exit
16 Single Player > Editor > Shapur
17 Load missions: Shapur > Test_LEA
18 Save as "User mission" and "Export to multiplayer missions"
19 Preview
20 U1 can pickup the "M252 bag"
21 Switch player ("T" key) to U2
22 U2 cannot pickup the "Tripod bag"
23 Switch player ("T" key) to U1
24 U1 drops the "M252 bag"
25 Switch player ("T" key) to U2
26 U2 cannot pickup the "M252 bag" from the ground

Multiplayer testing (Hosted)
Player as U1: can pick up any bag from HMMWV
Mission restart
Player as U2: cannot pick up any bag from HMMWV

I attach:
Test_LEA_Original.Shapur_BAF.pbo
This is the original mission without any LEA modifications.

Test_LEA.Shapur_BAF.pbo
This is the LEA modified mission.
No additional /manual modification has been done.

Notes
Once this issue is confirmed / discarded I'll check on MP (dedicated).

Thank you for adding me to this project.
As usual, let me know if you need specific input.
This is my first time being part on a project on dev-haven so hopefully I won't mess things ;)

Updated by Major_Shepard over 3 years ago

Same result for me in SP. I also tried the mission on a dedicated server with 2 players, same result.

I confirmed result for addBackpackCargoGlobal and isServer.

I Opened a ticket on BIS forum here:
http://forums.bistudio.com/showthread.php?132201-OA-Backpack-Can-t-pick-up-from-vehicle-cargo

Updated by Major_Shepard over 3 years ago

  • Status changed from Resolved to In progress

Updated by Major_Shepard over 3 years ago

/

Updated by Major_Shepard over 3 years ago

  • Target version changed from 1259 to LEA v1.x When we find a solution

Updated by Major_Shepard over 3 years ago

  • % Done changed from 100 to 0

Updated by Major_Shepard over 3 years ago

In LEA 1.2, solo mode rucks are added with the addBackpackCargo command
In LEA 1.2, solo mode rucks are added with the addBackpackCargoGlobal command with (isServer) condition.

Updated by Major_Shepard almost 3 years ago

  • Status changed from In progress to Resolved

Updated by Major_Shepard almost 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF