Jump to content

almaniak

Member
  • Content Count

    37
  • Joined

  • Last visited

  • Medals

Community Reputation

2 Neutral

About almaniak

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey everyone, I've got a weird issue with HC for our dedi. I can make HC work perfectly as long as I keep sigverify = 0. However I'd preferably be able to have sign verification for obvious reasons but as soon as I set it to 2, the HC connects and after 0.3 seconds instantly disconnects. The annoying thing is that I get no error at all, it's just connect - disconnect. Both server and client console gives no extra information. Anyone have any experience with this issue?
  2. I made a VA box with a bunch of stuff white listed via script. Some Explosives I do not want in the VA though so I have explicitly not added them. However when I go to the VA box, I can perfectly load a loadout that has one of the not-added items in it. I remember those loadouts used to be grayed out and not loadable? Is there something specific I need to do to hard "Blacklist" them? I've tried using BIS_fnc_removeVirtualMagazineCargo as well, but that has no effect either. Context: I do not want CUP_explosives in the VA because they do not work with ACE. It confuses to many people in our group which ones they can use, so I want to blacklist them. // Set Up ammo box // Clear Crate clearweaponcargo _this; clearmagazinecargo _this; clearitemcargo _this; // Init VA ["AmmoboxInit",[_this,false,true]] spawn BIS_fnc_arsenal; // NOT WORKING WITH ACE BlackListMines = ["CUP_Mine_M","CUP_IED_V1_M","CUP_IED_V2_M","CUP_IED_V3_M","CUP_IED_V4_M","CUP_MineE_M","CUP_PipeBomb_M"]; // Add all relevant stuff // Find all weapons and magazines _weaponsList = []; _namelist = []; _cfgweapons = configFile >> "cfgWeapons"; for "_i" from 0 to (count _cfgweapons)-1 do { _weapon = _cfgweapons select _i; if (isClass _weapon) then { _wCName = configName(_weapon); _wDName = getText(configFile >> "cfgWeapons" >> _wCName >> "displayName"); _wModel = getText(configFile >> "cfgWeapons" >> _wCName >> "model"); _wType = getNumber(configFile >> "cfgWeapons" >> _wCName >> "type"); _wPic = getText(configFile >> "cfgWeapons" >> _wCName >> "picture"); if ((_wCName!="") && (_wDName!="") && (_wModel!="") && (_wPic!="") && !(_wCName select [0,13] isEqualTo "CUP_arifle_AK") && !(_wCName select [0,13] isEqualTo "CUP_arifle_RP") && !(_wCName select [0,10] isEqualTo "arifle_Kat") && !(_wCName isEqualTo "CUP_arifle_AK107_GL")) then { if !(_wDName in _namelist) then { _weaponsList pushBack _wCName; _namelist = _namelist + [_wDName]; }; }; }; }; hint ""; _namelist=nil; _magazinesList = []; _namelist = []; _cfgmagazines = configFile >> "cfgmagazines"; for "_i" from 0 to (count _cfgmagazines)-1 do { _magazine = _cfgmagazines select _i; if (isClass _magazine) then { _mCName = configName(_magazine); _mDName = getText(configFile >> "cfgmagazines" >> _mCName >> "displayName"); _mModel = getText(configFile >> "cfgmagazines" >> _mCName >> "model"); if ((_mCName!="") && (_mDName!="") && (_mModel!="")) then { if !(_mDName in _namelist) then { //_magazinesList = _magazinesList + [[_mCName,_mDName,_mPic,_mDesc]]; if (! (_mCName in BlackListMines)) then { _magazinesList pushBack _mCName; _namelist = _namelist + [_mDName]; } else {}; }; }; }; }; hint ""; _namelist=nil; _backpacklist = []; _namelist = []; _cfgBackPacks = configFile >> "CfgVehicles"; for "_i" from 0 to (count _cfgBackPacks)-1 do { _magazine = _cfgBackPacks select _i; if (isClass _magazine) then { _mCName = configName(_magazine); _mDName = getText(configFile >> "CfgVehicles" >> _mCName >> "displayName"); _mModel = getText(configFile >> "CfgVehicles" >> _mCName >> "model"); _mVehClass = getText(configFile >> "CfgVehicles" >> _mCName >> "vehicleClass"); _faction = getText(configFile >> "CfgVehicles" >> _mCName >> "faction"); if ((_mCName!="") && (_mDName!="") && (_mModel!="")) then { if !(_mDName in _namelist) then { if (_mVehClass isEqualTo "Backpacks" && ( (_faction isEqualTo "BLU_F") || (_faction isEqualTo "Default"))) then { //_backpacklist = _backpacklist + [[_mCName,_mDName,_mPic,_mDesc]]; _backpacklist pushBack _mCName; _namelist = _namelist + [_mDName]; } else {}; }; }; }; if (_i % 10==0) then { //diag_log format["Loading backpack List... (%1)",count _backpacklist]; sleep .0001; }; }; hint ""; _namelist=nil; // Add the stuff for "_i" from 0 to (count _weaponsList)-1 do { _weapon = _weaponsList select _i; [_this, _weapon] call BIS_fnc_addVirtualWeaponCargo; }; for "_i" from 0 to (count _magazinesList)-1 do { _magazine = _magazinesList select _i; [_this, _magazine] call BIS_fnc_addVirtualMagazineCargo; }; for "_i" from 0 to (count _backpacklist)-1 do { _backPack = _backpacklist select _i; [_this, _backPack] call BIS_fnc_addVirtualBackpackCargo; }; [_this, true] call BIS_fnc_addVirtualItemCargo; // BlackList stuff // Assemble able backpacks // Titans [_this, ["B_AA_01_weapon_F", "B_AT_01_weapon_F"],true] call BIS_fnc_removeVirtualBackpackCargo; // Vanilla MachineGuns, GMG, Mortar [_this, ["B_GMG_01_high_weapon_F", "B_HMG_01_A_high_weapon_F", "B_GMG_01_A_weapon_F", "B_GMG_01_weapon_F", "B_HMG_01_A_weapon_F", "B_HMG_01_weapon_F", "B_HMG_01_high_weapon_F", "B_Mortar_01_weapon_F", "B_Mortar_01_support_F", "B_HMG_01_support_high_F", "B_HMG_01_support_F"],true] call BIS_fnc_removeVirtualBackpackCargo; // CUP stuff // This dont work UAV [_this,["CUP_B_UAVTerminal_Black"],true] call BIS_fnc_removeVirtualBackpackCargo; // weapons // AK that slipped thorugh the cracks,/ CUP_arifle_AK107_GL seems to be every present [_this,["CUP_arifle_AK107_GL", "CUP_lmg_PKM", "CUP_lmg_Pecheneg", "CUP_srifle_SVD", "CUP_srifle_SVD_des", "CUP_smg_bizon"],true] call BIS_fnc_removeVirtualWeaponCargo; // Launchers [_this,["CUP_launch_Igla", "launch_RPG32_F", "CUP_launch_RPG7V", "CUP_launch_RPG18", "CUP_launch_9K32Strela"],true] call BIS_fnc_removeVirtualWeaponCargo; // NO WORK FOR LOAD - TRY NEVER ADDING THEM? // Explosives remove cups ones /*[_this,["CUP_Mine_M", "CUP_IED_V1_M", "CUP_IED_V2_M", "CUP_IED_V3_M", "CUP_IED_V4_M", "CUP_MineE_M", "CUP_PipeBomb_M"],true] call BIS_fnc_removeVirtualMagazineCargo; */ Thanks in advance!
  3. That does like nice, I'll keep that addon in mind if we need an expansion to our fleet base :D
  4. Thank, for helping me and making me feel smaller than the first single celled organism that came out of our primordial soup. :P I can't believe I forgot that of all things, thanks a bunch!
  5. I've been trying to get a script working that spawns an artillery piece, support Artillery and support request module in script and sync them up with each other to make it work. The idea is that at a random place a ship (from CUP) is spawned and an artillery piece placed on top of that (and made invisible and attachedTo). Then I want this arty piece to be usable with BIS' support module stuff. Now I've tried replacing "SupportProvider_Artillery" with "SupportProvider_Virtual_Artillery" and that actually works (Support available even pops up on the side of the screen), yet the normal non virtual variant does not want to start up. Do I need to perform any extra steps to kickstart the support framework? // Frig and Arty _pos = getMarkerPos "bs"; frig = createVehicle ["CUP_B_Frigate_ANZAC", _pos, [], 0, "NONE"]; arty = createVehicle ["B_MBT_01_arty_F", position frig, [], 0 ,"NONE"]; _az = getDir frig; _gopos = [position frig, 35, -_az] call BIS_fnc_relPos; _gopos = [_gopos select 0, _gopos select 1, (_gopos select 2) + 13]; arty setpos _gopos; arty attachTo [frig]; // Support _logicGroup = createGroup sideLogic; SupportReq = _logicGroup createUnit ["SupportRequester",getpos player, [], 0, "FORM"]; ArtySupport = _logicGroup createUnit ["SupportProvider_Artillery", _pos, [], 0, "FORM"]; ArtySupport synchronizeObjectsAdd [arty]; arty synchronizeObjectsAdd [ArtySupport]; //Setup requestor limit values { [SupportReq, _x, 0] call BIS_fnc_limitSupport; }forEach [ "Artillery", "CAS_Heli", "CAS_Bombing", "UAV", "Drop", "Transport" ]; //Setup provider values { ArtySupport setVariable [(_x select 0),(_x select 1)]; }forEach [ ["BIS_SUPP_vehicles",[]], //types of vehicles to use ["BIS_SUPP_vehicleinit",""], //init code for vehicle ["BIS_SUPP_filter","SIDE"] //whether default vehicles comes from "SIDE" or "FACTION" ]; [a, SupportReq, ArtySupport] call BIS_fnc_addSupportLink; //Set our limit on the requester for artillery to 1 [SupportReq, "Artillery", 1] call BIS_fnc_limitSupport; Thanks in advance! EDIT: I've tested it with a preplaced editor unit instead of one made by script and that one does seems to work. Is there anything special I should to on my scrip added vehicle to make that work as well?
  6. Has anyone have similar problems with running ACE3 and CUP Explosive wise? CUP Explosives (Mines, Satchel, etc) seem non functioning when running ACE (not even with the default BIS "Put Down" which is odd) and not showing up in the ACE menu. I have the 2 latest ACE compat packs. Is this already known? (I tried searching but have not found anything relevant) or is it just us? Love playing around with all the old content again!
  7. Yeah you were right, I figured it out 10 minutes ago. I already tried with and without [] for the "RadioTower" parameter and at first it did not work (still got generic error), however with grumpy old man's exitWith and using [] it's now fully functional. Thanks for the help!:)
  8. The original idea was calling it via an eventhandler like this: "C_TechCenter" addPublicVariableEventHandler {publicVariable"C_TechCenter";[CD_TechCenterStr] call CD_FNC_UpdateFlags;}; But I'm also trying to call it via the debugconsole with : "TechCenter" spawn CD_FNC_UpdateFlags; ExecVM when putting the code in scriptform makes no difference. I tried that, making my code look like this: CD_FNC_UpdateFlags = { private ["_zone", "_flag", "_flagTex", "_side"]; _zone = _this select 0; _flag = FORMAT["P_Flag_%1",_zone]; _zVar = FORMAT["C_%1",_zone]; _side = missionNameSpace getVariable[_zVar,"independent"]; _flagO = missionNameSpace getVariable[_flag,nil]; //New Exitwith if (isNil "_flagO") exitWith {}; if (_side == blufor) then {_flagTex = CD_NatoFlag}; if (_side == opfor) then {_flagTex = CD_CSATFlag} else { _flagTex = CD_AAFFlag}; _flagO setFlagTexture _flagTex; }; And I'm still getting; 17:23:58 Error position: <select 0;_flag = FORMAT["P_Flag_%1",_z> 17:23:58 Error Generic error in expression (I'm not exactly sure that I used isNil correctly there so I tried with and without quotes for the variable) If you check the script you see that it should have a default flag texture when side is independent at: if (_side == opfor) then {_flagTex = CD_CSATFlag} else { _flagTex = CD_AAFFlag}; So I don't think thats where it breaks. I've tested some more and after commenting out a huge chunk: CD_FNC_UpdateFlags = { private ["_zone", "_flag", "_flagTex", "_side"]; _zone = _this select 0; _flag = FORMAT["P_Flag_%1",_zone]; _zVar = FORMAT["C_%1",_zone]; /* _side = missionNameSpace getVariable[_zVar,"independent"]; _flagO = missionNameSpace getVariable[_flag,nil]; if (isNil _flagO) exitWith {}; if (_side == blufor) then {_flagTex = CD_NatoFlag}; if (_side == opfor) then {_flagTex = CD_CSATFlag} else { _flagTex = CD_AAFFlag}; */ //_flagO setFlagTexture _flagTex; }; it still gives me the horrendous Lovecraftian error: 17:30:25 Error position: <select 0;_flag = FORMAT["P_Flag_%1",_z> 17:30:25 Error Generic error in expression So I guess I really did something despicable with: private ["_zone", "_flag", "_flagTex", "_side"]; _zone = _this select 0; _flag = FORMAT["P_Flag_%1",_zone]; _zVar = FORMAT["C_%1",_zone]; Unfortunately I can't figure out what. I've used this sort of string parsing before without any trouble :( Appreciating the effort guys! EDIT: I've found it! It was a combination of Larrow/Giallustio and Grumpy Old Man's answer, I already tried putting the variables in and out of brackets. Eg. ["RadioTower] and "RadioTower" but that didnt help me at first. However with Grumpy Old Man's exitwith it seems to have transcended to an executable state and it now works! Thanks guys for all your help!
  9. So I've been bonking my head against the monitor for 2 days now because I can't figure out how to fix this. CD_FNC_UpdateFlags = { private ["_zone", "_flag", "_flagTex", "_side"]; _zone = _this select 0; _flag = FORMAT["P_Flag_%1",_zone]; _zVar = FORMAT["C_%1",_zone]; _side = missionNameSpace getVariable[_zVar,"independent"]; _flagO = missionNameSpace getVariable[_flag,nil]; if (_side == blufor) then {_flagTex = CD_NatoFlag}; if (_side == opfor) then {_flagTex = CD_CSATFlag} else { _flagTex = CD_AAFFlag}; _flagO setFlagTexture _flagTex; }; Some context: The purpose of this script is that it will be called from an eventhandler (publicvarevent) and a string will be given as argument. The script will(or should) automatically get the C_ZONENAME public variable and the P_Flag_ZONENAME flagpole object from the editor. Afterwards it checks the current value of C_ZONENAME for sides and assigns a flagtexture that is then assigned to the flag object. However I'm constantly getting Error Generic error in expression. I've commented out line by line and sometimes I even get it with just _zone = _this select 0; :( I'm calling the code with the debug menu and I've tried spawn and call. I even tried putting the function in a script and execVM/spawning the script but it all fails. I've tried logging data, but that don't work cause the script fails before any lines get exec'd. Is anyone here seeing what arma might be complaining about? the "Error Generic error in expression" error is really ambiguous and seems to not really give a specific line? This is an example error I'm getting with this code: 0:26:59 Error in expression <", "_flagTex", "_side"];_zone = _this select 0 ;_flag = FORMAT["P_Flag_%1",_> 0:26:59 Error position: <select 0 ;_flag = FORMAT["P_Flag_%1",_> 0:26:59 Error Generic error in expression I've looked up what Error Generic error in expression actually means but the explanation of "This error occurs when the type of data an operator is expecting does not match" does not seem to apply to my code? (unless I probably missed something?) Any help would be greatly appreciated :D
  10. Well I'll be, I actually searched for getting multiple instances on same pc on a server, but I guess I just couldn't word it the right way :p. Thanks a bunch!
  11. I've started dabbling in multiplayer scripting recently and I am wondering if there any surefire/proven and tested ways for proper multiplayer testing. I've tried starting 2 instances of Arma3 and joining the same (locally run) dedicated server but apparently Arma3 doesn't allow that (even with kickDuplicate=0 in server.cfg which makes me wonder what it actually does). Seeing as I don't want to pester my friends all the time for trivial tests, and I'm not keen in buying another copy (mostly because of needing an extra steam account etc..) can any of you MP script vets give a hint or two on how you test out scripts ? Thanks in advance!
  12. Is back blast currently disabled in version 3.1.1 ? Cause I've been testing back blast but there does not seem to be any (tanks do give over pressure however). I'm asking because I can't find any ticket opened up on the tracker about it but I think I remember seeing somewhere that it might have been disabled, but now I'm starting to doubt myself and wanted to make sure :p. Loving ACE3 so far, It'll be hard going back to vanilla.
  13. They were indeed turned out. So yes, give them some humility training :p
  14. Yay Can't wait until this little niggle is gone and I can properly love my AI again :D
×