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

FLServer locking up

The general place to discuss MOD''ing Freelancer!

Post Wed Feb 21, 2007 3:16 am

FLServer locking up

Evening gents

I need your help.

I have madea small serverside mod that utilizes the unused faction fc_f_grp or Fugitives. I have a battlefleet in Theta thats works perfectly.

However, I have a fleet of 1 britonian gunboat and 12 fighters in shikoku that are causeing strange things.

At seemingly random times, I get the constant Red lag symbol and find that FLServer has locked up. I am finding that the fleet is showing up all the time. I am able to fight them, leave the zone and re-enter and reload my character most times without any problems. To make the problem happen, I usually just keep reloading my char. Sometimes it may take 10 reloads, other times over 30.

I thought it maybe having a conflict with another faction entering the zone, but I see them happily fly past without a hitch.

Has anyone had probs along these lines before?

Here is the encounter in KU02.ini

[zone
nickname = zone_1_Fugitive
pos = 53531, 0, -14469 ;49000, 0, 37000
shape = SPHERE
size = 6000
sort = 99.500000
toughness = 19
density = 13
repop_time = 25
max_battle_size = 13
pop_type = Background
relief_time = 35
faction_weight = fc_f_grp, 100
encounter = Fugitives, 19, 0.500000
faction = fc_f_grp, 1.000000

--------------------------------------------------------
The encounter, Fugitives.ini:

[EncounterFormation
ship_by_class = 1, 1, sc_gunboats
pilot_job = defend_leader_job
make_class = wanderer
ship_by_class = 12, 12, sc_fighters
pilot_job = defend_job
make_class = wanderer
formation_by_class = gunboats
behavior = wander
allow_simultaneous_creation = yes
zone_creation_distance = 0
times_to_create = infinite

[Creation
permutation = 0, 3

Post Wed Feb 21, 2007 3:35 am

One thing i see there is the encounter zone is very small, a sphere of 6000 is only 3k in any direction from the centre of the zone. You have 13 ships trying to show up with the spawn section set for multiple respawns for the npc's, is there enough space for all the ships?

Post Wed Feb 21, 2007 4:14 am

hmm I would of though there was enough room. As I say they work most of the time without any problems.

I will try a bigger zone and get back to ya.

Post Wed Feb 21, 2007 5:55 am

If it only happens occasionally it is most likely the spawn interacting with something else.

Assuming Resizing the Zone fails

I'd say log which npc's you see and which you never do that should be in the area. or cut all patrols and zones and see if that changes the results. Gradually replace and see if the problem reoccurs. The issue with that is if it crashes 1 in 30 that's going to take forever.

Post Wed Feb 21, 2007 5:56 am

You might want to check the formation to see if there is an entry for all of the ships its trying to spawn.

Post Wed Feb 21, 2007 2:52 pm

@Gibbon

Resizing didn't work either. I increased it to 60000 for the heck of it. Same probs

@ Chess

I have moved the encounter off the map where there's no NPC's are and it still happening

@Mace
I change my formation to a known good one and I still have probs. Heres the formation for interests sake:

[Formation
nickname = Fugitive_wall
pos = 0, 0, 0
pos = 50, 50, 0
pos = 50, -50, 0
pos = -50, 50, 0
pos = -50, -50, 0
pos = 100, 100, 0
pos = -100, 100, 0
pos = 100, -100, 0
pos = -100, -100, 0
pos = 150, 150, 0
pos = -150, 150, 0
pos = 150, -150, 0
pos = -150, -150, 0
pos = 200, 200, 0
pos = -200, 200, 0
pos = 200, -200, 0
pos = -200, -200, 0
pl_pos = 0, 0, 500

In the shape of a big X

If theres anything else you would like me to post, just ask

ADDED: I have limited the encounter down to just the Gunboat and am still getting probs. Then I tried just the fighters, same story :s

Edited by - -=Riddler=- on 2/21/2007 3:23:21 PM

Post Wed Feb 21, 2007 5:00 pm

Well I found the problem code...but I don't know whats wrong with it

There something wrong in here"

[EncounterFormation
ship_by_class = 1, 1, sc_gunboats
pilot_job = defend_leader_job
make_class = wanderer
ship_by_class = 12, 12, sc_fighters
pilot_job = defend_job
make_class = wanderer
formation_by_class = gunboats
behavior = wander
allow_simultaneous_creation = yes
zone_creation_distance = 0
times_to_create = infinite

[Creation
permutation = 0, 3


I changed it for this and everything has worked perfectly for over 4 hours. about 100 reloads:

[EncounterFormation
ship_by_class = 1, 1, sc_battleships
pilot_job = assault_leader_job
make_class = wanderer
ship_by_class = 12, 12, sc_fighters
pilot_job = defend_job
make_class = wanderer
formation_by_class = battleships
behavior = wander
arrival = cruise
allow_simultaneous_creation = yes
zone_creation_distance = 0
times_to_create = infinite

[Creation
permutation = 0, 3

Return to Freelancer General Editing Forum