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

Ships Ported Over From POTC

No you will never need to do fresh installs all the files that we work on are compatable with the current files so you can simply overwrite the files and start a new game. :onya
 
Indeed Kazeite did make the Interceptor and the Enterprise and also the Black Pearl/Wicked Wench and Superior Warship.

@ Kazeite: Was Superior Warship taken from the Wappen Von Hamburg? If so I would love to see a Coat of Arms on her taffrail. Some generic Dutch arms with lions holding up a shield would be grand!
http://www.google.com/imgres?imgurl=http://upload.wikimedia.org/wikipedia/commons/7/76/Coat_of_arms_of_Dutch_East_Indies.png&imgrefurl=http://commons.wikimedia.org/wiki/File:Coat_of_arms_of_Dutch_East_Indies.png&h=565&w=841&sz=651&tbnid=FhF01M6bJguLVM:&tbnh=97&tbnw=145&prev=/images%3Fq%3Ddutch%2Bcoats%2Bof%2Barms&zoom=1&q=dutch+coats+of+arms&hl=en&usg=__CPCoHfSuR1mj04yhiCzUVU3nYHU=&sa=X&ei=8eiXTOirHoGClAen79XRBQ&sqi=2&ved=0CB4Q9QEwAw

MK
 
Then add it yourself! Seriously, it's very easy to do and it's INSANELY useful.
Especially for the type of things you seem to be doing!

I have 3.1.5 installed and my console.c file is pretty anemic. Are there instructions for novice, would be modders such as myself?

Thanks,
Greg.
 
