just a quickie that's not clear:
base folder has all the cool lua that I've been ransacking to steal ideas from.
in system.lua, there's a cool thing that resumes gave after savegame.
great
Code: Select all
-- This function is called when the game's main loop begins. CUSTOM
function sys_game_beginplay()
gt_highlight = nil
gt_spell_flash = nil
dsb_sound("snd.cat", true)
return nil
end
however, if I copy this same content to my game folder, startup.lua, the dsb_sound does not work, complaining that it is nil.
specifics of this bug aside, what makes processing the system.lua different from processing the startup.lua? are all teh assets in teh correct place?
do I just need to copy elsewhere?
I refer to the code notes:
Code: Select all
-- System functions base config script
-- IT'S NOT A GOOD IDEA TO CHANGE THINGS IN HERE UNLESS
-- YOU KNOW WHAT YOU'RE DOING, but reading this file over
-- is a good way to get to know how DSB works.
-- If you want to override these functions, you should
-- do so in your own dungeon's startup.lua instead.
-- These are all called by the engine at various times
-- to allow for customizability of various events. you
-- NEED these functions or the game won't work!
I am trying to override the function by pasting again into startup.lua - but I sense this is not the thing to do.
DAVE