1. Dismiss Notice
  2. GOG.com logo

    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!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Guide Generating Location Lighting Files (.COL)

Discussion in 'Tutorials' started by Pieter Boelen, Jul 16, 2013.

  1. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Nov 11, 2004
    Maritime Research: Project Engineer (Analysis)
    Wageningen, The Netherlands
    Back up the original files before trying this. The files are in RESOURCE\MODELS\locations\(selected location)

    In order to create lighting .COL files for locations, you need to activate the lighting tool.
    This is how to make it work:

    1. Open RESOURCE\INI\loclighter.ini and find:
    ;Loading Location lighter
    loading = 0
    Change this to 1

    2. For SEA locations, an additional step is needed to enable the location lighter:
    Open PROGRAM\SEA_AI\sea.c and find:
    //CreateEntity(&SeaLighter, "lighter");
    Replace with:
    CreateEntity(&SeaLighter, "lighter");
    (Eg. remove the // in front)

    3. Press Numpad 0 to open the lighting tool
    4. Adjust the light and shadows by using the sliders. When satisfied, press "save light".
    5. Repeat the operation for each time of day (morning, day, evening and night).

    You can use these lines in PROGRAM\console.c for this:
            //    SetCurrentTime(00.00, 0); // NIGHT1.COL
            //    SetCurrentTime(06.00, 0); // EVENING3.COL
            //    SetCurrentTime(12.00, 0); // DAY1.COL
            //    SetCurrentTime(20.00, 0); // MORNING1.COL
    Use a line like this to reload your location:
    DoQuestReloadToLocation(pchar.location, "reload", "reload1" ,"_");
    The new files will be saved in RESOURCE\MODELS\locations\(selected location) ready for use.

    When you've finished, it is probably a good idea to deactivate the console by changing the loading setting back to 0.
    Just to avoid accidents while playing your game.

    Here is an example of making this work at sea:
    This is the Isla Muelle island model with a fort that was added from elsewhere, so didn't have lighting files.

    Thanks to Damski62 and kopcap for original figuring this out here:

Share This Page