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

Solved Guards weapon and outfit change

FaxMate

Sailor Apprentice
Hello Privateers and Naval Officers and so on!

I have a question whisch is pretty simple, I just wanted to know if I could somehow restore the clothing and weapons from the original game? Would be really interesting to know.

Thanks in advance,
Faxmate
 
Absolutely possible.

What exactly do you want to change? And how?

You can change the weapons by modifying the code in the PROGRAM folder.
Even standard Windows Notepad will let you do that.
See here for some more help: Tutorial - Modding Tips & Tricks

For the clothing, you can swap out the files in the RESOURCE folder with the ones from the original game.
See here for some more help: Tools, Tutorials and Information
 
Thank you very much, I just want to swap out the muskets and want to give them there sabers back or whatever I´m thinking would be fun to fight with. :p

Thanks again and again. ^^

Faxmate
 
WEll, I´m kind of to dumb, I made some changes for my likings but I couldn´t find what I sought. :D
 
I´m kind of to dumb
No, you're obviously not.
You tried. Most people don't.
That makes you smarter than most people.

You even report back to us, giving yourself a chance to learn. ;)

I made some changes for my likings but I couldn´t find what I sought
How far did you get?
And where did you get stuck?

We cannot do it for you because we don't know exactly what you're after.
But we CAN answer questions.
So ask away. :cheers
 
I can´t figure out which data would let me change the muskets from the guards to sabers, and the uniforms also.

How far did you get?

I changed the blades of my crew when I am boarding to the falchion sword if nothing is in the weapon locker, I jsut have to try it out now if it worked or not :D

And I inserted some ship names from different nations and wonder if I might come across one or two of them :p

I know nothing astonishing or 'world-moving' but it was a start. :D

Also wanted to ask if there is some way to get back the old frigate models. As you probably know there was just one type of frigate in the base game and know the only thing that looks similar to these ships is the 'Mefisto'.

No, you're obviously not.
You tried. Most people don't.
That makes you smarter than most people.

Thank you for the kind words! :)
 
I can´t figure out which data would let me change the muskets from the guards to sabers
That's indeed a confusing bit of coding, I admit.
You're in luck though, because I wrote it so I've got some familiarity with it. ;)

See function 'GiveSoldierWeapon' at the bottom of PROGRAM\Periods.c .

and the uniforms also
You can find which character model filenames are used per nation per period in PROGRAM\Models\initModels.c .
Here's an example:
Code:
    // Soldier English -->
    model.description =  "Your basic English Army or Marine uniform under a strong jaw and a mustache.";
    model.id       =  "Soldier_Eng_15";
    model.FaceId    = 99;
    model.minrank    =  1;
    model.nation      =  ENGLAND;
    model.price       =  1000;
    model.assigned    =  true;
    model.playertype  = PLAYER_TYPE_MARINE;
    model.period = "" + PERIOD_EARLY_EXPLORERS;
    AssignModelTypeNation(isstart, model, "Soldiers", 1.0, sti(model.nation));
    AddCharacterModel(model);

The "model.id" is what you need.
That refers to the filenames of the GM models in RESOURCE\MODELS\Characters .
With Animation View and/or GM Viewer, you can find out which texture files those models use.
These textures can be found in RESOURCE\Textures\Characters .
You can see what they look like with the TX Converter .

The PROGRAM side differs greatly between the original game and the New Horizons mod.
But the RESOURCE folder still works mostly the same.

I changed the blades of my crew when I am boarding to the falchion sword if nothing is in the weapon locker, I jsut have to try it out now if it worked or not :D
Nice going, matey! :cheers

I know nothing astonishing or 'world-moving' but it was a start. :D
Moving the world has to start somewhere.
Might as well start somewhere small like here.
Better chance of success than starting big straight away. ;)

Also wanted to ask if there is some way to get back the old frigate models. As you probably know there was just one type of frigate in the base game and know the only thing that looks similar to these ships is the 'Mefisto'.
Works fairly similarly to what I described for those uniforms.
Here the code is in PROGRAM\Ships\Ships_init.c , the models are in RESOURCE\MODELS\Ships and the textures in RESOURCE\Textures\Ships .

Thank you for the kind words! :)
You're quite welcome.
I love saying kind words that are true at the same time. :cheeky
 
Well, the uniform changing didn´t work at all, maybe I did something wrong?

I changed the model.id but nothing else, should I have changed more or did I change the wrong file?

I uploaded the file in case you can figure out what I did wrong o_O:confused:
 

Attachments

  • initModels.c
    484.2 KB · Views: 196
I changed the model.id but nothing else, should I have changed more or did I change the wrong file?
First question is: are the ones you want still in the game files?
If so, what is their ID?
 
Soldier_Por_15 - Portugal
Soldier_Spa_15 - Spain

and so on

I gave France the personal soldiers (Soldier_Per)
And I gave myself some swedish soldiers as personal soldiers (Soldiers_Swe6_18)

And yes they are still saved in the initModels file. Of course I started a new game.
 
Put "initModels.c" back the way it was. You don't need to change it. You also do not need to replace any soldier models. The original soldier models are still in the game, though some have slightly different textures, and for the most part they appear in one period only. For example, the original English soldier models are now the standard English types in "Golden Age of Piracy". (Start a FreePlay game, change the player type to "Corsair" or to anything else which lets you start in Speightstown instead of Nevis Pirate Settlement, play through the dialog with Malcolm Hatcher, then look at the soldiers in Speightstown.) Most other nations' original models are now used in the "Early Explorers" period. The exception is France, whose original soldiers are now used for Personal.

Put this file into "PROGRAM\NATIONS". All the lines which make soldier model dependant on period are commented out and each nation now has a single block. And so, in "Napoleonic" period, here are the near-original soldiers:
british.jpg dutch.jpg french.jpg spanish.jpg
(I couldn't show Portuguese soldiers because Portuguese Sao Jorge becomes British Saint George in the "Napoleonic" period. What I did for all other nations, I did for Portugal as well, so their soldiers should show near enough original outfits.)

To change your Personal soldier models, edit "PROGRAM\Characters\characters_init.c". Find this section:
Code:
// KK -->
   ch.Soldier.m0 = "Offic_per";
   ch.Soldier.m1 = "Soldier_Per";
   ch.Soldier.m2 = "Soldier_Per2";
   ch.Soldier.m3 = "Soldier_Per3";
   ch.Soldier.m4 = "Soldier_Per4";
   ch.Soldier.m5 = "Soldier_Per5";
   ch.Soldier.m6 = "Soldier_Per6";
   ch.Soldier.m7 = "Soldier_Per" + (rand(4) + 2);

   ch.Boarder.Count = 12;
   ch.Boarder.m0 = NATHANIEL_BOARDER_0;
   ch.Boarder.m1 = NATHANIEL_BOARDER_1;
   ch.Boarder.m2 = NATHANIEL_BOARDER_2;
   ch.Boarder.m3 = NATHANIEL_BOARDER_3;
   ch.Boarder.m4 = NATHANIEL_BOARDER_4;
   ch.Boarder.m5 = NATHANIEL_BOARDER_5;
   ch.Boarder.m6 = NATHANIEL_BOARDER_6;
   ch.Boarder.m7 = NATHANIEL_BOARDER_7;
   ch.Boarder.m8 = NATHANIEL_BOARDER_8;
   ch.Boarder.m9 = NATHANIEL_BOARDER_9;
   ch.Boarder.m10 = NATHANIEL_BOARDER_10;
   ch.Boarder.m11 = NATHANIEL_BOARDER_11;
   ch.Boarder.Model = BOARDERMODEL;
   ch.Boarder.Index = BOARDER_INDEX;

   LAi_RemoveLoginTime(ch);
   GiveItem2Character(ch, "map");
// <-- KK
Change the "ch.Soldier" lines to use whichever models you prefer.
 

Attachments

  • nations_init.c
    51.2 KB · Views: 174
Thank you very much Grey Roger, I changed really much in the initModels file, do you happen to have the original file?
 
Back
Top