Supporters add on implementation

Supporters add on implementation

« posted: Feb 17, 2015, 04:40 AM »
Hey guy's Setting up a server by reverse engineering a pbo from a server i frequently play in.
I have a few things figured out but am having trouble finding help on  setting up the loadouts.sqf file for donor and custom loadouts.

I am really not sure where to implement it in any ini files.

I tried to track down where its called in creampies ArmA3_Wasteland.Chernarus github and edit my files accordingly for stratis but cant find anything.

Any help would be appreciated..

Thanks
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Supporters add on implementation

« Reply #1 posted: Feb 17, 2015, 07:55 AM »
Here's a tip ...

Go download a tool called "AgentRansak" - it's the best tool for finding files and text or phrases inside files. Right click on my extracted PBO and search for the file you are looking at e.g. loadouts.sqf. It will list all the files containing and show which line numbers.

Now to get back to your question ...


You will see that I have put my supporter loadouts in \addons\supporters\loadouts.sqf.

You can change the loadout per rank here and add the person to the array in which you want him to be .. e.g.


Code: [Select]
_uid = getPlayerUID player;

]_rank5 = [
"7656119796092123",  // CRE4MPIE
"7656119804728345"   //an African Child
];

switch (true) do {
case (_uid in _rank5):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Bergen_sgg";
_player addVest "V_PlateCarrierIAGL_dgtl";
_player forceAddUniform "U_BG_Guerilla2_1";
_player addWeapon "arifle_mas_m4vlt";
_player addPrimaryWeaponItem "optic_Arco";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addItemtoBackpack "HandGrenade";
_player addItemtoBackpack "HandGrenade";
_player addWeapon "hgun_mas_glocksf_F";
_player addHandgunItem "muzzle_mas_snds_L";
_player addHandgunItem "optic_Yorris";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItemToBackpack "FirstAidKit";
_player addItemToBackpack "FirstAidKit";
_player addHeadgear "H_Cap_tan";
_player addGoggles "G_mas_wpn_wrap_mask_t";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\rank5.jpg"];
};


Then this is the client function I call from clients\functions\playerSetupGear.sqf and have defind in my client\functions\clientcompile.sqf
Code: [Select]
//load supporter loadouts
_this call supporters;

if (_player == player) then
{
thirstLevel = 100;
hungerLevel = 100;
};


Code: [Select]
supporters = "addons\supporters\loadouts.sqf" call mf_compile;
When players load in , they will have the gear based on the rank array you've put them in.Drop me a pm if you are stuck :)

- from the grassy knoll -

Re: Supporters add on implementation

« Reply #2 posted: Feb 18, 2015, 06:36 AM »
You sir are a gentleman and a scholar... Thank you.

Agent Ransack is Awesome..

I Semi got it working,  I Attempted to do my loadout in the Mcc editor, Easier than manually finding all the names and class lists,  You can then copy the loadout to a text file to convert it to the Format in the loadouts.sqf file.

Poked around by editing the bmw fields

Upon loading in the test server I noticed missing hands and legs..

Are there certain Items not available to us in wasteland ?

Will give it a second go tomarrow.

Thanks again for all your awesome work


 
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Supporters add on implementation

« Reply #3 posted: Feb 18, 2015, 08:00 AM »
You sir are a gentleman and a scholar... Thank you.

Agent Ransack is Awesome..

I Semi got it working,  I Attempted to do my loadout in the Mcc editor, Easier than manually finding all the names and class lists,  You can then copy the loadout to a text file to convert it to the Format in the loadouts.sqf file.

Poked around by editing the bmw fields

Upon loading in the test server I noticed missing hands and legs..

Are there certain Items not available to us in wasteland ?

Will give it a second go tomarrow.

Thanks again for all your awesome work

Everything is available =) Try not to deviate from the current structure as code errors will cause stuff not to load in properly too :)

Make sure you have the texture in the right folder and named right that you are trying to load for the player

Also another easy way to do the loadouts is to use the virtual arsenal in the main menu, then export that and paste it in a new text file - this has all the class names for all the objects too :D

