This re-included in here: Mod Release - Build 14 Beta 4 Internal WIP For Testing | Page 8 | PiratesAhoy!
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 -
And i still have no idea how it happens...@Levis: Remember how this update triggered random floating in various locations?
That may still be happening....
CheckLocationPosition
for(int i = 1; i<=MAXBUILDINGS; i++)
{
nr = i;
attr = "building."+i+".building";
if(CheckAttribute(lcn,attr) )
{
// load building locationattributes
building = lcn.building.(nr).building;
interior = lcn.building.(nr).interior;
x = stf(lcn.building.(nr).x);
y = stf(lcn.building.(nr).y);
z = stf(lcn.building.(nr).z);
ay = stf(lcn.building.(nr).ay);
aigroup = lcn.building.(nr).aigroup;
// buildinglike chr is set to stored pos
string name = nr+"";
lcn.building.(name).index = Build(nr, building, interior, x, y, z, ay, aigroup);
}
for(int i = 1; i<=MAXBUILDINGS; i++)
{
nr = i+"";
attr = "building."+i+".building";
if(CheckAttribute(lcn,attr) )
{
// load building locationattributes
building = lcn.building.(nr).building;
interior = lcn.building.(nr).interior;
x = stf(lcn.building.(nr).x);
y = stf(lcn.building.(nr).y);
z = stf(lcn.building.(nr).z);
ay = stf(lcn.building.(nr).ay);
aigroup = lcn.building.(nr).aigroup;
// buildinglike chr is set to stored pos
lcn.building.(nr).index = Build(nr, building, interior, x, y, z, ay, aigroup);
}
But it's not an 'int':@Pieter Boelen I don't remember from the top of my head but doesn't Build() require an int as first Argument?
If not then I'm okay with this .
string nr;
[...]
// This performs the actual building process
int Build(string nr
No, it shouldn't.altough it shouldn't make any different
Could someone test this for me?
Place this file in PROGRAM\BUILDINGS
Then go to globals.c (in program) and set BUILDING_COLLISION to 1
Please let me know if anything weird happens. I think this should solve the weird floating at random moments.