• 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 Fixing the Build Mod Ships

At the Battle for Bridgetown in the Sea Hawk storyline the British ships are : a frigate, RN_Warship, and battleship3. Someone might want to look into that and assign a different ship.


Ok, I'll attempt the Revenge again while I'm waiting for the Spanish Fast Galleons.
 
So that ugly ship actually earned a place in a storyline?! Hmm, not sure that was a good idea.
Perhaps it would be a good opportunity to use the Mordaunt. It's period correct and high-detail, after all. :keith
I also think RN_warship shouldn't be used, just because the RN paint scheme isn't period correct, if I remember correctly.
 
Two items.

It has been noticed that 2 cannons don't fire on the Spanish fast galleons. They don't have fire locators.


This time the Revenge made it into POTC, but work remains to be done. Flags at least and maybe textures. I haven't tried sailing her yet. This is Revenge1.04. I'll try Craiggo's Revenge next.


Beauty is in the eye of the beholder. I thought it was a pretty neat ship until yesterday. The main thing to remember about replacing her is that she is intended to be captured and used at Cozumel against the Sovereign of the Seas and the Black Pearl.
 
I've found the cannons which don't fire, so I'll sort them out. :onya

Nice work getting the Revenge to appear, at least! Are the stats copied from AOP? And how do you mean the textures might need adjusting?

Fair point about Battleship3's role. However I'm pretty sure the best ship you could capture in the stock game scenario was a 70-gun battleship, so it's not a huge difference.
It might be best to use the Mordaunt and a different PotC battleship in place of Battleship3 and RN_Warship. Does that sound reasonable?
 
About the Spanish fast galleons, I forgot about "piratfastgal". That's a quest ship. Reskinning fastgalleon2 with a hex editor should fix it.


Some of the stats are from COAS, but the sailing stats are from the old version. In the screenie the hull looks flat. I just looked in GMViewer and it all shows up, so that must be how it is supposed to look.

For flags, I'm thinking, from the front, pennant, ensign, pennant, ensign.


The Mordaunt is only a class 4, but sure, use her.
 
Yeah I noticed PiratFastGal needed fixing too. No problem for the HEX editor.

Good move with the Revenge's stats. Keeping the PotC sailing characteristics is essential. :onya

The flags are a bit less obvious to set up for this kind of ship, I'd say.
From various paintings I've seen, it might be more realistic to do something like 'Ensign > Pennant > Ensign > Pennant' from the front.
The other alternative is to use a flagpole, but I'm not sure it would fit the model too well. Oh, and a fairly large pennant on the mainmast might look good.
 
I've just tested a first attempt at fixing the ship, and I've noticed a couple of things.
First off, the masts don't actually have reverse lighting (I haven't done anything to them yet); they're just mapped differently to the texture than the mast stumps on the hull, so they don't match.
I'll probably just change the mast stumps' UV mapping to sort that out.

Secondly, there's a bow wave problem, which appears to have persisted even after re-exporting the hull. I don't know why it wasn't fixed. :modding

On a different note, it seems we have another perfect lateen with these ships! Never fouls the mast. :woot
 
LOL! One item is great, one item is ok, and one item is a mess. Do you know how to fix the bow wave? :shrug


The Revenge got into her first battle today, and guess what it was up against. What is that monster? :shock

Oh yeah, it has a problem with its flags. :facepalm But I've got a new flagship! :sail

Do you know about the back porch? :j2
 
I thought re-exporting would fix the bow wave, because the collision detection should be correct. I doesn't seem to have worked, so it's back to square one. :shrug

The Soleil Royal's flags are a huge mess, that's for sure! To fix it, all the penn locators need removing and the ships_init entry needs the 'NoPennants' line.
Do you mean the Revenge also has flag problems? Did you check all the flag/penn locators and the code in ships_init.c? Any typos?

What's this about the back porch...?
 
Dang. I wonder how far back in time the messed up bow wave goes?

The Soleil Royal started crashing POTC, so I had to delete many saves to get back to a running POTC. I did try to work on the flags, but every time I changed something it got the "could not be read" message. Mast1 "could not be read" and is loaded with fals instead of ropes.

There are at least 3 flags pointing in different directions on the stern flagpole. It's a big project that I have shelved for now.

As for the Revenge, it did not have pennants at all, so I put them in. I got into a battle where a gaff schooner lost a mast along with 4 Mordaunts and the Revenge. The GA became very heavy. I know the gaff schooner can cause problems as well as sometimes the Mordaunt.

