Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo not working #36

Closed
QuentinN42 opened this issue Aug 16, 2023 · 8 comments
Closed

Cargo not working #36

QuentinN42 opened this issue Aug 16, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@QuentinN42
Copy link
Collaborator

No description provided.

@QuentinN42 QuentinN42 added the bug Something isn't working label Aug 16, 2023
@QuentinN42 QuentinN42 self-assigned this Aug 16, 2023
@QuentinN42
Copy link
Collaborator Author

QuentinN42 commented Aug 16, 2023

Always working in solo, almost never on server...

@QuentinN42
Copy link
Collaborator Author

There is two functions : setSpace and setSize but it seems working some times.

@QuentinN42
Copy link
Collaborator Author

Peut etre du aux lags sur le serveur, ajouter un petit sleep fix peut etre le truc ...

@DIS-Wolv
Copy link
Owner

localité ?

@DIS-Wolv
Copy link
Owner

DIS-Wolv commented Oct 2, 2023

Always working in solo, almost never on server...

Localité !

@DIS-Wolv
Copy link
Owner

DIS-Wolv commented Oct 2, 2023

cargo set ici :

[_vl, 30] call ace_cargo_fnc_setSpace; //force la taille du cargo a 30

wiki sur le github ace :
https://github.com/acemod/ACE3/blob/master/docs/wiki/framework/cargo-framework.md#43-adjusting-cargo-space-of-a-vehicle

Set the cargo space of any object. Has global effect.

peux etre pas si global que ca ?
probleme d'apres moi : Localité
raison possible :

  • fonction : obj local, effect global => executé sur un obj remote
  • fonction : obj local, effect local => executé sur un obj remote ou que pour un joueur

piste de correction remoteexec avec comme argument [XX, 0, True] ?

  • XX => commande
  • 0 => tout le monde
  • True => répéter pour les JIP

remoteExec sur le wiki : https://community.bistudio.com/wiki/remoteExec

@DIS-Wolv
Copy link
Owner

DIS-Wolv commented Oct 2, 2023

Peut etre du aux lags sur le serveur, ajouter un petit sleep fix peut etre le truc ...

possible apres il y a deja un delay a cause de l'ajout des items dans l'inventaire :

_vl = _vlType createvehicle _pos;
clearWeaponCargoGlobal _vl;
clearMagazineCargoGlobal _vl;
clearBackpackCargoGlobal _vl;
clearItemCargoGlobal _vl;
//vide le véhicule
_vl addWeaponCargoGlobal ["rhs_weap_M136", 5];
// Ajoute des M136
if (_vlType in WolvGarage_var_CratesList) then {
_vl addItemCargoGlobal ["rhs_mag_m67", 50];
_vl addItemCargoGlobal ["rhs_mag_mk84", 50];
_vl addItemCargoGlobal ["SmokeShell", 50];
_vl addItemCargoGlobal ["rhs_mag_M433_HEDP", 50];
_vl addItemCargoGlobal ["rhs_mag_m714_White", 50];
_vl addItemCargoGlobal ["rhs_mag_m713_Red", 10];
_vl addItemCargoGlobal ["rhs_mag_m714_White", 10];
_vl addMagazineCargoGlobal ["rhsusf_100Rnd_762x51", 50];
_vl addMagazineCargoGlobal ["rhsusf_200Rnd_556x45_box", 50];
_vl addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 150];
_vl addMagazineCargoGlobal ["rhsusf_mag_17Rnd_9x19_JHP", 50];
_vl addWeaponCargoGlobal ["rhs_weap_M136", 5];
_vl addWeaponCargoGlobal ["rhs_weap_M136_hp", 5];
_vl addMagazineCargoGlobal ["rhs_mag_maaws_HEAT", 10];
_vl addMagazineCargoGlobal ["rhs_mag_maaws_HE", 10];
_vl addMagazineCargoGlobal ["MRAWS_HE_F", 20];
_vl addMagazineCargoGlobal ["rhs_fgm148_magazine_AT", 5];
_vl addMagazineCargoGlobal ["rhs_fim92_mag", 5];
_vl addItemCargoGlobal ["ACE_elasticBandage", 200];
_vl addItemCargoGlobal ["ACE_packingBandage", 200];
}
else {
_vl addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 30];
_vl addMagazineCargoGlobal ["rhsusf_200Rnd_556x45_box", 5];
//_vl addMagazineCargoGlobal ["rhsusf_100Rnd_762x51", 5];
//_vl addMagazineCargoGlobal ["rhsusf_mag_17Rnd_9x19_JHP", 10];
_vl addMagazineCargoGlobal ["rhs_mag_M433_HEDP", 15];
// Ajoute des chargeurs
_vl addItemCargoGlobal ["rhs_mag_m67", 10];
_vl addItemCargoGlobal ["SmokeShell", 10];
//_vl addItemCargoGlobal ["SmokeShellGreen", 5];
// Ajoute des grenades
//_vl addItemCargoGlobal ["ACE_CableTie", 5];
_vl addItemCargoGlobal ["Toolkit", 1];
_vl addItemCargoGlobal ["ACE_EntrenchingTool", 1];
//_vl addItemCargoGlobal ["ACE_wirecutter", 1];
//_vl addItemCargoGlobal ["ACE_EarPlugs", 3];
//_vl addItemCargoGlobal ["ACE_DefusalKit", 1];
// Ajoute des items
_vl addItemCargoGlobal ["ACE_elasticBandage", 30];
_vl addItemCargoGlobal ["ACE_packingBandage", 30];
_vl addItemCargoGlobal ["ACE_plasmaIV", 5];
//_vl addItemCargoGlobal ["ACE_tourniquet", 10];
// Ajoute des items médicaux ACE
};
[_vl, 30] call ace_cargo_fnc_setSpace; //force la taille du cargo a 30

@DIS-Wolv
Copy link
Owner

acemod/ACE3#9481

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants