I think all that should be needed are the locator file and that line of code you found of mine applied to this situation.
Everything else should be superfluous. I think...
Everything else should be superfluous. I think...
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 -
Looks like there isn't. Yet. But we can add one here:I think there might be another way to do that.
// PB: Rewritten -->
int lock;
bool OpenLock = false;
if (ownDeckStarted()) OpenLock = true; // KK
// If you are on your own ship, all locks are open
if(REMEMBER_OPEN && CheckAttribute(Locations[locidx],"openboxes."+atrName)) OpenLock = true;
// If the lock has already been opened, it will stay open
if(CheckAttribute(Locations[locidx],"jammed."+atrName))
// If the lock is jammed, it will not open
{
Log_SetStringToLog(TranslateString("","This lock will not open. There seems to be a lockpick stuck in it."));
return;
}
if(!OpenLock)
// If you are on your own ship, all locks are open
if(_location.id=="Roa_Cabin") OpenLock = true; // PB
// It's your own box
if(REMEMBER_OPEN && CheckAttribute(Locations[locidx],"openboxes."+atrName)) OpenLock = true;
Now that I realise your reason for that code, I am certainly convinced that it does work.My avoid traps things works very well thank you. I have used it many times. Otherwise I should
not have suggested it here.
I cant get it to work. There is no chest in the cabin. Maybe I have done it wrong?Here it is. The chest is empty, will not be autorefilled and has no traps. Exists only in Roa_cabin.
Did you start a new game? Because of the alternate locator file, that is required.I cant get it to work. There is no chest in the cabin. Maybe I have done it wrong?
if(_location.id=="Roa_cabin")spawnItemsCount = 0;
That explains it. In that case, execute this through console:No, I havent started a new game. I was thinking about to have a look of Jack Rackhams
file before doing the new update.
locations[FindLocation("Roa_cabin")].models.always.locators = "ShipyardPirates_locators_KR";
Thanks! Now its working allright. But I think I will have to do the new update anyway, just to be a jour.That explains it. In that case, execute this through console:
Unless I badly messed up, the 17 May 2016 version should be quite safe to install.Thanks! Now its working allright. But I think I will have to do the new update anyway, just to be a jour.
Aha and thanks.I am excluding this line though:
Code:
if(_location.id=="Roa_cabin")spawnItemsCount = 0;
Since needRespawn = false, it never gets executed.