Page 1 of 1
DSB Version 0.72
Posted: Thu Jan 03, 2019 2:21 am
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
Re: DSB Version 0.72
Posted: Thu Jan 03, 2019 2:54 am
by meadwarrior
Thank you for the update, Sophia!
How would the custom_objlook subrenderer work in practice?
Something like
?
Re: DSB Version 0.72
Posted: Thu Jan 03, 2019 6:37 am
by Sophia
It's per-item, so:
Code: Select all
obj.whatever.custom_objlook = gfx.graphicname
Re: DSB Version 0.72
Posted: Thu Jan 03, 2019 10:12 am
by Gambit37
Ooooh, nice, thank you for the update! Happy New Year

Re: DSB Version 0.72
Posted: Thu Jan 03, 2019 7:53 pm
by meadwarrior
Thanks!
Re: DSB Version 0.72
Posted: Sat Jan 05, 2019 2:47 am
by Stingm
Thanks again for the work Sophia!
Re: DSB Version 0.72
Posted: Wed Feb 26, 2020 2:01 pm
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

Re: DSB Version 0.72
Posted: Wed Feb 26, 2020 2:40 pm
by Gambit37
Ignore me, I was being lazy, I should have just searched the base code for the new method!
Re: DSB Version 0.72
Posted: Wed Feb 26, 2020 3:19 pm
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)
Re: DSB Version 0.72
Posted: Thu Feb 27, 2020 11:01 am
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).