• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum Discovery Unofficial Development Discovery Mod Community Contribution
1 2 Next »
Freelancer Companion update for DiscoveryGC (Current: v4.32)

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Pages (9): « Previous 1 … 5 6 7 8 9
Freelancer Companion update for DiscoveryGC (Current: v4.32)
Offline Derpcopter
11-26-2023, 11:34 PM,
#81
Gunpowder Huffer
Posts: 32
Threads: 4
Joined: Apr 2023

Was able to capture the last i see:

[Image: BrzkWa5.png]
Reply  
Offline evanz
11-27-2023, 12:07 AM,
#82
Member
Posts: 1,951
Threads: 92
Joined: Jan 2013

mine started crashing after i set some limitation settings, is there a way or a feature or a seperate thing you can code, to reset limitations or config to default
  Reply  
Offline Its Raisu
11-27-2023, 03:04 AM,
#83
Member
Posts: 174
Threads: 14
Joined: Jul 2018

(11-27-2023, 12:07 AM)evanz Wrote: mine started crashing after i set some limitation settings, is there a way or a feature or a seperate thing you can code, to reset limitations or config to default

If you're comfortable with navigating the Registry Editor, could you show me what "HKEY_CURRENT_USER\SOFTWARE\Wizou\FLCompanion\Settings" looks like?
Reply  
Offline evanz
11-27-2023, 03:27 AM,
#84
Member
Posts: 1,951
Threads: 92
Joined: Jan 2013

(11-27-2023, 03:04 AM)Its Raisu Wrote:
(11-27-2023, 12:07 AM)evanz Wrote: mine started crashing after i set some limitation settings, is there a way or a feature or a seperate thing you can code, to reset limitations or config to default

If you're comfortable with navigating the Registry Editor, could you show me what "HKEY_CURRENT_USER\SOFTWARE\Wizou\FLCompanion\Settings" looks like?

https://i.imgur.com/3hroNVb.png
  Reply  
Offline Its Raisu
11-27-2023, 06:09 PM,
#85
Member
Posts: 174
Threads: 14
Joined: Jul 2018

(11-27-2023, 03:27 AM)evanz Wrote: https://i.imgur.com/3hroNVb.png

Short story on the crash I was able to identify:
It was possible for the Max Investment setting to set the number of units to 0 for some of the calculations that later occurred when generating the trade solutions. This caused a divide by zero error which is fixed in v4.32.



[+]More detailed bit, for anyone interested in code bs
Line 1 calculates the number of units based on cargo size setting.
Line 2 and 3 ends processing for that trade if the number of units is 0.
Line 4 and 5 recalculates the number of units based on maxinvestment setting if it isn't enough to cover a full cargo load.

Line 4 and 5 can result in the number of units being set to 0. Which, as you see in Line 2 and 3, we should immediately end processing for.
Later in the function, "units" is used in "profit / units" or, in the case of what was causing the crash, "profit / 0"

This was fixed by swapping Line 2 and 3 and Line 4 and 5 so that each instance of "units" being 0 is handled properly.

Before:
Code:
    UINT units = m_cargoSize == 1 ? 1 : UINT(m_cargoSize/g_goods[goodIndex].m_volume);
    if (units == 0)
        return;
    if ((m_maxInvestment > 0) && (srcsell*units > m_maxInvestment))
        units = UINT(m_maxInvestment/srcsell);

<snip>

FLOAT calcCSU = (profit / units / g_goods[goodIndex].m_volume) * 100000 / distance;

After:
Code:
    UINT units = m_cargoSize == 1 ? 1 : UINT(m_cargoSize/g_goods[goodIndex].m_volume);
    if ((m_maxInvestment > 0) && (srcsell*units > m_maxInvestment))
        units = UINT(m_maxInvestment/srcsell);
    if (units == 0)
        return;

<snip>

FLOAT calcCSU = (profit / units / g_goods[goodIndex].m_volume) * 100000 / distance;

This was a mix of how FLCompanion was originally coded, and the addition of always utilizing the CSU calculation rather than only calculating it when Cargo Size was set to 1.
Reply  
Offline Helo
11-27-2023, 09:34 PM,
#86
Member
Posts: 484
Threads: 28
Joined: Mar 2010

Unfortunately current version also crashes. Same way as before I only get message log for split second before it crashes.

Remember the ICMG
  Reply  
Offline Longhorn
12-10-2023, 03:43 PM,
#87
Member
Posts: 26
Threads: 4
Joined: Jun 2009

Mine also crashing:

Faulting application name: FLCompanion.exe, version: 4.32.0.0, time stamp: 0x6564233e
Faulting module name: FLCompanion.exe, version: 4.32.0.0, time stamp: 0x6564233e
Exception code: 0xc0000409
Fault offset: 0x00021781
Faulting process id: 0x0x233C
Faulting application start time: 0x0x1DA2B76C69EE4DF
Faulting application path: C:\Users\x\Downloads\FLCompanion (v4.32)\FLCompanion.exe
Faulting module path: C:\Users\x\Downloads\FLCompanion (v4.32)\FLCompanion.exe
Report Id: 346dc345-1f04-46b0-aae6-bcaf55b9f0f1
Faulting package full name:
Faulting package-relative application ID:

New to freelancer
Reply  
Offline Helo
04-20-2024, 10:31 PM,
#88
Member
Posts: 484
Threads: 28
Joined: Mar 2010

Well still the same old crash with message log

Remember the ICMG
  Reply  
Offline mm33dd
03-06-2025, 09:07 AM,
#89
Conservative Palate
Posts: 424
Threads: 25
Joined: Nov 2015

hi, do I need to set up the game directory to the disco install (the one in /appdata)?

I did, and it is showing some commodities that aren't in the current base I am (I'm in Luxury Liner Shetland).



[Image: asdasdasd.jpg]
Reply  
Offline rwx
03-06-2025, 09:37 AM,
#90
No one is above the law
Posts: 1,037
Threads: 156
Joined: May 2010

It seems you are not using @Aingars fork regarding different buy and sell prices.
4.33 is available here

Besides that, FLCompanion is discontinued, refer to darkstat, when possible.
Reply  
Pages (9): « Previous 1 … 5 6 7 8 9


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode