Search the Community
Showing results for tags 'undefined'.
Found 6 results
-
Undefined Base Class in config.cpp
Sacha 'Voodoo' Oropeza posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hello folks, As some of you may already know, I'm working on the AH-64D Project, which was originally made by Franze & Nodunit. As the project went open source, I decided to reorganize the code before exploring new possibilities however I got an issue which I don't understand hence I post here a part of the 'new' code. The concerned code part (CfgVehicles) is accessible here on Pastebin. Any ideas ? -
Bis function and eventhandler keep breaking Randomly
claws01 posted a topic in ARMA 3 - TROUBLESHOOTING
1 - Mission been running for month never had any trouble 2- but since last two day , been having some crazy bug ( where the client get this " 10:04:59 Error in expression <} do { _unitsEvaluated = []; if (count bis_revive3d_unitsToProcess == 0) then {> 10:04:59 Error position: <bis_revive3d_unitsToProcess == 0) then {> 10:04:59 Error Undefined variable in expression: bis_revive3d_unitstoprocess 10:04:59 File a3\functions_f_mp_mark\revive\fn_reviveInit.sqf [BIS_fnc_reviveInit], line 617 Then any player inside the server will see this error with more data (if only scripterror set to 1). as soon this happen all script and eventhandler stop working " 10:04:59 Error in expression <} do { _unitsEvaluated = []; if (count bis_revive3d_unitsToProcess == 0) then {> 10:04:59 Error position: <bis_revive3d_unitsToProcess == 0) then {> 10:04:59 Error Undefined variable in expression: bis_revive3d_unitstoprocess 10:04:59 File a3\functions_f_mp_mark\revive\fn_reviveInit.sqf [BIS_fnc_reviveInit], line 617 3. if a player try to join the server , the client game will crash giving this error Error in expression <!isnull player && BIS_fnc_feedback_allowPP> 10:12:40 Error position: <BIS_fnc_feedback_allowPP> 10:12:40 Error Undefined variable in expression: bis_fnc_feedback_allowpp 10:12:40 Attempt to override final function - bis_fnc_uniqueclasses 10:12:40 Attempt to override final function - bis_fnc_removecuratoricon 10:12:40 Attempt to override final function - bis_fnc_locweaponinfo 10:12:40 Attempt to override final function - bis_fnc_exp_camp_playtimelinevideo 10:12:40 Error in expression <!isnull player && BIS_fnc_feedback_allowPP> 10:12:40 Error position: <BIS_fnc_feedback_allowPP> 4. step i took : -Verify game integrity ( server and client) - check the mission file for any integrity (no error) - debug each step to find if any irregularity during the mission nothing - server rtp don't show any error related to that bug 5. revive setting inside description //--- Respawn respawn = 3; // 0 = NONE. 1 = BIRD. 2 = INSTANT. 3 = BASE. 4 = GROUP. 5 = SIDE. respawnDelay = 15; RespawnDialog = 1; // default = 1. show respawn timer and scoreboard when killed. respawnTemplates[] = {"MenuInventory", "MenuPosition"}; // "Seagull", "f_spectator", "f_JIP", "MenuInventory", "MenuPosition", "Tickets", "EndMission", "Counter", "Wave" respawnButton = 1; respawnOnStart = -1; //--- Revive ReviveMode = 1; //0: disabled, 1: enabled, 2: controlled by player attributes ReviveUnconsciousStateMode = 0; //0: basic, 1: advanced, 2: realistic ReviveRequiredTrait = 0; //0: none, 1: medic trait is required ReviveRequiredItems = 0; //0: none, 1: medkit, 2: medkit or first aid kit ReviveRequiredItemsFakConsumed = 0; //0: first aid kit is not consumed upon revive, 1: first aid kit is consumed ReviveDelay = 6; //time needed to revive someone (in secs) ReviveMedicSpeedMultiplier = 2; //speed multiplier for revive performed by medic ReviveForceRespawnDelay = 3; //time needed to perform force respawn (in secs) ReviveBleedOutDelay = 600; //unconscious state duration (in secs 6- bug happen rarely and affect all client connected also happen after restart time./. logs attached https://1drv.ms/u/s!Ali3CqUW9fqqgcMfOkj-nJwgOOS3GQ -
Hello. I have a piece of code here that needs some polishing. some help to understand: _guard is in the middle of a city, _taskitems is not important right now. The for loop should go through all the houses in the area. This piece of code works 80% of the time without any problems. 20% of the time it gives me an error: "Undefined variable in the expression: _pos".Why does it work more often than not? I don't see my own mistake here. _houses = nearestObjects [_guard, ["house"], 400]; _crateSpawned = 0; _crateHouse = 0; _taskItems = []; _pos = 0; _defendergroup = createGroup civilian; for "_i" from 0 to count _houses -1 do { _item = _houses select _i; _chance = floor (random 5); if( (_chance == 1 && _crateSpawned == 0) || _houses select (count _houses -1) == _item) then { _positions = [_item] call BIS_fnc_buildingPositions; if(count _positions >3 || _houses select (count _houses -1) == _item) then { _pos = selectrandom _positions; _crate = createVehicle ["B_CargoNet_01_ammo_F",_pos, [], 0, "NONE"]; _crateSpawned = 1; _taskItems pushBack _crate; _crateHouse = _item; sleep 0.5; }; }; };
-
Global variable - Undefined variable in expression
draoth posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello everyone! I'm pretty new to scripting in Arma, so i hope someone can help me out. I've created a script that makes a global variable grow when a unit spawns. it worked great in singleplayer but when i tested it in multiplayer, it suddenly threw this error. Undefined variable in expression: participants So now i'm asking myself, what did i do wrong? init.sqf participants = 0; code when unit spawns participants = participants + 1; -
Hi, I'm trying to write a script but can't solve this puzzle/problem: 1. At the start of the script I create a variable e.x. _target 2. I pick a random alive player, the script is working with _target beautifully 3. when all players died and they respawn the variable _target is undefined I try to catch that information with something similar to this: if (isNil "_target") then { _target = selectRandom playableUnits; }; Yet the variable remains undefined and I can't figure out why. If anyone wants to look at complete code I can send them a link. cheers, Daishi
-
Config Error :Undefined base class
Abd El Rahman posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hello, I've designed model of his idea of waiting for a chair but after I finished the design and programming when I run the game with a Mod show me this message : Config : https://www.dropbox.com/s/9j0nrogus30a12x/config.cpp?dl=0 What is the solution ???? Regards, Abdul Rahman.