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
On 4/17/2017 at 4:13 PM, neverwinter80 said:

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.

you may need to add this to other allowed objects...

DZE_AllowedObjects   =    ["MetalFloor_Preview_DZ"];

Share this post


Link to post
Share on other sites
  • 0

The transparent elevator stops can't be removed. To remove them, I had to add these codes.

elevator_init.sqf line 24:
DZE_maintainClasses = DZE_maintainClasses + [ELE_StopClass];
DZE_isRemovable = DZE_isRemovable + [ELE_StopClass];
 

If you don't want anyone to remove the stop, the function to convert metal floor into elevator stop must be fixed to log the owner
ac_functions.sqf line 54:
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,dayz_playerUID],_classname,_obj,player,[],dayz_authKey];

 

Share this post


Link to post
Share on other sites
  • 0

I found a bug that the elevator moves walls and floors.


Fix : 214th line of elevator_functions.sqf
from

Quote

{ _x attachTo [_elevator]; _attachments set [count _attachments, _x]; } forEach (_elevator nearEntities ELE_Size);

to

Quote

{ _x attachTo [_elevator]; _attachments set [count _attachments, _x]; } forEach (_elevator nearEntities ["AllVehicles", ELE_Size]);

(If you don't want players to move vehicles with elevators, then change "AllVehicles" to "Man")

Share this post


Link to post
Share on other sites
  • 0

wait, I have some more updates for it.

We can't maintain the metalfloor of an elevator after calling it.
CharacterID (and damage) is not shared in "activating" (i.e. replacing the metalfloor with local one).

The elevator will stop working when metalfloor elevator or metalfloor_preview_dz on middle floor removed, or accidentally destroyed.

Share this post


Link to post
Share on other sites
  • 0

This isnt working for me i do not know what i am doing wrong.

when i select the first metal floor i want to be the elevator it gives me options to "upgrade to elevator" and ""upgrade to elevator stop" once upgraded to elevator it say "elevator machine built" then it gives me an option to "select elevator" when selected it says "elevator 1 selected"

when i choose the next metal floor to be the next stop i choose option "upgrade to elevator stop" when i upgrade the metal floor it disappears there is never an option to call the elevator I just get left with one metal floor with an option to "remove metal floor" or "select elevator"

Share this post


Link to post
Share on other sites
  • 0

So what was the fix for elevator stops being deleted? 

I'm using Schalldampfer's version and the stop gets stopped, hehe, apparently by the server_swapObject.sqf.  The floor gets deleted, but it seems to fail the check around line 45;

_allowed = [_object, "Server"] call check_publishobject;
if (!_allowed || !_proceed) exitWith { 
	if(!isNull(_object)) then {
		deleteVehicle _object; 
	};
	diag_log ("Invalid object swap by playerUID:" + _playerUID);
};

In the server report I am seeing;

"DELETE DIRECT: SERVER deleted object with ID: 1285"
"Invalid object swap by playerUID:xxxxxx"  (UID edited to protect the somewhat innocent)

So, as best I can make out, check_publishobject simply confirms the stop is in DayZ_SafeObjects - which it is, so perhaps it's !_proceed which is causing the issue?  I can't see why it should. 

 

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Darce said:

So what was the fix for elevator stops being deleted? 

I'm using Schalldampfer's version and the stop gets stopped, hehe, apparently by the server_swapObject.sqf.  The floor gets deleted, but it seems to fail the check around line 45;

In the server report I am seeing;

"DELETE DIRECT: SERVER deleted object with ID: 1285"
"Invalid object swap by playerUID:xxxxxx"  (UID edited to protect the somewhat innocent)

So, as best I can make out, check_publishobject simply confirms the stop is in DayZ_SafeObjects - which it is, so perhaps it's !_proceed which is causing the issue?  I can't see why it should. 

 

Do you have this?

DZE_AllowedObjects = ["MetalFloor_Preview_DZ"];

 

Share this post


Link to post
Share on other sites
  • 0

No.  I can't find any incidents of DZE_AllowedObjects anywhere.

With Object_Debug turned on I get the following in the server report;

 9:23:45 "DELETE DIRECT: SERVER deleted object with UID: 47032348036192"
 9:23:45 "DEBUG: Checking if Object: 23aaeb00# 307125: metal_floor_ghost.p3d REMOTE is allowed, published by Server"
 9:23:45 "DEBUG: Object: 23aaeb00# 307125: metal_floor_ghost.p3d REMOTE published by Server is allowed by any"
 9:23:45 Error in expression <2 is allowed by %3",_object,_playername,_saveObject];


_allowed
};

server_hive>
 9:23:45   Error position: <_saveObject];


_allowed
};

server_hive>
 9:23:45   Error Undefined variable in expression: _saveobject
 9:23:45 File z\addons\dayz_server\init\server_functions.sqf, line 165
 9:23:45 "Invalid object swap by playerUID:xxx"

So it looks like the server_functions is dropping the ball - it functions normally for something like upgrading a door, but errors out for the elevator stop.