Make sure your server starts with the mods you want to use too ( in my mission file I use NATO SF / Russian Spetsnatz 1.8 Weapon mod by Massi and the All in Arma Terrain Pack Lite 2015.


- from the grassy knoll -

Re: Supporters add on implementation

« Reply #4 posted: Feb 18, 2015, 07:28 PM »
Idk man, Tried again, Put the edits where you showed and in the same spots in my files..  tried it without messing with the loadouts as "rank5"  .. Spawned in with

guerilla uniform
Ga carrier gl
assault pack green
Cap
balaclava
nvg and rangefinders.
acp-c2-45

2 rgo Grenade's
and 2 40mm he's

File says i should have

a carryall for a pack, and lots of other stuff. I did do some editing after 1st attempt for gun and few others.. Same results
Code: [Select]
_rank5 = [
"76561198080530502",  // Prepper
//"76561198047283625"   //an African Child


Code: [Select]
case (_uid in _rank5):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Carryall_oli";
_player addVest "V_PlateCarrierIAGL_dgtl";
_player forceAddUniform "U_IG_leader";
_player addWeapon "arifle_MX_SW_F";
_player addPrimaryWeaponItem "muzzle_snds_H";
_player addPrimaryWeaponItem "optic_Nightstalker";
_player addItem "HandGrenade";
_player addItem "HandGrenade";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addItem "1Rnd_HE_Grenade_shell";
_player addItem "1Rnd_HE_Grenade_shell";
_player addWeapon "hgun_mas_sa61_F";
_player addHandgunItem "muzzle_mas_snds_LM";
_player addHandgunItem "optic_mas_MRD";
_player addMagazine "20Rnd_mas_765x17_Mag";
_player addMagazine "20Rnd_mas_765x17_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItem "FirstAidKit";
_player addItem "FirstAidKit";
_player addGoggles "G_Bandanna_beast";
_player addHeadgear "H_Cap_blk_Raven";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\digicam.jpg"];   

Re: Supporters add on implementation

« Reply #5 posted: Feb 18, 2015, 07:55 PM »
Can  you edit your post and paste your full code for that section like Creampie did. May be something small as a ; missing.
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Supporters add on implementation

« Reply #6 posted: Feb 18, 2015, 08:30 PM »
Here's your problem

Remember , the last value in an array shouldn't have a comma , by remarking out the last entry in this array you are only looking at the first entry and in your case it had a comma at the end and will be looking for more entries - thus causing the whole script to fail.

FIXED

Code: [Select]
_rank5 = [
"76561198080530502"  // Prepper
//"76561198047283625"   //an African Child
];


- from the grassy knoll -

Re: Supporters add on implementation

« Reply #7 posted: Feb 18, 2015, 08:31 PM »
Here's your problem

Remember , the last value in an array shouldn't have a comma , by remarking out the last entry in this array you are only looking at the first entry and in your case it had a comma at the end and will be looking for more entries - thus causing the whole script to fail.

FIXED

Code: [Select]
_rank5 = [
"76561198080530502"  // Prepper
//"76561198047283625"   //an African Child
];


Good catch..Cant believe I missed that.

Re: Supporters add on implementation

« Reply #8 posted: Feb 19, 2015, 01:30 AM »
Sorry tried to get the post in before i had to run so made it hasty,  Here is everything I have edited.. it did end in" ];



I understand this is a direct copy over from your Chernarus mod and a lot of the items may be from your the addons you mentiond   
Quote
( in my mission file I use NATO SF / Russian Spetsnatz 1.8 Weapon mod by Massi and the All in Arma Terrain Pack Lite 2015.
However the rank5 class has mostly non modded files.  tried fully edited with a custom loadout and still same results.

It is an attempt to verify if the  basics work and that I am messing up porting in my loadouts.. I messed up somewhere else in the process


Could it be I have called to early in playerSetupGear.sqf  and my loadout is getting over written with the basic loadout ?

loadouts.sqf

Code: [Select]
// Supporter Loadouts Start here

_uid = getPlayerUID player;


_BMW = [
"76561198080530502", //littlemanPo
"76561198008456016", //kapt_krazy
"76561198009224506", //tokoloshe
"76561198065673653", //Baasdaan
"76561198069045901", //Equinox
"76561198086421593", //vanilla vlakvark
"76561198166270630", //vanilla vlakvark2
"76561198142222519", //ROOFDIER
"76561198069595017", //heinrich
"76561198110828549", //terminat0r
"76561198209078408", //JasonG6
"76561198140069821", //Rorscharch
"76561198082233087", //Rawbush
"76561198009224506" //tokoloshe
];

_DMR = [
"76561198089992647",  //PlikkyJ DMR
"76561198044693803"   // ChrisBotes DMR
];

_SWWD = [
"76561198031977865", //Bosbok aka Darkness
"76561198054618058", //kill3r2000
"76561198032560659", //c_m0nst3r
"76561198011008664", // Blasie
"76561198011088763", // Crusty
"76561198032758675", // Saadsel
"76561198048862475", // Badger
"76561198057051280", // AcidBuddy
"76561198101478573", // BAASMANS
"76561198106526709", // Frank0
"76561198117632922", // Panga
"76561198126770614", // Wolf
"76561198139502677", // SL3T
"76561198147195498", // ACHMED
"76561198147245553", // PUNISHER
"76561198022113458", // GreyTear
"76561198021080452"  // Dugg
];

_rank1 = [
"76561198110667514", //Garrard
"76561198036559449", //Panthera
"76561198148526747" //LtAsario
];

_rank2 = [
"76561198082414169",  //ninjabunny
"76561197998311851", // ScorpionL2K
"76561198028683000", //BagelZA
"76561198117222837", //TankZA
"76561198135180830", //Moon
"76561198061859745", // FlashPaperGrind
"76561198135590015" //LXM182
];

_rank3 = [

"76561198010345274", //N3O
"76561198003449278", //DTHECK
"76561198032477175" //EVIL_BETTY

];

_rank4 = [
"76561198030714684", // Diesel
"76561198010859952"  // Hagar

];

_rank5 = [
//"76561198080530502",  // Prepper
"76561198047283625"   //an African Child
];

switch (true) do {
case (_uid in _BMW):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Bergen_mcamo";
_player addVest "V_PlateCarrierIAGL_dgtl";
_player forceAddUniform "U_B_CombatUniform_mcam_tshirt";
_player addWeapon "arifle_mas_l119_m203_v_sd";
_player addPrimaryWeaponItem "optic_mas_Holosight_camo";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addItemtoBackpack "HandGrenade";
_player addWeapon "hgun_mas_glocksf_F";
_player addHandgunItem "muzzle_mas_snds_L";
_player addHandgunItem "optic_Yorris";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItemToBackpack "FirstAidKit";
_player addItemToBackpack "FirstAidKit";
_player addHeadgear "H_Cap_brn_SPECOPS";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\BMW.jpg"];
};

case (_uid in _DMR):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Carryall_ocamo";
_player addVest "V_PlateCarrierIAGL_dgtl";
_player forceAddUniform "U_B_GhillieSuit";
_player addWeapon "arifle_mas_l119_m203_v_sd";
_player addPrimaryWeaponItem "optic_mas_Holosight_camo";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addItemtoBackpack "HandGrenade";
_player addWeapon "hgun_mas_glocksf_F";
_player addHandgunItem "muzzle_mas_snds_L";
_player addHandgunItem "optic_Yorris";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItemToBackpack "FirstAidKit";
_player addItemToBackpack "FirstAidKit";
_player addHeadgear "H_HelmetLeaderO_ocamo";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\digicam.jpg"];   
};

case (_uid in _SWWD):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Carryall_ocamo";
_player addVest "V_PlateCarrierIAGL_dgtl";
_player forceAddUniform "U_B_GhillieSuit";
_player addWeapon "arifle_mas_l119_m203_v_sd";
_player addPrimaryWeaponItem "optic_mas_Hamr_camo";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addItemtoBackpack "HandGrenade";
_player addWeapon "hgun_mas_glocksf_F";
_player addHandgunItem "muzzle_mas_snds_L";
_player addHandgunItem "optic_Yorris";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItemToBackpack "FirstAidKit";
_player addItemToBackpack "FirstAidKit";
_player addHeadgear "H_HelmetLeaderO_ocamo";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\SWWD.jpg"];
};

case (_uid in _rank1):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Bergen_mcamo";
_player addVest "V_TacVest_camo";
_player forceAddUniform "U_B_CombatUniform_mcam_tshirt";
_player addWeapon "arifle_mas_mp5SD_e";
_player addItem "HandGrenade";
_player addMagazine "30Rnd_mas_9x21_Stanag";
_player addMagazine "30Rnd_mas_9x21_Stanag";
_player addWeapon "hgun_mas_glocksf_F";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addMagazine "12Rnd_mas_45acp_Mag";
_player addItem "Medikit";
_player addWeapon "Binoculars";
_player addItem "FirstAidKit";
_player addHeadgear "H_Cap_brn_SPECOPS";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\camo_fuel.jpg"];
};

