Jump to content

[1.4.1] Snap Building PRO


Recommended Posts

  On 9/4/2014 at 1:40 PM, mgm said:

it'd be good to have this ON by default - any chance of having simple step by step instructions (or code snippet) for non-programmers?

thanks.

 

 

I assume someone already has this working - so can you share please?

Thanks!

Link to comment
Share on other sites

Snapping dont works for me, log says this:

 

Ref to nonnetwork object 6d07dd00# 1140706: sphere10cm_ep1.p3d
Ref to nonnetwork object 6d07e400# 1140707: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d720800# 1140708: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d720f00# 1140709: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d721600# 1140710: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d721d00# 1140711: sphere10cm_ep1.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d

Someone know how to fix it?

Link to comment
Share on other sites

  On 7/7/2014 at 2:11 AM, raymix said:

 

snappro.png

 

 

 

I use admin build from Phoenix's DayZ Admin Tools

I use fast build, but then SNAP Pro wont work, only for Build Snapping - Extended v1.6,    so i want to know, is it possible somehow integrate snap pro inside adminbuild. 

Here is admin build files:

 

adminbuild.sqf

  Reveal hidden contents

 

placement.sqf

  Reveal hidden contents

 

repeatbuild.sqf

  Reveal hidden contents

 

keypress.sqf

 

  Reveal hidden contents

Hope u can help with this. Thanks

 

b_560_95_1.png

Link to comment
Share on other sites

  On 9/10/2014 at 9:47 PM, scatershot said:

been trying to install snap building pro

here is the issue im running into 

i go into my compiles.sqf but this line is not there call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";

what should i do?

 

found the compiles.spf in my init folder 

Line  call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";   must be in init.sqf  

 

You call for compiles.sqf from init.sqf   then u make custom compiles and change way to call it in init.sqf line call compile preprocessFileLineNumbers "YourFolder\compiles.sqf";

 

mY BAD english, hope i help u =)

Link to comment
Share on other sites

  On 9/11/2014 at 7:30 PM, poweredbypot said:

quick questions, does 1.4.1 shows its full version on the help screen? I'm damn sure I updated but it only shows me 1.4 when in-game, and I can't figure out if I broke it or if it was always like that.

it doesn't. I decided not to put minor updates in there, plan was not to do versioning there at all, but thought this might help people (should have just gone with versioning credits section), but oh well

 

 

  On 9/9/2014 at 4:06 PM, Shreeden said:

I already have snap installed. What would I need to do to update as I'm not sure what version I currently have.

All updates are simple copy-paste. In fact the whole installation pretty much is a copy paste.

 

 

  On 9/8/2014 at 4:22 PM, kooopa said:

Snapping dont works for me, log says this:

 

Ref to nonnetwork object 6d07dd00# 1140706: sphere10cm_ep1.p3d
Ref to nonnetwork object 6d07e400# 1140707: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d720800# 1140708: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d720f00# 1140709: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d721600# 1140710: sphere10cm_ep1.p3d
Ref to nonnetwork object 5d721d00# 1140711: sphere10cm_ep1.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d
Ref to nonnetwork object 5f923900# 1139803: usordnance.p3d

Someone know how to fix it?

It works, the stuff you see in a debug means that non-network (local vehicles) points were made. Make sure you got latest update, 1.4 was broken for some maps like Napf

 

  On 9/8/2014 at 1:38 PM, mgm said:

I assume someone already has this working - so can you share please?

Thanks!

sorry It was not intended to be used that way, because positioning at start is essential. Reason is - if object is thrown under the terrain or behind other objects, newps would come here with false reports of it not working, wasting everyone's time :)

Also it is possible, yes, you want to adjust player_build file and inverse helperDetach bool, then head to snap_build and readjust switch down below (as simple as that).

But keep in mind, this will cause more trouble than it's worth and would require redesigning point searching function to work properly, there is also no support for custom customization.

Link to comment
Share on other sites

I love this snap building mod of yours, 

but the snapping points on the cinder walls really annoyed me,

the only way to make cinder line up correctly was to place a metal floor down and snap to that. 

 

well i got bored last night and started playing with the points,

this pushes them in closer together and seems to work better metal floors and the overall appearance of the structure.

(in my opinion)

 

changed all values of 2.752 & -2.752 to 2.625 & -2.625 respectively. 

 

