Jump to content
  • 0

[TUTORIAL] How to install an overpoch server & custom loot tables


Matijs

Question

Recommended Posts

  • 0
  On 7/4/2014 at 10:23 PM, orionjade said:

I don't have a tutorial for it, but if you need help setting it up on Vilayer, I can help you. I have Vilayer and put overpoch on it fairly easy.

Dude if you could help me out I'd very much appreciate it. I think I am so close to having it done but just can't figure out where I am going wrong. Would love to talk to you via TS if you have it.

Link to comment
Share on other sites

  • 0
  On 7/4/2014 at 10:34 PM, Nemaconz said:

Dude if you could help me out I'd very much appreciate it. I think I am so close to having it done but just can't figure out where I am going wrong. Would love to talk to you via TS if you have it.

Nevermind, I got it figured out, I got Overpoch running like a champ on my test server now.

Link to comment
Share on other sites

  • 0
  On 7/4/2014 at 10:23 PM, orionjade said:

I don't have a tutorial for it, but if you need help setting it up on Vilayer, I can help you. I have Vilayer and put overpoch on it fairly easy.

were you able to replace the overwatch dayz_code.pbo with epoch dayz_code.pbo ???????????  with vilayer

it wont allow me to replace the file and I think thats why  overwatch loot is not saved after logging off

Link to comment
Share on other sites

  • 0
  On 7/5/2014 at 7:15 PM, calamity said:

anyone know why when I log off game my overwatch weapons are removed  when i log back in

i had this problem and it was either due to @DayZOverwatch being spelled wrong in my Startup BAT, and not adding the overwatch addons after the jetski entry in the epoch mission files mission.sqm

Link to comment
Share on other sites

  • 0
  On 7/5/2014 at 8:55 PM, calamity said:

were you able to replace the overwatch dayz_code.pbo with epoch dayz_code.pbo ???????????  with vilayer

it wont allow me to replace the file and I think thats why  overwatch loot is not saved after logging off

 

heres what i do with the Vilayer File Manager, go into @DayZ_Epoch \ addons\ folder. add both dayz_code.pbo and its epoch1051 bisign to a zip file. download this zip to my computer.

then go into @DayZOverwatch\addons\ renamde dayz_code.pbo and its overwatch bisign file to add backup to the name. add them to a zip then delete them but keep the zip there for backup reasons (why not), now upload the zip from the epoch folder, and unpack it. done.

 

you can then download any zips that you made that you wanna keep around just for backup purposes, then delete the zips from any folders they are in.

Link to comment
Share on other sites

  • 0

thank you that worked to put the eopch dayz_code.pb and its dayz_code.pbo.dayz_epoch1051.bisign into the overwatch dir

I used the FTP a couple months ago to do this but didnt work anymore.

I still dont have my overwatch weapon after logging ;(

Link to comment
Share on other sites

  • 0

Anyone able to get Zabn take clothes working with all of the Overwatch skins like stalker etc. ???

Any help would be appreciated.

I also apologize if someone already posted something about it, but i could not find a fix!

 

Also is there a reason why admins cant get stunned by the taser with infeStar?

Link to comment
Share on other sites

  • 0

So I've been testing and testing, trying to get them to work, even PM'd VB Awol about it, but he hasn't replied, I simply can't get any of the zombies to actually spawn with any of the Overwatch ammo, so I'm going to remove them from the zombie spawns as it appears to still be taking up a spawn spot.

Link to comment
Share on other sites

  • 0

Ok i have this ErrorMessage: File mpmissions\dayz_epoch_11.Chernarus\customloot\CfgBuildingPos.hpp, line 0: .Church: Undefined base class 'Residential'

However, ive done everything. Used the hotfix for 1.0.5.1

replaced the dayz_code.pbo and dayz_code bisign and overwrited them

 

EDIT: This is all i have at the top of my description.ext

#include "customloot\CfgBuildingLoot.hpp"

Link to comment
Share on other sites

  • 0

EDIT: I solved this using the following thread 

 

but now it doesn't include the overwatch weapons, will I need to add these manually?

 

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hi guys, I'm having this issue,

 

I launch the server and everything goes fine until a player begins to load the mission, the console shows game started after mission read and the player is then stuck at a loading screen with an empty load bar.

 

My RPT shows the follow error in each case 

17:43:19 "DayZ Epoch: PRELOAD Functions\init [[<No group>:0 (FunctionsManager)],any]"
17:43:19 "DayZ Epoch: MPframework inited"
17:43:20 Error in expression <nd (((_itemChances select _l) select 1) * 100);
for "_k" from 0 to (_weight - 1)>
17:43:20   Error position: <* 100);
for "_k" from 0 to (_weight - 1)>
17:43:20   Error *: Type String, expected Number
17:43:20 File z\addons\dayz_code\init\loot_init.sqf, line 85
Link to comment
Share on other sites

  • 0

