Jump to content

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


striker

Recommended Posts

You have definitely stuffed something up somewhere. At the 1:05 mark in your video where you have snapped the cinder wall to the upgraded cinder wall, you leant left and the wall swung right. When you lean left, it's supposed to swing left :)

 

Alos, to cancel building just press escape. No need to shoot or run away :)

Link to comment
Share on other sites

Its just my keybindings, Q lean left, E stand up, alt switch between 1st and 3rd person.

 

Edit: sometimes when snapping (even without BV) objects rotate 180 degrees or 90 degrees one way or another. Its pretty damn random and fun when setting up doors.

Link to comment
Share on other sites

 

Have you tried this : 

_object setVariable["memDir",_dir,true];
/*#########################REMOVED FOR INDESTRUCTIBLE ITEMS#########################
				if (DZE_GodModeBase) then {
					_object addEventHandler ["HandleDamage", {false}];
				} else {
					_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
				};
##################################################################################*/

Yeah, no success. Is this how yours is setup?

Link to comment
Share on other sites

_object setVariable["memDir",_dir,true];
//#########################INDESTRUCTIBLE ITEMS#########################
			if ((typeOf _object) in indestructible) then {
				_object addEventHandler ["HandleDamage", {false}];
				_object enableSimulation false;
			} else {
				_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
			};
//######################################################################
			
			if ((typeOf _object) in dayz_allowedObjects) then {
//#########################REMOVED FOR INDESTRUCTIBLE ITEMS#########################
//				if (DZE_GodModeBase) then {
//					_object addEventHandler ["HandleDamage", {false}];
//				} else {
//					_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
//				};
//##################################################################################
				// Test disabling simulation server side on buildables only.
				_object enableSimulation false;
				// used for inplace upgrades && lock/unlock of safe
				_object setVariable ["OEMPos", _pos, true];
				
			};

Try it there. I don't use the indestructible bases script, I just had a look at it and figured it could go there. I am no coder but by the looks you could even delete the commented out section and replace it with the top portion?

                        _object setVariable["memDir",_dir,true];
			if ((typeOf _object) in indestructible) then {
				_object addEventHandler ["HandleDamage", {false}];
				_object enableSimulation false;
			} else {
				_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
			};

			
			if ((typeOf _object) in dayz_allowedObjects) then {
				// Test disabling simulation server side on buildables only.
				_object enableSimulation false;
				// used for inplace upgrades && lock/unlock of safe
				_object setVariable ["OEMPos", _pos, true];
				
			};

Give it a try man, what have you got to lose? :)

Link to comment
Share on other sites

Hi everyone I am having an issue where plot poles seem to be moving around. I have installed Vector Building and Snap Pro as well as Zupa Plot Management and that seems to be working fine at the moment. I can place A plot pole and a few random buildables but on restart the plot pole seemed to have magicly gone so I checked my RPT and to my surprise it hasnt gone but it has moved location. The RPT error is in the spoiler below.

 

19:47:26 "HIVE: Starting"

