Jump to content
  • 0
neverwinter80

AxeCops Elevators in 1.0.6.1

Question

Hello Epoch Community

i have installed AxeCops fantastic elevator mod and it works great with some tweaking on 1.0.6.1, what my issue is if i keep using MetalFloor_Preview_DZ as the stop class they disappear.

My question is has the name of this item changed in the update, or is there a setting that disallows this item to remain persistent?

i have not seen anything in InfiStar that is blocking it either.

Share this post


Link to post
Share on other sites

29 answers to this question

Recommended Posts

  • 0
@neverwinter80
I think it uses the same id

\@DayZ_Epoch\addons\dayz_code\Configs\CfgExtra\snappoints.sqf

class MetalFloor_Preview_DZ: FloorsWallsStairs {
		points[] = {
		{0,0,0.011,"Pivot"},
		{0, -2.64, 0.025,"Back"},
		{0, 2.64, 0.025,"Front"},
		{-2.64, 0, 0.025,"Left"},
		{2.64, 0, 0.025,"Right"}
		};
		radius = 12;
	};

axecop said

Quote
ELE_StopClass = "MetalFloor_Preview_DZ";

Replace the classname with whatever you like.

try using WoodFloor_Preview_DZ

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, neverwinter80 said:

ok i added it to the DayZ_SafeObjects array in my Variables.sqf and i have successfully built 9 stops without fail, the only thing i tweaked earlier was actually the item that was being used as a stop

 

So post it with the changes you made to update it for 1061?

Share this post


Link to post
Share on other sites
  • 0

Found these in the init.sqf of some old files I have - I didn't see them in the install instructions on github.

Not sure if they are useful anymore ...

//Elevator
ElevatorScript = true;
ELE_MaxRange = 100; // maximum range the elevator can travel / stop points can be built (in meter)
ELE_Speed = 5; // speed of the elevator (meters per second)
ELE_StopWaitTime = 0; // disable the wait time if you call the elevator
ELE_RequiredBuildTools = ["ItemToolbox", "ItemCrowbar"]; // required tools for building an elevator and elevator stop
ELE_RequiredBuildItems = [["PartGeneric",4], "PartEngine", "ItemGenerator", "ItemJerrycan"]; // required items to build an elevator
ELE_RequiredBuildStopItems = [["PartGeneric",4]]; // required items to build an elevator stop
ELE_StopClass = "MetalFloor_Preview_DZ";

 

Share this post


Link to post
Share on other sites
  • 0

in a very quick look,, the only file that seems needs modify is the elevator_build.sqf  by

Spoiler
private ["_args","_option","_obj","_id","_elevatorStop","_dist"];

if (dayz_actionInProgress) exitWith { cutText ["Upgrade already in progress." , "PLAIN DOWN"]; };
dayz_actionInProgress = true;

player removeAction s_player_elevator_upgrade;
s_player_elevator_upgrade = 1;
player removeAction s_player_elevator_upgrade_stop;
s_player_elevator_upgrade_stop = 1;

_args = _this select 3;
_option = _args select 0;
switch (_option) do {
	case "build": {
		_obj = _args select 1;
		_id = [_obj] call ELE_fnc_generateElevatorId;
		if (_id == "") exitWith { cutText ["invalid elevator ID generated", "PLAIN"] };
		if ((ELE_RequiredBuildTools call AC_fnc_hasTools) && {ELE_RequiredBuildItems call AC_fnc_checkAndRemoveRequirements}) then {
			["Medic", ELE_MaxRange] call AC_fnc_doAnimationAndAlertZombies;
			ELE_elevator = [_obj, _id] call AC_fnc_swapObject;
			titleText ["Elevator Built", "PLAIN"];
		};
	};
	case "build_stop": {
		_obj = _args select 1;
		if (isNil "ELE_elevator") exitWith { cutText ["no elevator selected", "PLAIN"] };
		_dist = _obj distance ELE_elevator;
		if (_dist > ELE_MaxRange) exitWith { cutText [format["Elevator Stop is to far away from Elevator (%1 > %2)", _dist, ELE_MaxRange], "PLAIN"] };
		_id = [ELE_elevator] call ELE_fnc_getNextStopId;
		if (_id == "") exitWith { cutText ["Elevator Stop already exists or to many (max. 9 per Elevator)", "PLAIN"] };
		if ((ELE_RequiredBuildTools call AC_fnc_hasTools) && {ELE_RequiredBuildStopItems call AC_fnc_checkAndRemoveRequirements}) then {
			["Medic", ELE_MaxRange] call AC_fnc_doAnimationAndAlertZombies;
			_elevatorStop = [_obj, _id, ELE_StopClass] call AC_fnc_swapObject;
			titleText ["Elevator Stop Built", "PLAIN"];
		};
	};
};

dayz_actionInProgress = false;
s_player_elevator_upgrade = -1;
s_player_elevator_upgrade_stop = -1;

 

 

Share this post