I am having the same issue as chris.  When trying to use custom loot tables by enabling it in mission init via the dzemissionloot parameter I get the same error.  With it off I can join my server again.  All overwatch items are on the traders and vehicles are spawning, but no weapons or ammo are spawning in any buildings or on zombies obviously.

Link to comment
Share on other sites

  • 0

  Reveal hidden contents

 

 

You need to also do the following:

 

copy from: dayz_code\init\zombie_init.sqf and put into your custom folder in your mission.

 

Open it and make it like so:

private ["_unit","_id"];
_unit = _this select 0;
_id = _unit addeventhandler ["HandleDamage",{_this call local_zombieDamage;_this call DDOPP_taser_handleHit;}];
_id = _unit addeventhandler ["Killed",{[_this,"zombieKills"] call local_eventKill}];

then in your custom compiles add the following:

	zombie_initialize = 			compile preprocessFileLineNumbers "custom\zombie_init.sqf";

Above:

 

// object_vehicleKilled = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_vehicleKilled.sqf"; //Event handler run on damage
 
 
I'm just trying to get this working also, but am stuck on the add to fn_damageHandler.sqf
 
I have:

  Reveal hidden contents

scriptName "Functions\misc\fn_damageHandler.sqf";
/***********************************************************
	PROCESS DAMAGE TO A UNIT
	- Function
	- [unit, selectionName, damage, source, projectile] call fnc_usec_damageHandler;
************************************************************/
private ["_unit","_humanityHit","_myKills","_hit","_damage","_isPlayer","_unconscious","_wound","_isHit","_isInjured","_type","_hitPain","_isCardiac","_isHeadHit","_isMinor","_scale","_canHitFree","_rndPain","_rndInfection","_hitInfection","_lowBlood","_isPZombie","_source","_ammo","_unitIsPlayer","_isBandit"];
_unit = _this select 0;
_hit = _this select 1;
_damage = _this select 2;
_unconscious = _unit getVariable ["NORRN_unconscious", false];
_isPZombie = player isKindOf "PZombie_VB";
_source = _this select 3;
_ammo = _this select 4;
_type = [_damage,_ammo] call fnc_usec_damageType;

_isMinor = (_hit in USEC_MinorWounds);
_isHeadHit = (_hit == "head_hit");
//_evType = "";
//_recordable = false;
_isPlayer = (isPlayer _source);
_humanityHit = 0;
_myKills = 0;
_unitIsPlayer = _unit == player;

if (_unitIsPlayer) then {
	if (_hit == "") then {
		if ((_source != player) && _isPlayer) then {
		//Enable aggressor Actions
			if (_source isKindOf "CAManBase") then {
				_source setVariable["startcombattimer",1];
			};
			_canHitFree = 	player getVariable ["freeTarget",false];
			_isBandit = (player getVariable["humanity",0]) <= -5000;
			_isPZombie = player isKindOf "PZombie_VB";

			if (!_canHitFree && !_isBandit && !_isPZombie) then {
				//Process Morality Hit
				_myKills = 0 max (1 - (player getVariable ["humanKills",0]) / 5);
				_humanityHit = -100 * _myKills * _damage;

				/* PVS/PVC - Skaronator */
				if (_humanityHit != 0) then {
					[_source,_humanityHit] spawn {
						private ["_source","_humanityHit"];
						_source = _this select 0;
						_humanityHit = _this select 1;
						PVDZE_send = [_source,"Humanity",[_source,_humanityHit,30]];
						publicVariableServer "PVDZE_send";
					};
				};
			};
		};
	};
};

