DSB Version 0.72

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: 4306
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

DSB Version 0.72

Post by Sophia »

What's new:

- Fixed a few bugs keeping dsb_stopsound(-1) from working properly
- Added a conditions table to make adding/updating custom conditions easier
- Added support for a custom_objlook subrenderer image for items
- Added more properties to gui_info so portrait mouse zones are no longer hardcoded
- Added msg_to_tag helper function to assist in activating dungeon mechanics from code
- Changed directional handling of triggers because CSB doesn't work like I thought it did

Download it here
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: DSB Version 0.72

Post by meadwarrior »

😍

Thank you for the update, Sophia!

How would the custom_objlook subrenderer work in practice?
Something like

Code: Select all

custom_objlook = gfx.graphicname 
?
User avatar
Sophia
Concise and Honest
Posts: 4306
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: DSB Version 0.72

Post by Sophia »

It's per-item, so:

Code: Select all

obj.whatever.custom_objlook = gfx.graphicname
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.72

Post by Gambit37 »

Ooooh, nice, thank you for the update! Happy New Year :D
User avatar
meadwarrior
Journeyman
Posts: 91
Joined: Sat Dec 01, 2018 1:02 am

Re: DSB Version 0.72

Post by meadwarrior »

Thanks!
Stingm
Journeyman
Posts: 61
Joined: Wed Jan 26, 2011 7:36 pm

Re: DSB Version 0.72

Post by Stingm »

Thanks again for the work Sophia!
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.72

Post by Gambit37 »

It's been a while since I did anything with DSB, I've been revisiting it...

Some of my old code doesn't work with the 0.72 - 0.74 updates. Regarding conditions, I previously had this which now throws errors:

Code: Select all

	local shield_blue  = dsb_get_condition(who, C_SHIELD)
	local shield_fire  = dsb_get_condition(who, C_FIRESHIELD)
	local shield_spell = dsb_get_condition(who, C_SPELLSHIELD)
What should this now be changed to? Thanks :)
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.72

Post by Gambit37 »

Ignore me, I was being lazy, I should have just searched the base code for the new method!
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.72

Post by Gambit37 »

Just discovered that spell-shield and fire-shield object methods don't work now, they are still referencing the old conditions format in base/methods.lua (lines 1576 and 1763 from v0.74)
User avatar
Gambit37
Should eat more pies
Posts: 13769
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.72

Post by Gambit37 »

Also other conditions need updating: C_WINDOW (lines 725 and 731 in methods.lua) and C_POISON and C_SPELLSHIELD (lines 5994 and 6088 in objects.lua).
Post Reply