Robert261171 Posted July 17, 2017 Report Share Posted July 17, 2017 Can anyone help me with building a bridge on a napf map, I've been playing with the 3d editor with no luck. I want the bridge to go from the airport to suhrenfeld array island. The reason is I have made a Ai island and want to make it easier for players to get there. Hope you can help.. Link to comment Share on other sites More sharing options...
0 seelenapparat Posted July 21, 2017 Report Share Posted July 21, 2017 y, I remember now, that there was a problem with it showing up sometimes. what helps is this: 1. easy way: just relog and it should show. 2. better way: do the same with the bridge on the client side. what I mean is this: execute the same function from init. sqf (if (!isDedicated) then { part) and let the bridge spawn clientside too. so its executed from the server and the client. this fixes the issue of the bridge not showing up for the first player to join. Link to comment Share on other sites More sharing options...
0 Robert261171 Posted July 21, 2017 Author Report Share Posted July 21, 2017 On 7/21/2017 at 9:21 AM, Robert261171 said: Ive tried this one and nothing shows up. Expand I get this error, 17:20:53 Error in expression < [[15259.6,16511.8,0.00181246], 54.0763,,"MAP_bridge_asf1_25",39,40,0,0] call fn> 17:20:53 Error position: <,"MAP_bridge_asf1_25",39,40,0,0] call fn> 17:20:53 Error Invalid number in expression 17:20:53 File z\addons\dayz_server\buildings\bridge.sqf, line 19 17:20:53 Error in expression <select 5),_i*(_this select 6)]]; Link to comment Share on other sites More sharing options...
0 seelenapparat Posted July 21, 2017 Report Share Posted July 21, 2017 you have 2 ,, after the direction parameter. [[15259.6,16511.8,0.00181246], 54.0763,,"MAP_bridge_asf1_25",39,40,0,0] call fnc_bridgeA2; Link to comment Share on other sites More sharing options...
0 Robert261171 Posted July 22, 2017 Author Report Share Posted July 22, 2017 On 7/21/2017 at 5:55 PM, seelenapparat said: you have 2 ,, after the direction parameter. [[15259.6,16511.8,0.00181246], 54.0763,,"MAP_bridge_asf1_25",39,40,0,0] call fnc_bridgeA2; Expand yes working now thanks, how can I adjust the height of the bridge? Link to comment Share on other sites More sharing options...
0 seelenapparat Posted July 22, 2017 Report Share Posted July 22, 2017 third parameter in the first array. change 0.00181246 to something higher. 0.1081246 e.g. Link to comment Share on other sites More sharing options...
0 Robert261171 Posted July 22, 2017 Author Report Share Posted July 22, 2017 On 7/22/2017 at 11:37 AM, seelenapparat said: third parameter in the first array. change 0.00181246 to something higher. 0.1081246 e.g. Expand yes got it all working, thanks, just sometimes I have to re-log my player for the bridge to show up. any ideas? Link to comment Share on other sites More sharing options...
0 Robert261171 Posted July 22, 2017 Author Report Share Posted July 22, 2017 Yes got this all working now, Thank you all for your help. Reveal hidden contents Called it in the init.SQF if (isServer) then { if (dayz_POIs && (toLower worldName == "chernarus")) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus\poi\init.sqf";}; call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\dynamic_vehicle.sqf"; call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\server_monitor.sqf"; //Extra Buildings execVM "\z\addons\dayz_server\traders\napf.sqf"; //Add trader agents execVM "\z\addons\dayz_server\bankTraders\napf.sqf"; //Add banking agents execVM "\z\addons\dayz_server\buildings\Hero.sqf"; execVM "\z\addons\dayz_server\buildings\insel.sqf"; execVM "\z\addons\dayz_server\buildings\Bridge.sqf"; And the script is, /* By: j0k3r5 / www.j0k3r5.com If modified and released give credits where due, thank you. */ fnc_bridgeA2 = { private ["_start","_obj"]; _start = createVehicle [_this select 2,_this select 0,[],0,"CAN_COLLIDE"]; _start setVectorUp [0,0,1]; _start setDir (_this select 1); _start setPosATL (_this select 0); for "_i" from 1 to (_this select 3) do { _obj = createVehicle [_this select 2,_this select 0,[],0,"CAN_COLLIDE"]; _obj attachTo [_start, [_i*(_this select 4),_i*(_this select 5),_i*(_this select 6)]]; }; }; [[16661.828, 17280.934, -5.7427592], 148,"Land_nav_pier_m_2",41,40,0,0] call fnc_bridgeA2; All done Link to comment Share on other sites More sharing options...
0 seelenapparat Posted July 22, 2017 Report Share Posted July 22, 2017 On 7/22/2017 at 11:41 AM, Robert261171 said: just sometimes I have to re-log my player for the bridge to show up. any ideas? Expand check this thread, I explained the problem already. Link to comment Share on other sites More sharing options...
0 Anhor Posted July 25, 2017 Report Share Posted July 25, 2017 On 7/21/2017 at 1:33 PM, seelenapparat said: y, I remember now, that there was a problem with it showing up sometimes. what helps is this: 1. easy way: just relog and it should show. 2. better way: do the same with the bridge on the client side. what I mean is this: execute the same function from init. sqf (if (!isDedicated) then { part) and let the bridge spawn clientside too. so its executed from the server and the client. this fixes the issue of the bridge not showing up for the first player to join. Expand Correct me if I´m wrong ,,,,,,, but ...... when you call this directly from the init.sqf and not from the dayz_server.pbo you need only once of them, or? What I mean is create a new folder in the mpmission like "bridge" and name the script bridge.sqf ....... then call it from the init.sqf with [] execVM "\bridge\bridge.sqf"; there is no need for it in the dayz_server.pbo. And both, the server and the client side hase it. Link to comment Share on other sites More sharing options...
0 kingpapawawa Posted July 25, 2017 Report Share Posted July 25, 2017 On 7/21/2017 at 4:51 PM, Robert261171 said: I get this error, 17:20:53 Error in expression < [[15259.6,16511.8,0.00181246], 54.0763,,"MAP_bridge_asf1_25",39,40,0,0] call fn> 17:20:53 Error position: <,"MAP_bridge_asf1_25",39,40,0,0] call fn> 17:20:53 Error Invalid number in expression 17:20:53 File z\addons\dayz_server\buildings\bridge.sqf, line 19 17:20:53 Error in expression <select 5),_i*(_this select 6)]]; Expand Thats my fault for the ,, before "MAP_bridge_asf1_25" in the original post i made, remove one of the , and ill correct my post now. Link to comment Share on other sites More sharing options...
0 Robert261171 Posted July 26, 2017 Author Report Share Posted July 26, 2017 On 7/25/2017 at 8:48 PM, Anhor said: Correct me if I´m wrong ,,,,,,, but ...... when you call this directly from the init.sqf and not from the dayz_server.pbo you need only once of them, or? What I mean is create a new folder in the mpmission like "bridge" and name the script bridge.sqf ....... then call it from the init.sqf with [] execVM "\bridge\bridge.sqf"; there is no need for it in the dayz_server.pbo. And both, the server and the client side hase it. Expand yes thats what I have done, put it all in the mission.pbo instead of the server.pbo and works fine now Link to comment Share on other sites More sharing options...
0 Thug Posted July 31, 2017 Report Share Posted July 31, 2017 If you are talking about the island to the east of the north airfield, I have one if you want. Link to comment Share on other sites More sharing options...
0 DAKA Posted July 31, 2017 Report Share Posted July 31, 2017 nvm, i named my folder wrong Link to comment Share on other sites More sharing options...
0 DAKA Posted July 31, 2017 Report Share Posted July 31, 2017 nope, cant get this to work. no bridge shows up Link to comment Share on other sites More sharing options...
0 Anhor Posted July 31, 2017 Report Share Posted July 31, 2017 On 7/31/2017 at 4:58 PM, DAKA said: nope, cant get this to work. no bridge shows up Expand The script works perfect, not only with bridges. Also with illumination of a runway with lights, with walls and so on. Link to comment Share on other sites More sharing options...
0 DAKA Posted July 31, 2017 Report Share Posted July 31, 2017 I am unable to get it to work. you are lucky then. I have tried everything to get it to work. Link to comment Share on other sites More sharing options...
0 Anhor Posted July 31, 2017 Report Share Posted July 31, 2017 On 7/31/2017 at 7:43 PM, DAKA said: I am unable to get it to work. you are lucky then. I have tried everything to get it to work. Expand Holy sh**! Copy this and call it bridge.sqf: Reveal hidden contents /* By: j0k3r5 / www.j0k3r5.com If modified and released give credits where due, thank you. */ fnc_bridgeA2 = { private ["_start","_obj"]; _start = createVehicle [_this select 2,_this select 0,[],0,"CAN_COLLIDE"]; _start setVectorUp [0,0,1]; _start setDir (_this select 1); _start setPosATL (_this select 0); for "_i" from 1 to (_this select 3) do { _obj = createVehicle [_this select 2,_this select 0,[],0,"CAN_COLLIDE"]; _obj attachTo [_start, [_i*(_this select 4),_i*(_this select 5),_i*(_this select 6)]]; }; }; [[15259.6,16511.8,0.00181246], 54.0763,,"Land_nav_pier_m_2",39,40,0,0] call fnc_bridgeA2; Create a folder called "bridge" in your mpmission folder and save it there! After that at the bottom of your init.sqf (mpmission) paste this: Reveal hidden contents [] execVM "bridge\bridge.sqf"; Thats it! Works perfect! Link to comment Share on other sites More sharing options...
0 DAKA Posted July 31, 2017 Report Share Posted July 31, 2017 lol, thats what I did and it did not work. Link to comment Share on other sites More sharing options...
0 Anhor Posted July 31, 2017 Report Share Posted July 31, 2017 On 7/31/2017 at 8:40 PM, DAKA said: lol, thats what I did and it did not work. Expand Your server must be a very special one ...... Link to comment Share on other sites More sharing options...
0 Thug Posted July 31, 2017 Report Share Posted July 31, 2017 On 7/20/2017 at 12:31 AM, kingpapawawa said: This bridge starts behind AWOLS and goes to the island. 1400+m away (well it should) Expand My bridge is south of that, with no bumps or gaps. Thanks for the information. I am going to try this. If it works, you will have proven that I wasted way to many hours in editor lol Link to comment Share on other sites More sharing options...
0 DAKA Posted July 31, 2017 Report Share Posted July 31, 2017 must be, its GTX. Link to comment Share on other sites More sharing options...
0 DAKA Posted July 31, 2017 Report Share Posted July 31, 2017 I will try it again. which code do I use, there are a couple of them listed here. which would you suggest. Link to comment Share on other sites More sharing options...
0 Anhor Posted July 31, 2017 Report Share Posted July 31, 2017 On 7/31/2017 at 8:43 PM, Thug said: My bridge is south of that, with no bumps or gaps. Thanks for the information. I am going to try this. If it works, you will have proven that I wasted way to many hours in editor lol Expand The problem is the direction ....... 0° should lead it north, 90° east, 180° south and 270° west (seen from the start coordinate) @DAKA the one I post bevor. Thug 1 Link to comment Share on other sites More sharing options...
0 Thug Posted July 31, 2017 Report Share Posted July 31, 2017 On 7/31/2017 at 8:37 PM, Anhor said: 54.0763,,"Land_nav_pier_m_2" Expand should there be 2 commas behind 54.0763? Link to comment Share on other sites More sharing options...
0 Anhor Posted July 31, 2017 Report Share Posted July 31, 2017 On 7/31/2017 at 9:05 PM, Thug said: should there be 2 commas behind 54.0763? Expand Nope, sry. Thug 1 Link to comment Share on other sites More sharing options...
Question
Robert261171
Can anyone help me with building a bridge on a napf map,
I've been playing with the 3d editor with no luck.
I want the bridge to go from the airport to suhrenfeld array island.
The reason is I have made a Ai island and want to make it easier for players to get there.
Hope you can help..
Link to comment
Share on other sites
Top Posters For This Question
14
11
10
9
Popular Days
Jul 31
18
Jul 17
16
Oct 16
5
Jul 19
5
Top Posters For This Question
Robert261171 14 posts
DAKA 11 posts
Anhor 10 posts
juandayz 9 posts
Popular Days
Jul 31 2017
18 posts
Jul 17 2017
16 posts
Oct 16 2017
5 posts
Jul 19 2017
5 posts
Popular Posts
seelenapparat
at the bottom of serverfunctions.sqf or in a seperate file called from serverfunctions.sqf you put this: fnc_bridgeA2 = { private ["_start","_obj"]; _start = createVehicle [_t
Anhor
Call it land,sqf or bridges.sqf, or whatever you want and call it from init.sqf. These are 3 bridges. 1. From Homburg to the big island west. 2. From the big island to the small island
kingpapawawa
if you use the function above "fnc_bridgeA2" then all you have to do is pick a starting location for the bridge and then... [[starting,coords,here], direction here,"Land_nav_pier_m_2",number of t
64 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now