Page 1 of 1

DSB Version 0.45

Posted: Fri Dec 03, 2010 11:25 pm
by Sophia
Otherwise known as "Most likely the last stable release in a while"

What's new:
- Added an optional 5th parameter to dsb_fullscreen that allows a fade in/fade out
- Added delay_func_call(delay, function_name, function_param)
- Improved mechanics for missile spells (fireballs, poison, etc.) in the base code
- Fixed a glitch in darkening the dungeon in windowed mode
- Fixed a rare crash when seeing frozen monsters
- Vexirks and Eyes will now try to blast doors that their zo spells can't open
- Made ESB create backups of files that it is overwriting
- Fixed a glitch in ESB that made it occasionally do stupid things while trying to help reposition objects

Download it here

Re: DSB Version 0.45

Posted: Sun Dec 05, 2010 12:43 pm
by ian_scho
Why not add a new parameter to an already existing function?

Code: Select all

dsb_delay_func(delay, function) 

Re: DSB Version 0.45

Posted: Sun Dec 05, 2010 8:34 pm
by Sophia
I guess this is where I need to document things better. They perform two different things, and can't really be lumped together. The existing dsb_delay_func takes a reference to a function, and is not saved (because Lua can't serialize a reference to an arbitrary function); on the other hand, the new delay_func_call takes the name of a function as a string. This makes it a bit less flexible but the upside is that because its parameter is a string, it can be (and is) saved.

(Random tech note: As the lack of a dsb_ prefix denotes, the new function is not a core function. It's written entirely in Lua, and uses a hidden function_caller arch spawned in LIMBO to accomplish its task. It's basically a shortcut for an idiom that I found myself using a lot.)