Jump to content

[Release] Build Vectors - Rotate objects in Dayz Epoch (v2.34 P4L & non-P4L)


striker

Recommended Posts

_object setdir _dir;
 
if(_vecExists)then{
_object setVe>
 0:12:19   Error position: <_dir;
 
if(_vecExists)then{
_object setVe>
 0:12:19   Error Undefined variable in expression: _dir
 0:12:19 File z\addons\dayz_server\system\server_monitor.sqf, line 286
 0:12:19 "MOVED OBJ: "8028" of class CinderWallHalf_DZ to pos: [5633.62,5325.89,0]"
 0:12:19 Error in expression <eCargoGlobal  _object;

Some Buildings move away
Link to comment
Share on other sites

  On 9/30/2014 at 10:26 PM, ShadowStalker said:

have installed this mod several times and back dated the server every time for clean installs and get the same problem every install. When you press the space bar to build it , it cancels instead cant figure it out any help would be much appreciated.  

If your using the version with admin build and p4l, make sure to put the admin build in the init.sqf, even if you don't plan on using it, I did it and it solved my issue with the canceled building

Link to comment
Share on other sites

@striker

So finally^^, sorry for the late reply, had stuff to do.

 

Here's my Menu, with the features you mentioned.

 

The snapVectorMenu.sqf

  Reveal hidden contents

 

In player_build.sqf add these two Addaction Menus:

s_player_setVectorsPitch = player addaction ["Open Pitch Menu >>","scripts\snapBuild\snapVectorMenu.sqf",["Pitch",[_object,_classname,_objectHelper]],3,false,false];
s_player_setVectorsSetDegree = player addaction ["Open Set Degree Menu >>","scripts\snapBuild\snapVectorMenu.sqf",["SetDegree",[_object,_classname,_objectHelper]],3,false,false];

My player_vectorChange.sqf

  Reveal hidden contents

 

And in the snap_build.sqf change the following:

Right below the private command at the top add this

SnapVectorBuildSnapBuildInProgress = true;

Now further down to the bottom.

Change this

[] spawn {
        while {true} do {
            if(!DZE_ActionInProgress || DZE_cancelBuilding) exitWith {call fnc_initSnapPointsCleanup;[0,0,0] call fnc_snapActionCleanup; ["",false] call fnc_initSnapTutorial; snapActionState = "OFF";};
            sleep 2;
            };
        };

to this

[] spawn {
	while {true} do {
		if(!DZE_ActionInProgress) exitWith { call fnc_initSnapPointsCleanup;[0,0,0] call fnc_snapActionCleanup; ["",false] call fnc_initSnapTutorial; snapActionState = "OFF"; showCommandingMenu ""; };	//NEW
		sleep 2;
	};
};

In the case "OFF" statement add this

SnapVectorBuildSnapBuildInProgress = false;	//NEW

right below

[1,1,0] call fnc_snapActionCleanup;

And finally add this

SnapVectorBuildSnapBuildInProgress = false;	//NEW

right at the bottom of the file.

 

 

I'm aware of the feature of addAction commands, with the hideOnUse = false. But I like it more, when you have different sub-menus for each action.

 

I had to add these variables to each file, so that the menu would wait till the action of each file is done, otherwise the changed degree numbers wouldn't directly be shown.

Plus activating the pitch action too quickly several times, could cause issues, i think.

Thats also what could most likely happen with the addAction menus, because with the hideOnUse = false option, you can press these actions really fast after each other... What would cause some issues especially for the pitching action.

 

Let me know, when you find any issues or have some suggestions for improvement.

 

regards

Link to comment
Share on other sites

  On 9/30/2014 at 10:26 PM, ShadowStalker said:

have installed this mod several times and back dated the server every time for clean installs and get the same problem every install. When you press the space bar to build it , it cancels instead cant figure it out any help would be much appreciated.  

 

Make sure your adding in the

 

//Optional, only if you are using Admin Build

WG_adminBuild = ["","","",""]; //Fill with player UID's

 

Even if you don't populate the array.

 

Had problems saying building cancelled until I put that into my init.

 

Shane

Link to comment
Share on other sites

  On 10/8/2014 at 7:44 AM, monkeybrain said:

Hrmm for some reason Group Mangement from DZGM isnt working when I install this. Anyone had the problem?

 

You just copied dayz_interuptspace over the one from dzgm, combine them into 1 file

Link to comment
Share on other sites

Help me please,how to do it right

 

is my

 

  Reveal hidden contents

 

 

 

how do I add is correct

 

  Reveal hidden contents

to restart

  Reveal hidden contents
J1ns3Qi-vzI.jpg

 

after restart

  Reveal hidden contents

ouscgeUMuw4.jpg

Edited by Bandit
Link to comment
Share on other sites

  On 10/8/2014 at 3:38 PM, Pro_Speedy said:

Ok when you upgrade a door or a wall to full size is it supposed to reset back to straight as that is now the problem i am having?

 

Thanks

I was having this issues as well, but I forgot to add in the plotpoleforlife files. As soon as I did it fixed it, but they still disappear for us at the moment.

Link to comment
Share on other sites

Ok, so I did what is says to do here to prevent certain items from being rotated: 

 

I have this in my init: DZE_noRotate = ["ItemVault","ItemWoodStairs","ItemLockbox","ItemWoodStairsSupport","ItemWoodLadder","30m_plot_kit","workbench_kit"];

 

I can still rotate ladders and I assume the other items too. What am I doing wrong?

Link to comment
Share on other sites

I am using the build vectors with snap build pro, admin build and plot 4 life combined version of this and have been having reports of cinder and wood walls disappearing upon server restart? Any ideas on where I should be looking for code errors, or what I need to paste here so that someone can work out what is going on?

 

Thanks.

Link to comment
Share on other sites

  On 10/16/2014 at 5:36 AM, ElDubya said:

I am using the build vectors with snap build pro, admin build and plot 4 life combined version of this and have been having reports of cinder and wood walls disappearing upon server restart? Any ideas on where I should be looking for code errors, or what I need to paste here so that someone can work out what is going on?

 

Thanks.

It sounds like the objects are not being properly stored to the database (check the code where objects are published at end of your player_build.sqf), or are not being retrieved correctly from the database (server_monitor.sqf, to which vector building adds one large chunk of new code).

.

Link to comment
Share on other sites

Same problem with full cinder walls and cinder garage doorway disappearing after restart. Half cinder blocks walls are fine. I am using the build vectors, snap build pro and plot 4 life.My map is Sauerland. Server_monitor.sqf is correct (with new code).

 

  On 10/16/2014 at 10:01 AM, Ghostrider-DbD- said:

check the code where objects are published at end of your player_build.sqf

What should i check there?

Link to comment
Share on other sites

I have to say I am stumped as to what would cause some objects to be saved but others to be lost. My thinking was that either the objects were not being saved to the database for some reason, or that they were not retrieved and rendered properly.

 

The objects are published to the database at the end of your player_build.sqf in code that should look like this:

// code for objects with a lock, like locable doors

                    PVDZE_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_vector,_playerUID],_classname];
                    publicVariableServer "PVDZE_obj_Publish";

 

