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!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
Yes, that's right. But that just reminded me that I must put a translation string somewhere, so that mention of the nationality gets translated, Swedish or not.Might I assume he's called "Almirante del Puerto" because of your translation, @Homo eructus?
He isn't actually Spanish/Portuguese, I'm assuming...?
Presumably the admiral's nationality is set when Antigua is initialised. Neither he nor the regulating officer have "ch.nation" lines in their definitions, but that doesn't stop them from showing up as British whenever I play the game.Uh, the English admiral of Antigua just told me to get a Swedish Letter of Marque
View attachment 31546
Maybe something dodgy with his dialog.c file or his own national definition? I haven't touched any of that, so I don't think it's translation-related, but I don't have the vanilla version on hand to check it out
Preprocessor_Add("nation_desc", GetNationDescByType(Npchar.nation));
The name is translated because it appears in one of the chracters_names files that I translated long ago, while the dialog isn't because that's what I'm translating at the momentPresumably the admiral's nationality is set when Antigua is initialised. Neither he nor the regulating officer have "ch.nation" lines in their definitions, but that doesn't stop them from showing up as British whenever I play the game.
View attachment 31558
In any case, the dialog file is not to blame. At least, not the existing one. The nationality of the LoM being demanded is handled by a preprocessed variable which is filled in here:So even if the admiral is getting the wrong nationality somehow, the LoM should be the same nationality.Code:Preprocessor_Add("nation_desc", GetNationDescByType(Npchar.nation));
The problem is likely with the translation system. It's translated "Portadmiral" into "Almirante del Puerto" even though the rest of the text is in English, and it's turned the admiral Swedish.
Easy enough to test.@Grey Roger: Could it be that the 'nation' attribute really is missing for these guys?
And then "Sweden" shows up completely by accident because the game code gets confused by the missing attribute?
RUNTIME ERROR - file: nations\nations.c; line: 306
invalid index 11 [size:8]
RUNTIME ERROR - file: nations\nations.c; line: 306
function 'GetNationByType' stack error
RUNTIME ERROR - file: nations\nations.c; line: 319
Using reference variable without initializing
RUNTIME ERROR - file: nations\nations.c; line: 319
null ap
RUNTIME ERROR - file: nations\nations.c; line: 319
no rAP data
Looks like that's the problem He was missing de ch.nation line altogether. So is the regulating captainEasy enough to test.
@Homo eructus: put this into "PROGRAM\Characters\init" and see if the Port Admiral shows up correctly.
RUNTIME ERROR - file: nations\nations.c; line: 306
invalid index 12 [size:8]
RUNTIME ERROR - file: nations\nations.c; line: 306
function 'GetNationByType' stack error
RUNTIME ERROR - file: nations\nations.c; line: 319
Using reference variable without initializing
RUNTIME ERROR - file: nations\nations.c; line: 319
null ap
RUNTIME ERROR - file: nations\nations.c; line: 319
no rAP data
#define PRIVATEER_NATION 8
#define NEUTRAL_NATION 9
#define UNKNOWN_NATION 10
#define ANY_NATION 11
And how can I avoid that?@Homo eructus: those nation errors indicate that your version is probably trying to use all the extra "nations" which are defined in "globals.c" but aren't used:But "MAX_NATIONS" is defined as 8, so the size of the "Nations" array will be 8, therefore any attempt to use "ANY_NATION" is going to cause an error.Code:#define PRIVATEER_NATION 8 #define NEUTRAL_NATION 9 #define UNKNOWN_NATION 10 #define ANY_NATION 11
#define ENGLAND 0
#define FRANCE 1
#define SPAIN 2
#define PIRATE 3
#define HOLLAND 4
#define PORTUGAL 5
// KK -->
#define AMERICA 6
#define SWEDEN 6
#define GUEST1_NATION 6
#define GUEST2_NATION 7
I've never done that to my knowledge. I don't even know how to do it if I wanted. All I do is adding translation strings and translating.How to avoid problems with the unused "nations" - don't use them. Don't work with nation numbers higher than 7.
RUNTIME ERROR - file: nations\nations.c; line: 268
missed attribute: id
RUNTIME ERROR - file: nations\nations.c; line: 268
no rAP data
RUNTIME ERROR - file: MAXIMUS_Functions.c; line: 3230
missed attribute: ranks
RUNTIME ERROR - file: MAXIMUS_Functions.c; line: 3230
null ap
RUNTIME ERROR - file: MAXIMUS_Functions.c; line: 3230
no rAP data