Link to post
Share on other sites
  • 0

receiving some errors trying to get this to work, I did change the folder structure to something similar to service_points so it reads the files properly, applied fix from @juandayz for the elevator_build.sqf but I still am running into undef variables from elevator_init.sqf.

Error in expression <,"_elevatorStop"];

player removeAction s_player_elevator_next;
s_player_elevato>
  Error position: <s_player_elevator_next;
s_player_elevato>
  Error Undefined variable in expression: s_player_elevator_next
File mpmissions\__CUR_MP.Chernarus\scripts\elevator\elevator_actions.sqf, line 3
"Elevator script initialized"
Error in expression <evator_select = -1;
player removeAction s_player_elevator_upgrade;
s_player_elev>
  Error position: <s_player_elevator_upgrade;
s_player_elev>
  Error Undefined variable in expression: s_player_elevator_upgrade
File mpmissions\__CUR_MP.Chernarus\scripts\elevator\elevator_init.sqf, line 78

any help would be greatly appreciated guys!

 

Share this post


Link to post
Share on other sites
  • 0
Just now, ViktorReznov said:

receiving some errors trying to get this to work, I did change the folder structure to something similar to service_points so it reads the files properly, applied fix from @juandayz for the elevator_build.sqf but I still am running into undef variables from elevator_init.sqf.

Error in expression <,"_elevatorStop"];

player removeAction s_player_elevator_next;
s_player_elevato>
  Error position: <s_player_elevator_next;
s_player_elevato>
  Error Undefined variable in expression: s_player_elevator_next
File mpmissions\__CUR_MP.Chernarus\scripts\elevator\elevator_actions.sqf, line 3
"Elevator script initialized"
Error in expression <evator_select = -1;
player removeAction s_player_elevator_upgrade;
s_player_elev>
  Error position: <s_player_elevator_upgrade;
s_player_elev>
  Error Undefined variable in expression: s_player_elevator_upgrade
File mpmissions\__CUR_MP.Chernarus\scripts\elevator\elevator_init.sqf, line 78

any help would be greatly appreciated guys!

 

you need add the action to your custom variables. If u dont understand what i mean

showme your fn_selfactions.sqf the part when you add the elevator_upgrade and elevator_next

Share this post


Link to post
Share on other sites
  • 0

@ViktorReznov  example:

if i add this actions in fn_selfactions:

_iscrate = _typeOfCursorTarget in DZE_DEATHMATCH_crates;
if (_iscrate) then {
	if (s_player_dragbox < 0) then {
		_text = "Drag Box";
		s_player_dragbox = player addAction [format["%1",_text], "scripts\others\player_dragbox.sqf", _cursorTarget, 0, false,true];		
	};
} else {
	player removeAction s_player_dragbox;
	s_player_dragbox = -1;
};

then i will need:

in fn_selfactions.sqf near of bottom find:

// Custom below

and bellow add:

player removeAction s_player_dragbox;
	s_player_dragbox = -1;

And in my custom variables.sqf  find:

//Player self-action handles
dayz_resetSelfActions = {

and before the bracket who close this section add:

s_player_dragbox = -1;

so its looks:

//Player self-action handles
dayz_resetSelfActions = {
//a lot of default actions
s_player_dragbox = -1;
};

Share this post


Link to post
Share on other sites
  • 0

yes, i have them there, however they were commented out. May have been from when I have was having server troubles, will retest and repost

	// Custom below
	s_givemoney_dialog = -1;
	s_bank_dialog = -1;
	s_player_checkWallet = -1;
	s_player_copyToKey = -1;
	s_player_claimVehicle = -1;
	s_player_zhide2 = -1;
	s_player_zhide3 = -1;
	s_player_wreckloot = -1;
	s_player_elevator_next = -1;
	s_player_elevator_previous = -1;
	s_player_elevator_select = -1;
	s_player_elevator_upgrade = -1;
	s_player_elevator_upgrade_stop = -1;
	s_player_elevator_call = -1;
	s_player_elevator_id = -1;
};
call dayz_resetSelfActions;

thats how i had them

EDIT: Yup, i ddnt have both variables.sqf and selfActions.sqf edited, no errors and working now, tyvm

Share this post


Link to post
Share on other sites
  • 0

I can corroborate others findings. I'm able to get the elevators working, but I cannot add more than one stop. I've tried changing it to woodfloor_preview_dz and have both that and the metalfloor preview in the variables. Neverwinter, would love to see your files as to what you changed to accommodate 9 stops?

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, oldmatechoc said:

Should be able to, once I'm done with the script I'm writing atm I'll take a look with you. @kingpapawawa

https://github.com/noxsicarius/DayZ-Epoch-Elevator/blob/master/elevator/elevator_functions.sqf#L138

		format ["Elevator must be at stop %1 to upgrade",_nextStopId] call dayz_rollingMessages;

edit - That is actually not right, _nextStopId is not the number of the last stop... but its getting me closer =)

