Jump to content
  • 0

Missionedit.sqf not loading in


johnucc1

Question

So i have the Maps folder in my dayz epoch (overpoch for me) PBO and edited the init/Serverfunctions.sqf

 

 

here is my serverfunctions.sqf

server_logUnlockLockEvent = {
	private["_player", "_obj", "_objectID", "_objectUID", "_statusText", "_status"];
	_player = _this select 0;
	_obj = _this select 1;
	_status = _this select 2;
	if (!isNull(_obj)) then {
		_objectID = _obj getVariable["ObjectID", "0"];
		_objectUID = _obj getVariable["ObjectUID", "0"];
		_statusText = "UNLOCKED";
		if (_status) then {
			[_obj, "gear"] call server_updateObject;
			_statusText = "LOCKED";
		};
		diag_log format["SAFE %5: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player), _statusText];
	};
};
execVM "\z\addons\dayz_server\Maps\mapedit.sqf";

As you can see the execVM map edit doesent seem to work..

 

the directory of my overpoch PBO is  

Downloads\DayZ_Epoch_Server_1.0.5.1_Release\DayZ_Epoch_Server_1.0.5.1_Release (1)\@DayZ_Overpoch_Server\addons\dayz_server

(this is for my private server ATM which i boot from my home PC just for testing)

 

my RPT file doesent explain as to why the server isnt pulling it (no mention of the PBO or anything)

 

Mission file im trying to insert http://pastebin.com/vH77UY7E

 

Edit- Uploaded my PBO  https://www.dropbox.com/s/dab985fecpl28hf/dayz_server.pbo

Edit number 2- Uploaded my INIT https://www.dropbox.com/s/jbtp9dvem0r3gvd/init.sqf

 

Current used scripts/mods= Overpoch, epoch admin tools

Link to comment
Share on other sites

Recommended Posts

  • 0

Try this in the serverfunctions.sqf

 

 

 

 

AFTER:

server_maintainArea =             compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_maintainArea.sqf";

ADD:

call compile preProcessFileLineNumbers "\z\addons\dayz_server\Maps\mapedit.sqf";
Link to comment
Share on other sites

  • 0

Krisi, when i put server_functions.sqf part in 

 

Code is here to show 

waituntil {!isnil "bis_fnc_init"};

BIS_MPF_remoteExecutionServer = {
	if ((_this select 1) select 2 == "JIPrequest") then {
		[nil,(_this select 1) select 0,"loc",rJIPEXEC,[any,any,"per","execVM","ca\Modules\Functions\init.sqf"]] call RE;
	};
};

BIS_Effects_Burn =				{};
server_playerLogin =			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerLogin.sqf";
server_playerSetup =			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerSetup.sqf";
server_onPlayerDisconnect = 	compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_onPlayerDisconnect.sqf";
server_updateObject =			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_updateObject.sqf";
server_playerDied =				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDied.sqf";
server_publishObj = 			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishObject.sqf";
server_deleteObj =				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_deleteObj.sqf";
server_swapObject =				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_swapObject.sqf"; 
server_publishVeh = 			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishVehicle.sqf";
server_publishVeh2 = 			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishVehicle2.sqf";
server_publishVeh3 = 			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_publishVehicle3.sqf";
server_tradeObj = 				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_tradeObject.sqf";
server_traders = 				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_traders.sqf";
server_playerSync =				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerSync.sqf";
server_spawnCrashSite  =    	compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnCrashSite.sqf";
server_spawnEvents =			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnEvent.sqf";
//server_weather =				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_weather.sqf";
fnc_plyrHit   =					compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fnc_plyrHit.sqf";
server_deaths = 				compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDeaths.sqf";
server_maintainArea = 			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_maintainArea.sqf";
call compile preProcessFileLineNumbers "\z\addons\dayz_server\Maps\mapedit.sqf";
/* PVS/PVC - Skaronator */
server_sendToClient =			compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_sendToClient.sqf";

//onPlayerConnected 			{[_uid,_name] call server_onPlayerConnect;};
onPlayerDisconnected 		{[_uid,_name] call server_onPlayerDisconnect;};

Server still doesen't load it in, and still no error messages.

Link to comment
Share on other sites

  • 0

Do you have the 'Maps' folder in the root of your dayz_server.pbo ?

 

 

Here is a snippet from my put server_functions.sqf:

//server_weather =             compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_weather.sqf";
fnc_plyrHit   =                compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fnc_plyrHit.sqf";
server_deaths =                compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDeaths.sqf";
server_maintainArea =          compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_maintainArea.sqf";
call compile preProcessFileLineNumbers "\z\addons\dayz_server\maps\balota.sqf";
call compile preProcessFileLineNumbers "\z\addons\dayz_server\maps\neaf.sqf";
Link to comment
Share on other sites

  • 0

call it from inside your mission init.sqf, right above the server_monitor in the "if (isServer) then {" section

 

if (isServer) then {

 

call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\dynamic_vehicle.sqf";
_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\mission.sqf";

_nil = [] execVM "\z\addons\dayz_server\xxxx\xxxxx.sqf";                                                   <------------------ your line here

_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";

 

};

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...