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

46 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By EditedSnowHD
      Hallo all,
      First I want to say i'm not the owner of this server. I just really like the server! Why?
      Well it reminds me of the good old days, and it has an 'OG Epoch feeling'. This is because the map isn't edited and the loot is really balanced. 
      You can't just join, get 25000 coins and start shooting with a tank. It's not like those servers. Ow and another thing, if you open up a map, you won't see like 300 activities all going on at once, not turbid at all. 
      The server also uses the original silver/gold system and everything you find/build/shoot feels really rewarding. 
      The addons added to the server really add something special to the experience on the server, and not distract you from the original feeling.
      I have just played for a few days on the server, and there a few standard players (and the owner is really kind!). But we're still looking to share this amazing experience with other people who might be searching for the 'OG Epoch feeling'.
      Already sold? Here is the Server IP: 78.143.13.42 port: 2302 , Server name: [EU][PvP] GGWEZ DayZ Epoch Chernarus - FreshDB | HC | Gemcrafting
      Link to loading screen and rules: https://imgur.com/a/kIsfXaX

      Features:
      Deploy Bike (old bike).
      Gem Crafting (static Weapons, decorations and more).
      AI Base.
      Custom Vehicles.
      Missions.
      Indestructible bases.
      Take Clothes.
      Spawn Selection.
      Custom Economy and Loot (Really well balanced IMO).
      Lift object with heli.
      Custom Trader City (Really cozy).
      Refuel at gasstation.
      Dogs.
      Street, -Buildinglights (for at night).
      and much more!
      Mods:
      @Epoch
      There also is a Discord channel where you can meet up and share info (like about the AI base or player builds).
      Discord: discord.gg/M6w2fun
      Staff: Drashyy & Mfkrp9 & EditedSnow
      If you have any more questions, feel free to contact me! Hope to see you in Chernarus.
      Edit 10-05-2020: I'm now part of the staff! Im a moderator on their discord.

       
       
    • By THAC0_Gewch
      https://github.com/OlofTheBald/DayZ-Humanity-Loadout-Granter/tree/Epoch_1.0.5.1
       
      Updated for 1.0.6.x
    • By THAC0_Gewch
      Many years ago, I made a Humanity Loadout script for 1.0.5.x. The script is basic, it checks your players' humanity and grants a pre-set loadout when they spawn depending on their humanity level.
      I've now updated and optimized this script for 1.0.6.x:
      https://github.com/OlofTheBald/DayZ-Humanity-Loadout-Granter
       
       
    • By MysteryGamersElite
      [EU/UK] SDF Epoch|Wiped April 1st|FPS++|WAI & DZMS|SSD|Coins|Hourly Paycheck|Custom Loot| AND MORE....
      BRAND NEW DATABASE + SERVER 1st APRIL 2020!
      Server IP: 164.132.67.27:2302
      Discord: https://discord.gg/BWJCjTe
      We offer 24 hour support via discord for any questions or issues with your game!
      Top Server Feature List:
      - Modded DZMS and WAI Mission System
      - Custom High Loot Tables and Improved Dynamic Vehicle Spawns
      - Paycheck Every Hour
      - Coin Based Currency with Storage Banking only
      - Deploy Bike & Mozzie
      - Locate Vehicle
      - Snap Build Pro
      - Group Management
      - Repair, Refuel and Rearm at Service Stations
      - Vehicle Key Changer
      - infiSTAR AntiHack
      - Virtual Garage
      - Change View Distance with Binoculars
      - 3 Hour Restarts starting from Midnight GMT
      - Garage Door Opener
      - Take Clothes
      - Indestructible Bases except doors
    • By Vitor99
      Hi everyone, i would like to know if there is any torrent links for Epoch and Overpoch, if you know some send me the link here
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...