There's no limits to what you can put in the console, apart from your imagination and coding knowledge.
To give you some inspiration, see here the contents of my PotC version; note that some functions don't exist in CoAS:
Code:
void ExecuteConsole()
{
ref pchar = GetMainCharacter();
if (!bSeaActive) ref lcn = &Locations[FindLocation(pchar.location)];
ref ch;
int i;
int limit;

//	LAi_EnableReload();

// Give ship
// ------------------
//	GiveShip2Character(pchar,pchar.ship.type,pchar.ship.name,-1,PIRATE,true,true);
//	GiveShip2Character(pchar,"Amsterdam","Amsterdam",-1,HOLLAND,true,true);
//	GiveShip2Character(pchar,SHIP_CURSED,"Black Pearl",-1,PIRATE,true,true);
//	GiveShip2Character(pchar,"CursedDutchman","Flying Dutchman",-1,PIRATE,true,true);
//	GiveShip2Character(pchar,"FR_SteamFrigate","Jeanne d'Arc",-1,FRANCE,true,true);
/*
if(!Checkattribute(pchar,"cheatship")) Pchar.cheatship = 0;
int con = sti(Pchar.cheatship);
if(con<SHIP_TYPES_QUANTITY)
{
GiveShip2Character(pchar,ShipsTypes[con].id,"Test Ship",-1,ENGLAND,true,true);
Pchar.cheatship = con +1;
}
TraceAndLog("*************************** Ship : " + ShipsTypes[con].id + " , Index : " + con + " ");
*/
// Give items
// ------------------
//	GiveItem2Character(PChar, "compass3");
//	EquipCharacterByItem(pchar, "compass3");
//	GiveItem2Character(pchar, "spyglass4");
//	EquipCharacterByItem(pchar, "spyglass4");
//	GiveItem2Character(pchar, "clock2");
//	EquipCharacterByItem(pchar, "clock2");
//	GiveItem2Character(pchar,"blade26+3");
//	EquipCharacterByItem(pchar, "blade26+3");
//	GiveItem2Character(pchar,"pistol3_14");
//	EquipCharacterByItem(pchar, "pistol3_14");
/*
GiveItem2Character(pchar, "mapKhaelRoa");
GiveItem2Character(pchar, "mapAntigua");
GiveItem2Character(pchar, "mapCayman");
GiveItem2Character(pchar, "mapConceicao");
GiveItem2Character(pchar, "mapCuba");
GiveItem2Character(pchar, "mapDouwesen");
GiveItem2Character(pchar, "mapFalaiseDeFleur");
GiveItem2Character(pchar, "mapGuadeloupe");
GiveItem2Character(pchar, "mapHispaniola");
GiveItem2Character(pchar, "mapIslaMuelle");
GiveItem2Character(pchar, "mapOxbay");
GiveItem2Character(pchar, "mapQuebradasCostillas");
GiveItem2Character(pchar, "mapRedmond");
GiveItem2Character(pchar, "mapSaintMartin");
GiveItem2Character(pchar, "mapTurks");
GiveItem2Character(pchar, "mapAruba");
GiveItem2Character(pchar, "mapCuracao");
GiveItem2Character(pchar, "mapEleuthera");
GiveItem2Character(pchar, "mapRedmond_Dungeon");
GiveItem2Character(pchar, "mapOxbay_Dungeon");
GiveItem2Character(pchar, "mapOxbay_Cave");
GiveItem2Character(pchar, "mapDouwesen_Cave");
GiveItem2Character(pchar, "mapKhaelRoa_TempleGround");
GiveItem2Character(pchar, "mapKhaelRoa_TempleUpper");
*/

// Models and Times (for screenshot-making)
// ------------------
//	GiveModel2Player("Jack",true);
//	SetCurrentTime(00.00, 0); // NIGHT1.COL
//	SetCurrentTime(06.00, 0); // EVENING3.COL
//	SetCurrentTime(12.00, 0); // DAY1.COL
//	SetCurrentTime(21.00, 0); // MORNING1.COL
//	CycleThroughTexturedModels("Town_Redmond\Town_04");
//	ReloadToTexturedModel("Town_Redmond\Town_03", "ENGLAND");

// Reload to location
// ------------------
//	DoQuestReloadToLocation("Redmond_port", "reload", "Sea_2_back" ,"");
//	SetCharacterShipLocation(Pchar, "Redmond_port");
//	DoQuestReloadToLocation("Oxbay_Port", "reload", "reload1" ,"");
//	SetCharacterShipLocation(Pchar, "Oxbay_Port");

// Capture Colony
// ------------------
//	CaptureTownForNation("Douwesen", HOLLAND);
//	LaunchCaptureColony(pchar, "Santo_Domingo");

//	DEBUG = 1;

if (!bSeaActive) {
float x,y,z,ay,xx,zz,xz,zx;
GetCharacterPos(GetMainCharacter(), &x, &y, &z);
GetCharacterAy(pchar, &ay);
xx = -sin(ay - PId2);
zz = xx;
xz = -cos(ay - PId2);
zx = -xz;
Logit("Location id: "+pchar.location)
Logit("Your Coords x: " + x+"  y: "+y+"  z: "+z );
Logit("Viewangle ay: "+ay+"; xx= "+xx+" xz= "+xz+" zx= "+zx+" zz= "+zz);
Logit("Curlocator: "+chrWaitReloadLocator);
//trace("Location id: "+pchar.location)
//trace("rld,loc,"+xx+",0,"+y+","+xz+",0,1,0,"+zx+",0,"+zz+","+x+","+y+","+z+",1,0,0,0,0,0,0,0,0,");
trace("rld,aloc,"+xx+",0,"+xz+",0,1,0,"+zx+",0,"+zz+","+x+","+y+","+z+",1,0,0,0,0,0,0,0,0,");
//		trace("Viewangle ay: "+ay+"; xx= "+xx+" xz= "+xz+" zx= "+zx+" zz= "+zz);
//		trace("Curlocator: "+chrWaitReloadLocator);
} else {
Logit("Ship position: x="+pchar.ship.pos.x+", z="+pchar.ship.pos.z);
}
return;
//Logit("Ship position: x="+worldMap.playerShipX+", z="+worldMap.playerShipZ);

/*if (!HasSubStr(pchar.location, "BOARDING_"))
DoQuestReloadToLocation("BOARDING_ShipDeck1", "rld", "loc0", "");
else {
limit = makeint(GetBoardingLimit(FindLoadedLocation()) / 2);
for (i = 1; i < limit; i++) {
ch = LAi_CreateFantomCharacter(false, 0, true, true, 0.0, "Soldier_eng", "rld", "loc" + i);
LAi_SetStayType(ch);
}
ch = LAi_CreateFantomCharacter(false, 0, true, true, 0.0, "offic_fra", "rld", "aloc0");
LAi_SetStayType(ch);
for (i = 1; i < limit; i++) {
ch = LAi_CreateFantomCharacter(false, 0, true, true, 0.0, "Soldier_fra", "rld", "aloc" + i);
LAi_SetStayType(ch);
}
}
return;*/

if (LAi_boarding_process) {
//if (FindLoadedLocation() == "BOARDING_ShipDeck4" || FindLoadedLocation() == "BOARDING_ShipDeck5" || FindLoadedLocation() == "BOARDING_ShipDeck6")
//		PostEvent("CharacterGroup_UpdateAlarm", 0, "fi", 0.0, false);
//		logit("phar.location="+pchar.location+", refEnCharacter.location="+refEnCharacter.location+", refEnCharacter.location.group="+refEnCharacter.location.group+", refEnCharacter.location.locator="+refEnCharacter.location.locator);
//		logit("GetPassengerNumber(mchr, GetCharacterIndex(refEnCharacter.id))="+GetPassengerNumber(pchar, GetCharacterIndex(refEnCharacter.id)));
}
if (bSeaActive) {
Logit("Location: "+PChar.location+", "+pchar.location.group+", "+pchar.location.locator);
//Fort_SetAbordageMode(pchar, characterFromID("Douwesen Commander"));
//SetNationRelation2MainCharacter(PORTUGAL, RELATION_ENEMY);
//Fort_SetAbordageMode(pchar, characterFromID("Douwesen Commander"));
//SetNationRelation2MainCharacter(HOLLAND, RELATION_ENEMY);
} else {
if (hasSubStr(pchar.location, "_port")) {
GiveShip2Character(pchar,"FrigateNKSup","Sirius Star",-1,ENGLAND,true,true);

ChangeCharacterReputation(pchar, 60);

GiveItem2Character(PChar, "compass3");
EquipCharacterByItem(pchar, "compass3");
GiveItem2Character(pchar, "spyglass4");
EquipCharacterByItem(pchar, "spyglass4");
GiveItem2Character(pchar, "blade13+1");
EquipCharacterByItem(pchar, "blade13+1");
GiveItem2Character(Pchar, "pistol5+2");
EquipCharacterByItem(pchar, "pistol5+2");
GiveItem2Character(pchar, "commonarmor");
EquipCharacterByItem(pchar, "commonarmor");
PChar.rank = 40;
pchar.experience = CalculateExperienceFromRank(sti(PChar.rank));
ChangeHPBonus(pchar, sti(pchar.chr_ai.hp_max));
ResetHP(pchar);
LAi_SetImmortal(pchar, true);

ch = CreateOfficer_Cheat(OFFIC_TYPE_NAVIGATOR, "Dan_TG3", 0, PERSONAL_NATION, false);
SetOfficersIndex(pchar, -1, GetCharacterIndex(ch.id));
ch = CreateOfficer_Cheat(OFFIC_TYPE_QMASTER, "33_TG5D", 0, PERSONAL_NATION, false);
SetOfficersIndex(pchar, -1, GetCharacterIndex(ch.id));
ch = CreateOfficer_Cheat(OFFIC_TYPE_CANNONEER, "50_India", 0, PERSONAL_NATION, false);
SetOfficersIndex(pchar, -1, GetCharacterIndex(ch.id));
ch = CreateOfficer_Cheat(OFFIC_TYPE_CAPNAVY, "50_33_40Claire", 3, PERSONAL_NATION, false);
ch = CreateOfficer_Cheat(OFFIC_TYPE_CAPNAVY, "50LCroft", 3, PERSONAL_NATION, false);
ch = CreateOfficer_Cheat(OFFIC_TYPE_CAPNAVY, "Searcher_Navy", 3, PERSONAL_NATION, false);

int idx = GetMainCharacterIndex();
aref arPerksRoot; makearef(arPerksRoot,ChrPerksList.list);
int chrPerksQ = GetAttributesNum(arPerksRoot);
for (i = 0; i <= GetPassengersQuantity(PChar); i++) {
if (i > 0) {
idx = GetPassenger(PChar, i - 1);
if (idx < 0) continue;

GiveItem2Character(GetCharacter(idx), "blade13+1");
EquipCharacterByItem(GetCharacter(idx), "blade13+1");
GiveItem2Character(GetCharacter(idx), "pistol5+2");
EquipCharacterByItem(GetCharacter(idx), "pistol5+2");
GiveItem2Character(GetCharacter(idx), "commonarmor");
EquipCharacterByItem(GetCharacter(idx), "commonarmor");
TakeNItems(GetCharacter(idx), "gunpowder", 6);
TakeNItems(GetCharacter(idx), "pistolbullets", 6);
}

for (int s = 0; s < 10; s++) {
string skillname = GetSkillName(s);
characters[idx].Skill.(skillname) = 10;
}

for (int p = 0; p < chrPerksQ; p++)
{
string perkName = GetAttributeName(GetAttributeN(arPerksRoot, p));
characters[idx].perks.list.(perkName) = true;
}
}
SetCharacterGoods(&pchar, GOOD_BALLS, 5000);
SetCharacterGoods(&pchar, GOOD_GUNPOWDER, 10000);
}
}
AddMoneyToCharacter(PChar, 2000000);
LogIt("Executed Console");
}
 
