HighWire 0 Posted November 10, 2010 Hey guys, Kronzky's Urban Patrol Script crashes Operation Flashpoint here whenever I try to use about more than 7 or 8 different patrol zones. Any thoughts on what it might cause? I'm sure I have all the marker names and script calls right. Neither am I running any other scripts. A quick peek at the FLASHPOINT.RPT file shows that the game throws access violations at me. Perhaps some kind of double variable reference inside the script that I could fix myself? :) Share this post Link to post Share on other sites
vektorboson 8 Posted November 10, 2010 I've taken a quick look through it; search for the following line in the script (line 42): if (format["%1",KRON_AllEnemies]=="scalar bool array string 0xfcffffef") then {KRON_AllMembers=[];KRON_AllEnemies=[];KRON_AllLeaders=[]} Replace it with the following: _d=true if(count KRON_AllEnemies>=0) then {_d=false;} if(_d) then {KRON_AllMembers=[];KRON_AllEnemies=[];KRON_AllLeaders=[];} Share this post Link to post Share on other sites
HighWire 0 Posted November 10, 2010 Ka-ching! That seems to have nailed it! What was the problem? Was it generating (unnecessary) redundant enemy-knowledge arrays? Thanks for the heads-up though! Should the creator himself be informed? Share this post Link to post Share on other sites
vektorboson 8 Posted November 11, 2010 Ka-ching! That seems to have nailed it! What was the problem? Was it generating (unnecessary) redundant enemy-knowledge arrays? It's a problem with the 'format'-command and very large arrays (or very long strings). AFAIR 'format' has a limit of 2048 characters and big arrays can exceed this limit, thus crashing OFP. Thanks for the heads-up though! Should the creator himself be informed? You're free to do this :) Share this post Link to post Share on other sites
HighWire 0 Posted November 11, 2010 (edited) Awesome. Excellent. Thanks for the help and bless you :) Edit: I just brought it to Kronzky's attention. Edited November 12, 2010 by HighWire Share this post Link to post Share on other sites