// code for other objects

                        PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_vector,_playerUID],_classname];
                        publicVariableServer "PVDZE_obj_Publish";

 

Much of the server_monitor.sqf code pertains to streaming the list of objects stored in the database to the server so that the objects can be rendered. I am not that familiar with how this happens beyond the fact that it must.

 

I would tripple check that all changes to code are correct to start, then see whether the types of objects that are causing problems are actually being saved in the database and retrieved. I hope this is helpful.

Link to comment
Share on other sites

  On 10/14/2014 at 1:35 PM, BetterDeadThanZed said:

Ok, so I did what is says to do here to prevent certain items from being rotated: 

 

I have this in my init: DZE_noRotate = ["ItemVault","ItemWoodStairs","ItemLockbox","ItemWoodStairsSupport","ItemWoodLadder","30m_plot_kit","workbench_kit"];

 

I can still rotate ladders and I assume the other items too. What am I doing wrong?

 

 

You used the ITEM names. You need to use the object name, like "VaultStorageLocked","LockboxStorageLocked", etc.

 

regards

Link to comment
Share on other sites

(Sorry for bad English)

 

Here what I noticed: my "custom" folder contain A_Plot_for_Life folder from previously installed Plot 4 Life mod, and PlotForLifev2 from downloaded Build Vectors mod.

 

Folder A_Plot_for_Life contain a player_build.sqf, and a Snap_Pro follder from Build Vectors mod also contain player_build.sqf

 

So here is the question: Are mod files (With Admin Build and Plot 4 Life http://bitly.com/Bui...ctorsAdminP4LV3 ) already contain all of the Plot 4 Life mod files, Or do i have to instal a Plot 4 Life mod and then install a build vectors? 

Link to comment
Share on other sites

  On 10/16/2014 at 10:02 PM, Ghostrider-DbD- said:

I have to say I am stumped as to what would cause some objects to be saved but others to be lost. My thinking was that either the objects were not being saved to the database for some reason, or that they were not retrieved and rendered properly.

 

The objects are published to the database at the end of your player_build.sqf in code that should look like this:

// code for objects with a lock, like locable doors

                    PVDZE_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_vector,_playerUID],_classname];

                    publicVariableServer "PVDZE_obj_Publish";

 

// code for other objects

                        PVDZE_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_vector,_playerUID],_classname];

                        publicVariableServer "PVDZE_obj_Publish";

 

Much of the server_monitor.sqf code pertains to streaming the list of objects stored in the database to the server so that the objects can be rendered. I am not that familiar with how this happens beyond the fact that it must.

 

I would tripple check that all changes to code are correct to start, then see whether the types of objects that are causing problems are actually being saved in the database and retrieved. I hope this is helpful.

 

 

Yeah my bad. Apparently telling BE to "restart" at certain times in the scheduler only means restart the map, not the server. Telling it to "shutdown" actually restarts the server. No wonder I was having drama's. Thanks to all.

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