Since we are on the topic of the patch I'll ask here:

I seem to remember awhile back some mention of a way to extend your Companions (ships/sea) from 4 to 6? So you can have a Squadron of 7 ships?
I can not fully remember the numbers, but the mini-mod did exactly that, extend the number of Ships you could have in your Squadron.

Will such a thing be included in the patch?
 
@ Kazeite: Was Superior Warship taken from the Wappen Von Hamburg?
No, it was, well, an experiment :D

I took Battleship from stock PotC, the one with distinct stern- and forecastle, and I just joined the two. Afterwards, I straightened the gun rows, remodelled stern a little, added some boats and stuff, and voila, Superior Warship. I had no idea it would be so popular xD:
 
There's no limits to what you can put in the console, apart from your imagination and coding knowledge.
. . . . stuff deleted for space see previous post . . . .

Thanks Peter,

I will give that a try. I am not used to modding stuff. I guess I am used to having the source to explore before beginning editing. Gotten pretty spoiled being able to run the code in a debugger, that allows you trace through it.

By the way do you guys use SVN (subversion) or CVS for source control? It may help alleviate a lot of the merging problems. It also shows areas of conflict, where two people have changed same line of code.
 
We used to have a server for that, but it went down and we never got it back.
It was a good system, but we couldn't really convince the other modders to use it. :facepalm
 
Back
Top