case (_uid in _rank2):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Kitbag_mcamo";
_player addVest "V_TacVest_camo";
_player forceAddUniform "U_I_GhillieSuit";
_player addWeapon "arifle_mas_mk16_l_gl";
_player addPrimaryWeaponItem "optic_mas_aim_c";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "30Rnd_mas_556x45_Stanag";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addMagazine "1Rnd_HE_Grenade_shell";
_player addItem "HandGrenade";
_player addWeapon "hgun_mas_glocksf_F";
_player addMagazine "11Rnd_45ACP_Mag";
_player addMagazine "11Rnd_45ACP_Mag";
_player addItem "Medikit";
_player addWeapon "Binoculars";
_player addItemToUniform "FirstAidKit";
_player addItemToUniform "FirstAidKit";
_player addHeadgear "H_HelmetB_camo";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\redcamo.jpg"];
};

case (_uid in _rank3):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Carryall_oucamo";
_player addVest "V_PlateCarrierIAGL_dgtl";
_player forceAddUniform "U_O_GhillieSuit";
_player addWeapon "arifle_mas_g3s_m203";
_player addPrimaryWeaponItem "muzzle_mas_snds_M";
_player addPrimaryWeaponItem "acc_mas_pointer_IR_b";
_player addPrimaryWeaponItem "optic_Hamr";
_player addItem "HandGrenade";
_player addItem "HandGrenade";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addItem "1Rnd_HE_Grenade_shell";
_player addItem "1Rnd_HE_Grenade_shell";
_player addWeapon "hgun_mas_sa61_F";
_player addHandgunItem "muzzle_mas_snds_LM";
_player addHandgunItem "optic_mas_MRD";
_player addMagazine "20Rnd_mas_765x17_Mag";
_player addMagazine "20Rnd_mas_765x17_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItem "FirstAidKit";
_player addItem "FirstAidKit";
_player addHeadgear "H_PilotHelmetHeli_O";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\IceCamo.jpg"];
};

