Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Patrol errors

This is where you can ask for help and post your knowledge on error messages from using the various tools that describe error messages in MODs such as DataStorm the Freelancer MOD Scanner the server console and FLSpit.

Post Tue Oct 25, 2005 1:05 pm

Patrol errors

Patrol errors? Yes, once again. But these are tricky.

I've created a system with pop zones, ambient zones, populated asteroid fields and a few patrols, military patrols through the asteroid fields and pirate trading patrols between their planet and two jump holes to be exact. Everything's working just fine.

Now, I created pirate attack patrols into the asteroid fields. When testing, I flew through one of the fields and got a CTD. So, I commented out all the attack patrols and it went fne again. Knowing, what causes the error, I searched for mistakes in the patrols code. But they seemed to be alright. After all, I copied them from similar original patrols.

Then, I de-commented just the patrols leading into one field and the other one worked. The field with the patrols, however, is still nit working: I was flying towards it, and it crashed, and another time, I was flying through the north of the field, and it still crashed. However, all pirate patrols are in the south.

Any ideas? Oh and, if you need certain bits of the code, just say so.

EDIT: Just found out: When flying in orbit around the planet the attack patrols originate from gives my no crash. So I suspect it has something to do with the asteroid field AND the patrol.

Edited by - Manhattan_Guy on 10/25/2005 2:29:59 PM

Post Tue Oct 25, 2005 2:06 pm

Sorry for double post, but I have found the solution. (Well, at least during ten minutes of testing, there were no crashes.)

It all begins with the asteroid fields, the pirate patrols are supposed to fly through, are populated both by pirates and the military, which leads to a few nice fights all over the place. Now, the pirate trade paths I have set up, and which are wokrking quite nicely, have the following density restrictions:

<pre><font size=1 face=Courier>density_restriction = 1, patroller
density_restriction = 1, police_patroller
density_restriction = 1, pirate_patroller </font></pre>

And the attack patrols I have created based on patrols in other systems and which are crashing have the following lines:

<pre><font size=1 face=Courier>density_restriction = 1, patroller
density_restriction = 1, police_patroller
density_restriction = 1, pirate_patroller
density_restriction = 4, lawfuls
density_restriction = 4, unlawfuls </font></pre>

See the difference? So I suppose, that the crash is caused because the density restriction of lawfuls (who are flying aroung in the field én masse, remember the military?) is broken. So whenever the player was to see more then five lawful ships at a time, the restriction would be circumvented and Freelancer would be at a loss.

So, remove the density restriction for lawfuls and there you go -- it works perfectly. Just watch out for the balancing to be correct, so that the pirates stand a chance. You can do so by adjusting the ammount of "good guys" in the asteroid fields.

Return to Mod Errors Board