Those ships sometimes do well and sometimes cause GA. The Revenge should be good and will be tested further.


The Revenge has a back porch! You can walk out a door and go around the sides and back of the ship. Look at the 2nd screenie above.

Methinks the mainsails are intended to be square at all times but the only way I can make that happen is to have the ropes dangling in the water.

I'm about ready to start on the other hulls but will need some advice on how to do that.

The flags have been rearranged. Is the pennant on the main mast long enough?
 
Nice work on the Revenge Hylie, it's great to see her in POTC! :woot
 
Ok, I'm stumped. It looks like there should be 3 Revenge ships in game. I've created 3 Revenge's. Revenge1, Revenge2, and Revenge3. There are 3 entries in shipsinit.c and the game runs ok.

There are 3 groups of textures. Hull1,2,&3. But, how do I tell a ship to use certain textures? They are all named the same.
 
Nice work on the Revenge Hylie, it's great to see her in POTC! :woot

Thanks! :drunk

Progress is being made, but. Knowledge is power, and there is no more wind in my sails. :j1 This is as far as I can go.


06:30 : I spoke with forked tongue. I just managed to convert sailorpoints to walkfile successfully for the first time! :mi
 
The Soleil Royal started crashing POTC, so I had to delete many saves to get back to a running POTC. I did try to work on the flags, but every time I changed something it got the "could not be read" message. Mast1 "could not be read" and is loaded with fals instead of ropes.

There are at least 3 flags pointing in different directions on the stern flagpole. It's a big project that I have shelved for now.
Yeah, she's quite a mess unfortunately. I recall trying to fix mast1, but it still 'could not be read' even after re-exporting. That's a first. :modding
The masts might need to be completely rebuilt if they all have the same problem. I think we can get around the hull flag locators with some sneaky hex-editing, and using a different part for them.
The bottom line is, she can be fixed, but it will take a lot of work.

As for the Revenge, it did not have pennants at all, so I put them in. I got into a battle where a gaff schooner lost a mast along with 4 Mordaunts and the Revenge. The GA became very heavy. I know the gaff schooner can cause problems as well as sometimes the Mordaunt.

Those ships sometimes do well and sometimes cause GA. The Revenge should be good and will be tested further.
Sounds like that's worked out well then. The flag layout you used looks fine to me. :onya

The Revenge has a back porch! You can walk out a door and go around the sides and back of the ship. Look at the 2nd screenie above.
Oh, I thought you meant there was a problem with it. I see now, that's a good feature. :yes

I take it you figured out the alternate hull textures? If so, let's see about finishing the last details.
How does the Revenge compare stats-wise to Galeon5? We should look into replacing the old bunch of English Galleons now rather than later.
The advantage of that is you can easily reuse the interface picture slots and ship type names, among other attributes.

EDIT: nice job converting the walk file!
 
I just got done writing myself a tutorial for converting sailorpoints to walkfiles, so I will know how to do it next time. I can figure things out, but then promptly forget what I just did. :blink:

I have not figured out the hull textures. What I have is one ship that changes when I drop different hull textures into the "textures" folder.

I do not know how to bind one set of textures to a specific ship. There are three sets of textures. Nightwatchers, and 2 from Craiggo, but they all have the same names. :shrug If I knew where the call is, I would just add a number to them to bind them to a specific ship.

In shipsinit.c I named them Revenge1, Revenge2, and Revenge3.

Next I'm going to dig up a year old thread and try to figure out the method for getting pictures in the shipyard interface.
 
For the textures to work separately in PotC, the extra two need to be named as something else, the same length as the first texture's name.
Then, just hex-edit the hulls you want to change by replacing the name of the first hull texture with the one you want. Does that make sense?
It's a mystery to me how it works in CoAS. There must be some code in place which does it. :shrug

I'd still like to know how the stats compare to Galeon5, so we can see where the ship fits into the system.
 
I'll try to decipher that later. I just need to rename the first one I find in the hex editor?


Here are the entries for the Revenge straight out of my shipsinit.c. They are copies of Galeon5, the merchant version, with some changes to weight, guns, and crew taken from COAS. I didn't change anything below the flags section. Revenge 2 & 3 are copies of Revenge 1.

She sails well, but you can feel the weight as she has a lot of inertia.

