Reminder: Internet Explorer 6 or below are NOT supported.





There are currently 33 users playing Freelancer on
44 servers. | August. 11, 2022 |
The Starport Forum Index
>
The Shipyard
>
Speciality Modding
>
FLHook Development
>
Npc spawn distance
Browsing this Thread:
1 Anonymous Users
Npc spawn distance |
||||
---|---|---|---|---|
![]() Joined:
2009/12/27 3:46 Group:
Registered Users
Posts:
28
![]() |
Hello,
Im working on a mod that use flhook, I notice it overrules the distance offsets in the content.dll and server.dll for spawn distance and persistence. they both seemed cap at 6500. anyone know how to tell flhook to expand its range for the npc spawns? Thanks Jericus
Posted on: 2021/9/16 14:51
|
|||
|
Re: Npc spawn distance |
||||
---|---|---|---|---|
Just popping in
![]() ![]() Joined:
2021/9/1 21:25 Group:
Registered Users
Posts:
6
![]() |
Looks like this is hardcoded:
Code:
I guess the easiest way to change it would be to fork FLHook and make the change in the source code. No idea why they're doing this here though. Maybe you can just remove it? Though it is in a file called "CrashCatcher.cpp"... Edit: And it should be noted that this is in the playercntl plugin, not FlHook itself. So if you want to get rid of the behaviour for testing puposes, maybe try disabling it? Just speculation though. I don't have much experience with this myself.
Posted on: 2021/9/17 17:59
|
|||
|
Re: Npc spawn distance |
||||
---|---|---|---|---|
Just popping in
![]() ![]() Joined:
2021/9/1 21:25 Group:
Registered Users
Posts:
6
![]() |
Ha, coincidentally this is the same offset that can be used to eliminate the problem with invisible station lasers at long ranges.
Posted on: 2021/9/17 18:30
|
|||
|
Re: Npc spawn distance |
||||
---|---|---|---|---|
![]() Joined:
2009/12/27 3:46 Group:
Registered Users
Posts:
28
![]() |
Thank you so much. no i have run into another problem
when i try to recompile it. i get this error. Severity Code Description Project File Line Suppression State Error MSB3073 The command "copy ..\..\..\..\..\flhookplugin\trunk\sdk\libs\*.lib libs\ copy ..\..\..\..\..\flhookplugin\trunk\sdk\headers\*.h headers\ :VCEnd" exited with code 1. Player Control C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 145 Code: <PropertyGroup> it point to that for the error. How do i tell it a new directory for the flhook.lib? thanks Jericus ps Im learn this as I go, sorry if it a dumb question.
Posted on: 2021/9/19 16:19
|
|||
|
Re: Npc spawn distance |
||||
---|---|---|---|---|
Just popping in
![]() ![]() Joined:
2015/9/13 18:49 Group:
Registered Users FLServer Admins $$$ Supporters $$$ Senior Members
Posts:
20
![]() |
Just noticed from your file paths you might be using the old svn version of FLHook.
The newer FLHook is on Github: https://github.com/Friendly0Fire/FLHook Should be easier to make the edit and compile.
Posted on: 2021/9/19 22:12
|
|||
|