• 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!

Runtime error

Toddydude

Landlubber
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> m8s. I have the build 12 modpack and the latest update but when i leave oxbay at the begining or go into the town from the port my game turns off and a errror comes up saying "Runtime error", I dont know what to do any help would be appreciated. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" />
 
Did you start a new game with the newest update? And could you turn on <a href="http://forum.piratesahoy.net/index.php?showtopic=5424" target="_blank">error logging</a> and show the error.log file? Maybe that will give a clue about why that's happening?
 
ya i was goin to do what you said but my compiter got overworked of spyware and viruses so i had to fix my computer and now i never installed it and i dont think i will until Aop comes out sry. Thx for the help though.
 
Why will you start PotC once AoP comes out? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
Shame you won't play the game anymore. I <i>am</i> sorry for this bug, if it is in any way my fault. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" />
 
hey man no worries, Not your fault at all and i decided to reinstall and try the post build and updates again. by the way without the bugs this is most likely the best game ive ever played exspecially with build modpack awesome job! I dont even think Aop would work on my pc so... i dont know. Oh and what error logging ive never heard of it lol sounds useful CHEERS
 
Oh ya when it has a runtime error it has a C++ at the top and says abnormal program termination dont quite know what that means so if anybody has help plZ IM DYING HERE!

OH sry to stupid to use the link in the post for error logging.

I got an error report i think and this is what it said






RUNTIME ERROR - file: nations\nations.c; line: 898
function 'GetActualRMRelation' stack error
RUNTIME ERROR - file: nations\nations.c; line: 898
function 'GetActualRMRelation' stack error
RUNTIME ERROR - file: nations\nations.c; line: 898
function 'GetActualRMRelation' stack error
RUNTIME ERROR - file: nations\nations.c; line: 898
function 'GetActualRMRelation' stack error
RUNTIME ERROR - file: nations\nations.c; line: 1060
integer function return string value
RUNTIME ERROR - file: nations\nations.c; line: 968
invalid index 7 [size:6]
RUNTIME ERROR - file: nations\nations.c; line: 968
invalid array index
RUNTIME ERROR - file: nations\nations.c; line: 968
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 968
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 968
integer function return UNKNOWN value
RUNTIME ERROR - file: nations\nations.c; line: 1088
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 898
invalid index 7 [size:6]
RUNTIME ERROR - file: nations\nations.c; line: 898
invalid array index
RUNTIME ERROR - file: nations\nations.c; line: 898
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 898
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 898
float function return UNKNOWN value
RUNTIME ERROR - file: nations\nations.c; line: 375
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 375
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 375
Invalid conversation
RUNTIME ERROR - file: nations\nations.c; line: 375
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 376
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 376
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 379
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 352
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 352
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 41
invalid index 7 [size:6]
RUNTIME ERROR - file: nations\nations.c; line: 41
function 'SetNationRelation2MainCharacter' stack error
RUNTIME ERROR - file: nations\nations.c; line: 385
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 385
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 385
Unknown data type
RUNTIME ERROR - file: nations\nations.c; line: 385
float function return UNKNOWN value
RUNTIME ERROR - file: nations\nations.c; line: 41
invalid index 7 [size:6]
RUNTIME ERROR - file: nations\nations.c; line: 41
function 'SetNationRelation2MainCharacter' stack error
 
I know what causes those bugs; I had those reports as well. They didn't crash my game though. Luckily, pirate_kk made a fix for it a few days ago. Please put up with this a little longer, I will at least make an update containing the fix for that Saturday. I'm sorry I don't have time before that.
 
I decided to make the patch available a few days earlier. I attached it to <a href="http://forum.piratesahoy.net/index.php?s=&showtopic=5586&view=findpost&p=137457" target="_blank">this</a> forum post. Please install that on top of your PotC installation. I hope that fixes those crashes.
 
Whoa thx m8.


Nice to meet ya!




I extracted it over PotC but when the engine.exe starts it has a runtime error check it out


COMPILE ERROR - file: nations\nations.c; line: 394
Invalid Expression
COMPILE ERROR - file: nations\nations.c; line: 394
Invalid Expression
COMPILE ERROR - file: nations\nations.c; line: 394
Invalid Expression
COMPILE ERROR - file: nations\nations.c; line: 394
Invalid Expression
COMPILE ERROR - file: nations\nations.c; line: 394
Invalid Expression
COMPILE ERROR - file: nations\nations.c; line: 394
Invalid Expression
COMPILE ERROR - file: nations\nations.c; line: 394
Invalid Expression
COMPILE ERROR - file: nations\nations.c; line: 394
missed ')'




any damn way to turn off runtime errors or somtin?
 
The piece of code that apparently causes that error message is this:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->    if (ENABLE_FLAGS == 0) {
        relch += GetRMRelation(char, iNation);
    } else {
        relch += GetActualRMRelation(iNation);
    }<!--c2--></div><!--ec2-->Judging by the code itself, there is nothing wrong. Please check that the code in your file is the same. Please also make sure that ENABLE_FLAGS is in BuildSettings.h. If your code is not the same, change the code to be the same. If ENABLE_FLAGS is not in BuildSettings.h, add it in as #define ENABLE FLAGS 1. I hope that does some good... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->Edit:<!--colorc--></span><!--/colorc--> After testing, I think the case is probably that ENABLE_FLAGS is somehow missing from your BuildSettings.h file. I removed it from BS.h and that caused a similar error message like the one you have, though my error message was in sea.c and not nations.c. So I hope manually adding it will finally get you playing again. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
ok ill try that


but my enable flags was in sea.c and the code was different so i changed it and now will try thx.




By the way i dont want to be wasting your time like this so your help is greatly appreciated.

nope didnt do know good. I think there might be something wrong with my pc. It worked fine without the update so ill just use the post build with no update and live with it its cool anyways.


Thx for the help!
 
Could you send me your PROGRAM\nations\nations.c file, PROGRAM\BuildSettings.h and PROGRAM\SEA_AI\sea.c files at <a href="mailto:pieter_boelen@planet.nl">pieter_boelen@planet.nl</a>? I want to know what's wrong. There must be something wrong; otherwise it would work. And I want it to work properly for everyone for as far as possible! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />

<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->Edit:<!--colorc--></span><!--/colorc--> Could you please tell me when this crash happens? When you start the game or after you played for a while?
 
this crash happens at different times, sometimes when i enter oxbay fort or when i set sail its quite hard to know what to do.
 
Back
Top