Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

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

Members: 0
Guests: 72

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

Current balance: 55€
(last updated 04/2021)

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

Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 32 users playing Freelancer on 48 servers.
November. 30, 2021
The Starport Forum Index > All Posts (Schneider)

Bottom Bottom   Previous Topic   Next Topic



Re: Npc spawn distance
Just popping in
Joined:
9/1 21:25
Group:
Registered Users
Posts: 6
Offline
Ha, coincidentally this is the same offset that can be used to eliminate the problem with invisible station lasers at long ranges.

Posted on: 9/17 18:30
Top
Topic | Forum


Re: Npc spawn distance
Just popping in
Joined:
9/1 21:25
Group:
Registered Users
Posts: 6
Offline
Looks like this is hardcoded:

Code:

hModServerAC = GetModuleHandle("server.dll");
if (hModServerAC) {
    // Patch the NPC visibility distance in MP to 6.5km (default
    // is 2.5km)
    float fDistance = 6500.0f * 6500.0f;
    WriteProcMem((char *)hModServerAC + 0x86AEC, &fDistance, 4);

    FARPROC fpHook = (FARPROC)HkCb_GetRoot;
    ReadProcMem((char *)hModServerAC + 0x84018, &fpOldGetRootProc,
                4);
    WriteProcMem((char *)hModServerAC + 0x84018, &fpHook, 4);
}


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: 9/17 17:59
Top
Topic | Forum


Re: Schnappschuss von den Sternenkarten
Just popping in
Joined:
9/1 21:25
Group:
Registered Users
Posts: 6
Offline
Mit Shift-Windows-S kann man in Windows 10 screenshots machen. Funktioniert für mich auch in Freelancer.

Posted on: 9/17 17:50
Top
Topic | Forum


Re: New Multiplayer Character - Faction Selection
Just popping in
Joined:
9/1 21:25
Group:
Registered Users
Posts: 6
Offline
Thanks for the pointer!

I was able to find ProcyonHook 1.45, and saw the modified page_charactercreate.page, but I guess that function integrated too heavily with their server software to be able to be easily reused. I guess I'll have to make due with restarts or rephacks for now

Posted on: 9/2 22:23
Top
Topic | Forum


Re: New Multiplayer Character - Faction Selection
Just popping in
Joined:
9/1 21:25
Group:
Registered Users
Posts: 6
Offline
Do you mean the /restart command? I remember there being an proper picker UI on the "New Character" Screen (see image). Freeworlds: Tides of War had this and I could have sworn disco did as well at some point, though it doesn't seem to anymore.

Attach file:



jpg  faction-select.jpg (78.03 KB)
48380_613107f27e6fa.jpg 632X518 px

Posted on: 9/2 18:22
Top
Topic | Forum


New Multiplayer Character - Faction Selection
Just popping in
Joined:
9/1 21:25
Group:
Registered Users
Posts: 6
Offline
I remember playing mods where you could select your faction upon creating a new character. Does anybody have any information on how this is done? I thought maybe you needed multiple [Faction] entries in newcharacter.ini, but appearantly the game just looks for the one with nickname = new_player.

Posted on: 9/1 21:51
Top
Topic | Forum



Top Top



[Advanced Search]