//PVP Damage
_scale = 200;
if (_damage > 0.4) then {
	if (_ammo != "zombie") then {
		_scale = _scale + 50;
	};
	if (_isHeadHit) then {
		_scale = _scale + 500;
	};
	if ((isPlayer _source) && !(player == _source)) then {
		_scale = _scale + 800;
		if (_isHeadHit) then {
			_scale = _scale + 500;
		};
	};
	switch (_type) do {
		case 1: {_scale = _scale + 200};
		case 2: {_scale = _scale + 200};
	};
	if (_unitIsPlayer) then {
		//Cause blood loss
		//Log Damage
		/*
		if (DZE_Debug_Damage) then {
			diag_log ("DAMAGE: player hit by " + typeOf _source + " in " + _hit + " with " + _ammo + " for " + str(_damage) + " scaled " + str(_damage * _scale));
		};
		*/
		r_player_blood = r_player_blood - (_damage * _scale);
	};
};

//Record Damage to Minor parts (legs, arms)
if (_hit in USEC_MinorWounds) then {
	if (_ammo == "zombie") then {
		if (_hit == "legs") then {
			[_unit,_hit,(_damage / 6)] call object_processHit;
		} else {
			[_unit,_hit,(_damage / 4)] call object_processHit;
		};
	} else {
		[_unit,_hit,(_damage / 2)] call object_processHit;
	};
	if (_ammo == "") then {
		[_unit,_hit,_damage] call object_processHit;
	};
};


if (_unitIsPlayer) then {
//incombat
	_unit setVariable["startcombattimer", 1];
};

if (_damage > 0.1) then {
	if (_unitIsPlayer) then {
		//shake the cam, frighten them!
		//player sidechat format["Processed bullet hit for %1 (should only be for me!)",_unit];
		1 call fnc_usec_bulletHit;
	};
	if (local _unit) then {
		_unit setVariable["medForceUpdate",true,true];
	};
};
if (_damage > 0.4) then {	//0.25
	/*
		BLEEDING
	*/
	_wound = _hit call fnc_usec_damageGetWound;
	_isHit = _unit getVariable[_wound,false];
	if (_unitIsPlayer) then {
		_rndPain = 		(random 10);
		_rndInfection = (random 500);
		_hitPain = 		(_rndPain < _damage);
		if ((_isHeadHit) || (_damage > 1.2 && _hitPain)) then {
			_hitPain = true;
		};
		_hitInfection = (_rndInfection < 1);
		//player sidechat format["HitPain: %1, HitInfection %2 (Damage: %3)",_rndPain,_rndInfection,_damage]; //r_player_infected
		if (_isHit) then {
			//Make hit worse
			if (_unitIsPlayer) then {
				r_player_blood = r_player_blood - 50;
			};
		};
		if (_hitInfection) then {
			//Set Infection if not already
			if (_unitIsPlayer && !_isPZombie) then {
				r_player_infected = true;
				player setVariable["USEC_infected",true,true];
			};

		};
		if (_hitPain) then {
			//Set Pain if not already
			if (_unitIsPlayer) then {
				r_player_inpain = true;
				player setVariable["USEC_inPain",true,true];
			};
		};
		if ((_damage > 1.5) && _isHeadHit) then {
			[_source,"shothead"] spawn player_death;
		};
	};
	if(!_isHit) then {

		if(!_isPZombie) then {
			//Create Wound
			_unit setVariable[_wound,true,true];

			[_unit,_wound,_hit] spawn fnc_usec_damageBleed;
			/* PVS/PVC - Skaronator */
			_pos = getPosATL _unit;
			_inRange = _pos nearEntities ["CAManBase",1000];
			{
				// only send to other players
				if(isPlayer _x && _x != player) then {
					PVDZE_send = [_x,"Bleed",[_unit,_wound,_hit]];
					publicVariableServer "PVDZE_send";
				};
			} count _inRange;

			//Set Injured if not already
			_isInjured = _unit getVariable["USEC_injured",false];
			if (!_isInjured) then {
				_unit setVariable["USEC_injured",true,true];
			if ((_unitIsPlayer) && (_ammo != "zombie")) then {
					dayz_sourceBleeding = _source;
				};
			};
			//Set ability to give blood
			_lowBlood = _unit getVariable["USEC_lowBlood",false];
			if (!_lowBlood) then {
				_unit setVariable["USEC_lowBlood",true,true];
			};
			if (_unitIsPlayer) then {
				r_player_injured = true;
			};
		};
	};
};
if (_type == 1) then {
	/*
		BALISTIC DAMAGE
	*/
	if ((_damage > 0.01) && (_unitIsPlayer)) then {
		//affect the player
		[20,45] call fnc_usec_pitchWhine; //Visual , Sound
	};
	if (_damage > 4) then {
		//serious ballistic damage
		if (_unitIsPlayer) then {
			[_source,"explosion"] spawn player_death;
		};
	} else {
		if (_damage > 2) then {
			_isCardiac = _unit getVariable["USEC_isCardiac",false];
			if (!_isCardiac) then {
				_unit setVariable["USEC_isCardiac",true,true];
				r_player_cardiac = true;
			};
		};
	};
};
if (_type == 2) then {
	/*
		HIGH CALIBRE
	*/
	if (_damage > 4) then {
		//serious ballistic damage
		if (_unitIsPlayer) then {
			[_source,"shotheavy"] spawn player_death;
		};
	} else {
		if (_damage > 2) then {
			_isCardiac = _unit getVariable["USEC_isCardiac",false];
			if (!_isCardiac) then {
				_unit setVariable["USEC_isCardiac",true,true];
				r_player_cardiac = true;
			};
		};
	};
};