19:47:26 "HIVE: trying to get objects"
19:47:26 "HIVE: found 25 objects"
19:47:26 "HIVE: Commence Object Streaming..."
19:47:26 Error in expression <"OBJ","349","Plastic_Pole_EP1_DZ","11",[any,any,[[0.419,-0.908,0],[0,0,1]]],[["7>
19:47:26   Error position: <any,any,[[0.419,-0.908,0],[0,0,1]]],[["7>
19:47:26   Error Undefined variable in expression: any
19:47:26 "HIVE: got 1 Epoch Objects and 24 Vehicles"
19:47:32 "MOVED OBJ: "349" of class Plastic_Pole_EP1_DZ to pos: [4528.72,10092.9,0]"
19:47:32 Error in expression <ts) then {
_object setVariable["memDir",_dir,true];
if (DZE_GodModeBase) then {
>
19:47:32   Error position: <_dir,true];
if (DZE_GodModeBase) then {
>
19:47:32   Error Undefined variable in expression: _dir
19:47:32 File z\addons\dayz_server\system\server_monitor.sqf, line 253
19:47:32 Error in expression <neCargoGlobal  _object;
 
_object setdir _dir;
if(_vecExists)then{
_object setVec>
19:47:32   Error position: <_dir;
if(_vecExists)then{
_object setVec>
19:47:32   Error Undefined variable in expression: _dir

19:47:32 File z\addons\dayz_server\system\server_monitor.sqf, line 238

 

Any help would be hugely appreciated ! 

 

Edit: Fixed by re installing all scripts to a new server.pbo and mission.pbo I think something was corrupted because I copied a new server_monitor in and still had the issues.

Edited by nathan9117
Link to comment
Share on other sites

I have installed the Snap Pro + Vector Version and whenever I pg up or pg down the object rotates either left or right as well as moving up and down. If i turn snap on, the objects still rotate, but in the same direction going up or down, and at a smaller degree.

 

Anyone had this problem?

 

Nevermind, I found my error.

Hi there I am having this exact same error what was your problem and how did you fix it thanks ?

Link to comment
Share on other sites

Hi there I am having this exact same error what was your problem and how did you fix it thanks ?

https://www.dropbox.com/s/ez4ni2ac734dlc1/dayz_spaceInterrupt.sqf?dl=0

https://www.dropbox.com/s/fw1tn8ysugrlqtn/player_build.sqf?dl=0

 

I can't remember what it was. But pretty sure it was something to do with the merging of one of these files with one I already had. Take a look and compare them to yours.

 

Also, make sure you are not calling either of them from your compiles or from another script.

Link to comment
Share on other sites

Hi there I am having this exact same error what was your problem and how did you fix it thanks ?

For anyone having this problem I have managed to fix it thanks to chi for sending me some files to compare. Simply check your player_build.sqf for this like  _object setDir (getDir _object); if you have it remove it and it will fix the issue above :)

Link to comment
Share on other sites

  • 2 weeks later...

Hello everyone, 
 
I have tried to install Snap building Pro with Vectors onto my server, Snap Building Pro Works 100% fine for me. 

But the problem I am having is that Vectors will work during the restart session 100% fine until the server restarts and comes back then ever thing what was on an angle will be reset to default before the vectors.
 

I have checked the data base and it seems like they are getting saved to the database and I have triple checked the Server_monitor.sqf

BEFORE                                                                                                                                                   AFTER
ugDCB2Ul.jpgqJ3BvRyl.jpg

 

 

 

Is their anything I missed, or is it clear as day to why it is not working!!

 

 

 

Link to comment
Share on other sites

  • 4 weeks later...

Can anyone tell me what changes need to be done to make PlotManagement work with this? the upgrade/downgrade.sqf changes are easily done but vector building changes the 3rd file required for regular building so much I just can't figure out how to do it so players can only upgrade/downgrade on other peoples plotpoles but not build themself

Link to comment
Share on other sites

  • 2 weeks later...

 

Error in expression <rue;
DZE_memForBack = DZE_memForBack + (DZE_curDegree * -1);
};
case "Pitch Back>
  Error position: <DZE_curDegree * -1);
};
case "Pitch Back>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 88
Error in expression <; 
_upX = 0; 
_upY = 0; 
_upZ = 1; 
if (_aroundX != 0) then { 
_dirY = cos _arou>
  Error position: <_aroundX != 0) then { 
_dirY = cos _arou>
  Error Undefined variable in expression: _aroundx
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\fnc_SetPitchBankYaw.sqf, line 14
Error in expression <if(DZE_updateVec) then{
[_objectHelper,[DZE_memForBack,DZE_memLeftRight,DZE_memD>
  Error position: <DZE_memForBack,DZE_memLeftRight,DZE_memD>
  Error Undefined variable in expression: dze_memforback
File mpmissions\__CUR_MP.namalsk\custom\snap_pro\player_build.sqf, line 329
Error in expression <
DZE_updateVec = true;
DZE_memForBack = DZE_memForBack + DZE_curDegree;
};
case >
  Error position: <DZE_memForBack + DZE_curDegree;
};
case >
  Error Undefined variable in expression: dze_memforback
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 94
Error in expression <; 
_upX = 0; 
_upY = 0; 
_upZ = 1; 
if (_aroundX != 0) then { 
_dirY = cos _arou>
  Error position: <_aroundX != 0) then { 
_dirY = cos _arou>
  Error Undefined variable in expression: _aroundx
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\fnc_SetPitchBankYaw.sqf, line 14
Error in expression <if(DZE_updateVec) then{
[_objectHelper,[DZE_memForBack,DZE_memLeftRight,DZE_memD>
  Error position: <DZE_memForBack,DZE_memLeftRight,DZE_memD>
  Error Undefined variable in expression: dze_memforback
File mpmissions\__CUR_MP.namalsk\custom\snap_pro\player_build.sqf, line 329
Error in expression <;
DZE_memLeftRight = DZE_memLeftRight + DZE_curDegree;
};
case "Reset":{
vectorA>
  Error position: <DZE_curDegree;
};
case "Reset":{
vectorA>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 106
Error in expression <; 
_upX = 0; 
_upY = 0; 
_upZ = 1; 
if (_aroundX != 0) then { 
_dirY = cos _arou>
  Error position: <_aroundX != 0) then { 
_dirY = cos _arou>
  Error Undefined variable in expression: _aroundx
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\fnc_SetPitchBankYaw.sqf, line 14
Error in expression <if(DZE_updateVec) then{
[_objectHelper,[DZE_memForBack,DZE_memLeftRight,DZE_memD>
  Error position: <DZE_memForBack,DZE_memLeftRight,DZE_memD>
  Error Undefined variable in expression: dze_memforback
File mpmissions\__CUR_MP.namalsk\custom\snap_pro\player_build.sqf, line 329
Error in expression < then {
s_player_toggleDegrees=[];
{
if(DZE_curDegree == _x) then{
degreeActions>
  Error position: <DZE_curDegree == _x) then{
degreeActions>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 52
Error in expression < then {
s_player_toggleDegrees=[];
{
if(DZE_curDegree == _x) then{
degreeActions>
  Error position: <DZE_curDegree == _x) then{
degreeActions>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 52
Error in expression < then {
s_player_toggleDegrees=[];
{
if(DZE_curDegree == _x) then{
degreeActions>
  Error position: <DZE_curDegree == _x) then{
degreeActions>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 52
Error in expression < then {
s_player_toggleDegrees=[];
{
if(DZE_curDegree == _x) then{
degreeActions>
  Error position: <DZE_curDegree == _x) then{
degreeActions>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 52
Error in expression < then {
s_player_toggleDegrees=[];
{
if(DZE_curDegree == _x) then{
degreeActions>
  Error position: <DZE_curDegree == _x) then{
degreeActions>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 52
Error in expression < then {
s_player_toggleDegrees=[];
{
if(DZE_curDegree == _x) then{
degreeActions>
  Error position: <DZE_curDegree == _x) then{
degreeActions>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 52
Error in expression < then {
s_player_toggleDegrees=[];
{
if(DZE_curDegree == _x) then{
degreeActions>
  Error position: <DZE_curDegree == _x) then{
degreeActions>
  Error Undefined variable in expression: dze_curdegree
File mpmissions\__CUR_MP.namalsk\custom\BuildVectors\build_vectors.sqf, line 52

 

Worked fine until I switched over to Namalsk, any idea on what will fix it?
The snapping works and the Vector menu pops up but when I click on any of the options nothing happens and what I posted above appears in my client.rpt
When I try to expand the Degrees menu there are no options there either, I dont remember if thats normal or not.

EDIT: Fixed. the DZE_ part in the init had an "s" missing.

Edited by bFe
Link to comment
Share on other sites

Has anyone fixed the issue when trying to upgrade an upside down block garage door?

It flips back right side up when upgrading.

I see others in this thread have reported this but I see no solution...

I know about using already locked wood garage doors but how to do it with cinderblock garage?

 

Thank you.

Link to comment
Share on other sites

Has anyone fixed the issue when trying to upgrade an upside down block garage door?

It flips back right side up when upgrading.

I see others in this thread have reported this but I see no solution...

I know about using already locked wood garage doors but how to do it with cinderblock garage?

 

Thank you.

Sounds like you haven't updated your player_upgrade,sqf i.e its not getting and then re-setting the vector after upgrade

Link to comment
Share on other sites

Sounds like you haven't updated your player_upgrade,sqf i.e its not getting and then re-setting the vector after upgrade

I can't figure out how to update the player_upgrade,sqf

Is it just the one file or do I need the http://epochmod.com/forum/index.php?/topic/14447-how-toupdate-snap-build-pro-w-admin-fast-build-upgrade-and-extra-rc-building-system/?

I wasn't able to update using that link because it requires PFL.

Do I need PFL or can I update without it?

Link to comment
Share on other sites

I have the build vectors installed but after every server restart, the vector positions reset and everything is placed horizontal again... I have checked the installation instructions several times now and it's exactly how it's supposed to be according to the guide ... what should I be looking at?

Link to comment
Share on other sites

I can't figure out how to update the player_upgrade,sqf

Is it just the one file or do I need the http://epochmod.com/forum/index.php?/topic/14447-how-toupdate-snap-build-pro-w-admin-fast-build-upgrade-and-extra-rc-building-system/?

I wasn't able to update using that link because it requires PFL.

Do I need PFL or can I update without it?


I believe off the top of my head this is what you need to do, all of this should be in player_upgrade.sqf (untested) I should really push out a version of that script without P4L

Find this
// Get direction
_dir = getDir _obj;

Add this below it
//Get Vector
_vector = [(vectorDir _obj),(vectorUp _obj)];

Find this
// Set direction
_object setDir _dir;

Add this below it
// Set vector
_object setVectorDirAndUp _vector;

Lastly find this
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,player];
publicVariableServer "PVDZE_obj_Swap";

And replace with
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_vector],_classname,_obj,player];
publicVariableServer "PVDZE_obj_Swap";

Should be good from there :) any issues give me a PM

Link to comment
Share on other sites

I believe off the top of my head this is what you need to do, all of this should be in player_upgrade.sqf (untested) I should really push out a version of that script without P4L

Find this
// Get direction
_dir = getDir _obj;

Add this below it
//Get Vector
_vector = [(vectorDir _obj),(vectorUp _obj)];

Find this
// Set direction
_object setDir _dir;

Add this below it
// Set vector
_object setVectorDirAndUp _vector;

Lastly find this
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,player];
publicVariableServer "PVDZE_obj_Swap";

And replace with
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_vector],_classname,_obj,player];
publicVariableServer "PVDZE_obj_Swap";

Should be good from there :) any issues give me a PM

Thank you...I'll test it & let you know how it goes...

Link to comment
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
  • Advertisement
×
×
  • Create New...