Updated readme, NEWS and changed where rendermax looks for it's config.

develop
Warmist 2014-05-04 21:00:16 +03:00
parent 4cbab2b014
commit e29e29d537
5 changed files with 34 additions and 3 deletions

@ -10,6 +10,8 @@ DFHack future
Misc improvements:
- digfort: improved csv parsing, add start() comment handling
- exterminate: allow specifying a caste (exterminate gob:male)
New plugins:
- rendermax: replace the renderer with something else. Most interesting is "rendermax light"- a lighting engine for df.
DFHack v0.34.11-r4

@ -329,6 +329,26 @@ Options:
The building must be one of stockpile, workshop, furnace, trap,
siege engine or an activity zone.
rendermax
---------
A collection of renderer replacing/enhancing filters. For better effect try changing the
black color in palette to non totally black. For more info see thread in forums:
http://www.bay12forums.com/smf/index.php?topic=128487.0
Options:
:rendermax trippy: Randomizes each tiles color. Used for fun mainly.
:rendermax light: Enable lighting engine.
:rendermax light reload: Reload the settings file.
:rendermax light sun <x>|cycle: Set time to <x> (in hours) or set it to df time cycle.
:rendermax occlusionON|occlusionOFF: Show debug occlusion info.
:rendermax disable: Disable any filter that is enabled.
An image showing lava and dragon breath. Not pictured here: sunlight, shining items/plants,
materials that color the light etc...
.. image:: images/rendermax.png
Adventure mode
==============

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@ -38,4 +38,4 @@ ENDIF(UNIX)
# this makes sure all the stuff is put in proper places and linked to dfhack
DFHACK_PLUGIN(rendermax ${PROJECT_SRCS} LINK_LIBRARIES ${PROJECT_LIBS})
install(FILES rendermax.lua
DESTINATION ${DFHACK_DATA_DESTINATION})
DESTINATION ${DFHACK_DATA_DESTINATION}/raw)

@ -1184,8 +1184,17 @@ void lightingEngineViewscreen::defaultSettings()
}
void lightingEngineViewscreen::loadSettings()
{
const std::string settingsfile="rendermax.lua";
std::string rawFolder;
if(df::global::world->cur_savegame.save_dir!="")
{
rawFolder= "data/save/" + (df::global::world->cur_savegame.save_dir) + "/raw/";
}
else
{
rawFolder= "raw/";
}
const std::string settingsfile=rawFolder+"rendermax.lua";
CoreSuspender lock;
color_ostream_proxy out(Core::getInstance().getConsole());