Yes, except for a mild, harmless bug that causes the game to emit an errorlog when generating a new world for sound mods (should be fixed in 50.10), adding new sounds is fully supported by the SDL2 version and thus soundsense should generally be doable as an in-game mod. The sound loading might leave a bit to be desired, gonna have to look over that again, but it should work.
I never got it work, even after making the suggested changes in the script.
This is all that outputted to my gamelog.txt file:
*** STARTING NEW GAME ***
** Loading Fortress **
** Loading Fortress **
*** STARTING NEW GAME ***
*** STARTING NEW GAME ***
** Loading Fortress **
*** STARTING NEW GAME ***
** Loading Fortress **
*** STARTING NEW GAME ***
** Loading Fortress **
*** STARTING NEW GAME ***
*** STARTING NEW GAME ***
*** STARTING NEW GAME ***
** Loading Fortress **
*** STARTING NEW GAME ***
** Loading Fortress **
*** STARTING NEW GAME ***
This is the function in my annc-monitor.lua
function log(s, color)
dfhack.color(color)
print(dfhack.df2console(s))
dfhack.color(COLOR_RESET)
local logfile = io.open("gamelog.txt", "a")
logfile:write(dfhack.df2utf(s) .. "\n")
logfile:close()
end
If ran ... devel/annc-monitor start ... from within dfhack's console, but nothing different is added to the gamelog. Any ideas?