Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login


Remember me

Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
41 user(s) are online (21 user(s) are browsing Forum)

Members: 1
Guests: 40

Cpt_Rei_Fukai, more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +0€

Current balance: 60€
(last updated 03/2020)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 84 users playing Freelancer on 42 servers.
June. 7, 2020

Browsing this Thread:   1 Anonymous Users

 Bottom   Previous Topic   Next Topic  Register To Post

Crashes related to NPC docking
Just popping in
2009/12/27 21:02
Registered Users
Posts: 10
Hello guys.

I've noticed something while testing Discovery yesterday that might affect more than just the mod itself and might be a thorn in many other mod dev teams side when it comes to defining actual NPC patrols rather than pop zones, or in general dealing with vanilla systems that are littered with NPC patrols.

Well, we all probably know the way patrols work, in that when an NPC follows a patrol route, at the end of the route it will try to dock with the nearest object. From my observations NPCs do not just try to dock with actual ingame base objects, but rather look for a closest HPDockPoint*01 point and try to dock with that without any additional checks. This means that they might try to dock at a hostile base which results in a server crash. It also means that they will try to dock at player flown ships who still have HPDockPoint*01 defined as for example happened to me yesterday when testing a completely different thing on the dev server. In my example it also resulted in a server crash, because the server has no base defined for the Osiris I was flying at the time.

This might be one of the reasons of seemingly random crashes that the Discovery mod may suffer at times. Would it be possible to somehow hack Freelancer to force NPCs to perform checks on the base (whether it exists, whether it is friendly) before trying to dock with its HPDockPoint*01 ?

Posted on: 2010/9/19 13:58
Re: Crashes related to NPC docking
Just can't stay away
2008/3/11 16:11
From Belarus, Minsk
Registered Users
Senior Members
Posts: 384
Are you sure that npcs tried to dock on you?
Could you please test it again, 'cos I've never heared of this.

Make a simple test: make a patrol that consists of two legs, make sure there are no bases in the middle of a patrol, and stay there with your ship that has dockpoints for an hour and see if it repeats. also give your patrol very short relief_time(don't think this parameter works though)

Like this:

Open in new window

Posted on: 2010/9/19 17:06