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

Unconfirmed Bug Problems with Sweden

Grey Roger

Sea Dog
Staff member
Administrator
Storm Modder
If you start as a Swedish privateer, you start in Puerto la Cruz, Eleuthera. This is bad if Spain is at war with Sweden because Puerto la Cruz has a big fort. I was planning on taking a fort or two anyway so I could give Sweden a colony to test the new Swedish music, so I'd cheated on a massive scale to give myself a big ship, immortality and a lot of level increases, and even then I had trouble with that fort.

A couple of promotions got me a US Cavalry Sabre. The promotions section of "NK.c" doesn't know about Sweden and treats it as America.

Swedish soldiers in town are fine, but the ones in taverns are Nathaniel clones. This usually means they're being picked from a model group which doesn't exist.
 
If you start as a Swedish privateer, you start in Puerto la Cruz, Eleuthera. This is bad if Spain is at war with Sweden because Puerto la Cruz has a big fort. I was planning on taking a fort or two anyway so I could give Sweden a colony to test the new Swedish music, so I'd cheated on a massive scale to give myself a big ship, immortality and a lot of level increases, and even then I had trouble with that fort.
Eleuthera is the starting location for America, so you're having the same issue there.
I'd suggest changing it so Sweden starts in Tortuga. That is pretty much the "default" safe haven for anyone who has nowhere else.

Swedish soldiers in town are fine, but the ones in taverns are Nathaniel clones. This usually means they're being picked from a model group which doesn't exist.
Ugh, why do those even work differently from each other? :modding

Does the Sweden "Soldiers" group exist in initModels.c?
 
Other soldiers, e.g. "Soldier_Eng_15" and "Soldier_USA_18", have this line in their definition:
Code:
AssignModelTypeNation(isstart, model, "Soldiers", 1.0, sti(model.nation));
The Swedish soldiers have no such line and also have:
Code:
model.nation     =  BROKEN;
So they're not being marked as members of group "Soldiers" and aren't properly Swedish. That means there are no Swedish soldiers, which would be why random Swedish soldiers in taverns are Nathaniel clones. Soldiers in town must be handled differently because there are definitions for Swedish soldier models in "nations_init.c".
 
The reason is the models were only used in my quest from the beginning. If this is changed I hope I still can use them as quest characters.
 
Other soldiers, e.g. "Soldier_Eng_15" and "Soldier_USA_18", have this line in their definition:
Code:
AssignModelTypeNation(isstart, model, "Soldiers", 1.0, sti(model.nation));
The Swedish soldiers have no such line and also have:
Code:
model.nation     =  BROKEN;
So they're not being marked as members of group "Soldiers" and aren't properly Swedish. That means there are no Swedish soldiers, which would be why random Swedish soldiers in taverns are Nathaniel clones. Soldiers in town must be handled differently because there are definitions for Swedish soldier models in "nations_init.c".
Ah, that explains it all. Probably those initModels.c entries need changing then.

The reason is the models were only used in my quest from the beginning. If this is changed I hope I still can use them as quest characters.
Will absolutely remain possible; no worries there. :doff
 
I'm not changing them - they're your creation so you can change them if you want them to be usable as general purpose Swedish soldiers.

That should not stop them from being usable for quest characters! It just means they'll be seen outside the quest as well - but only if someone conquers a colony on behalf of Sweden and then goes into a tavern looking for someone to bribe for smuggling information. ;)

Or you could clone them - copy the models, have the copies use the same textures, give them different model ID's, and make the clones into standard soldiers. Then you can do whatever you want to the original models for storyline purposes.
 
Or you could clone them - copy the models, have the copies use the same textures, give them different model ID's, and make the clones into standard soldiers. Then you can do whatever you want to the original models for storyline purposes.
I don't see why that should be necessary. Would just increase the size of the mod without adding anything extra, right?
 
Swedish soldiers in town are fine, but the ones in taverns are Nathaniel clones. This usually means they're being picked from a model group which doesn't exist.
This happened when I was testing the dialog of the Antigua naval base officers. The reinforcements that show up after a failed bribe attempt are also Nathaniels instead of English soldiers (they do have ENglish names though)
 
Alright, I'll change those swedish soldiers in initModels.c Will come with my next upload.

Other soldiers also have
Code:
model.playertype  = PLAYER_TYPE_MILITARY;
    model.period = "" + PERIOD_REVOLUTIONS;

Not sure if these are needed. Maybe the period line is used when you buy the uniform?
And the playertype line?? I can add that one just to be sure.
 
Last edited:
What do I do with that? Use console.c? I don't really know how any of that works
I think the console command you need is something like this:
Code:
LogIt("Current Location Nation = " + GetNationIDByType(GetCurrentLocationNation()));
Maybe @Grey Roger or @Levis can check my syntax, because I'm writing this from long-term memory.
 
Maybe the period line is used when you buy the uniform?
For Sweden it won't matter too much; but other nations have different uniforms for different periods and that avoids them from showing up at the same time.

And the playertype line?? I can add that one just to be sure.
That is for the Select Storyline interface, so you get an appropriate player type if you select it as your starting player model.
 
One other problem I forgot to mention. The character selection menu also doesn't know the difference between Sweden and America. I set it to look for Swedish characters and one of the offerings was Josiah Peabody.
 
One other problem I forgot to mention. The character selection menu also doesn't know the difference between Sweden and America. I set it to look for Swedish characters and one of the offerings was Josiah Peabody.
Would need to be made period-dependent, I'm afraid.

I wonder if the guest nation stuff needs a bit of a rewrite so that you can use different #define numbers for different guest nations so that America and Sweden are clearly not the same for the game.
 
For Sweden it won't matter too much; but other nations have different uniforms for different periods and that avoids them from showing up at the same time.
Yes but I've got two set of soldier models (for 3 periods) so the period has to be there.
 
Back
Top