[quote=“RipRoarinBoogerPenis, post:9, topic:14081”]Got it working, something is fucky with my energy weapon stuff for somereason but whatever.
Love the destroyed damaged buildings. Could use more variety in the graffitti. Is there any way to disable those lua callbacks? Made a character and had to wait till daytime to check things out and just get spammed with lua callbacks.
Really excited about this, how can I add more to the graffitti?[/quote]
Graffiti strings are defined in the “\data\mods\ZSLua_DegradeBuildings\lua\MapGen.lua”. Search for this code and add more strings as necessary:
function MapGen.RandomGraffitiString ()
local strings = {
"LUA rules!",
"LOOTED",
"X",
"muh fukaz!",
"Beware of Zeds",
"Hello, Kitty!",
"* unreadable symbols *",
"<color_ltred>PRAY!</color>",
"<color_red>PRAY AND SPRAY!</color>"
}
Lua callbacks are defined in “\data\mods\ZSLua_DegradeBuildings\main.lua”. They should be disabled in the NoLog version,s or either try use that version, remove callback functions or comment Log statements like this:
function MOD.on_new_player_created()
--Log.Message("ZSLua_DegradeBuildings: main.lua: callback: on_new_player_created", true)
end
function MOD.on_skill_increased()
--Log.Message("ZSLua_DegradeBuildings: main.lua: callback: on_skill_increased", true)
end
function MOD.on_minute_passed()
--Log.Message("ZSLua_DegradeBuildings: main.lua: callback: on_minute_passed", true)
end
function MOD.on_day_passed()
--Log.Message("ZSLua_DegradeBuildings: main.lua: callback: on_day_passed", true)
end
You can also omit second parameter of the function or set it to nil/false.