Riddlez Posted January 10, 2015 Report Share Posted January 10, 2015 as i said temporary rides as in until restart which is 4 hours on my server, using addaction in the mission.sqm Link to comment Share on other sites More sharing options...
Coco-Nuts Posted January 10, 2015 Report Share Posted January 10, 2015 Ok, I don't understand why my vehicle disappear after spawn. I tried to use : spwnveh setVariable ["Sarge",1,true]; call EPOCH_server_save_vehicle call EPOCH_server_setVToken; Still the same issue. Link to comment Share on other sites More sharing options...
Amdathlon Posted January 10, 2015 Author Report Share Posted January 10, 2015 Maybe do a script to operate in a way that should pm me a letter! I'm sorry that I have not been for a few days but had problems! Coming Soon everyone a menu that players can use the script for anyone who wants to operate the craft you can write me in Private! sorry for my bad english for knowledge! Link to comment Share on other sites More sharing options...
Liam Posted January 10, 2015 Report Share Posted January 10, 2015 Ok, I don't understand why my vehicle disappear after spawn. I tried to use : spwnveh setVariable ["Sarge",1,true]; call EPOCH_server_save_vehicle call EPOCH_server_setVToken; Still the same issue. Dont think sarge does anything? is'nt that a pretty old variable. call EPOCH_server_save_vehicle call EPOCH_server_setVToken; Needs to be run serverside. Link to comment Share on other sites More sharing options...
drsubo Posted January 10, 2015 Report Share Posted January 10, 2015 so I have everything working great, the scroll wheel add action is all good. It takes the items out of inventory and spawns vehicle and its works fine but then the cleanup. I cant get around it. I am using the script client side. from init I call the addaction to add to player then from there it goes to the spawn vehicle script. so when the player does that its spawning the vehicle client side and it gets deleted. is there anyway to have the players addaction call a script and make the script run server side. so I can get around the cleanup. Since the script starts and runs client side idk how to make the players client side script go and call t server side script. Anyone have any ideas Link to comment Share on other sites More sharing options...
Paradox121 Posted January 11, 2015 Report Share Posted January 11, 2015 Work this now ? I dont have an addAction Ingame then Link to comment Share on other sites More sharing options...
Humpabry Posted January 11, 2015 Report Share Posted January 11, 2015 nah same added this to init.sqf act = player addaction [("<t color="#0074E8"">" + ("Bike") +"</t>"),"Bike.sqf","",5,false,true,"","]; and made bike.sqf and added the code but no self action Link to comment Share on other sites More sharing options...
1Man Posted January 11, 2015 Report Share Posted January 11, 2015 Im in the same boat as drsubo I have the menu working but vehicle spawns for 3 secs and poof Link to comment Share on other sites More sharing options...
Coco-Nuts Posted January 11, 2015 Report Share Posted January 11, 2015 Yup the cleanup is done when the add action come from client side I think. Link to comment Share on other sites More sharing options...
Humpabry Posted January 11, 2015 Report Share Posted January 11, 2015 should this act = player addaction [("<t color="#0074E8"">" + ("Bike") +"</t>"),"Bike.sqf","",5,false,true,"","]; be this addaction = player addaction [("<t color="#0074E8"">" + ("Bike") +"</t>"),"Bike.sqf","",5,false,true,"","]; Link to comment Share on other sites More sharing options...
1Man Posted January 11, 2015 Report Share Posted January 11, 2015 Yup the cleanup is done when the add action come from client side I think. Ya trying to think of a way to make the vehicle spawn server side but near the client. Link to comment Share on other sites More sharing options...
Coco-Nuts Posted January 12, 2015 Report Share Posted January 12, 2015 I tried to use a custom EPOCH_localCleanup.sqf file but still the same issue. Link to comment Share on other sites More sharing options...
hoxor Posted January 12, 2015 Report Share Posted January 12, 2015 Hello All, I try to use this script and not work. You can help me? Link to comment Share on other sites More sharing options...
1Man Posted January 12, 2015 Report Share Posted January 12, 2015 Simply put no it doesn't work Link to comment Share on other sites More sharing options...
hoxor Posted January 12, 2015 Report Share Posted January 12, 2015 Ok thanks 1MAN ^^. Link to comment Share on other sites More sharing options...
Coco-Nuts Posted January 12, 2015 Report Share Posted January 12, 2015 The add action works if you modify the script a little bit but the vehicle is cleanup by the server after the spawn. I'm trying to workaround using the file EPOCH_localCleanup.sqf to prevent the vehicle disappearing after spawn. Someone told me that we can easily solve this issue if you break the DLL but it's against the Epoch mod licence so we have to find a workaround. Link to comment Share on other sites More sharing options...
1Man Posted January 13, 2015 Report Share Posted January 13, 2015 Yes you could but there has to be a way w/o breaking the TOS Link to comment Share on other sites More sharing options...
Paradox121 Posted January 13, 2015 Report Share Posted January 13, 2015 Lol guys work these Script now ? Link to comment Share on other sites More sharing options...
Liam Posted January 13, 2015 Report Share Posted January 13, 2015 The add action works if you modify the script a little bit but the vehicle is cleanup by the server after the spawn. I'm trying to workaround using the file EPOCH_localCleanup.sqf to prevent the vehicle disappearing after spawn. Someone told me that we can easily solve this issue if you break the DLL but it's against the Epoch mod licence so we have to find a workaround. Do you mind sharing the code ? Lol guys work these Script now ? i will post a working version if i can get addaction to work. even if i dont see the point of all players being able to spawn vehicles on your server like this =) Link to comment Share on other sites More sharing options...
Paradox121 Posted January 13, 2015 Report Share Posted January 13, 2015 Okay thx Link to comment Share on other sites More sharing options...
Amdathlon Posted January 13, 2015 Author Report Share Posted January 13, 2015 working mission pbo http://mega.co.nz/#!w1B3QaaQ!l5JGV25r2LBnk_kLT9f2KGUxmxbAUDYccb9sgRbTQl0 Link to comment Share on other sites More sharing options...
Coco-Nuts Posted January 13, 2015 Report Share Posted January 13, 2015 Are you sure Amdathlon ? There is an admin tool in you pbo file. Whatever, I got the deploy bike using this : Step 1 Make a Scripts folder in your mission folder. Step 2 Download these 2 files : fn_selfActions.sqf Ebike.sqf And put them in your Scripts folder. Step 3 In your "init.sqf" file put this line at the bottom : //fn_selfActions [] execVM "Scripts\fn_selfActions.sqf"; Now the problem is that the Ebike is cleanup after spawn by the server. So I tried to workaround with a custom EPOCH_localCleanup.sqf file. I think it's this file which delete the vehicle after spawn. Link to comment Share on other sites More sharing options...
1Man Posted January 13, 2015 Report Share Posted January 13, 2015 N/M Link to comment Share on other sites More sharing options...
DirtySanchez Posted January 14, 2015 Report Share Posted January 14, 2015 Are you sure Amdathlon ? There is an admin tool in you pbo file. Whatever, I got the deploy bike using this : Step 1 Make a Scripts folder in your mission folder. Step 2 Download these 2 files : fn_selfActions.sqf Ebike.sqf And put them in your Scripts folder. Step 3 In your "init.sqf" file put this line at the bottom : //fn_selfActions [] execVM "Scripts\fn_selfActions.sqf"; Now the problem is that the Ebike is cleanup after spawn by the server. So I tried to workaround with a custom EPOCH_localCleanup.sqf file. I think it's this file which delete the vehicle after spawn. Thanks for your share Coco. I will look into this later after work and maybe come up with some type of call server side and make a static location to spawn it in. Maybe do 3 boxes for crafting your ebike, one at each spawn. These locations are the only to spawn the bikes for now until we figure out how to keep the bikes in game. Then have 3 different sqf's ie. ebikeE.sqf ebikeC.sqf and ebikeW.sqf Each one of the sqf's will have a specific spot to spawn the ebike for the player. Sorry just spitballing while at work...... Link to comment Share on other sites More sharing options...
pr0dukt Posted January 14, 2015 Report Share Posted January 14, 2015 The classname ebike_epoch just needs to be added to the Safe_vehicles array in the vehiclesimulation.fsm and it can be triggered by players the same way the UAV and Parachutes are, without being picked up by the de simulate cleanup. All found in the server_monitor.fsm. Now the trick is adding it to the said array. Without adding it to the server code directly, and breaking dll CRC checksum. ;) It's possible. 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