DSB Version 0.45

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

DSB Version 0.45

Post 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
User avatar
ian_scho
High Lord
Posts: 2807
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

Re: DSB Version 0.45

Post by ian_scho »

Why not add a new parameter to an already existing function?

Code: Select all

dsb_delay_func(delay, function) 
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: DSB Version 0.45

Post 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.)
Post Reply