for now this will do.
 

		format ["Move elevator to last stop before building next stop"] call dayz_rollingMessages;

 

Share this post


Link to post
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

  • Similar Content

    • By Joseph Thompson
      Hello all,
      My name is Joseph. I am looking for active members on Arma 2-Overpoch to join a Team. You must have some knowledge in playing the game and  you must have a working mic (No Echo).
      We will be playing on a server that has recently started up but has big hopes for its self. The staff/Admins are really helpful and have helped to create other servers in the past.
      We will be working together as a team to attend and capture missions also Helping with base building ECT. How you play is entirely up to you if you (this meaning if you want to be a bandit or a hero)
      You must be over the ages of 16 and have a strong sense of humor.
      ------------------------------------------------------------------------------------------------------------------------------------------------
      Please ensure you have one of the following programs:
      ------------------------------------------------------------------------------------------------------------------------------------------------
      Team-speak
      Skype
      Discord
      ------------------------------------------------------------------------------------------------------------------------------------------------
      Please fill in this form if you are interested in joining us.
      ------------------------------------------------------------------------------------------------------------------------------------------------
      Age-
      Name
      SteamName-
      SkypeName-
      DiscordName-
      Playtime-
      And last one: Are you from the UK?-
      ------------------------------------------------------------------------------------------------------------------------------------------------
      If you would like to contact me
      Discord: Joseph_Richards#3973
       
       
    • By Cyrus
      I know of some questions in the forums regarding custom loot crates with available missions systems. I have managed to create a custom loot crate thanks to @DAmNRelentless help, that randomizes items and weapons from user customizable arrays and integrate this with the mission system. This for the time being works for DZAI on Epoch 1.0.6.2. 
      Following is my custom lootcrate.sqf , all the classnames used is from the official epoch 1.0.6.2 github repo with thanks to @salival found >here<
      From here I have added the following script to my custom DZAI spawns found in \z\addons\dayz_server\DZAI\init\world_spawn_configs\custom_spawns\cust_spawns_panthera2.sqf. Obviously you will use the sqf appropriate to your map etc.
      ["staticspawn",10,2,true] call DZAI_spawn_units; if {DZAI_spawn_units && DZAI_despawnWait == true} then { execVM "\z\addons\dayz_server\custom\lootcrate.sqf"; }; This method might need some tweaking and someone else might have a more effective way of doing this, but for me this works perfectly. Fully tested with random loot spawns after new AI group spawned.
    • By Cyrus
      Can anyone familiar with DZAI help me with a way to time my custom crates to respawn with DZAI custom static AI. I have the randomized crate spawn at server startup, and essentially will be looted once the base has been cleared from all AI. Currently it will "refill" the crate based on a sleep timer. I would like to have the crate refill once the next round of AI spawns based on these values set:
      DZAI_respawnTimeMin = 300; DZAI_respawnTimeMax = 600; Any help will be appreciated. This is my current loot crate configuration. Thanks for @DAmNRelentless who guided me in creating this script.
       
    • By Cyrus
      i have seen a lot of people looking for epoch 1.0.6.2 class names with very little information available on where to find the full lists if you are planning on doing some custom loot crates for static mission spawns. I found on the Epoch Github Repo all the items available to 1.0.6.2.
      I hope that others find it as useful as I have.
      >Full lists here<
    • By Tricks
      Yes we are backed! Ranked #7 overall back in 2014 on Gametracker. We are a CLASSIC Epoch inspired server. We pride ourselves on actually being a SURVIVAL server. No starting money... no spawn selection... no parachute spawn... no heavy military... Classic Epoch.... period! Where AS50s and M107 sniper rifles are rare. Where Vodniks and Blackhawks are rare. Where building a base takes TIME!
      Here is what we do have!
      Snap Building & Vector Building. Single Currency System (Coins). Full Day/Night Cycle with Active Weather. Custom Trader Locations Including a Hunting Trader & Black Market Trader. Custom Military Bases and Airfields for looting. Junkyard for used vehicles, great for new spawns to get a car! Dynamic AI missions. Custom static AI missions with high loot. We have an Aircraft Carrier!! Custom View Distances. Deploy bike, motorbike, mozzie. Destructible Base & Garage Doors. Heli Evacuations. Auto Refuel at Gas Stations. Smoke and grow narcotics. Claim vehicles and change/copy vehicle keys. Hide from Zombies by smearing guts on yourself. Tow & Lift. Active admin staff! Discord Channel! Website under construction! Updated weekly!! I am the main server admin and I am constantly updating the server. I love suggestions from my players and we vote for new features and changes on our Discord server.
      Server connection Info: 144.217.62.76 Port: 2302
      Discord connection info:  https://discord.gg/kP3gJwS
      Respectfully,
      Tricks

      Slaughterhouse Gaming
      DayZ Epoch Classic Survival
      Connection Info: 144.217.62.76 Port: 2302
      Discord - https://discord.gg/kP3gJwS
  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×