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

Spoiler Reanabling CHEATS aka Debugwindow in German and UK Version

[/quote]You can remove completly the rats by changing the \Age of Pirates 2\Program\_mod_on_off.h line:

bool bNoEatNoRats = false;

to:

bool bNoEatNoRats = true;

Doing that you don't need the totem and no more rats.

I need to check if with that option your crew don't need to eat too and if so there is no need to buy food or rum. :keith
[/quote]

bool bNoEatNoRats = true; Thats what mine said. Do I still need to press F11 to run in Dev mode for these changes to take place? If so do I just open it and X out of it if I dont want other cheats? I will figure it out either way and post back if I needed to do something else to get the game to run with no rats or food.
 
Do I still need to press F11 to run in Dev mode for these changes to take place? If so do I just open it and X out of it if I dont want other cheats? I will figure it out either way and post back if I needed to do something else to get the game to run with no rats or food.

Thats true. If you change it in the headerfile to <true>, you can turn off the DEV-Mode because you telled AOP to make it default.
 
Thats true. If you change it in the headerfile to <true>, you can turn off the DEV-Mode because you telled AOP to make it default.

Thanks. The no rats no food fix really improves gameplay. I found out that the f11 dev mode is a nice interface too.
 
I get a runtime error and crash to desktop before the game turns on every time I change the mod_on_off file from "off" // on to off // "on" I have no problem when I change the engine.ini file- just the mod_on_off file. All I really want is to turn on god mode because I hate coordination/fast moving fighting. Does anyone know a way to turn it on without using the debug menu? Or does anyone know why I'm getting that error?
 
OK i enable the god mode without turning on the debug mode.Here how
i did it oh by the way my is the U.S. version.

1- open program and open the file "_mod_on_off" in it look for the line=

bool bPlayerIsCheater = false; // íà ïåðñïåêòèâó, ïàò÷åì
Replace the word false with true look at ex.1

Ex.1
// ôëàã - èãðîê ÷èòåð
bool bPlayerIsCheater = true; // íà ïåðñïåêòèâó, ïàò÷åì

You can also turn off the rat if you want look for the line =

bool bNoEatNoRats = false;
Replace the word false with true look at ex.2

Ex.2
// Íå æðàòü, íåò êðûñ
bool bNoEatNoRats = true;

1.a Save and close file.

2- open seadogs file go down to "void ProcessControls" and look for the line=

//if (ControlName == "Help") RunHelpChooser();
under this yo add the following look at ex.3

if (ControlName == "CheatGod") Event("Cheat","s","Immortal");
if (ControlName == "CheatGold") Event("Cheat","s","Gold"); ONLYif you want the money cheat.

Ex.3
//if (ControlName == "Help") RunHelpChooser();
if (ControlName == "CheatGod") Event("Cheat","s","Immortal");
if (ControlName == "CheatGold") Event("Cheat","s","Gold");

2.a Save and close file.

3- open the "Control Folder" and open the "init_pc" file and go to "ExternInitKeyCodes();" and look for line=

"CI_CreateAndSetControls( "", "PaperMap", CI_GetKeyCode("KEY_M"), 0, true );"
Under this line you add your button key so that your cheat will work. You choose anyyou want. look at ex.4

"CI_CreateAndSetControls( "Cheats", "CheatGod", CI_GetKeyCode("KEY_G"), 0, false );"
"CI_CreateAndSetControls( "Cheats", "CheatGold", CI_GetKeyCode("KEY_8"), 0, false );"

Ex.4

ExternInitKeyCodes();

//íå óñïåâàåì äîäåëàòü áóìàæíóþ êàðòó. àääîíùèêè íå ïîäâåäèòå
//Push M to view best map
CI_CreateAndSetControls( "", "PaperMap", CI_GetKeyCode("KEY_M"), 0, true );
// Cheats
CI_CreateAndSetControls( "Cheats", "CheatGod", CI_GetKeyCode("KEY_G"), 0, false );
CI_CreateAndSetControls( "Cheats", "CheatGold", CI_GetKeyCode("KEY_8"), 0, false );

3.a Save and close file


There you have it GOD Mode and Money cheat without turning on the debug cheat.
Have fun.
:)
 
Okay I use the edit on the rats my self however I would like to keep the food for crew, not having that takes away from the realism. so is there a way to get rid of rats and still have the food by editing the files?
 
@ yellow-dog

What you posted looks very useful for that reinit button we want to put into the COAS CM.
 
I need help mates, I´ve activated the debug window, I wanna put God Mode, but the controls aren´t as before!! They are changed using the debugger!! It´s a bug? Im using MultiLanguage 1.30 version...

