KiloSwiss Posted January 19, 2015 Author Report Share Posted January 19, 2015 BIS_fnc_findSafePos is a standard BIS function that can not be changed directly. But it is possible to send wrong arguments to this function, which can cause errors in the script. Spawning an additional unit should not be neccessary, just take one of the units from the group. @Ducky For testing set "_debug = true;" in the file "initMissions.sqf" and for bug reports attach the RPT to Your post (rename it to ###.rpt.txt or zip it). Greez KiloSwiss cyncrwler 1 Link to comment Share on other sites More sharing options...
Madbull Posted January 19, 2015 Report Share Posted January 19, 2015 just curious how would i set this script to allow players to take the crates home for storage? just change the crate classname? Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 19, 2015 Author Report Share Posted January 19, 2015 Make the crate transportable in Your cargo script, depending on which script You use on Your server, but I can't guve You any support for this. Greez KiloSwiss Link to comment Share on other sites More sharing options...
Ducky Posted January 19, 2015 Report Share Posted January 19, 2015 @KiloSwiss did u check the getWorldData??? Ducky 1 Link to comment Share on other sites More sharing options...
jbox88 Posted January 19, 2015 Report Share Posted January 19, 2015 Hi All, I'm having some difficulty with scripting and this has been the only place I've received any help thus far. This is a little random and I apologize, but would someone be willing to schedule some time to meet with me on TS to help walk a fellow gamer/software/hardware enthusiast through scripting? As always, I would greatly appreciate the help and respect your time. If you're willing, please shoot me a PM. I would simply give our TS, but we have a few members that I rather not annoy you :P. Link to comment Share on other sites More sharing options...
Ducky Posted January 19, 2015 Report Share Posted January 19, 2015 Wait Im Blind I didnt see your post about the debug i changed it to true and this is the rpt RPT.txt KiloSwiss 1 Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 19, 2015 Author Report Share Posted January 19, 2015 @KiloSwiss did u check the getWorldData???Hey ducky can You please open the file "fn_getWorldData.sqf" and copy the code at the bottom, open the Island panthera in the editor, paste The code into the debug console and after executing, paste (CTRL+V) the result here or in a PM. For the world Data function, it is working fine, but the findMissionPos function did not interpret the values correctly.I updated the file, this fix will be implemented in the next update://Lines 10 and 11 of "fn_findMissionPos.sqf" _searchRadius = if(_worldRadius > 0 then[{(_worldRadius/2)*0.9 max 3000},{-1}]; _blockRadius = if(_worldRadius > 0 then[{_searchRadius/5 max 500},{500}];Add this fix and test it again on Panthera please.Greez KiloSwiss Link to comment Share on other sites More sharing options...
Xatu Posted January 19, 2015 Report Share Posted January 19, 2015 I also try to get it work on a Pan server but the Missions don´t spwan :( Link to comment Share on other sites More sharing options...
Ducky Posted January 19, 2015 Report Share Posted January 19, 2015 Im getting this error now?? any ideas 19:30:00 Error position: <_pos, [], 10, 'NO_COLLIDE']; sleep 0.1; > 19:30:00 Error Undefined variable in expression: _pos 19:30:00 File sem\scripts\ai\fn_spawnAI.sqf, line 16 19:30:00 Error in expression <{ _group createUnit ['I_Soldier_EPOCH', _pos, [], 10, 'NO_COLLIDE']; sleep 0.1; > Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 19, 2015 Author Report Share Posted January 19, 2015 Ducky please respond to my posts and if You have an error, upload the whole rpt including the file(s) You edited. I'm no longer at my PC but I will check the files tomorrow. @Xatu Please wait until I have this issue fixed and postet an update, and/or try the temporary fix I postet above, in my last post and report back if it works. Greez KiloSwiss Link to comment Share on other sites More sharing options...
Ducky Posted January 19, 2015 Report Share Posted January 19, 2015 Ahah i think i worked out why LOL panthera3 / 0 / [0,0,0] Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 19, 2015 Author Report Share Posted January 19, 2015 Okay then You will have to wait untill I'm back at my PC and fixed the script finally. Thanks for testing, I will hopefully have more time this Week. Greez Kilo Link to comment Share on other sites More sharing options...
Xatu Posted January 19, 2015 Report Share Posted January 19, 2015 _previousPos = _this select 0; _worldRadius = (_this select 1) select 0; _worldCenterPos = (_this select 1) select 1; _searchRadius = if(_worldRadius > 0 then[{(_worldRadius/2)*0.9 max 3000},{-1}]; _blockRadius = if(_worldRadius > 0 then[{_searchRadius/5 max 500},{500}]; _dir = random 360; _posX = (_worldCenterPos select 0) + sin (_dir) * (_searchRadius*0.9); _posY = (_worldCenterPos select 1) + cos (_dir) * (_searchRadius*0.9); _searchPos = [_posX, _posY, 0]; Sorry i´m a Noob :) Is that right ? i testing it atm but 5 min are over and nothing happend Link to comment Share on other sites More sharing options...
Fog Horn Posted January 19, 2015 Report Share Posted January 19, 2015 takes up to 20 min I think Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 19, 2015 Author Report Share Posted January 19, 2015 How many times do I have to repeat myself? If people want to help, they should set _debug to true and they should also be able to read logfiles and attach them correctly to their posts. Admins hosting a Early Alpha Mod, not knowing the simple basics of a ArmA Server or how to do helpfull bug reports but constantly spamming the threads in this forum with their bullshit is not helping at all (not only speaking for me, but many other who release their scripts here). Sorry if I sound pissed but I expected more of this community! Back-2-topic: I really try to get my hands on a PC when ever I can, but currently RL has top priority. Today I only had 20 minutes to work on the next update and fixes. Be patient guys. Link to comment Share on other sites More sharing options...
rsxownes Posted January 19, 2015 Report Share Posted January 19, 2015 Thanks for your hard work Kilo, take your time. I can't wait till the AI actually become non static when players attack. As of right now I feel like it's too easy, I just spectated a player that was about 400m away snipe a bunch with no return fire. He then drove to about 250m away from them and shot another with only one of them returning fire, then he proceeded to just run them over. Link to comment Share on other sites More sharing options...
Ducky Posted January 19, 2015 Report Share Posted January 19, 2015 Its fine I worked out how to fix the script kilo Link to comment Share on other sites More sharing options...
Xatu Posted January 19, 2015 Report Share Posted January 19, 2015 http://ul.to/juh5scog Here my RPT :) Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 19, 2015 Author Report Share Posted January 19, 2015 @rsxownes Exactly, I want to get rid of that "sitting duck" AI and finally start to create new (static and dynamic) missions. @Ducky That's great, can You share it with others here please, people like Xatu would probably want to know how You fixed it, so they don't have to wait for me. Greez KiloSwiss Link to comment Share on other sites More sharing options...
Ducky Posted January 19, 2015 Report Share Posted January 19, 2015 I went give a full tut cause I like to see people work it out for themselves and also I like to see when they have finished it it gives them more self accomplishment so @xatu Ok my only advice is that in fn_getWorldData.sqf there is a variable named _worldRadius have a look at it and the last number is the radius also look at the bottom of the fn_world get data that tells u how to work out the world data thats all I'm gunna say enjoy :) Link to comment Share on other sites More sharing options...
Ducky Posted January 19, 2015 Report Share Posted January 19, 2015 And @kiloswiss I removed the lines in fnmissionpos that u sent me because they broke it for some reason dunno why?? //Lines 10 and 11 of "fn_findMissionPos.sqf" _searchRadius = if(_worldRadius > 0 then[{(_worldRadius/2)*0.9 max 3000},{-1}]; _blockRadius = if(_worldRadius > 0 then[{_searchRadius/5 max 500},{500}]; Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 20, 2015 Author Report Share Posted January 20, 2015 @Ducky and @Xatu Replace the lines 10 and 11 in fn_findMissionPos with those:_searchRadius = (3000 max (_worldRadius/2)*0.9); _blockRadius = (500 max _searchRadius/5);Greez KiloSwiss Link to comment Share on other sites More sharing options...
Ducky Posted January 20, 2015 Report Share Posted January 20, 2015 Yeah ik I got it working now but I thought I would tell u KiloSwiss 1 Link to comment Share on other sites More sharing options...
Xatu Posted January 20, 2015 Report Share Posted January 20, 2015 Ok now the Mission spwan but i got no Marker. BE and Infistar are off RPT http://ul.to/ommelprd Link to comment Share on other sites More sharing options...
KiloSwiss Posted January 20, 2015 Author Report Share Posted January 20, 2015 If You get no Marker, You messed something up with the init.sqfFollow the install instructions step by step and check the client RPT for errors.btw.Attaching a file to Your post does not mean, to upload it to some hoster, where a free user has to wait 30s and enter a damn captcha to download a ~210KB file...Greez KiloSwiss 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