Jump to content
Sign in to follow this  
HighWire

Kronzky's Patrol Script crashes OPF

Recommended Posts

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

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

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
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

Awesome. Excellent. Thanks for the help and bless you :)

Edit: I just brought it to Kronzky's attention.

Edited by HighWire

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×