Regards!!
 
I need help mates, I´ve activated the debug window, I wanna put God Mode, but the controls aren´t as before!! They are changed using the debugger!! It´s a bug? Im using MultiLanguage 1.30 version...

Regards!!

goto options and reset controls to defaults. fixes that issue. when you go into dev mode it resets the keys to a bunch of debugging keys and etc, but if you reset controls it loads the games standard control scheme.
 
I live in the U.S. and I have tried everything that has been mentioned in this topic. Nothing ever worked! Until I used Cheat Engine, I have version 5.6.1. Which is the free one. All you do is install it then when it comes up click on the blinking PC button at the top left. The name of Age of Pirates 2 City of Abandoned Ships comes up as Start.exe with a little skull or something. Click on it, change value to >> text. Then Hit F2 to bring up your character then click on items and see how much $ money you have. Click on Cheat Engine "First Scan" to get your money amount. Then purchase or buy something in the game, this will change your amount. You should see that amount in Cheat Engine. Double Click on that value and then it will bring up your amount change that to whatever amount of $ money you want! And voila!! Hope this helps!!
 
I have a little question. Is there a way to edit the mod files in a way that you can set your own cheats? For example, I want to set F26 or F27 (these two slots are empty and have no cheats) to give me some kind of a rare sword or a gun, or maybe even a rare ship that you can only get by finishing a rather long quest. Is there a way to do this? If so, I would be very thankful to a reply or a solution. Thanks in advance. :)
 
Someone posted how to get the free points but was incorrect. Here is the correct way:

Go to Age of Pirates 2/Program/characters and open up RPGUtilite.c

Press control + F and search for these lines:
ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;

I added/modified these lines:

ch.skill.freeskill = 20;
ch.Skill.FreeSPECIAL = 28;
ch.perks.freepoints_Self = 19;
ch.perks.freepoints_Ship = 36;

instead of:

ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;
 
Someone posted how to get the free points but was incorrect. Here is the correct way:

Go to Age of Pirates 2/Program/characters and open up RPGUtilite.c

Press control + F and search for these lines:
ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;

I added/modified these lines:

ch.skill.freeskill = 20;
ch.Skill.FreeSPECIAL = 28;
ch.perks.freepoints_Self = 19;
ch.perks.freepoints_Ship = 36;

instead of:

ch.skill.freeskill = 0;
ch.Skill.FreeSPECIAL = 0;


Are these the points you use to purchase skills like 'basic commerce' or 'the shootist'?

Which debug command is best to give a character an early headstart? Editing a Mount and Blade:Warband character into a god of war at the start, is much easier.
 
Hello, ive tried putting this into my game. i know how to do the editing but when i put this cod in the F11 dev menu doesnt load up. Can you help me fix my problem. Im using GOF 1.2 Full Patch 1.

Thank you for your time and patience.



I figured out a way to enable god mode for your officers, I tested it and it works great!

If you go into your debuger.c in the interface folder, and add the following into one of the available sections. My example puts it into the F20 command. :onya

Code:
string descF20 = "God mode - Navigator";
void CalculateInfoDataF20()
{
totalInfo = descF20;
// -->
if (sti(pchar.Fellows.Passengers.navigator) != -1)
{
ref mc;
mc = GetCharacter(sti(pchar.Fellows.Passengers.navigator));
if(LAi_IsImmortal(mc))
{
LAi_SetImmortal(mc, false);
Log_SetStringToLog("God mode OFF");
}else{
LAi_SetImmortal(mc, true);
Log_SetStringToLog("God mode ON");
}
}
else
{
totalInfo = "No officer";
}
// OLD COMMAND, UNDERNEATH
//ref chr = GetCharacter(302);
//chr.Skill.FreeSkill  = sti(chr.Skill.FreeSkill) + 35;
// <--
totalInfo = totalInfo + NewStr() + NewStr() +
"The command is executed successfully!";
SetFormatedText("INFO_TEXT",totalInfo);
}

I overwrote the F20 command, cause I have no foggy clue what it does, so it's useless to me. You can pick and choose out my code to put into one of the empty slots, should all work the same. Just put the character you want to have god mode into your Navigator slot, activate it in the menu, and then give it a try. It not only gives him have god mode during land battles, but also works for sea battles! No more having your hard earned pirate fleet getting sent down to davy jones! :sail
 
Hello, ive tried putting this into my game. i know how to do the editing but when i put this cod in the F11 dev menu doesnt load up. Can you help me fix my problem. Im using GOF 1.2 Full Patch 1.

Thank you for your time and patience.

