Jump to content

IT07

Recommended Posts

hmm now kick script resctriction #41 :(

 

if (!dialog and isNull(findDisplay 297)) then

{

createDialog "SC_sMenu";

disableSerialization;

_dsp = 297;

[_dsp, 2"

 

Are you sure you have implemented the custom BE filter additions I have posted on GitHub?

Link to comment
Share on other sites

The kick message seemed to be caused clearly by the createDialog command....

Try to use this scripts.txt:

7 "BIS_fnc_" !"setTaskLocal_customData" !"initDisplay" !"selectRandom" !"getCfgSubClasses" !"animalBehaviour" !"guiEffectTiles_coef" !"GUImessage" !"guiEffectTiles" !"param" !"setIDCStreamFriendly" !"overviewauthor" !"diagAARrecord" !"diagKey" !"feedbackMain" !"missionHandlers" !"getServerVariable" !"missionFlow" !"initParams" !"initRespawn" !"missionTasksLocal" !"missionConversationsLocal" !"missionCon" !"preload" !"logFormat" !"recompile" !"moduleInit" !"feedback_allowPP" !"feedback_allowDeathScreen" !"feedbackInit" !"initMultiplayer" !"MP" !"displayMission" !"feedback_fatiguePP" !"respawnBase" !"dirTo" !"secondsToString" !"guiMessage_status" !"selectRespawnTemplate" !"guiMessage_defaultPositions" !"startLoadingScreen_ids" !"damageChanged" !"incapacitatedEffect" !"invRemove" !"relpos" !"inString" !"findSafePos" !"isPosBlacklisted" !"timeToString" !"distance2D" !"effectKilled" !"dynamictext" !"inAngleSector" !="_this call (uinamespace getvariable 'BIS_fnc_effectFired');"
7 "BIS_fnc_dynamictext" !", 0, 1, 5, 2, 0, 1] spawn bis_fnc_dynamictext;" !", 0, 0.4, 5, 2, 0, 2] spawn bis_fnc_dynamictext;" !", 0, 1, 6, 2, 0, 1] spawn bis_fnc_dynamictext;" !"snil '_fnc_scriptName') then {_fnc_scriptName}"
7 forceRespawn
7 setFriend
7 setAmmo
7 RscDebugConsole_watch
7 enableFatigue
7 setUnitRecoilCoefficient
7 setWeaponReloadingTime
7 allMissionObjects
7 callExtension
7 showCommandingMenu
7 moveIn !="\"A3\functions_f\Misc\fn_moveIn.sqf\"" !="\"A3\functions_f\arrays\fn_removeIndex.sqf\"" !="player moveInAny _vehicle;\nEPOCH_antiWallCount = EPOCH_antiWallCount + 1;" !="[\"I_UAV_AI\", position _unit, [], 0, \"CAN_COLLIDE\"];\n_driver moveInAny _unit;" !="_driver moveInAny Epoch_mission_uav;" !="axeVIP moveInDriver vehicle axeVIP;" !="axeVIP moveInCargo vehicle axeVIP; !="_driver moveInDriver _axeCopter;" !="_unit moveInGunner _axeCopter;" !="axeVIP moveInDriver vehicle axeVIP;" !="axeVIP moveInCargo vehicle axeVIP;"
7 attachTo !="EP_light attachTo [player];" !=_bomb attachTo [_unit, [0,0,0],\"Pelvis\];" !="_dogHolder attachTo [_dog, [-0.2,1.2,0.7]];" !="EPOCH_target attachTo[player];" !="_sapperSmoke attachTo [_sapper,[0,0,-0.4]];"" !="_cage attachTo [_cage2,[0,1.3,0]];"
7 enableCollisionWith
7 hideObject !="_dogHolder hideobject true;" !="_dogHolder hideobject false;"
7 setvelocity !="_bolt setPosATL _pos;\n_bolt setVelocity [0, 0, -10];" !="EPOCH_target setvelocitytransformation" !="_currentTarget setVelocity [0,0,-0.01];" !="_head setVelocity [\n(sin _dir * _speed), \n(cos _dir * _speed)" !="_vel = velocity this; _dir = getDir player; this setVelocity[(_vel select 0)+(sin _dir * 2),(_vel select 1)+(cos _dir * 2),(_vel select 2)];" !="_head setVelocity [random 2,random 2,10];"
7 assignAs !="assignAsCargo" !="_unit assignAsGunner _axeCopter;" !="_driver assignAsDriver _axeCopter;" !="axeVIP assignAsDriver vehicle axeVIP;"
7 assignAsCargo !="_x assignAsCargo axeGeneralsBoat;" !="axeVIP assignAsCargo vehicle player;" !="axeVIP assignAsCargo vehicle axeVIP;"
7 playableunits !="getDir _x, name _x];};}forEach playableUnits;};if" !"{getplayeruid _x == _ownerVar} count playableunits" !="lbSetData[21500, _index, netId _x];\n} forEach(playableUnits - [player]);"
7 allUnits !="allUnits-playableUnits;};if" !="{_x allowFleeing 0} forEach allUnits;" !="EPOCH_ESPMAP_TARGETS = allUnits + vehicles;"
7 allowDamage !="player allowDamage true;vehicle player allowDamage true;" !="player allowDamage false;{missionNamespace setVariable[format['EPOCH_player%1"
7 exec !="ScarCode\sRestartWarnings.sqf" !="ScarCode\sMenuInit.sqf" !="<execute expression=" !"RscDebugConsole_execute" !"execFSM" !"_executeStackedEventHandler" !"fn_execVM" !"fn_moduleExecute" !"fn_execRemote" !"fn_MPexec" !"bis_fnc_moduleExecute_activate" !"fn_tridentExecute" !"randomize_civ1" !"executed from" !"EPOCH_DebugGUI_exec" !"_handle = [_display] execVM _script;" !"execVM \"\A3\Structures_F\scripts" !="execVM \"\A3\Structures_F_EPC\Civ\PlayGround\scripts\Carousel_spin.sqf\"" !="reviveExecuteTemplates"
7 addWeaponCargo !="_acceptHolder addWeaponCargo [_wWeapon, 1] ;"
7 onMapSingleClick !="onMapSingleClick '';"
7 addMagazine !"addMagazineCargo" !="player addMagazine _craftItem;" !="player addMagazine \"jerrycanE_epoch\";" !="player addMagazine \"emptyjar_epoch\";" !="player addMagazine \"jerrycan_epoch\";" !="player addMagazine \"Hatchet_swing\";" !="player addMagazine [(_x select 0),(_x select 1)]" !="player addMagazine _x;"
7 addMagazineCargo !"_dogHolder addMagazineCargo [\"RabbitCarcass_EPOCH\", 1]" !"_dogHolder addMagazineCargo [\"Pelt_EPOCH\", 1]" !"_dogHolder addMagazineCargo [\"Venom_EPOCH\", 1]" !"_dogHolder addMagazineCargo [\"SnakeCarcass_EPOCH\", 1]" !"_dogHolder addMagazineCargo [\"ChickenCarcass_EPOCH\", 1]" !="_acceptHolder addMagazineCargo [_wAmmo, 1] ;"
7 addItem !="player addItem _craftItem;" !="player addItem _x;" !="_plyr addItemToVest _missionItem;" !="axeVIP addItemToVest _item;" !="_plyr  addItemToVest _missionItem;"
7 addBackPack
7 removeAllWeapons !="removeAllWeapons axeGeneral;"
7 removeAllItems
7 removeAllActions
7 setTerrainGrid !="setTerrainGrid 25;"
7 setViewDistance !"setViewDistance 1600"
7 createGroup !="_grp = createGroup RESISTANCE;" !="if (isserver) then {\n_group = creategroup sidelogic;" !="grpVIPGeneral = createGroup RESISTANCE;" !="_grp = createGroup side _plyr;" !="_grp = createGroup side player;" !="_grp = createGroup _side;" !="_grp = createGroup (side _plyr);"
7 createVehicleCrew
7 createVehicleLocal !"\"#particlesource\" createVehicleLocal" !"\"#lightpoint\" createVehicleLocal" !"\"BloodSplat\" createVehicleLocal" !"[\"lightning1_F\", \"lightning2_F\"] call BIS_fnc_selectRandom;\n_lighting = _class createVehicleLocal"
7 createUnit !="_unit = _grp createUnit[(_arrUnits select _i), _pos, [], 0, \"FORM\"];" !=_driver = _grp createUnit[\"I_UAV_AI\", position _unit, [], 0, \"CAN_COLLIDE\];" !="axeGeneral = grpVIPGeneral createUnit ["I_officer_F", axeGeneralPos, [], 1, "CAN_COLLIDE"];"
7 createAgent !="_unit = createAgent[_unitClass, _targetPos, [], 256, \"FORM\"];" !=_unit = createAgent [_unitClass, _targetPos, [], 120, \"FORM\];" !="_animal = createAgent[_randomAIClass, _animalPos, [], 5, \"NONE\"];" !=_unit = createAgent [\"Epoch_Cloak_F\", _pos, [], 0, \"CAN_COLLIDE\];" !="_unit = createAgent [\"Epoch_Sapper_F\", _targetPos, [], 180, \"FORM\"];" !=_sapper = createAgent ["Epoch_Sapper_F", getPos _cage2, [], 0, "FORM];"
7 createTeam
7 createDialog !="createDialog \"SC_sMenu\";" !="createDialog \"InteractBank\";" !="createdialog \"SelectGender\";" !="_handled = createdialog _dialog;" !="if (!dialog) then {createDialog 'Skaronator_AdminMenu'};" !="if !(createdialog \"InteractItem\") exitWith {};" !="createDialog \"TapOut\";" !="if !(createdialog \"Trade\") exitWith {};" !="_ok = createdialog \"Interact\";" !="_ok = createdialog \"TradeNPCMenu\";" !="createDialog \"Epoch_myGroup\";" !="createDialog (if ((Epoch_my_GroupUID == \"\") && (Epoch_my_Group isEqualTo [])) then {\"EPOCH_createGrp\"} else {\"Epoch_myGroup\"});" !="createDialog \"GroupRequests\";" !="_ok = createdialog \"MissionSelect\";"
7 deleteMarker
7 setMarker
7 createMarker
7 assignItem !="axeVIP assignItem _item;"
7 forceAddUniform
7 removeAllMPEventHandlers
7 setDamage !="_sapper setDamage 1;\n_sBomb setDamage 1;" !="_this setdamage 1;"
7 setDammage
7 displaySetEventHandler
7 ctrlSetEventHandler !"BIS_fnc_guiMessage_status"
7 addMPEventHandler
7 addEventHandler !"displayAddEventHandler" !"ctrlAddEventHandler" !"FiredNear" !"EpeContactStart" !"InventoryClosed" !"GetOut" !"InventoryOpened" !"local" !"Respawn" !"Put" !"Take" !"Fired" !"Killed" !" [\"PostReset\",{BIS_EnginePPReset = true;} ];" !"_logic addeventhandler [\n\"local\""
7 displayAddEventHandler !="_sMenuF5 = (findDisplay 297) displayAddEventHandler [\"KeyDown\", \"if(_this select 1 == 0x3F) then { ['STATS'] call SC_fnc_f5Reload };false;\"];" !=_sMenuEH = (findDisplay 46) displayAddEventHandler [\"KeyDown\", \"if(_this select 1 == \"+str (_settings select 0)+\" and !dialog) then { \"+str _settings+\" call SC_fnc_sMenuOpen };false;\];" !"[_display] call _fnc_animate;" !"tVersion select 4) == \"Development\") then" !"_display displayaddeventhandler\n[\n\"mousemoving\"," !"(findDisplay 46) displayAddEventHandler [\"KeyDown\",\"true\"];" !"(findDisplay 46) displayAddEventHandler [\"KeyDown\",\"_this call EPOCH_KeyDown\"];" !"_display displayaddeventhandler [\"unload\",\"uinamespace setvariable ['BIS_fnc_guiMess" !="findDisplay -1337 displayAddEventHandler ['Unload'"
7 ctrlAddEventHandler !"rCfg >> \"refreshDelay\");" !" [\n\"draw\"," !" [\"buttonclick\"," !="(uiNamespace getVariable 'ESP_map') ctrlAddEventHandler['Draw', '_esp_targets = EPOCH_ESPMAP_TARGETS;"
7 removeAllEventHandlers !="ctrlRemoveAllEventHandlers" !="_vehicle removeAllEventHandlers \"GetOut\";" !="_sapper removeAllEventHandlers \"Hit\";\n_sapper removeAllEventHandlers \"FiredNear\";"
7 removeAllMissionEventHandlers
7 ctrlRemoveAllEventHandlers !="(uiNamespace getVariable 'ESP_map') ctrlRemoveAllEventHandlers 'Draw';"
7 removeEventHandler !="displayRemoveEventHandler" !="player removeEventHandler ['Fired', 0];" !"_currentTarget removeEventHandler[\"EpeContactStart\", _onContactEH]" !" [_adminVar,objnull];\npublicvariable _adminVar;\nplayer removeeventhandler [\"respawn\",_respawn];" !="_plyr removeEventHandler [\"FiredNear\", _smokeEH];"
7 displayRemoveEventHandler !="(findDisplay 297) displayRemoveEventHandler [\"KeyDown\", _f5EventHandler];" !"BIS_fnc_guiMessage_status"
7 switchCamera
7 remoteControl !"fn_moduleRemoteControl.sqf"
7 drawIcon3D !="drawIcon3D[\"\x\addons\a3_epoch_code\Data\Member.paa\",_color,_pos,1,1,0,_text,1,0.025,\"PuristaMedium\"];\n}forEach EPOCH_ESP_TARGETS;" !"drawIcon3D[format[\"\x\addons\a3_epoch_code\Data\UI\loading_bar_%1.paa\",_stability],_color,(getPosATL EPOCH_stabilityTarget),5,5,0,\"\",1,0.05,\"PuristaMedium\"];" !"drawIcon3D[format[\"\x\addons\a3_epoch_code\Data\UI\loading_bar_%1.paa\",_num],_color,_pos,4,4,0,\"\",1,0.05,\"PuristaMedium\"];" !"EPOCH_drawIcon3dStability" !"EPOCH_drawIcon3d" !"if (_condition) then {\ndrawIcon3D [_icon, _color, _position, _sizeX, _sizeY, _angle, _text," !="drawIcon3D [\"\A3\UI_F_MP_Mark\Data\Tasks\Misc\background.paa\""
7 drawLine3D !"{\nfor [{_i = 1}, {_i < count _x}, {_i = _i + 1}] do {\ndrawLine3D [_x select (_i - 1), _x select _i, ((BIS_tracedShooter getVari"
7 ctrlCreate
7 ctrlDelete
7 ctrlClassName
7 ctrlModel
7 ctrlModelDirection
7 ctrlModelSide
7 ctrlModelUp
7 ctrlSetDirection
7 ctrlSetModel
7 deleteVehicleCrew !="[\"A3\functions_f\MP\fn_deleteVehicleCrew.sqf\",\".sqf\",0,false,false,false,\"A3\",\"MP\",\"deleteVehicleCrew\"]"
7 loadFile
7 selectPlayer !="selectPlayer _playerObject;"
7 setGroupIconsVisible
7 setGroupIconsSelectable
7 setGroupIconParams
7 addGroupIcon
7 EPOCH_whitelist
7 EPOCH_defaultVars_SEPXVar
7 EPOCH_group_upgrade_lvl_SVar
7 EPOCH_GROUP_Delete_PVS !="EPOCH_GROUP_Delete_PVS = [player,Epoch_personalToken];"
7 Dayz_GUI_R
7 dayz_originalPlayer
7 zZombie_Base
7 infiSTAR !="<a href='http://infistar.de'>infiSTAR</a>"
7 GodMode
7 shazbot
7 _typeofHookMonky
7 _allocMemory
7 _d3d9multipliervariable
7 _runASM
7 _addGFX_hookD3D9eventhandler
7 _BEhookBYPASSBOB
7 JJMMEE_INIT_MENU

Link to comment
Share on other sites

Well that is weird..... I sent you my scripts.txt which works on my test server...... It is one of the reasons why I do not like BE filters anyway but I am sorry to say that I am out of solutions at the moment...

I am going to recheck if the scripts.txt I sent you does indeed work on my server and then report back.

Link to comment
Share on other sites

Hey IT07

 

I have this script implemented and it seems to be working fine for admins, but for players it works for 5 minutes after they log in and then just disappears and wont open again, it just flashes briefly and closes all the time. 

 

I use infistar, any ideas?

Link to comment
Share on other sites

InfiStar block your ServerMenu :/ can you the me the '_allowedDialogs pushBack xxxx' and the bypass for the '_cMenu'

 

i have add this:

 

_cMenu = [...........,/*Server Menu*/'SCALAR','SC_sMenuEH'];

and

_allowedDialogs pushBack 1008;

 

but didn't work :/

 

(i search this in your code)

Link to comment
Share on other sites

sorry I write back now, unfortunately, does not work for me no idea why
 
/*  CommandingMenu Check */ _CMC = true;	/* true or false */
/* _cMenu: if '_CMC = true;' then this array holds the ALLOWED Commanding Menus */
_cMenu =
[
	'',
	'RscMainMenu','RscMoveHigh','#WATCH','#WATCH0','RscWatchDir','RscWatchMoveDir','#GETIN','#RscStatus','RscCallSupport','#ACTION',
	'RscCombatMode','RscFormations','RscTeam','RscSelectTeam','RscReply','#User:BIS_Menu_GroupCommunication','#CUSTOM_RADIO',
	'RscRadio','RscGroupRootMenu','RscMenuReply','RscMenuStatus','#User:BIS_fnc_addCommMenuItem_menu','RscMenuMove','RscMenuFormations'
];


/* Use allowed Dialogs ? */ _UDW = true;	/* true or false */
/* _allowedDialogs: Insert IDDs here to prevent them from being closed! Default ArmA3 and Altis-Life idds should be in already. */
_allowedDialogs = [-1,602];
/*	5001, -3: Zupas New Hud (Hud-Builder) - https://github.com/DevZupa/ZHB-A3 */
_allowedDialogs pushBack 5001;
_allowedDialogs pushBack -3;
/*	37400: Custom Menu from AltisLife used on some Epoch Servers */
_allowedDialogs pushBack 37400;





for me it is located in a separate folder

C: \ Users \ XXXX \ Desktop \ epoch.Altis \ epoch.Altis \ Scripts \ ScarCode

 

 

Link to comment
Share on other sites

Hello,

 

I installed the new revamped script and it's not loading for me.

 

No error's in the server  RPT file, but I do see error's in the client RPT file.

18:41:43   Error Undefined variable in expression: _value
18:41:43 File mpmissions\__CUR_MP.Bornholm\ScarCode\functions_SC\sMenu_fnc_getCfgSetting.sqf, line 25
18:41:43 Error in expression <{_value = nil};
};
_result = _result + [_value];
} forEach (_this select 0);

if>
18:41:43   Error position: <_value];
} forEach (_this select 0);

if>

Here's what my config looks like:

 

/*

Author: IT07
 
Description:
Configuration and resource file for server menu. Should be used to adjust the content of menu.
*/
 
class SC_sMenuConfig
{
class menuConfig
{
/////////////////////////////////////////////////////////
///////  General config for the menu  ///////////////////
///////  Please adjust these below to your needs  ///////
/////////////////////////////////////////////////////////
keyToOpenMenu = 0x43; // Change to false to disable. Works with useScrollAction. DEFAULT: 0x43 = F9 key. http://infistar.de'>infiSTAR</a>";// Put the name of your antihack(s) here
serverManagedBy = "Canuck Brian"; // Should be clear enough, right?
serverHostLogo = ""; // use "" if you do not want to have this
serverSquadLogo = ""; // use "" if you do not want to have this
//serverHostLogo = "ScarCode\menuLogos\hosting\exampleHosted.jpg"; // use "" if you do not want to have this
//serverSquadLogo = "ScarCode\menuLogos\exampleManaged.jpg"; // use "" if you do not want to have this
/////////////////////////////////////////////////////////
///////  End of general config  /////////////////////////
/////////////////////////////////////////////////////////
}
class configContent
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////  Config for the content of each menu category  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////  == Instructions for editing the content ==  /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////  step 1: Adjust the amount of class items (below) to the amount of categories you have set in _menuCategories  ///////////////////////////////////////////////////////////
///////  step 2: Configure contentArray. Please look at the examples to see how to do it. contentArray is used to divide the text into pieces for easier configuration  //////////
///////  step 2b: it does not matter how you name the items in contentArray. They just have to match the actual item names that are defined in contentArray[]  ///////////////////
///////  step 3: go nuts! :)  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////  NOTE 1: Do not put the title in contentArray because the title is already put into the title bar automatically  /////////////////////////////////////////////////////////
///////  NOTE 2: Less items in contentArray[] is faster  /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////  NOTE 3: <br /> is a linebreak, <img image'path\to\Image.jpg' /> is an image and <a href='url'>this is a link</a>  ///////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
class 1 // First in _menuCategories
  {
title = "GENERAL INFO";
contentArray[] = {"txtOne","txtTwo","txtThree","txtFour","txtFive"};
txtOne = "<t size='1.5'>TARFUGAMING OVERPOCH</t> <br /><br />";
txtTwo = "<t size='1.5'>SERVER FEATURES</t> <br /> - Roaming AI <br /> - Missions <br /> - Enhanced Loot <br /> - More Vehicles <br /> - Armed Offroads <br /> - Attachable Explosives <br /> - Status Bar <br /><br />";
txtThree = "<t size='1.5'>WEBSITE</t> <br /> - None yet, coming soon...<br /><br />";
txtFour = "<t size='1.5'>VOICE SERVER</t> <br />No public TS3 server yet, stay tuned.<br /><br />";
txtFive = "<t size='1.5'>SERVER ADMINS</t> <br /> - Canuck Brian [owner/operator] <br /> - Scoots [moderator]";
};
class 2 // Second in _menuCategories
{
title = "THE RULES";
contentArray[] = {"txtOne","txtTwo","txtThree","txtFour","txtFive","txtSix","txtSeven"};
txtOne = "<t size='1.5'>RULE #1</t> <br /> - No racism/profanity/flaming <br />  <t size='0.75' color='#c2c2c2'>Breaking of this rule will result in a (temporary/permanent) ban.</t> <br /><br />";
txtTwo = "<t size='1.5'>RULE #2</t> <br /> - No voice over side/quartz radio channel <br /> <t size='0.75' color='#c2c2c2'>Breaking of this rule will result in a kick or (temporary/permanent) ban.</t> <br /><br />";
txtThree = "<t size='1.5'>RULE #3</t> <br /> - No building within 1500m of main traders <br /> <t size='0.75' color='#c2c2c2'>Breaking of this rule will result in a (temporary/permanent) ban.</t> <br /><br />";
txtFour = "<t size='1.5'>RULE #4</t> <br /> - No building in military structures <br /> <t size='0.75' color='#c2c2c2'>Breaking of this rule will result in a kick / (temporary/permanent) ban.</t> <br /><br />";
txtFive = "<t size='1.5'>RULE #5</t> <br /> - No disrespect towards other player(s) and or Admins <br /> <t size='0.75' color='#c2c2c2'>Breaking of this rule will result in a (temporary/permanent) ban.</t> <br /><br />";
txtSix = "<t size='1.5'>RULE #6</t> <br /> - No cheating/glitching or bug abuse/exploiting <br /> <t size='0.75' color='#c2c2c2'>Breaking of this rule will result in a (temporary/permanent) ban.</t> <br /><br />";
txtSeven = "<t size='1.5'>RULE #7</t> <br /> - No ramming / roadkill in main traders <br /> <t size='0.75' color='#c2c2c2'>This will be considered very stupid.</t> <br /><br />";
};
class 3 // Third in _menuCategories
{
title = "SUPPORT SERVER";
contentArray[] = {"txtOne","txtTwo"};
txtOne = "<t size='1.5'>PLEASE DONATE</t> <br />If you play on and enjoy this server, please consider a donation to keep the high server costs down. <br /><br />";
txtTwo = "<a href='http://scarcode.com'>http://scarcode.com</a><br /> - A3EAI w/headless client for Roaming AI <br /> - WAI 1.0.0 Mission System <br /> - Auto Earplugs <br /> - Place explosives on objects / vehicles <br /> - Kill Feed Messages <br /> - Status bar <br /> - Admin Hunt <br /> - Custom Loot Spawner <br /> - Restart Warnings";
}
};
};
 
////////////////////////////////////////////////////////
/////// Do not change anything below this line  ////////
////////////////////////////////////////////////////////
#define GUI_GRID_X (0)
#define GUI_GRID_Y (0)
#define GUI_GRID_W (0.025)
#define GUI_GRID_H (0.04)
#define GUI_GRID_WAbs (1)
#define GUI_GRID_HAbs (1)
#define THEMECOLOR { 0.82, 0.231, 0.231, 0.8 }
 
class SC_sMenu
{
idd = 297;
//onLoad = "";
movingEnable = 1;
class controls
{
////////////////////////////////////////////////////////
// GUI EDITOR OUTPUT START (by IT07, v1.063, #Sahycu)
////////////////////////////////////////////////////////
 
class sMenuTitle: RscText
{
colorBackground[] = THEMECOLOR;
 
idc = 1000;
text = "SERVER INFO MENU by IT07"; //--- ToDo: Localize;
x = 0 * GUI_GRID_W + GUI_GRID_X;
y = 0 * GUI_GRID_H + GUI_GRID_Y;
w = 19 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorText[] = {1,1,1,1};
};
class sMenuContentSelector: RscCombo
{
onLBSelChanged = "[297, 1100, _this] call SC_fnc_getContent";
 
idc = 2100;
x = 0 * GUI_GRID_W + GUI_GRID_X;
y = 1 * GUI_GRID_H + GUI_GRID_Y;
w = 14.5 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
class sMenuContentTitle: RscText
{
colorBackground[] = THEMECOLOR;
 
idc = 1008;
x = 0 * GUI_GRID_W + GUI_GRID_X;
y = 2.5 * GUI_GRID_H + GUI_GRID_Y;
w = 35 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorText[] = {1,1,1,1};
};
class sMenuTitleHostedBy: RscText
{
idc = 1004;
x = 35.5 * GUI_GRID_W + GUI_GRID_X;
y = 0 * GUI_GRID_H + GUI_GRID_Y;
w = 10 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,0};
};
class sMenuLogoHostedBy: RscPicture
{
style = 2096;
 
idc = 1201;
x = 35.5 * GUI_GRID_W + GUI_GRID_X;
y = 1 * GUI_GRID_H + GUI_GRID_Y;
w = 10 * GUI_GRID_W;
h = 2.6 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
class sMenuSquadLogo: RscPicture
{
style = 2096;
 
idc = 1200;
x = -4 * GUI_GRID_W + GUI_GRID_X;
y = 0.5 * GUI_GRID_H + GUI_GRID_Y;
w = 3 * GUI_GRID_W;
h = 2.5 * GUI_GRID_H;
};
class sMenuTitleServerInfo: RscText
{
colorBackground[] = THEMECOLOR;
 
idc = 1003;
text = "SERVER INFO"; //--- ToDo: Localize;
x = 35.5 * GUI_GRID_W + GUI_GRID_X;
y = 8 * GUI_GRID_H + GUI_GRID_Y;
w = 10 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorText[] = {1,1,1,1};
};
class sMenuTitleServerStats: RscText
{
colorBackground[] = THEMECOLOR;
 
idc = 1005;
text = "SERVER STATS"; //--- ToDo: Localize;
x = 35.5 * GUI_GRID_W + GUI_GRID_X;
y = 4 * GUI_GRID_H + GUI_GRID_Y;
w = 10 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorText[] = {1,1,1,1};
};
class sMenuTxtServerStats: RscText
{
shadow = 0;
style = 528;
sizeEx = 0.03;
 
idc = 1006;
x = 35.5 * GUI_GRID_W + GUI_GRID_X;
y = 5 * GUI_GRID_H + GUI_GRID_Y;
w = 10 * GUI_GRID_W;
h = 1.5 * GUI_GRID_H;
colorText[] = {1,1,1,0.8};
colorBackground[] = {0,0,0,0.8};
};
class sMenuRefreshStats: RscButton
{
action = ["STATS","Stats refreshed! (Manual)"] call SC_fnc_f5Reload;
 
idc = 1603;
text = "REFRESH (F5)"; //--- ToDo: Localize;
x = 35.5 * GUI_GRID_W + GUI_GRID_X;
y = 6.6 * GUI_GRID_H + GUI_GRID_Y;
w = 6.5 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
tooltip = "Click to refresh server stats or press F5"; //--- ToDo: Localize;
};
class sMenuContentBg: IGUIBack
{
idc = 2200;
x = 0 * GUI_GRID_W + GUI_GRID_X;
y = 3.5 * GUI_GRID_H + GUI_GRID_Y;
w = 35 * GUI_GRID_W;
h = 19.8 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
class contentGroup: RscControlsGroup
{
idc = 2300;
x = 0 * GUI_GRID_W + GUI_GRID_X;
y = 3.5 * GUI_GRID_H + GUI_GRID_Y;
w = 35 * GUI_GRID_W;
h = 19.6 * GUI_GRID_H;
class controls
{
class sMenuContentTxt: RscStructuredText
{
idc = 1100;
x = 0.5 * GUI_GRID_W;
y = 0.5 * GUI_GRID_H;
w = 27 * GUI_GRID_W;
h = 0.5 * GUI_GRID_H;
colorBackground[] = {0,0,0,0};
};
};
};
class sMenuGroupServerInfo: RscControlsGroup
{
idc = 2301;
x = 35.5 * GUI_GRID_W + GUI_GRID_X;
y = 9 * GUI_GRID_H + GUI_GRID_Y;
w = 11 * GUI_GRID_W;
h = 16 * GUI_GRID_H;
class controls
{
class sMenuStrTxtServerInfo: RscStructuredText
{
idc = 1101;
x = 0 * GUI_GRID_W;
y = 0 * GUI_GRID_H;
w = 10 * GUI_GRID_W;
h = 16 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
};
};
class sMenuBgCopy: IGUIBack
{
idc = 2201;
x = 4 * GUI_GRID_W + GUI_GRID_X;
y = 23.5 * GUI_GRID_H + GUI_GRID_Y;
w = 31 * GUI_GRID_W;
h = 1.5 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.5};
};
class sMenuCopyUID: RscButton
{
action = [297, 1400, format["Name: %1 and UID: %2", name player, getPlayerUID player], 0] call SC_fnc_handleCtrlText;
 
idc = 1601;
text = "COPY PLAYER NAME & UID"; //--- ToDo: Localize;
x = 11.5 * GUI_GRID_W + GUI_GRID_X;
y = 23.8 * GUI_GRID_H + GUI_GRID_Y;
w = 12 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
class sMenuClose: RscButton
{
action = closeDialog 0;
 
idc = 1600;
text = "CLOSE"; //--- ToDo: Localize;
x = 0 * GUI_GRID_W + GUI_GRID_X;
y = 23.5 * GUI_GRID_H + GUI_GRID_Y;
w = 3.5 * GUI_GRID_W;
h = 1.5 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
class sMenuButtonCopyIPandPort: RscButton
{
action = [["serverIPandPort"],[1400,"IP:PORT = "]] call SC_fnc_getCfgSetting;
 
idc = 1602;
text = "COPY IP:PORT"; //--- ToDo: Localize;
x = 4.5 * GUI_GRID_W + GUI_GRID_X;
y = 23.8 * GUI_GRID_H + GUI_GRID_Y;
w = 6.5 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
class sMenuOutputBg: IGUIBack
{
idc = 2202;
x = 24 * GUI_GRID_W + GUI_GRID_X;
y = 23.5 * GUI_GRID_H + GUI_GRID_Y;
w = 11 * GUI_GRID_W;
h = 1.5 * GUI_GRID_H;
colorBackground[] = {0,0,0,0.8};
};
class sMenuOutputBar: RscEdit
{
idc = 1400;
x = 24.5 * GUI_GRID_W + GUI_GRID_X;
y = 23.8 * GUI_GRID_H + GUI_GRID_Y;
w = 10 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
colorText[] = {1,1,1,0.8};
tooltip = "Ctrl+C to copy, Ctrl+V to paste"; //--- ToDo: Localize;
};
////////////////////////////////////////////////////////
// GUI EDITOR OUTPUT END
////////////////////////////////////////////////////////
 
};
};

Link to comment
Share on other sites

I do not have a sample of the infiSTAR menu so I am not sure what fixes the problem.

But try this if you have problems using infiSTAR:

/*  CommandingMenu Check */ _CMC = true;	/* true or false */
/* _cMenu: if '_CMC = true;' then this array holds the ALLOWED Commanding Menus */
_cMenu =
[
	'',
	'RscMainMenu','RscMoveHigh','#WATCH','#WATCH0','RscWatchDir','RscWatchMoveDir','#GETIN','#RscStatus','RscCallSupport','#ACTION',
	'RscCombatMode','RscFormations','RscTeam','RscSelectTeam','RscReply','#User:BIS_Menu_GroupCommunication','#CUSTOM_RADIO',
	'RscRadio','RscGroupRootMenu','RscMenuReply','RscMenuStatus','#User:BIS_fnc_addCommMenuItem_menu','RscMenuMove','RscMenuFormations'
];


/* Use allowed Dialogs ? */ _UDW = true;	/* true or false */
/* _allowedDialogs: Insert IDDs here to prevent them from being closed! Default ArmA3 and Altis-Life idds should be in already. */
_allowedDialogs = [-1,602];
/*	5001, -3: Zupas New Hud (Hud-Builder) - https://github.com/DevZupa/ZHB-A3 */
_allowedDialogs pushBack 5001;
_allowedDialogs pushBack -3;
/*	37400: Custom Menu from AltisLife used on some Epoch Servers */
_allowedDialogs pushBack 37400;
Link to comment
Share on other sites

 

Hello,

 

I installed the new revamped script and it's not loading for me.

 

No error's in the server  RPT file, but I do see error's in the client RPT file.

18:41:43   Error Undefined variable in expression: _value
18:41:43 File mpmissions\__CUR_MP.Bornholm\ScarCode\functions_SC\sMenu_fnc_getCfgSetting.sqf, line 25
18:41:43 Error in expression <{_value = nil};
};
_result = _result + [_value];
} forEach (_this select 0);

if>
18:41:43   Error position: <_value];
} forEach (_this select 0);

if>

 

Hi Mimic, the error means that there was an issue found in one of the settings.

I looked at your config and found a funny "mistake" in the serverAH line.

Make it look like this:

serverEH = "<a href='http://infistar.de'>infiSTAR.de</a>";
Link to comment
Share on other sites

Hey IT07,

 

I fixed that previous error. In the description.ext I had the #include inside a { } for RscTitles by accident. Once I moved it outside that it worked fine.

 

I'm having a new problem now. infiStar is blocking the script. When a player firsts connects to the server they're able to pull up the interface, however after infiStar loads on the client, the scrollwheel menu option, and interface are no longer available.

 

I have changed the settings as quoted by you above and it's not made any difference. No idea what to do now. As an Admin in infiStar it works fine, just not for regular players.

Link to comment
Share on other sites

Think I figured it out... at least it's working now.

 

I changed the following options to "false" in infiStar's run.sqf file:

_OAP = false;
_OAO = false;
_UDW = false;

Hope this helps someone in the future.

 

Thanks for the awesome script, really appreciate all your hard work, donation incoming!

Link to comment
Share on other sites

Hi Stench thank you for your kind words!

About the theme color: it can be changed but it is kind of hard to explain.

In a future version I will make it possible to customize the menu to your own likings.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...