snappoints.hpp

  Reveal hidden contents

 

code is there for anyone too lazy to use find and replace in notepad++ or sublime

as always, back up your existing files and i take no responsibility if this seemingly minor change murders your family in their sleep. 

 

enjoy

 

Xp3v2Z8.png

Link to comment
Share on other sites

Plot For Life is not part of this script, however RimBlock also uses player_build file in his script. There are many posts merging these scripts together on several forums as well as video tutorial in my signature literary showing how to merge these 2 mods together.

Link to comment
Share on other sites

Something is wrong with player_build.sqf not really working well when placing plot pole. 1.63.112555  epoch 1.0.5.1

 

18:16:18 "infiSTAR.de Log: SERVER (-) | Plot Pole built @1 by any"
18:16:18 Error in expression <_this select 1;
_allowed = false;
 
if ((typeOf _object) in dayz_allowedObjects) >
18:16:18   Error position: <typeOf _object) in dayz_allowedObjects) >
18:16:18   Error typeof: Type String, expected Object
18:16:18 File z\addons\dayz_server\init\server_functions.sqf, line 143
Link to comment
Share on other sites

Has nothing to do with SBP or player_build.sqf, neither of them even use check_publichobject function... array passed to publish function is epoch's default

The actual error is not in the log you posted, but in the script that passes wrong arguments to that function. Either that or your dayz_allowedObjects array consists of objects not their classnames for whatever reason.

Link to comment
Share on other sites

Can i throw in a quick question! :) In the german youtube installation tutorial, he altså alters the fn_Selfactions. I've done this. And installed it the best i could.

Snapping works perfectly, so no problems there.. But i seem to have lost the ability to use vehicles.. All of the enter / unlock vehicle options on the scroll menu are gone.

 

Anyone know where i have failed ? :)   I cant seem to find any installation instructions how to add the script in the fn_selfActions.sqf it on the Github page. Is it not really needed?

I did put this in the fn_selfactions bottom as the Video stated.

  Reveal hidden contents

// ---------------------------------------BuildSnapping Start------------------------------------

if (!isDedicated) then {
/* Use command menu instead of scroll menu? (default = false) */ 
DZE_SNAP_PRO_USE_COMMAND_MENU = false; 
 
DZE_SNAP_BUILD_NUMKEYS = [0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09­,0x0A,0x0B]; 
 
player_build = compile preprocessFileLineNumbers "custom\snap_pro\player_build.sqf";
snap_build = compile preprocessFileLineNumbers "custom\snap_pro\snap_build.sqf"; 
dayz_spaceInterrupt = compile preprocessFileLineNumbers "custom\snap_pro\dayz_spaceInterrupt.sqf";
 
};
 
// ---------------------------------------BuildSnapping End------------------------------------

 

Link to comment
Share on other sites

SBP has nothing to do with fn_selfActions, man. In general it is a bad idea to add any complex code to that file/function, since it's launched every 0.5 seconds. Add SBP to it and you got yourself a lagfest.

 

I will remove that video from Q&A, stick with compiles :)

Link to comment
Share on other sites

Haha :P Thumbs up! Lagfest indeed! Well, ill try to do it over again to add it and see if i can get a hold of it :)

 

EDIT : Well slap my face and call me Martha..Note to self it! It's a generally bad idea to script at 02 in the morning... as i forgot to change the compiles location!

 

 

Thank you for this awesome mod! This gonna stick with out server for a long time! Priceless! 

Link to comment
Share on other sites

Hey Raymix, I don't know if you would be willing to provide support for this or not, but I'm using Rim's newest P4L build (2.32) and I'm having trouble when it comes to snap_pro integration. When I use Rim's DZE_modularbuild: variable and set to true, I lose control of buildable objects and cannot abort the craft. I get an error in the RPT that states fnc_getpos has an error where the variable "_thingy" comes back as an array and its looking for an object. If I turn off DZE_modularbuild everything goes back to normal and the error is gone.

Now from what I understand from Rim's instructions he has already merged everything necessary where you two use the same files for edits, and all I needed to do was properly path your dayz_spaceinterrupt and snappoints.hpp then enable that variable and I would be good to go, but it is not the case. I have included the error and the function in question for your perusal.

If you tell me its Rim's fault and I need to cry at him thats ok too.

  Reveal hidden contents

 

  Reveal hidden contents

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