//-------------------------------------------------------------------------
// 4-masted Galleon - By Nightwatcher. Revenge1
// <SWS - Willemstad Builders' Trials Winter 09 S/N 101> (WBT4H) - English (Elizabethian) galleon
//-------------------------------------------------------------------------
makeref(refShip,ShipsTypes[n]);
n++;
refShip.Name = "Revenge1";
refShip.SName = "GaleonEng";
refShip.All = "Revenge1";
refShip.id = refShip.Name;
refShip.Class = 3;
refShip.Walk = "Revenge";
refShip.Cannon = CANNON_TYPE_LONG_LBS12;
refShip.MaxCaliber = 12;
refShip.Weight = Tonnes2CWT(1100);
refShip.Capacity = 5200;
refShip.CannonsQuantity = 40;
refShip.Cannons.Borts.cannonf.qty = 0;
refShip.Cannons.Borts.cannonb.qty = 2;
refShip.MaxCrew = 190;
refShip.MinCrew = 42;
refShip.Price = 80000;
refShip.HP = 2000;
refShip.SP = 200;
refShip.Jetty = false; // PB

refShip.BigPicTexName = "SHIPS1"; // Armada
// KK -->
refShip.BI.Tex = 10;
refShip.BI.Pic = 0;
refShip.QDeck = "ShipDeck5";
refShip.CannonsDeck = 1;
refShip.CargoHold = 2;
refShip.Cabin = "Cabin3";
refShip.Flags.Mast3.Flag1 = FLAG_ENSIGN;
refShip.Flags.Mast2.Flag1 = FLAG_PENNANT;
refShip.Flags.Mast4.Flag1 = FLAG_ENSIGN;
refShip.Flags.Mast5.Flag1 = FLAG_PENNANT;
// <-- KK

//Period
refShip.period.0 = 1.0; //
refShip.period.1 = 1.0; //
refShip.period.2 = 0.6; //
refShip.period.3 = 0.2; //
refShip.period.4 = 0.0; //
refShip.period.5 = 0.0; //
//Nation
refShip.england = 0.6; //
refShip.france = 0.0; //
refShip.holland = 0.0; //
refShip.portugal = 0.0; //
refShip.pirate = 0.0; //
refShip.spain = 0.0; //

// Ships like these were "pirates", taking Spanish prizes as they circumnavigated the world under English flag

refShip.CanEncounter = true;
refShip.CanBuy = true;
refShip.Model = "4MastedGalleon"; // KK
refShip.Type.Trade = true;
refShip.Type.War = false;

refShip.WaterLine = 0.0;
refShip.SpeedDependWeight = 0.3;
refShip.SubSeaDependWeight = 0.9;
refShip.TurnDependWeight = 0.8;

refShip.GeraldSails.rey_b2 = 1;
refShip.GeraldSails.rey_b3 = 1;

refShip.RigType = "Btn";

if (!bArcadeMode){
refShip.SpeedRate = 9.0;
refShip.TurnRate = 60;
refShip.InertiaAccelerationX = 4; refShip.InertiaBrakingX = 0.5;
refShip.InertiaAccelerationY = 1.8; refShip.InertiaBrakingY = 0.5;
refShip.InertiaAccelerationZ = 2.5; refShip.InertiaBrakingZ = 2.0;
}else{
refShip.SpeedRate = 10.0;
refShip.TurnRate = 35;
refShip.InertiaAccelerationX = 0.2; refShip.InertiaBrakingX = 2.0;
refShip.InertiaAccelerationY = 7; refShip.InertiaBrakingY = 6;
refShip.InertiaAccelerationZ = 4.0; refShip.InertiaBrakingZ = 2.0;

}

// Review: Vessel configured as:
// high seas cruiser, deep draft V-hull, better turn circle (WBT4H)
// <SWS - Willemstad Builders' Trials Winter 09 S/N 101> is henceforth complete
// on this day and date Jan 1 2010, 1834h



//-------------------------------------------------------------------------
// 4-masted Galleon - By Nightwatcher. Revenge2
// <SWS - Willemstad Builders' Trials Winter 09 S/N 101> (WBT4H) - English (Elizabethian) galleon
//-------------------------------------------------------------------------
makeref(refShip,ShipsTypes[n]);
n++;
refShip.Name = "Revenge2";
refShip.SName = "GaleonEng";
refShip.All = "Revenge2";
refShip.id = refShip.Name;
refShip.Class = 3;
refShip.Walk = "Revenge";
refShip.Cannon = CANNON_TYPE_LONG_LBS12;
refShip.MaxCaliber = 12;
refShip.Weight = Tonnes2CWT(1100);
refShip.Capacity = 5200;
refShip.CannonsQuantity = 40;
refShip.Cannons.Borts.cannonf.qty = 0;
refShip.Cannons.Borts.cannonb.qty = 2;
refShip.MaxCrew = 190;
refShip.MinCrew = 42;
refShip.Price = 80000;
refShip.HP = 2000;
refShip.SP = 200;
refShip.Jetty = false; // PB