case (_uid in _rank4):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Carryall_oucamo";
_player addVest "V_PlateCarrierIA2_dgtl";
_player forceAddUniform "U_B_GhillieSuit";
_player addWeapon "srifle_mas_hk417_v_sd";
_player addPrimaryWeaponItem "optic_mas_Hamr_camo";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addItem "HandGrenade";
_player addItem "HandGrenade";
_player addWeapon "hgun_Pistol_heavy_01_snds_F";
_player addMagazine "11Rnd_45ACP_Mag";
_player addMagazine "11Rnd_45ACP_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItemToUniform "FirstAidKit";
_player addItemToUniform "FirstAidKit";
_player addHeadgear "H_PilotHelmetHeli_O";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\SWWD.jpg"];
};

case (_uid in _rank5):
{
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
removeAllWeapons _player;
removeVest _player;
removeBackpack _player;
_player addBackpack "B_Carryall_oli";
_player addVest "V_PlateCarrierIAGL_dgtl";
_player forceAddUniform "U_IG_leader";
_player addWeapon "arifle_MX_SW_F";
_player addPrimaryWeaponItem "muzzle_snds_H";
_player addPrimaryWeaponItem "optic_Nightstalker";
_player addItem "HandGrenade";
_player addItem "HandGrenade";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addMagazine "20Rnd_mas_762x51_Stanag";
_player addItem "1Rnd_HE_Grenade_shell";
_player addItem "1Rnd_HE_Grenade_shell";
_player addWeapon "hgun_mas_sa61_F";
_player addHandgunItem "muzzle_mas_snds_LM";
_player addHandgunItem "optic_mas_MRD";
_player addMagazine "20Rnd_mas_765x17_Mag";
_player addMagazine "20Rnd_mas_765x17_Mag";
_player addItem "Medikit";
_player addWeapon "Rangefinder";
_player addItem "FirstAidKit";
_player addItem "FirstAidKit";
_player addGoggles "G_Bandanna_beast";
_player addHeadgear "H_Cap_blk_Raven";
_player setObjectTextureGlobal  [0, "client\images\vehicleTextures\digicam.jpg"];   

};

default
{
_player addBackpack "B_FieldPack_cbr";
_player addWeapon "hgun_mas_mak_F";
_player addWeapon "hgun_mas_mp7_F";
_player addMagazine "40Rnd_mas_46x30_Mag";
_player addMagazine "8Rnd_mas_9x18_Mag";
_player addMagazine "8Rnd_mas_9x18_Mag";
_player addItem "FirstAidKit";
_player selectWeapon "hgun_mas_mp7_F"
};
};

]

