Adding Zeus To the server

Adding Zeus To the server

« posted: Oct 28, 2022, 01:24 PM »
I want zeus on my wasteland server. how can I do that ?

Re: Adding Zeus To the server

« Reply #1 posted: Oct 28, 2022, 08:56 PM »

Re: Adding Zeus To the server

« Reply #2 posted: Oct 29, 2022, 12:11 PM »
Try this: http://forums.a3wasteland.com/index.php?topic=559.0

Thank you.

I think there is an error in my script too. Zeus Y menu does not open when I press it.

addons < zeus
persistence < client < players

This is how I made the files.

I added the zeus in missions.sqm

Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Version: 1.2
// @file Name: init.sqf
// @file Author: [404] Deadbeat, [GoT] JoSchaap, AgentRev
// @file Description: The main init.

#include "debugFlag.hpp"

#ifdef A3W_DEBUG
#define DEBUG true
#else
#define DEBUG false
#endif

enableSaving [false, false];
A3W_sessionTimeStart = diag_tickTime;

_descExtPath = str missionConfigFile;
currMissionDir = compileFinal str (_descExtPath select [0, count _descExtPath - 15]);

X_Server = false;
X_Client = false;
X_JIP = false;

CHVD_allowNoGrass = false;
CHVD_allowTerrain = false; // terrain option has been disabled out from the menu due to terrible code, this variable has currently no effect
CHVD_maxView = 3500; // Set maximum view distance (default: 12000)
CHVD_maxObj = 3500; // Set maximimum object view distance (default: 12000)

// versionName = ""; // Set in STR_WL_WelcomeToWasteland in stringtable.xml

if (isServer) then { X_Server = true };
if (!isDedicated) then { X_Client = true };
if (isNull player) then { X_JIP = true };

A3W_scriptThreads = [];

[DEBUG] call compile preprocessFileLineNumbers "globalCompile.sqf";

//init Wasteland Core
[] execVM "config.sqf";
[] execVM "storeConfig.sqf"; // Separated as its now v large
[] execVM "briefing.sqf";

if (!isDedicated) then
{
[] spawn
{
if (hasInterface) then // Normal player
{
9999 cutText ["Welcome to A3Wasteland, please wait for your client to initialize", "BLACK", 0.01];

waitUntil {!isNull player};
[] execVM "addons\zeus\zeus-onlyallowed.sqf"; //Zeus  - kick unknown users
    if (str(side player) == "LOGIC") exitWith {}; //zeus needs no wasteland client init
player setVariable ["playerSpawning", true, true];
playerSpawning = true;

removeAllWeapons player;
client_initEH = player addEventHandler ["Respawn", { removeAllWeapons (_this select 0) }];

// Reset group & side
[player] joinSilent createGroup playerSide;

execVM "client\init.sqf";

if ((vehicleVarName player) select [0,17] == "BIS_fnc_objectVar") then { player setVehicleVarName "" }; // undo useless crap added by BIS
}
else // Headless
{
waitUntil {!isNull player};
if (getText (configFile >> "CfgVehicles" >> typeOf player >> "simulation") == "headlessclient") then
{
execVM "client\headless\init.sqf";
};
};
};
};

if (isServer) then
{
diag_log format ["############################# %1 #############################", missionName];
diag_log "WASTELAND SERVER - Initializing Server";
[] execVM "server\init.sqf";
};

if (hasInterface || isServer) then
{
//init 3rd Party Scripts
[] execVM "addons\parking\functions.sqf";
[] execVM "addons\storage\functions.sqf";
[] execVM "addons\vactions\functions.sqf";
[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
[] execVM "addons\proving_ground\init.sqf";
[] execVM "addons\JumpMF\init.sqf";
[] execVM "addons\outlw_magrepack\MagRepack_init.sqf";
[] execVM "addons\lsd_nvg\init.sqf";
[] execVM "addons\stickyCharges\init.sqf";
if (isNil "drn_DynamicWeather_MainThread") then { drn_DynamicWeather_MainThread = [] execVM "addons\scripts\DynamicWeatherEffects.sqf" };
};


//init Zeus Server Scripts - used to give Zeus Modules Permissions to objects
[] execVM "addons\zeus\zeus.sqf";
};

/* Removed Zeus Init - path of stuff changed
if (str(side player) == "LOGIC") then
{
//init for Zeus to Allow A3wasteland Admin Menü, Player Menu, (n ...
[] execVM "addons\zeus\zeus-init.sqf";
};

// Remove line drawings from map
(createTrigger ["EmptyDetector", [0,0,0], false]) setTriggerStatements
[
"!triggerActivated thisTrigger",
"thisTrigger setTriggerTimeout [30,30,30,false]",
"{if (markerShape _x == 'POLYLINE') then {deleteMarker _x}} forEach allMapMarkers"
];