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

Crash when starting the game

ijzzbloc

Landlubber
Ello

Fresh install of potc. Installed the mod + the latest updates but the game wont start. It crashes when initializing. The error log has the lines;

COMPILE ERROR - file: characters\characters.h; line: 46
define redefinition: PASSENGERS_MAX

Anyone?
 
:ahoyWelcome to PA @ijzzbloc ! :pflag

Can you tell us how you installed your game from the stock version step by step? Also, have you tried reading the FAQ here?
If you're still having problems and you have a laptop that has kind of the same specs as mine(see my signature), try this one.
 
Code:
#define PASSENGERS_MAX            32

this is the line your error.log refers to - at least, thats what the line should look like. Could you check, what your file shows there? I can't imagine that there went something wrong while installing but well, if the error.log says that it doesnt like something in this file, we should look into that first
 
define redefinition: PASSENGERS_MAX
It's saying that the PASSENGERS_MAX constant has already been defined somewhere else (perhaps in the same file, or a different file?). Do a search for "PASSENGERS_MAX" and see if you can find another "#define PASSENGERS_MAX". Constants should only be declared once in the C programming language.

You may have duplicate files, a bad mod installation, or otherwise a messed up installation/setup of the game.

This could also mean that your copy of the game is not compatible with the mod you are trying to install.
 
Reinstalled the game. Installed the mod part 1+2 and it worked fine. Installed the extra fix archive and it broke.

There is no duplicate line of PASSENGERS_MAX within characters.h Not sure on how to search for it in al the other files?
 
In my current version of the mod it has been moved to globals.c (which happens to be one of the files in the extra fix archive) and therefore is no longer in characters.h. So overwriting globals.c will crash the game.

COMPANIONS MAX has also been moved between the files to globals.c

What version does your build info have at the top of the file (and in the intro load/newgame screen) before you add the extra fix archive - ie what version of the mod are you adding the extra fixes to?
 
I'm going to assume that those "extra fixes" don't belong in there.

And this:
Extracted the rar that's it
...is not helpful. Where did you extract and place the files? Or was it an automatic installer?
 
Definitely something going wrong with the install.
Did you get the files from here?
Mod Release - Build 14 Beta [Last Update:2nd September 2020]

Yes.


I'm going to assume that those "extra fixes" don't belong in there. They are likely for an older build.

And this:

...is not helpful. Where did you extract and place the files? Or was it an automatic installer?

Extracted the files from within the rar into the installation directory then clicked overwrite on all files.
 
Extracted the files from within the rar into the installation directory then clicked overwrite on all files.
Just files, or folders, too? Did you "merge" the folders or "replace" them? Because the latter will leave you with half the files missing, and a broken game.

What unarchiving software did you use to extract the files?
 
Your problem seems to be a mismatch of the extra fixes archive with the build (and/or game) version you're using.
Could indeed be that this problem happens when combining the latest ZIP by @Grey Roger with a previous Installer EXE.

I think @The Nameless Pirate at some point replaced the https://www.moddb.com/mods/new-horizons/downloads/build-14-beta-4-final file on ModDB with a newer version made by @Mad Jack Wolfe.
But version number and the filename are still the same, so as far as I can tell there is no way these days to see that it's been changed compared to my original upload.
 
Okay, @ijzzbloc was your stock version playable? I mean have you tested it to see if it was installed correctly?
If it works, what are your system specs so we know how to make your game work with the MOD.
Now, if you have NVidia Graphics Card follow this up to step 3 only then see if it works. If it doesn't please upload your .log files to include "error.log" if you have it: tempsnip.png
If you only have Intel Graphics Card, install the "Intel Fix" during the installation of the MOD using the installer. And please read the FAQ as most of this is answered there already.
 
Okay, @ijzzbloc was your stock version playable? I mean have you tested it to see if it was installed correctly?
If it works, what are your system specs so we know how to make your game work with the MOD.
Now, if you have NVidia Graphics Card follow this up to step 3 only then see if it works. If it doesn't please upload your .log files to include "error.log" if you have it: View attachment 37604
If you only have Intel Graphics Card, install the "Intel Fix" during the installation of the MOD using the installer. And please read the FAQ as most of this is answered there already.

Yes, i have tested it and it was playable.
 
Yep, it should be the newest "TAR" file.
The TAR file was never replaced though.
But the EXE was.

Best is to install:
1. Stick game (check that it works)
2. Installer EXE (let this take care of the TAR and DON'T touch that yourself), then check that it works
3. Report here the game date that's shown then

(I'm not sure anymore what idea the correct date to put the ZIP on.
But @Grey Roger would know.)
 
Back
Top