refShip.BigPicTexName = "SHIPS1"; // Armada
// KK -->
refShip.BI.Tex = 10;
refShip.BI.Pic = 0;
refShip.QDeck = "ShipDeck5";
refShip.CannonsDeck = 1;
refShip.CargoHold = 2;
refShip.Cabin = "Cabin3";
refShip.Flags.Mast3.Flag1 = FLAG_ENSIGN;
refShip.Flags.Mast2.Flag1 = FLAG_PENNANT;
refShip.Flags.Mast4.Flag1 = FLAG_ENSIGN;
refShip.Flags.Mast5.Flag1 = FLAG_PENNANT;
// <-- KK

//Period
refShip.period.0 = 1.0; //
refShip.period.1 = 1.0; //
refShip.period.2 = 0.6; //
refShip.period.3 = 0.2; //
refShip.period.4 = 0.0; //
refShip.period.5 = 0.0; //
//Nation
refShip.england = 0.6; //
refShip.france = 0.0; //
refShip.holland = 0.0; //
refShip.portugal = 0.0; //
refShip.pirate = 0.0; //
refShip.spain = 0.0; //

// Ships like these were "pirates", taking Spanish prizes as they circumnavigated the world under English flag

refShip.CanEncounter = true;
refShip.CanBuy = true;
refShip.Model = "4MastedGalleon"; // KK
refShip.Type.Trade = true;
refShip.Type.War = false;

refShip.WaterLine = 0.0;
refShip.SpeedDependWeight = 0.3;
refShip.SubSeaDependWeight = 0.9;
refShip.TurnDependWeight = 0.8;

refShip.GeraldSails.rey_b2 = 1;
refShip.GeraldSails.rey_b3 = 1;

refShip.RigType = "Btn";

if (!bArcadeMode){
refShip.SpeedRate = 9.0;
refShip.TurnRate = 60;
refShip.InertiaAccelerationX = 4; refShip.InertiaBrakingX = 0.5;
refShip.InertiaAccelerationY = 1.8; refShip.InertiaBrakingY = 0.5;
refShip.InertiaAccelerationZ = 2.5; refShip.InertiaBrakingZ = 2.0;
}else{
refShip.SpeedRate = 10.0;
refShip.TurnRate = 35;
refShip.InertiaAccelerationX = 0.2; refShip.InertiaBrakingX = 2.0;
refShip.InertiaAccelerationY = 7; refShip.InertiaBrakingY = 6;
refShip.InertiaAccelerationZ = 4.0; refShip.InertiaBrakingZ = 2.0;

}

// Review: Vessel configured as:
// high seas cruiser, deep draft V-hull, better turn circle (WBT4H)
// <SWS - Willemstad Builders' Trials Winter 09 S/N 101> is henceforth complete
// on this day and date Jan 1 2010, 1834h



//-------------------------------------------------------------------------
// 4-masted Galleon - By Nightwatcher. Revenge3
// <SWS - Willemstad Builders' Trials Winter 09 S/N 101> (WBT4H) - English (Elizabethian) galleon
//-------------------------------------------------------------------------
makeref(refShip,ShipsTypes[n]);
n++;
refShip.Name = "Revenge3";
refShip.SName = "GaleonEng";
refShip.All = "Revenge3";
refShip.id = refShip.Name;
refShip.Class = 3;
refShip.Walk = "Revenge";
refShip.Cannon = CANNON_TYPE_LONG_LBS12;
refShip.MaxCaliber = 12;
refShip.Weight = Tonnes2CWT(1100);
refShip.Capacity = 5200;
refShip.CannonsQuantity = 40;
refShip.Cannons.Borts.cannonf.qty = 0;
refShip.Cannons.Borts.cannonb.qty = 2;
refShip.MaxCrew = 190;
refShip.MinCrew = 42;
refShip.Price = 80000;
refShip.HP = 2000;
refShip.SP = 200;
refShip.Jetty = false; // PB

