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:
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:
Replace with:
(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:
Use a line like this to reload your location:
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:
http://www.piratesahoy.net/threads/tools-tutorials-and-information.11380/#post-296326
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:
Code:
;Loading Location lighter
loading = 0
2. For SEA locations, an additional step is needed to enable the location lighter:
Open PROGRAM\SEA_AI\sea.c and find:
Code:
//CreateEntity(&SeaLighter, "lighter");
Code:
CreateEntity(&SeaLighter, "lighter");
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:
Code:
// SetCurrentTime(00.00, 0); // NIGHT1.COL
// SetCurrentTime(06.00, 0); // EVENING3.COL
// SetCurrentTime(12.00, 0); // DAY1.COL
// SetCurrentTime(20.00, 0); // MORNING1.COL
Code:
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:
http://www.piratesahoy.net/threads/tools-tutorials-and-information.11380/#post-296326