Re: Supporters add on implementation

« Reply #9 posted: Feb 19, 2015, 01:33 AM »
playersetupgear.sqf

Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: playerSetupGear.sqf
// @file Author: [GoT] JoSchaap, AgentRev

private ["_player", "_uniform", "_vest", "_headgear", "_goggles"];
_player = _this;

// Clothing is now defined in "client\functions\getDefaultClothing.sqf"

_uniform = [_player, "uniform"] call getDefaultClothing;
_vest = [_player, "vest"] call getDefaultClothing;
_headgear = [_player, "headgear"] call getDefaultClothing;
_goggles = [_player, "goggles"] call getDefaultClothing;

if (_uniform != "") then { _player addUniform _uniform };
if (_vest != "") then { _player addVest _vest };
if (_headgear != "") then { _player addHeadgear _headgear };
if (_goggles != "") then { _player addGoggles _goggles };

sleep 0.1;

// Remove GPS
_player unlinkItem "ItemGPS";

// Remove radio
//_player unlinkItem "ItemRadio";

// Remove NVG
if (hmd _player != "") then { _player unlinkItem hmd _player };

//load supporter loadouts
_this call supporters;

// Add NVG
_player linkItem "NVGoggles";

_player addBackpack "B_AssaultPack_rgr";

_player addMagazine "9Rnd_45ACP_Mag";
_player addWeapon "hgun_ACPC2_F";
_player addMagazine "9Rnd_45ACP_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
_player addMagazine "9Rnd_45ACP_Mag";
_player addItem "FirstAidKit";
_player selectWeapon "hgun_ACPC2_F";

switch (true) do
{
case (["_medic_", typeOf _player] call fn_findString != -1):
{
_player removeItem "FirstAidKit";
_player addItem "Medikit";
};
case (["_engineer_", typeOf _player] call fn_findString != -1):
{
_player addItem "MineDetector";
_player addItem "Toolkit";
};
case (["_sniper_", typeOf _player] call fn_findString != -1):
{
_player addWeapon "Rangefinder";
};
};

if (_player == player) then
{
thirstLevel = 100;
hungerLevel = 100;
};

Re: Supporters add on implementation

« Reply #10 posted: Feb 19, 2015, 01:36 AM »
Clientcompile.sqf

Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: clientCompile.sqf
// @file Author: [404] Deadbeat, [404] Costlyy, [GoT] JoSchaap, MercyfulFate, AgentRev
// @file Args:

mf_notify_client = "client\functions\notifyClient.sqf" call mf_compile;
mf_util_playUntil = "client\functions\playUntil.sqf" call mf_compile;

// Event handlers
getInVehicle = "client\clientEvents\getInVehicle.sqf" call mf_compile;
getOutVehicle = "client\clientEvents\getOutVehicle.sqf" call mf_compile;
onRespawn = "client\clientEvents\onRespawn.sqf" call mf_compile;
onKilled = "client\clientEvents\onKilled.sqf" call mf_compile;
onKeyPress = "client\clientEvents\onKeyPress.sqf" call mf_compile;
onKeyRelease = "client\clientEvents\onKeyRelease.sqf" call mf_compile;