nevermind, i rewrote my changes to the debuger.c and it all works now. I must have done something wrong.

sorry for the inconveience.
 
Hello all, i have compiled a few cheat codes for my personal play. I thought id post them for those who dont want to scrounge the internet for them.

To add theses follow the instructions at the start of this thread. Please remember to change the red highlighted numbers to properly represent the correct slot in the debuger.c file.

These codes were originally written by others, i have no permission to post these. If there are any complaints then i am very sorry.

This code does the following:-
- Companion capabilities, abilities, skills and perks added and set to maximum.
- Companion god mode on both land and sea (On/Off switch) (Experimental but works so far).
- Companion health set to 2500 (Just in case).
- Companion malee energy set to 2500.
- Companion loyalty and reputation set to maximum (Deminishes over time).



Code:
string descF[COLOR=#ff0000]25[/COLOR] = "Jonesies' Ultimate Companion Cheat";
void CalculateInfoDataF[COLOR=#ff0000]25[/COLOR]()
{
totalInfo = descF[COLOR=#ff0000]25[/COLOR];
// -->
if (sti(pchar.Fellows.Passengers.navigator) != -1)
{
ref mc;
mc = GetCharacter(sti(pchar.Fellows.Passengers.navigator));
if(LAi_IsImmortal(mc))
{
LAi_SetImmortal(mc, false);
Log_SetStringToLog("Companion god mode OFF");
}else{
LAi_SetImmortal(mc, true);
Log_SetStringToLog("Companion god mode ON");
}
}
else
{
totalInfo = "No officer available to modify";
}   
 
if (sti(pchar.Fellows.Passengers.navigator) != -1)
{
ref chr = GetCharacter(sti(pchar.Fellows.Passengers.navigator));
 
chr.Loyality = sti(chr.Loyality) + 200;
chr.Reputation = sti(chr.Reputation) + 200;
chr.skill.freeskill=sti(pchar.skill.freeskill)=1;
chr.skill.leadership=sti(pchar.skill.leadership)=100;
chr.skill.fencinglight=sti(pchar.skill.fencinglight)=100;
chr.skill.fencing=sti(pchar.skill.fencing)=100;
chr.skill.fencingheavy=sti(pchar.skill.fencingheavy)=100;
chr.skill.pistol=sti(pchar.skill.pistol)=100;
chr.skill.fortune=sti(pchar.skill.fortune)=100;
chr.skill.sneak=sti(pchar.skill.sneak)=100;
chr.skill.commerce=sti(pchar.skill.commerce)=100;
chr.skill.defence=sti(pchar.skill.defence)=100;
chr.skill.accuracy=sti(pchar.skill.accuracy)=100;
chr.skill.sailing=sti(pchar.skill.sailing)=100;
chr.skill.cannons=sti(pchar.skill.cannons)=100;
chr.skill.repair=sti(pchar.skill.repair)=100;
chr.skill.grappling=sti(pchar.skill.grappling=100;
 
ref ch=getcharacter(sti(pchar.fellows.passengers.navigator));
 
ch.perks.list.IronWill = "1";
ch.perks.list.BasicDefense = "1";
ch.perks.list.AdvancedDefense = "1";
ch.perks.list.Ciras = "1";
ch.perks.list.CriticalHit = "1";
ch.perks.list.HPPlus = "1";
ch.perks.list.HardHitter = "1";
ch.perks.list.Tireless = "1";
ch.perks.list.Rush = "1";
ch.perks.list.EnergyPlus = "1";
ch.perks.list.Sliding.descr = "1";
ch.perks.list.BladeDancer = "1";
ch.perks.list.SwordplayProfessional = "1";
ch.perks.list.Gunman = "1";
ch.perks.list.GunProfessional = "1";
ch.perks.list.Grus = "1";
ch.perks.list.Medic = "1";
ch.perks.list.ByWorker = "1";
ch.perks.list.ByWorker2 = "1";
ch.perks.list.SharedExperience = "1";
ch.perks.list.ShipEscape = "1";
ch.perks.list.Trustworthy = "1";
ch.perks.list.FlagFra = "1";
ch.perks.list.FlagSpa = "1";
ch.perks.list.FlagHol = "1";
ch.perks.list.FlagEng = "1";
ch.perks.list.Brander = "1";
ch.perks.list.Aboard = "1";
ch.perks.list.Troopers = "1";
ch.perks.list.LongRangeGrappling = "1";
ch.perks.list.GrapplingProfessional = "1";
ch.perks.list.MusketsShoot = "1";
ch.perks.list.BasicCommerce = "1";
ch.perks.list.AdvancedCommerce = "1";
ch.perks.list.FastReload = "1";
ch.perks.list.ImmediateReload = "1";
ch.perks.list.HullDamageUp = "1";
ch.perks.list.SailsDamageUp = "1";
ch.perks.list.CrewDamageUp = "1";
ch.perks.list.CriticalShoot = "1";
ch.perks.list.LongRangeShoot = "1";
ch.perks.list.CannonProfessional = "1";
ch.perks.list.Carpenter = "1";
ch.perks.list.Builder = "1";
ch.perks.list.LightRepair = "1";
ch.perks.list.InstantRepair = "1";
ch.perks.list.BasicBattleState = "1";
ch.perks.list.AdvancedBattleState = "1";
ch.perks.list.ShipDefenseProfessional = "1";
ch.perks.list.ShipSpeedUp = "1";
ch.perks.list.ShipTurnRateUp = "1";
ch.perks.list.StormProfessional = "1";
ch.perks.list.WindCatcher = "1";
ch.perks.list.SailsMan = "1";
ch.perks.list.Turn180 = "1";
ch.perks.list.SandbankManeuver = "1";
ch.perks.list.SailingProfessional = "1";
ch.perks.list.Doctor1 = "1";
ch.perks.list.Doctor2 = "1";
ch.perks.list.Smuggler = "1";
LAi_SetHP(ch,2500,2500);
ch.PerkValue.EnergyPlus=sti(ch.PerkValue.EnergyPlus)=2500;
SetSPECIAL(ch, 10,10,10,10,10,10,10);
 
}
else
{
totalInfo = "No officer available to modify";
}
 
totalInfo = totalInfo + NewStr() + NewStr() +
"Companion stats, loyalty, reputation, health & malee energy set to maximum. All perks and god mode activated";
SetFormatedText("INFO_TEXT",totalInfo);
}



This code does the following:-
- Player malee energy set to 999.
- Player P.I.R.A.T.E.S. skills set to maximum.
- Player light, medium, heavy fencing, pistol and sneak skills set to maximum.


Code:
string descF26 = "Jonesies' Start-Up Cheat";
void CalculateInfoDataF26()
{
totalInfo = descF26;
ref ch = GetMainCharacter();
// -->
ch.PerkValue.EnergyPlus=sti(ch.PerkValue.EnergyPlus)=999;
SetSPECIAL(ch, 10,10,10,10,10,10,10);
pchar.skill.fencinglight=sti(pchar.skill.fencinglight)=100;
pchar.skill.fencing=sti(pchar.skill.fencing)=100;
pchar.skill.fencingheavy=sti(pchar.skill.fencingheavy)=100;
pchar.skill.pistol=sti(pchar.skill.pistol)=100;
pchar.skill.sneak=sti(pchar.skill.sneak)=100;
// <--
totalInfo = totalInfo + LanguageConvertString(idLngFile,"" +
 
LanguageConvertString(idLngFile,"new_string" +
"Malee energy set to 999. P.I.R.A.T.E.S skills set to 10. Fencing, pistol & sneak skills set to 100";
LanguageCloseFile(idLngFile);
SetFormatedText("INFO_TEXT",totalInfo)
}




This code does the following:-
- Player ship crew compliment, morale and experience set to maximum.
- Players cargo of knipples set to 500.
- Players bombs and powder set to 1500.


Code:
string descF27 = "Jonesies' Crew, Powder, Bombs and Knipples Cheat";
void CalculateInfoDataF27()
{
    totalInfo = descF27;
    ref mc = getmaincharacter();
    // -->
    SetCrewQuantityFull(mc);
    mc.ship.Crew.Morale = 100;
    ChangeCrewExp(mc, "Sailors", 100);
    ChangeCrewExp(mc, "Cannoners", 100);
    ChangeCrewExp(mc, "Soldiers", 100);
    SetCharacterGoods(mc,GOOD_BOMBS,1500);;
    SetCharacterGoods(mc,GOOD_POWDER,1500);
    SetCharacterGoods(mc,GOOD_KNIPPELS,500)
    // <--
    totalInfo = totalInfo + NewStr() + NewStr() +
    "Crew compliment, morale & Experience set to maximum. Powder and Bombs set to 1500. Knipples set o 500.";
    SetFormatedText("INFO_TEXT",totalInfo);
}


This code does the following:-
- Players cargo of food, rum, planks, sailcloth, weapons, medicines, powder, balls, grapes, knipples and bombs set to 1000.


Code:
string descF28 = "Jonesies' Cargo Cheat";
void CalculateInfoDataF28()
{
    totalInfo = descF28;
    ref mc = getmaincharacter();
    // -->
    SetCharacterGoods(mc,GOOD_FOOD,1000);
    SetCharacterGoods(mc,GOOD_BALLS,1000);
    SetCharacterGoods(mc,GOOD_GRAPES,1000);
    SetCharacterGoods(mc,GOOD_KNIPPELS,1000);
    SetCharacterGoods(mc,GOOD_BOMBS,1000);;
    SetCharacterGoods(mc,GOOD_MEDICAMENT,1000);;
    SetCharacterGoods(mc,GOOD_POWDER,1000);
    SetCharacterGoods(mc,GOOD_PLANKS,1000);
    SetCharacterGoods(mc,GOOD_RUM,1000);
    SetCharacterGoods(mc,GOOD_WEAPON,1000);
    SetCharacterGoods(mc,GOOD_SAILCLOTH,1000);
    // <--
    totalInfo = totalInfo + NewStr() + NewStr() +
    "Food, rum, planks, powder, sailcloth, weapons medicines, balls, grapes, knipples & bombs incresed by 1000";
    SetFormatedText("INFO_TEXT",totalInfo);
}


This code does the following:-
- Player recieves all personal and ship perks.

Code:
string descF29 = "Jonesies' All Perk's Cheat";
void CalculateInfoDataF29()
{
    totalInfo = descF29;
    ref ch = GetMainCharacter();
    //-->
    ch.perks.list.IronWill = "1";
    ch.perks.list.BasicDefense = "1";
    ch.perks.list.AdvancedDefense = "1";
    ch.perks.list.Ciras = "1";
    ch.perks.list.CriticalHit = "1";
    ch.perks.list.HPPlus = "1";
    ch.perks.list.HardHitter = "1";
    ch.perks.list.Tireless = "1";
    ch.perks.list.Rush = "1";
    ch.perks.list.EnergyPlus = "1";
    ch.perks.list.Sliding.descr = "1";
    ch.perks.list.BladeDancer = "1";
    ch.perks.list.SwordplayProfessional = "1";
    ch.perks.list.Gunman = "1";
    ch.perks.list.GunProfessional = "1";
    ch.perks.list.Grus = "1";
    ch.perks.list.Medic = "1";
    ch.perks.list.ByWorker = "1";
    ch.perks.list.ByWorker2 = "1";
    ch.perks.list.SharedExperience = "1";
    ch.perks.list.ShipEscape = "1";
    ch.perks.list.Trustworthy = "1";
    ch.perks.list.FlagFra = "1";
    ch.perks.list.FlagSpa = "1";
    ch.perks.list.FlagHol = "1";
    ch.perks.list.FlagEng = "1";
    ch.perks.list.Brander = "1";
    ch.perks.list.Aboard = "1";
    ch.perks.list.Troopers = "1";
    ch.perks.list.LongRangeGrappling = "1";
    ch.perks.list.GrapplingProfessional = "1";
    ch.perks.list.MusketsShoot = "1";
    ch.perks.list.BasicCommerce = "1";
    ch.perks.list.AdvancedCommerce = "1";
    ch.perks.list.FastReload = "1";
    ch.perks.list.ImmediateReload = "1";
    ch.perks.list.HullDamageUp = "1";
    ch.perks.list.SailsDamageUp = "1";
    ch.perks.list.CrewDamageUp = "1";
    ch.perks.list.CriticalShoot = "1";
    ch.perks.list.LongRangeShoot = "1";
    ch.perks.list.CannonProfessional = "1";
    ch.perks.list.Carpenter = "1";
    ch.perks.list.Builder = "1";
    ch.perks.list.LightRepair = "1";
    ch.perks.list.InstantRepair = "1";
    ch.perks.list.BasicBattleState = "1";
    ch.perks.list.AdvancedBattleState = "1";
    ch.perks.list.ShipDefenseProfessional = "1";
    ch.perks.list.ShipSpeedUp = "1";
    ch.perks.list.ShipTurnRateUp = "1";
    ch.perks.list.StormProfessional = "1";
    ch.perks.list.WindCatcher = "1";
    ch.perks.list.SailsMan = "1";
    ch.perks.list.Turn180 = "1";
    ch.perks.list.SandbankManeuver = "1";
    ch.perks.list.SailingProfessional = "1";
    ch.perks.list.Doctor1 = "1";
    ch.perks.list.Doctor2 = "1";
    ch.perks.list.Smuggler = "1";
    // <--
 
    totalInfo = totalInfo + NewStr() + NewStr() +
    "All personal and ship perks added";
    SetFormatedText("INFO_TEXT",totalInfo);
}
 
Back
Top