DSB Version 0.72
Moderator: Sophia
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
DSB Version 0.72
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
- 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
- meadwarrior
- Journeyman
- Posts: 91
- Joined: Sat Dec 01, 2018 1:02 am
Re: DSB Version 0.72
Thank you for the update, Sophia!
How would the custom_objlook subrenderer work in practice?
Something like
Code: Select all
custom_objlook = gfx.graphicname
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
Re: DSB Version 0.72
It's per-item, so:
Code: Select all
obj.whatever.custom_objlook = gfx.graphicname
- meadwarrior
- Journeyman
- Posts: 91
- Joined: Sat Dec 01, 2018 1:02 am
- Gambit37
- Should eat more pies
- Posts: 13715
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: DSB Version 0.72
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:
What should this now be changed to? Thanks
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)
- Gambit37
- Should eat more pies
- Posts: 13715
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: DSB Version 0.72
Ignore me, I was being lazy, I should have just searched the base code for the new method!
- Gambit37
- Should eat more pies
- Posts: 13715
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: DSB Version 0.72
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)
- Gambit37
- Should eat more pies
- Posts: 13715
- Joined: Wed May 31, 2000 1:57 pm
- Location: Location, Location
- Contact:
Re: DSB Version 0.72
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).