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

Fixed No smuggler at Cartenga

Code:
    Locations[n].id = "Colombia_shore";
    locations[n].id.label = "Dolphin Sands."; // KK
    locations[n].worldmap = "col_shore";
    Locations[n].filespath.models = "locations\Outside\Shore_6";
    Locations[n].image = "Outside_Shore_6.tga";
    Locations[n].name = "Dolphin Sands";
    //Sound
    locations[n].type = "seashore";

    //Models
    //Always
    Locations[n].models.always.locators = "Shore06_l";
    Locations[n].models.always.shore = "Shore06";
    Locations[n].models.always.shore.foam = "1";
    Locations[n].models.always.seabed = "Shore06_sb";
    Locations[n].models.always.seabed.foam = "1";
    //Locations[n].models.always.grassPatch = "Shore06_g";

    //Day
    Locations[n].models.day.charactersPatch = "Shore06_p";
    //Night
    Locations[n].models.night.charactersPatch = "Shore06_p";
    //Environment
    Locations[n].environment.weather = "true";
    Locations[n].environment.sea = "true";
    Locations[n].environment.sea = "true";

    //Reload map
    /*Locations[n].reload.l1.name = "reload2";
    Locations[n].reload.l1.go = "Falaise_De_Fleur_Jungle";
    Locations[n].reload.l1.emerge = "reload1";
    Locations[n].reload.l1.autoreload = "1";
    Locations[n].reload.l1.label = "Jungle.";
    Locations[n].locators_radius.reload.locator3 = 1;

    Locations[n].reload.l3.name = "Reload2_back";
    Locations[n].reload.l3.go = "Colombia";
    Locations[n].reload.l3.emerge = "reload1";
    Locations[n].reload.l3.autoreload = "1";
    Locations[n].reload.l3.label = "Jungle.";
    Locations[n].locators_radius.reload.Reload2_back = 5;*/ //Pillat: Add Jungle Locations for Colombia first

    Locations[n].reload.l2.name = "boat";
    Locations[n].reload.l2.go = "Colombia";
    Locations[n].reload.l2.emerge = "reload_2";
    Locations[n].reload.l2.autoreload = "0";
    if (VISIT_DECK == 1)
        Locations[n].reload.l2.label = "Ship.";
    else
        Locations[n].reload.l2.label = "Sea.";
    Locations[n].locators_radius.reload.boat = 11.0;


    Locations[n].island = "Colombia"; // NK 04-08-29
    n = n + 1;

Thats the code for the locations/init so far, and since the game didnt cry about it, I think it should be alright
 
Did you start a new game for the changes to take effect? That does actually look OK.

Other option would be to make a DumpAttributes on the location when you're there to see if anything is still secretly Falaise de Fleur.
But I can't tell you how to do that until I'm home.
 
I had to start a new game, yes, otherwise the new shore didnt show up

Well, but I won't be able to check that before tomorrow.. but if you describe it to me, it will be the first thing I'll do when I start PotC tomorrow ;)
 
Execute this through console:
Code:
ref lcn = &Locations[FindLocation(pchar.location)];
DumpAttributes(lcn);
This will post all attributes of your current location to compile.log
It is easiest if you use Windowed mode and delete your compile.log before doing this so that it is nice and empty.
 
Else try setting the l2 to l1, might be it actually needs a 1 and else takes something which was last used for this model or so :S.
I think I like this location even more :D
 
It dumped nothing into the compile.log .. but the location_id is still falaise de fleur shore, though I don't know why -.-

EDIT: OK I am stupid :D Found the error.. I referred still to Falaise de Fleur in islands_init.c :facepalm
 
hmm.. game still refers to Falaise_de_Fleur... but this time I got a dump in compile.log .. But I just checked.. every reference to the location is the new shore -.-

The dump in the compile.log refers completely to Falaise_de_Fleur_shore -.-
 
Are you being reloaded to the REAL FdF shore or something?
If the location ID indeed is the Falaise one, then the reload from sea is wrongly matched.
 
I actually get reloaded to the Falaise de Fleur Shore, yes.. but where is the reload from the sea? I can't find it in any _init.c
 
Code:
        rIsland.reload.l3.label = "Dolphin Sands";
        rIsland.reload.l3.name = "reload_3";
        rIsland.reload.l3.go = "Colombia_shore";
        rIsland.reload.l3.emerge = "reload1";
        rIsland.reload.l3.radius = 200.0;
        rIsland.reload.l3.pic = 21;
        rIsland.reload.l3.tex = "t2";
        rIsland.reload.l3.goto_enable = false; // Screwface: Disable Sail-To
This is the section I added in islands_init.c

and this in worldmap_init.c :
Code:
    //shore
    worldMap.islands.Colombia.locations.city2.name = "Colombia_shore";
    //Geometry parameters
    worldMap.islands.Colombia.locations.city2.position.x = 46.0673;
    worldMap.islands.Colombia.locations.city2.position.y = 2.0859;
    worldMap.islands.Colombia.locations.city2.position.z = 769.6588;
    worldMap.islands.Colombia.locations.city2.position.ay = 0.0;
    worldMap.islands.Colombia.locations.city2.modelName = "leaf";
    worldMap.islands.Colombia.locations.city2.visible = "false";
    worldMap.islands.Colombia.locations.city2.move = "false";
    //Label
    worldMap.islands.Colombia.locations.city2.label.text = "Dolphin Sands";
    worldMap.islands.Colombia.locations.city2.label.icon = -1;
    worldMap.islands.Colombia.locations.city2.label.visible = "false";
    // initial ship location
    worldMap.islands.Colombia.locations.city2.ship.pos.x = 43.8198;
    worldMap.islands.Colombia.locations.city2.ship.pos.z = 762.9149;

No reference to Falaise de Fleur at all:shrug
 
Looks Ok at first sight. The location is called Dolphin Sands at sea too?

If you upload your files, I'll check it tomorrow.
 
The location doesn't show up on worldmap :shrug
But on 3D sailing, the name is correct
 

Attachments

  • Islands_init.c
    67.3 KB · Views: 154
  • Colombia.c
    59.3 KB · Views: 161
  • worldmap_init.c
    80.7 KB · Views: 159
Very odd. Remind me tomorrow evening to actually check this if I haven't done so by then. :doff
 
Thats a 5th Rate Warship - was there since the Vanilla game and was the actual Black Pearl there.. returned here as a battleship ;) Though it dark hull doesn't fit soo good for nations (but would actually make a good pirate boos ship^^)
 
Yup, that's definitely the original game Black Pearl. After our modifications to make her not look like a black, cursed pirate ship. ;)
 
everything seems to be okay.
The only problem is on the worldmap right?
Maybe there is a mistake in these params?
Code:
worldMap.islands.Colombia.locations.city2.position.x = 46.0673;
    worldMap.islands.Colombia.locations.city2.position.y = 2.0859;
    worldMap.islands.Colombia.locations.city2.position.z = 769.6588;
try increasing the y coordinate and see if that helps. maybe the thingy is hidden under the land.
And you know for sure you are playing with the option all things are visible on the worldmap right away right?
 
Could be that I probably have to start a new game, since I changed those params to fit for the new place.. and no, I think I dont see them right away, which wouldn't be a problem if I could actually moor there, because then it would show up.. but as I said earlier.. I moor at Martinique shore instead ..
 
Those code changes would definitely need a new game to take effect, so that could very well explain it. :yes
 
Back
Top