refShip.BigPicTexName = "SHIPS1"; // Armada
// KK -->
refShip.BI.Tex = 10;
refShip.BI.Pic = 0;
refShip.QDeck = "ShipDeck5";
refShip.CannonsDeck = 1;
refShip.CargoHold = 2;
refShip.Cabin = "Cabin3";
refShip.Flags.Mast3.Flag1 = FLAG_ENSIGN;
refShip.Flags.Mast2.Flag1 = FLAG_PENNANT;
refShip.Flags.Mast4.Flag1 = FLAG_ENSIGN;
refShip.Flags.Mast5.Flag1 = FLAG_PENNANT;
// <-- KK

//Period
refShip.period.0 = 1.0; //
refShip.period.1 = 1.0; //
refShip.period.2 = 0.6; //
refShip.period.3 = 0.2; //
refShip.period.4 = 0.0; //
refShip.period.5 = 0.0; //
//Nation
refShip.england = 0.6; //
refShip.france = 0.0; //
refShip.holland = 0.0; //
refShip.portugal = 0.0; //
refShip.pirate = 0.0; //
refShip.spain = 0.0; //

// Ships like these were "pirates", taking Spanish prizes as they circumnavigated the world under English flag

refShip.CanEncounter = true;
refShip.CanBuy = true;
refShip.Model = "4MastedGalleon"; // KK
refShip.Type.Trade = true;
refShip.Type.War = false;

refShip.WaterLine = 0.0;
refShip.SpeedDependWeight = 0.3;
refShip.SubSeaDependWeight = 0.9;
refShip.TurnDependWeight = 0.8;

refShip.GeraldSails.rey_b2 = 1;
refShip.GeraldSails.rey_b3 = 1;

refShip.RigType = "Btn";

if (!bArcadeMode){
refShip.SpeedRate = 9.0;
refShip.TurnRate = 60;
refShip.InertiaAccelerationX = 4; refShip.InertiaBrakingX = 0.5;
refShip.InertiaAccelerationY = 1.8; refShip.InertiaBrakingY = 0.5;
refShip.InertiaAccelerationZ = 2.5; refShip.InertiaBrakingZ = 2.0;
}else{
refShip.SpeedRate = 10.0;
refShip.TurnRate = 35;
refShip.InertiaAccelerationX = 0.2; refShip.InertiaBrakingX = 2.0;
refShip.InertiaAccelerationY = 7; refShip.InertiaBrakingY = 6;
refShip.InertiaAccelerationZ = 4.0; refShip.InertiaBrakingZ = 2.0;

}

// Review: Vessel configured as:
// high seas cruiser, deep draft V-hull, better turn circle (WBT4H)
// <SWS - Willemstad Builders' Trials Winter 09 S/N 101> is henceforth complete
// on this day and date Jan 1 2010, 1834h
 
Ok, I got Revenge 2 into the game provisionally. At least it looks like it. After 2 failures it was discovered that every single GM had to be edited. :j3


Now to do Revenge 3. :rumgone


2 hours later......... Revenge 3 is done and is what I am sailing. So all that is left is the pictures and then putting the package together.
 
Good to know everything's working so far. For the interface pics, I still think it's worth using the image slots from Galeon5 and Galeon5w, and then removing the code for those ships altogether.
That way, you only need to take up one more slot than before on the texture. You can also use or modify their ship type names, rather than adding more.

Lastly, do you think it's worth making one of the three ships use different stats?
So, like the old galleons, two of them are 'Balanced' and one is a 'Merchant' (with only the balanced ones being grouped to repaint).
That way, we don't leave any gaps in the class system, which helps cater for different play styles.
 
About pics, I have been taking shots but don't have any really good ones yet. I never did find the thread where the pics were discussed a year ago and have no idea where the files and folders are.


Using different stats? Some modification is a good idea. What we have now is a ship with 40-12 pounders, a crew of 196, and a cargo capacity of over 5,000cwt.

The Spanish fast galleon has 36-9pounders, 173 crew, and over 5,000cwt cargo capacity. That makes the English fast galleon a larger ship. To make a fighting version about all you could do is reduce cargo and increase crew.

My opinion of the current fighting English galleons is that they are unrealistically fast and maneuverable. I still remember one battle where I was in one and was able to keep up with and sink 2 xebecs!

Hmmm. A class 4 vessel similar to the class 4 light fluyt of war would be a good thing.
 
Back
Top