diff --git a/NEWS b/NEWS index 2a3bbb39d..e53e1aa0c 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/Readme.rst b/Readme.rst index 29f0a71fa..9bc3583b9 100644 --- a/Readme.rst +++ b/Readme.rst @@ -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 |cycle: Set time to (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 ============== diff --git a/images/rendermax.png b/images/rendermax.png new file mode 100644 index 000000000..942f4cc28 Binary files /dev/null and b/images/rendermax.png differ diff --git a/plugins/rendermax/CMakeLists.txt b/plugins/rendermax/CMakeLists.txt index ef6621dc1..ba589732d 100644 --- a/plugins/rendermax/CMakeLists.txt +++ b/plugins/rendermax/CMakeLists.txt @@ -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) diff --git a/plugins/rendermax/renderer_light.cpp b/plugins/rendermax/renderer_light.cpp index 1ab57caa3..395e12c14 100644 --- a/plugins/rendermax/renderer_light.cpp +++ b/plugins/rendermax/renderer_light.cpp @@ -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());