// Functions
A3W_fnc_copilotTakeControl = "client\functions\copilotTakeControl.sqf" call mf_compile;
A3W_fnc_titleTextMessage = "client\functions\titleTextMessage.sqf" call mf_compile;
addWeaponInventory = "client\functions\addWeaponInventory.sqf" call mf_compile;
canForceSaveVehicle = "client\functions\canForceSaveVehicle.sqf" call mf_compile;
canPushPlaneBack = "client\functions\canPushPlaneBack.sqf" call mf_compile;
canPushVehicleOnFoot = "client\functions\canPushVehicleOnFoot.sqf" call mf_compile;
canPushWatercraft = "client\functions\canPushWatercraft.sqf" call mf_compile;
deleteEmptyGroup = "client\functions\deleteEmptyGroup.sqf" call mf_compile;
findHackedVehicles = "client\systems\adminPanel\findHackedVehicles.sqf" call mf_compile;
fn_addManagedAction = "client\functions\fn_addManagedAction.sqf" call mf_compile;
fn_disableCollision = "client\functions\fn_disableCollision.sqf" call mf_compile;
fn_emergencyEject = "client\functions\fn_emergencyEject.sqf" call mf_compile;
fn_encodeText = "client\functions\fn_encodeText.sqf" call mf_compile;
fn_fitsInventory = "client\functions\fn_fitsInventory.sqf" call mf_compile;
fn_formatTimer = "client\functions\fn_formatTimer.sqf" call mf_compile;
fn_removeAllManagedActions = "client\functions\fn_removeAllManagedActions.sqf" call mf_compile;
fn_removeManagedAction = "client\functions\fn_removeManagedAction.sqf" call mf_compile;
fn_forceOpenParachute = "client\functions\fn_forceOpenParachute.sqf" call mf_compile;
fn_openParachute = "client\functions\fn_openParachute.sqf" call mf_compile;
getDefaultClothing = "client\functions\getDefaultClothing.sqf" call mf_compile;
getFullMove = "client\functions\getFullMove.sqf" call mf_compile;
getMoveParams = "client\functions\getMoveParams.sqf" call mf_compile;
getPushPlaneAction = "client\functions\getPushPlaneAction.sqf" call mf_compile;
groupNotify = "client\functions\groupNotify.sqf" call mf_compile;
isAdmin = "client\systems\adminPanel\isAdmin.sqf" call mf_compile;
isAssignableBinocular = "client\functions\isAssignableBinocular.sqf" call mf_compile;
isPVarTarget = "client\functions\isPVarTarget.sqf" call mf_compile;
isWeaponType = "client\functions\isWeaponType.sqf" call mf_compile;
parseMove = "client\functions\parseMove.sqf" call mf_compile;
playerEventServer = "client\functions\playerEventServer.sqf" call mf_compile;
serverMessage = "client\functions\serverMessage.sqf" call mf_compile;
uniformConverter = "client\functions\uniformConverter.sqf" call mf_compile;
unitHandleDamage = "client\functions\unitHandleDamage.sqf" call mf_compile;
updateTerritoryMarkers = "territory\client\updateTerritoryMarkers.sqf" call mf_compile;
vehicleSideCfg = "client\functions\vehicleSideCfg.sqf" call mf_compile;
weaponDisassembledEvent = "client\functions\weaponDisassembledEvent.sqf" call mf_compile;

// GoT additions
fn_rewardLoyalty = "client\functions\fn_rewardLoyalty.sqf" call mf_compile;

// Player details and actions
loadPlayerMenu = "client\systems\playerMenu\init.sqf" call mf_compile;
playerSpawn = "client\functions\playerSpawn.sqf" call mf_compile;
playerSetup = "client\functions\playerSetup.sqf" call mf_compile;
playerSetupStart = "client\functions\playerSetupStart.sqf" call mf_compile;
playerSetupGear = "client\functions\playerSetupGear.sqf" call mf_compile;
playerSetupEnd = "client\functions\playerSetupEnd.sqf" call mf_compile;
supporters = "addons\supporters\loadouts.sqf" call mf_compile;
spawnAction = "client\functions\spawnAction.sqf" call mf_compile;
spawnInTown = "client\functions\spawnInTown.sqf" call mf_compile;
spawnOnBeacon = "client\functions\spawnOnBeacon.sqf" call mf_compile;
spawnRandom = "client\functions\spawnRandom.sqf" call mf_compile;
// placeSpawnBeacon = "client\systems\playerMenu\placeSpawnBeacon.sqf" call mf_compile;
// refuelVehicle = "client\systems\playerMenu\refuel.sqf" call mf_compile;
// repairVehicle = "client\systems\playerMenu\repair.sqf" call mf_compile;

// Sync client with server time
timeSync = "client\functions\clientTimeSync.sqf" call mf_compile;

// Update scripts
updateTeamKiller = "client\functions\updateTeamKiller.sqf" call mf_compile;

// Team-kill system
teamkillAction = "client\functions\doTeamKillAction.sqf" call mf_compile;
teamkillMessage = "client\functions\showTeamKillMessage.sqf" call mf_compile;

