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

Mod Release Build 14 Beta 3 Progress

how does your game crashes? does it just freeze of do you get an error and when?
 
Before the main screen while loading I can read "initializing complete" on the small screen with the ship; then it doesn't freeze but there's a message "PotC has stopped working" and the two options "check for a solution online" or "close the game".
 
Wow, the game doesn't get very far with loading at all, does it?

So it DOES work with an unmodified InternalSettings.h? If so, move the settings over a few at a time, so you can narrow down which one causes the problem.
 
problem might be on row 198. theres a ; which shouldn't be there.

Edit: altough its also in the normal internalsettings so guess not :(.
Check if you put something to zero which can't be zero. That might make a game crash if it divides trought that inteteger or float.
 
Last edited:
it's not there. I am going to reinstall the Build. Maybe I erased smth somewhere without noticing. But how did you find a mark that wasn't supposed to be there ? That's usefull to know for other time. Guess not incidentally ?! :)
 
I just went trough the code to check it. row for row.
When I reached row 1000 I quit because I got tired :p. Tried to do it with a hex editor comperator but you changed a few numbers to other lengths which increased/decreased the amount of bytes so that was no option.
 
The only thing I can see is this in your Internalsettings.h

Code:
#define MAXMERCHANTCLASS       2        // INT - DO NOT TOUCH THIS UNLESS YOU HAVE ADDED TRADESHIPS > CLASS 3


which you seem to have changed to 2 -- in my own file it is 3.

I don't know if this affects anything since I can't find the Tradeships reference in the code.:modding


:cheers
 
Don't touch that MAXMERCHANTCLASS value! You can change it, sure, but it serves exactly zero purpose.
There ARE no merchant ships above Tier 3. If you change it, you'll just trigger the "cannot find ship, using a default one instead" error again.
Nothing good will come of that. :no
 
I reverted all settings in Internalsettings.h to default. It didn't help. Then I copy/pasted new files for all that were in main game dir - engine.ini, engine.exe, etc. WORKED AGAIN, and I had already written off this game installation...Guess something got into the main files which wasn't rewritten after that...

But anyway,

#define MAXPIRATECLASS 4 // INT - this is the maximum class ship pirates will be given. Defaults to 4.
#define MAXCOASTGUARDCLASS 2 // INT - this is the maximum class ship for coast guards.
#define MAXMERCHANTCLASS 3 // INT - DO NOT TOUCH THIS UNLESS YOU HAVE ADDED TRADESHIPS > CLASS 3

Class 2 should be second rates ? Yes ? Class 3 merchant says nothing to me. Class 4 pirates too. How do I set it thus as pirates to use 3rd rates ? And where can these classes be seen described ?

BUT ANYWAY, IF NOTHING HELPS, COPY/PASTE ANEW ALL SINGLE FILES IN THE MAIN GAME DIR/out of the folders/ if had them as backup.
 
There are no Tier 3 or above pirate ships, so there is also no point in changing the MAXPIRATECLASS either.
If you must, you'd have to edit ships_init.c to enable various Tier 3 ships for the pirates as well.
 
oohh..i got some errors..

.i started a new game(jeanlaffite)

.money and reputation cheat plus god mode

.hired an officer and bought a ship for my officer

.sailed to hispaniola and raised a pirate flag

.captured tenemaire(class2)
-collected some items during capture and the weird "an item has been removed from your inventory" pop up
when i tried to get something from the defeated ship's weaponslocker.

-raised friendly flag and moored at port-au-prince
 

Attachments

  • compile.log
    35.7 KB · Views: 96
  • error.log
    794 bytes · Views: 113
  • system.log
    19.5 KB · Views: 107
hmmm....weird .... it looks to me link you tried to use/equip an item to someone but there was no item you choose ... atleats thats what the error says.
And also you seem to have a ship without the cannons variable.
Which ship(s) do you have? maybe they are initialized wrong.
 
Cheers,

any idea why the
GiveModel2Player
in console won't work?
Has this function been disabled?
The line looks like this:
GiveModel2Player("Shkiper",true);
Console is executed, but nothing happens.

Edit: Further testing showed that other options of console like give ship or give items also don't work. When pressing F12 in game, I read the line "console executed", but entirely nothing happens.


Thanks!
 
Last edited:
try using the logit() to see if it does reach the place where you put it. But I believe I also noticed it, dunno for sure anymore.

@ davyjack -> That trick could very well cause the cannons error indeed.
I'm not sure about the item error yet and how it occured. probally a random item which doesn't exist or something like that. For now I dont see it as a priority.
 
Skyworm, make sure that is says switch(1) at the top of the file. By default, it is switch(0) .
Otherwise that code is never executed.
 
Last edited:
oh boy..i thought i'm the only one getting confused by that part of the console before..hehehe :p :D
:bounce..can't wait for the update..:type1 :dance
 
Back
Top