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!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
ERROR: Treasure Location doesn't contain treasure box. Please report this bug! (include compile.log)
Location: Hispaniola_shore_02
bool HideTreasureAtLocation(string locid, float x, float y, float z, string required_item, string quest)
{
ref PChar = GetMainCharacter();
if(!CheckAttribute(PChar,"required_item."+locid))
{
WriteLocatorGlobal(locid, "box", "treasure_box", "", -1, x, y, z, false);
if(required_item != "")
{
if(!CheckAttribute(PChar,"required_item")) PChar.required_item = required_item; //Only set it if none is set already so we don't conflict with the treasure quests
PChar.required_item.(locid) = required_item;
}
if(quest != "")
{
PChar.quest.treasure_chest.(locid) = quest;
}
return true;
}
traceandlog("ERROR: Treasure Location already in use. Please report this bug! (include compile.log)");
trace("Location: "+locid);
return false;
}
bool AddItemToTreasureAtLocation(string locid, string itemid, int amount)
{
if(CheckAttribute(wholeWorld,locid+".locators.box.treasure_box"))
{
ref lcn = &Locations[FindLocation(locid)];
lcn.treasure_box.items.(itemid) = amount;
return true;
}
traceandlog("ERROR: Treasure Location doesn't contain treasure box. Please report this bug! (include compile.log)");
trace("Location: "+locid);
return false;
}
Yes it was supposed to be at "Boca de Hubon". I havent done the quest, but I will do that now.@ANSEL: Were you indeed doing a Treasure Quest? Was it supposed to be at "Boca de Hubon"?
There was indeed a chest, but is was a empty one. False alarm?Was there indeed no chest and/or nothing in it?
No, it sounds like an actual bug. I'm also being massively confused while looking at the new code for this.There was indeed a chest, but is was a empty one. False alarm?
Yes here it comes:@ANSEL Do you have a savegame from before you find the treasure?
It was not a empty chest there was reason I report this,but the reason was this message:Wait. An empty treasure chest is actually quite common. In my current game I found treasure the first try! Then went 0-5. That is 5 empty treasure chests. Then hit 2 in a row, then 1 empty. So overall I am 3-9 in treasure quests. I am content with that ratio so please do not change anything.
Do you have the 10 January 2016 version yet? If not, your game may not yet be affected by this issue.Wait. An empty treasure chest is actually quite common. In my current game I found treasure the first try! Then went 0-5. That is 5 empty treasure chests. Then hit 2 in a row, then 1 empty. So overall I am 3-9 in treasure quests. I am content with that ratio so please do not change anything.
Very likely.So this is another new bug?
Here's to hoping!Found the problem already.
Please put this in PROGRAM\QUESTS
I just made a little mistake. I had a check in place when testing this to see it was all working. I noticed a bug and fixed it then but I forgot to fix it for both functions which give treasure to the chestHere's to hoping!![]()
Yes. No more messages and a big treasure for me.Found the problem already.
Please put this in PROGRAM\QUESTS