• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Fixed Negative fpoints for RMRelations

Levis

Find(Rum) = false;
Staff member
Administrator
Creative Support
Programmer
Storm Modder
I see this popping up in error logs:

Code:
RUNTIME ERROR - file: nations\nations.c; line: 868
Negative func 'sqrt' argument
RUNTIME ERROR - file: nations\nations.c; line: 512
Not object
RUNTIME ERROR - file: nations\nations.c; line: 1070
Incorrect copy from single to array
RUNTIME ERROR - file: nations\nations.c; line: 523
missed attribute: index
RUNTIME ERROR - file: nations\nations.c; line: 523
no rAP data
RUNTIME ERROR - file: nations\nations.c; line: 47
Incorrect copy from single to array
RUNTIME ERROR - file: nations\nations.c; line: 868
Negative func 'sqrt' argument
RUNTIME ERROR - file: nations\nations.c; line: 512
Not object
RUNTIME ERROR - file: nations\nations.c; line: 1070
Incorrect copy from single to array
RUNTIME ERROR - file: nations\nations.c; line: 523
missed attribute: index
RUNTIME ERROR - file: nations\nations.c; line: 523
no rAP data
RUNTIME ERROR - file: nations\nations.c; line: 47
Incorrect copy from single to array

The first line seems to refer to this:

Code:
if(rel > REL_WAR) ChangeRMRelation(&char, iNation, -(sqrt(fPoints) * NEUTRAL_MULT));

In UpdateRMRelations where fpoints is an input variable. could it be this is not set up right?
 
What are you doing in the game when that happens?
You can put a TraceAndLog prior to show the values of the various variables.
 
The first line seems to refer to this:

Code:
if(rel > REL_WAR) ChangeRMRelation(&char, iNation, -(sqrt(fPoints) * NEUTRAL_MULT));

In UpdateRMRelations where fpoints is an input variable. could it be this is not set up right?
I have completely rewritten that function now and that line no longer exists.
So that means this bug can no longer exist either. Maybe we'll get some new issues now, but not this one anymore. ;)
 
Back
Top