// Dialog compiles
client_respawnDialog = "client\systems\playerMenu\dialog\loadRespawnDialog.sqf" call mf_compile;
fn_respawnTimer = "client\systems\scoreboard\fn_respawnTimer.sqf" call mf_compile;
loadGeneralStore = "client\systems\generalStore\loadGenStore.sqf" call mf_compile;
loadGunStore = "client\systems\gunStore\loadGunStore.sqf" call mf_compile;
loadScoreboard = "client\systems\scoreboard\loadScoreboard.sqf" call mf_compile;
loadVehicleStore = "client\systems\vehicleStore\loadVehicleStore.sqf" call mf_compile;
gearProperties = "client\functions\gearProperties.sqf" call mf_compile;
getCapacity = "client\functions\getCapacity.sqf" call mf_compile;
getItemInfo = "client\functions\getItemInfo.sqf" call mf_compile;
getInventory = "client\systems\generalStore\getInventory.sqf" call mf_compile;
getSellPriceList = "client\systems\selling\getSellPriceList.sqf" call mf_compile;
populateGeneralStore = "client\systems\generalStore\populateGenStore.sqf" call mf_compile;
populateGunStore = "client\systems\gunStore\populateGunStore.sqf" call mf_compile;
populateVehicleStore = "client\systems\vehicleStore\populateVehicleStore.sqf" call mf_compile;
requestStoreObject = "client\functions\requestStoreObject.sqf" call mf_compile;
vehicleInfo = "client\systems\vehicleStore\vehicleInfo.sqf" call mf_compile;
weaponInfo = "client\systems\gunStore\weaponInfo.sqf" call mf_compile;

if (isNil "A3W_fnc_MP") then { A3W_fnc_MP = compile preprocessFileLineNumbers "\A3\functions_f\MP\fn_MP.sqf" };
if (isNil "A3W_fnc_MPexec") then { A3W_fnc_MPexec = compile preprocessFileLineNumbers "\A3\functions_f\MP\fn_MPexec.sqf" };

player groupChat "Wasteland - Client Compile Complete";
sleep 1;
playerCompiledScripts = true;
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Supporters add on implementation

« Reply #11 posted: Feb 19, 2015, 08:02 AM »
You're not reading what I am saying :)

This is still wrong ... The LAST entry in ANY array shouldn't have the comma !! I am not talking about the "];"

This will not work ...

Code: [Select]
_rank5 = [
//"76561198080530502",  // Prepper
"76561198047283625"   //an African Child
];


Fixed here


Code: [Select]
_rank5 = [
"76561198080530502"  // Prepper
//"76561198047283625"   //an African Child
];

or just do this


Code: [Select]
_rank5 = [
//"76561198080530502"  // Prepper
];

- from the grassy knoll -
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Supporters add on implementation

« Reply #12 posted: Feb 19, 2015, 08:04 AM »
I am confused here  ? You are remarking out yourself from the array ?


Code: [Select]
_rank5 = [
//"76561198080530502",  // Prepper
"76561198047283625"   //an African Child
];

Just do it like this

Code: [Select]
_rank5 = [
"76561198080530502" // Prepper
];

a beginners guide to Arrays

- from the grassy knoll -

Re: Supporters add on implementation

« Reply #13 posted: Feb 19, 2015, 02:00 PM »
Quote
I am confused here  ? You are remarking out yourself from the array ?
Remarked out to test placement in _bmw,  Just didnt rename littlemanpo.. was trying other classes to see if that was the issue..

Removed all the comma's and it *worked.. Thanks

Turns out i also had the call wrong in playerSetupGear.sqf

Called it before it wrote the backpack and sidearm.. Causing backpack issues
Followed what you have in the github version to literal with agentransak instead of seeing what you were posting in here!! 

For the record, any reason why 90% of the array's in the loadout file have the comma in there on the github ?

Cleaner looking way than commenting out ?
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Supporters add on implementation

« Reply #14 posted: Feb 20, 2015, 06:06 AM »
Remarked out to test placement in _bmw,  Just didnt rename littlemanpo.. was trying other classes to see if that was the issue..

Removed all the comma's and it *worked.. Thanks

Turns out i also had the call wrong in playerSetupGear.sqf

Called it before it wrote the backpack and sidearm.. Causing backpack issues
Followed what you have in the github version to literal with agentransak instead of seeing what you were posting in here!! 

For the record, any reason why 90% of the array's in the loadout file have the comma in there on the github ?

Cleaner looking way than commenting out ?

great ! Agentransak is really useful for tracking code bits ..

commas ? Each entry in an array needs to have a comma at the end, except the last one ?

glad it's working now! I call it to the very end of the script as you can see in the example above ;)

- from the grassy knoll -