if (!_unconscious && !_isMinor && ((_damage > 2) || ((_damage > 0.5) && _isHeadHit))) then {
	//set unconsious
	[_unit,_damage] call fnc_usec_damageUnconscious;
};

 

Where do I put:

	if ((_this select 4) in DDOPP_taser_arrBullet) then {
		[(_this select 0), (_this select 3), DDOPP_taser_koTime] spawn DDOPP_taser_victimFx;
	};

??

 

Also where do I put:

// Set effects control to player
player setVariable ["isTazed", false, true];
player addEventHandler ["HandleDamage",{_this call DDOPP_taser_handleHit}];

into the init.sqf?

 

Many Thanks,

 

Pry

Link to comment
Share on other sites

  • 0

Hello, I have just setup an epoch server on a dedicated box, following the 72 step guide (eventually!) and I would like to turn it into an overpoch server.

 

I have had a couple of attempts but it just gets stuck at waiting for host, some battle eye stuff and my name in red in the top right corner

 

I think ive followed the guide correctly but ???

 

i have only done the first video so far though...do I need to do both videos just to get into the lobby or should it let me past waiting for host before doing the 2nd video?

 

If anyone has any time to take a look at my files plz, that would be great, cheers

 

 

http://wikisend.com/download/265730/files.zip

 

Robbie

Link to comment
Share on other sites

  • 0

Neither bro, use DayZ Commander and download DayZ Overwatch then move the @DayzOverwatch folder to your server folder.

 

The video is correct don't copy @DayzOverwatch_Server that is the server for Overwatch. All you want is the "client" files.

 

For OverPoch you want the following folders in your server:

 

@DayZ_Epoch

@DayZ_Epoch_Server

@DayzOverwatch

 

Then in your startup make sure it goes in this order: -mod=@DayzOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server

 

That's it :)

 

Pry

Link to comment
Share on other sites

  • 0

sorry to be annoying or something but i need help i m trying to setup a overpoch Napf home server to get ready to help set up a vilayer server for a friend and install some scripts but for the life of me i cant get this to run, i have a working epoch home server for testing scripts and this is my first time combining two mods into one but the problem is that im getting a common error http://i.imgur.com/IidEHSy.png?1?3470 with people but i cant get any of there suggestion to work

                  vvvvRPT FILEvvvv

  Reveal hidden contents

 

I was getting the waiting for host but then i think i fixed it by completely redoing it but dont know im stuck at this part,

 

  vvvv Mission.sqm vvvv

  Reveal hidden contents

 

     vvvv Bat File vvvv

  Reveal hidden contents

 

Plz let me know if u need more info i can get you more

Link to comment
Share on other sites

  • 0

Hi diehard, are you putting the launch parameters into dayz commander   -mod=@DayZOverwatch;

 

Also, can you take a screenshot of your epoch server folder so we can see all the files plz 

 

Not that I claim know what i'm doing, im new to setting up dedicated servers myself but I'm in the process of setting one up myself and ive had similar probs.

 

 

Cheers

 

Robbie

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
×
×
  • Create New...