Achmed Posted August 27, 2014 Report Share Posted August 27, 2014 Gave that code a try. The sleep does not appear to have fixed it. here is the outcome from the gizmo thing. Link to comment Share on other sites More sharing options...
Achmed Posted August 27, 2014 Report Share Posted August 27, 2014 Previous message was not that clear what was related to what... I placed 1 object down and tried to snap a 2nd object to it with out re logging and this is what the gizmo output was Gizmo = [5.625,3.125,0], Object = 35338100# 982953: cinder_wall_half.p3d After logging to the lobby and rejoining and trying to snap a 2nd object to the first it said this Gizmo = [0.625,0.625,0], Object = 34791d00# 982614: cinder_Wall_half.p3d REMOTE Due to the differences here i decided to check the the database info for the item using infistar admin panel both before logging to lobby and after. apart from a very minor change to the angle (.829 - .83) the rest of the info was identical. Link to comment Share on other sites More sharing options...
raymix Posted August 28, 2014 Author Report Share Posted August 28, 2014 oops, gave you wrong second part of systemchat, I meant to check coords, not the object itself. systemchat format ["Gizmo = %1, Object = %2",(getPosATL _objectSnapGizmo), (getPosATL _nearbyObject)]; Does not matter tho. Seems like only one snap point managed to be teleported. I have honestly no idea what could cause this. All I see is snap points being stuck in same place. Any chance that one of you could PM me your mission file? I can test it on local machine later today. Don't think I need server files for this tho. Just out of curiosity you guys are running steam beta and 1051, right? Link to comment Share on other sites More sharing options...
Achmed Posted August 28, 2014 Report Share Posted August 28, 2014 My previous post may be a bit misleading. The gizmo line shows up about 4 times but each time there the same. I'll sort out and pm you mine in a bit. I'm running latest beta of steam and 1.0.5.1 Link to comment Share on other sites More sharing options...
pozzer18 Posted August 28, 2014 Report Share Posted August 28, 2014 is any one else unable to build on the oil rigs on tavi? items build but when interacted with they disappear eg. i can place a safe but if i open the safe it disappears, any item built also vanishes after server restart Link to comment Share on other sites More sharing options...
raymix Posted August 28, 2014 Author Report Share Posted August 28, 2014 is any one else unable to build on the oil rigs on tavi? items build but when interacted with they disappear eg. i can place a safe but if i open the safe it disappears, any item built also vanishes after server restart It's not SBP related. The fact that you can build stuff there means it works. Truth is rather different, Arma uses different methods to get and set positions, based on terrain, objects underneath player or water level (wave height in A3, too). Problem with this is that epoch was not designed for water bases and only utilizes terrain level. Your stuff does not dissapear, it is spawned in wrong location, probably under water. The moment you open or close the safe, down it goes lol. Ironically enough epoch compiles comes with solution by default, just that it is not used properly (or not used at all). The same function, funny enough, while takes extra few lines of code, is actually faster than traditional solution. Long story short, you'd need to replace all ATL entries within a mod with FNC_GetPos function, growing your mission file size. These things should be addressed in github, tbh and integrated into a mod by default. Link to comment Share on other sites More sharing options...
OSUapoc Posted August 28, 2014 Report Share Posted August 28, 2014 OK, I'm at a loss at this point. I have been unable to get the "F" key to read properly from dayz_spacInterrupt into the game to actually allow the player to engage the snap of the items. Nothing happens and no errors in the RPT. Here's some info: Compiles http://pastebin.com/HdDbVqCS dayz_spaceInterrupt http://pastebin.com/HAppa49F I apologize for the poor post formatting. Currently on a tablet and it is not agreeing with the forum interface. The space interrupt file is the snappro variant, with our group management key added in. That key also does not work for its intended function, I would guess they both suffer the same issue. I cannot say for certainty that any of this interrupt is working A-OK, but I would think the problem would be in the compiles file. I'd appreciate if someone could take a look at these and help me out with finding the flaw. Thanks! Apoc Link to comment Share on other sites More sharing options...
raymix Posted August 28, 2014 Author Report Share Posted August 28, 2014 Apoc Hai, Noticed you are using different path for player_build: player_build = compile preprocessFileLineNumbers "custom\player_build.sqf"; snap_build = compile preprocessFileLineNumbers "custom\snap_pro\snap_build.sqf"; Any particular reason? Merging with other mods or wrong file? Spaceinterrupt file seems to be fine, are you getting snap actions at all? If you do, you are most likely using merged player_build that does not appear to have DZE_F toggles. If you are using modified player_build, post me your file and let me know what mods are used Regards Kind Ray Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2014 Report Share Posted August 28, 2014 i do have a little problem here, i can active snap, and select auto or manual and see the snap points and stuff but it doesnt actually snap ... Link to comment Share on other sites More sharing options...
raymix Posted August 28, 2014 Author Report Share Posted August 28, 2014 i do have a little problem here, i can active snap, and select auto or manual and see the snap points and stuff but it doesnt actually snap ... You need to press F key to detach object so it can snap. Link to comment Share on other sites More sharing options...
OSUapoc Posted August 28, 2014 Report Share Posted August 28, 2014 Here's the file, I'll edit with the list of mods once I get home. http://pastebin.com/zacynnue Major mods: Zupa Coin JAEM Advanced Alchemical ESS Bike/Moto/Mozzie deployables (not sure which version) DZGM Link to comment Share on other sites More sharing options...
raymix Posted August 28, 2014 Author Report Share Posted August 28, 2014 Everything looks fine, weird tho. Can you make sure that none of those scripts are precompiling spaceinterrupt outside of compiles file? Notepad++ lets you open multiple files and search trough it for you. Might as well pop open every single sqf file in your mpmissions. (*.sqf in search bar) Link to comment Share on other sites More sharing options...
itsatrap Posted August 28, 2014 Report Share Posted August 28, 2014 Fun fact just rolled back to version 1.3 and now it works again p, on cherno and tavi :) raymix 1 Link to comment Share on other sites More sharing options...
Guest Posted August 29, 2014 Report Share Posted August 29, 2014 jeah well tried that but didn't work, it just drops the object where i left it but it doesnt snap - probably because im using the merged version with plot for life Link to comment Share on other sites More sharing options...
cen Posted August 29, 2014 Report Share Posted August 29, 2014 WaTTe grab my mission if you want to check my files for snap pro 1.4 with plot pole for life. raymix 1 Link to comment Share on other sites More sharing options...
raymix Posted August 29, 2014 Author Report Share Posted August 29, 2014 Back from work now, can test these things till monday morning. Mathew sent me his NAPF server files already, i'll see if I can assist you somehow. Quite honestly I don't even run other scripts that reuses player build on my own server, not even merged ones, so never had a chance to study them Link to comment Share on other sites More sharing options...
Guest Posted August 29, 2014 Report Share Posted August 29, 2014 @cen - will do, thank you Link to comment Share on other sites More sharing options...
raymix Posted August 29, 2014 Author Report Share Posted August 29, 2014 Alright fixed. Will be pushing out new update, for those who don't want to wait: snap_building.sqf replace whole function with this: fnc_initSnapPointsNearby = { _pos = [_object] call FNC_GetPos; _findWhitelisted = []; _pointsNearby = []; _findWhitelisted = nearestObjects [_pos,_whitelist,(_radius + DZE_snapExtraRange)]-[_object]; snapGizmosNearby = []; { _nearbyObject = _x; _pointsNearby = getArray (missionConfigFile >> "SnapBuilding" >> (typeOf _x) >> "points"); { _objectSnapGizmo = "Sign_sphere10cm_EP1" createVehicleLocal [0,0,0]; _objectSnapGizmo setobjecttexture [0,_objColorInactive]; _objectSnapGizmo setDir (getDir _nearbyObject); _posNearby = _nearbyObject modelToWorld [_x select 0,_x select 1,_x select 2]; if (surfaceIsWater _posNearby) then { _objectSnapGizmo setPosASL [(_posNearby) select 0,(_posNearby) select 1,(getPosASL _nearbyObject select 2) + (_x select 2)]; } else { _objectSnapGizmo setPosATL _posNearby; }; snapGizmosNearby set [count snapGizmosNearby,_objectSnapGizmo]; } count _pointsNearby; } forEach _findWhitelisted; }; It is quite weird how you fight between 2 different limitations just to get this to work. Seems like attaching caused problems when running merged scripts. I rolled back to old method for point creation while keeping new method for checking nearby. Tested with deep water bases, seems to be working fine, restarted to double check and walls + upgraded wall were still there, so should be fine. Tested on NAPF mission Mathew sent me, he had problems with snap points not showing up immediately, they would if client was restarted. Works now, but i am still puzzled as to what caused that... definitely one of other mods using player build, probably conversions between ATL and ASL edit: actually I will wait till tomorrow to see if any more problems arises. Would be nice if someone could confirm that everything works incl water bases with this fix. It works for me, but that's apparently not good enough :P Link to comment Share on other sites More sharing options...
itsatrap Posted August 29, 2014 Report Share Posted August 29, 2014 Funny I only used snap pro :/ Link to comment Share on other sites More sharing options...
Achmed Posted August 29, 2014 Report Share Posted August 29, 2014 I can confirm it looks like its all working fine on land. I tried to build in the sea but couldnt get my gear to open as was swimming so not sure how to do that lol Link to comment Share on other sites More sharing options...
raymix Posted August 29, 2014 Author Report Share Posted August 29, 2014 I can confirm it looks like its all working fine on land. I tried to build in the sea but couldnt get my gear to open as was swimming so not sure how to do that lol ahh, just build a small bridge or something, it will count as water. For deep water base tests I simply added supermarket in middle of ocean, lol ...(server pbo, cherno) watertest.sqf if (isServer) then { _vehicle_0 = objNull; if (true) then { _this = createVehicle ["MAP_A_GeneralStore_01", [15365.4, 1684.8723, -0.046695411], [], 0, "CAN_COLLIDE"]; _vehicle_0 = _this; _this setDir 43.178959; _this setPos [15365.4, 1684.8723, -0.046695411]; }; }; bottom of server_functions.sqf [] ExecVM "\z\addons\dayz_server\waterTest.sqf"; Link to comment Share on other sites More sharing options...
Achmed Posted August 29, 2014 Report Share Posted August 29, 2014 Tested both deep water (top left of Napf map) and also building out from land and both worked fine both before and after a server restart raymix 1 Link to comment Share on other sites More sharing options...
hadhod156 Posted August 30, 2014 Report Share Posted August 30, 2014 I've installed the snap building pro and it works but I don't get a scroll menu to choose snap points nor the dialog in the bottom right any help Link to comment Share on other sites More sharing options...
raymix Posted August 30, 2014 Author Report Share Posted August 30, 2014 I've installed the snap building pro and it works but I don't get a scroll menu to choose snap points nor the dialog in the bottom right any help It doesn't, your compiles are not set up properly. Link to comment Share on other sites More sharing options...
Rocu Posted August 30, 2014 Report Share Posted August 30, 2014 Real nice job with Snap Building Pro, raymix. Been using it for a while now and thought I'd take the opportunity and say some nice words about it :) . The only issue I had with it was that the objects (metal floors mostly) wouldn't line up perfectly, occasionally leaving gaps in between. But I see you've now fixed it with the latest update which makes it the perfect tool for an avid base builder :) . Nice job indeed, keep it up. raymix 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now