check_publishobject = {
	private ["_saveObject","_allowed","_allowedObjects","_object","_playername"];

	_object = _this select 0;
	_playername = _this select 1;
	_allowed = false;

	#ifdef OBJECT_DEBUG
		diag_log format["DEBUG: Checking if Object: %1 is allowed, published by %2",_object,_playername];
	#endif

	if ((typeOf _object) in DayZ_SafeObjects) then {
		_saveObject = "DayZ_SafeObjects";
		_allowed = true;
	};
	
	//Buildings
	if (_object isKindOf "DZ_buildables") then {
		_saveObject = "DZ_buildables";
		_allowed = true;
	};
	
	#ifdef OBJECT_DEBUG
		diag_log format["DEBUG: Object: %1 published by %2 is allowed by %3",_object,_playername,_saveObject];
	#endif

	_allowed
};

To me it looks as if it passes the test for being in DayZ_SafeObjects but then has a mind fart at assigning _saveobject.

I'm missing something here.

Share this post


Link to post
Share on other sites
  • 0

So if I upgrade a door  (lock it)  this is reported;

 9:22:43 "DELETE DIRECT: SERVER deleted object with UID: 4634528045119"
 9:22:43 "DEBUG: Checking if Object: 2ec6ab00# 307083: steel_garage_locked.p3d REMOTE is allowed, published by Server"
 9:22:43 "DEBUG: Object: 2ec6ab00# 307083: steel_garage_locked.p3d REMOTE published by Server is allowed by DayZ_SafeObjects"
 9:22:43 "UPGRADE: Playername UID upgraded CinderWallDoorLocked_DZ @045021 [4514.1,8043.91,0.00143886]"
 9:22:49 "Playername UID LOCKED CinderWallDoorLocked_DZ with code: 829 @045021 [4514.9,8045.05,0.0009999]"

This is done by the player_upgrade.sqf which passes the same information as does the elevator script

Quote

PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_vector],_classname,_obj,player,[],dayz_authKey];

 

Share this post


Link to post
Share on other sites
  • 0

In AC_Functions.sqf I inserted the following, to see what is being passed to the check_publishObject function

	if ((typeOf _object) in DayZ_SafeObjects) then {
		diag_log format ["Elevator passing _objectCharacterID %1 _object %2 _obj %3  player %4",_objectCharacterID,_object,_obj,player];
	};

It returned the dialog below, which to me says that the stop is in DayZ_SafeObjects;

Quote

"Elevator passing _objectCharacterID 69760011 _object 850e1d00# 307592: metal_floor_ghost.p3d _obj 85d4e400# 307468: metal_floor.p3d  player B 1-1-B:1 (FONC)"

But I'm tossed if I can understand why it isn't when it comes to the check_publishObject function.  

Share this post


Link to post
Share on other sites
  • 0

Solved!

The old localisation problem.

if I move the following from elevator_init to the init/variables then it works fine

DZE_maintainClasses = DZE_maintainClasses + [ELE_StopClass];
DZE_isRemovable = DZE_isRemovable + [ELE_StopClass];
DayZ_SafeObjects = DayZ_SafeObjects + [ELE_StopClass];

So it appears that when it's in the elevator_init then the global DayZ_SafeObjects doesn't have the stop class.  When it's added in the init/variables then it does.

Working fine now, thanks  :)

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, Schalldampfer said:

I'm using it.

I'm having trouble installing it.

Would you mind taking a look at my files?

Or maybe providing your files?

Installing your version I get no option for upgrade or anything.

I tried original version and got option for upgrade but no option to move elevator.

I must be placing the code in wrong place.

Here are my files:

https://www.dropbox.com/s/tddtrpy5qsncgql/variables.sqf?dl=0

https://www.dropbox.com/s/u278dbbjdwuvstj/fn_selfActions.sqf?dl=0

https://www.dropbox.com/s/p2riaiumsng9dih/init.sqf?dl=0

 

Thank you.

Edit: I'm adding my server rpt: https://www.dropbox.com/s/f7bj14my7rvxetm/arma2oaserver.RPT?dl=0

I did a search for elevator in rpt and nothing. As though the script wasn't being called.

Share this post


Link to post
Share on other sites
  • 0
18 hours ago, Hux said:

I'm having trouble installing it.

Would you mind taking a look at my files?

Or maybe providing your files?

Installing your version I get no option for upgrade or anything.

I tried original version and got option for upgrade but no option to move elevator.

I must be placing the code in wrong place.

Here are my files:

https://www.dropbox.com/s/tddtrpy5qsncgql/variables.sqf?dl=0

https://www.dropbox.com/s/u278dbbjdwuvstj/fn_selfActions.sqf?dl=0

https://www.dropbox.com/s/p2riaiumsng9dih/init.sqf?dl=0

 

Thank you.

Edit: I'm adding my server rpt: https://www.dropbox.com/s/f7bj14my7rvxetm/arma2oaserver.RPT?dl=0

I did a search for elevator in rpt and nothing. As though the script wasn't being called.

overwrite original version with my files, it may work better. I have made mine by editing the original version, so I think I have forgotten something in install instruction.

Share this post


Link to post
Share on other sites
  • 0
5 hours ago, Schalldampfer said:

overwrite original version with my files, it may work better. I have made mine by editing the original version, so I think I have forgotten something in install instruction.

I'm using your version.

Thanks for the reply.

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...