Page 1 of 1

DSB Version 0.55

Posted: Tue Jan 15, 2013 1:26 am
by Sophia
What's new:

- Added sys_render_current_item_text to handle custom drawing of the current item
- Added dsb_mouse_state() = mouse_x, mouse_y, l_button, r_button
- Added dsb_mouse_override(image) to temporarily override the mouse pointer image
- Added dsb_put_ppos_at_tile(ppos, position, swap) to move a ppos around in the party marching order
- Added "invisiblewall" arch to standard objects (and renderer hack to DSB to make it work)
- Can now specify a side bitmap for doors
- Added "smooth" arch property to allow doors to animate far more smoothly than default DM doors
- Added "flyreps" arch property to allow faster flying objects
- Worked around an Allegro limitation when blitting one bitmap with alpha onto another
- Expanded dsb_fullscreen to take an optional table of flags in its 5th parameter
- Added game_draw flag to draw dungeon/game view onto fullscreen renderer screen
- Added ability to use individual animation timers for conditions
- Added "LEFT", "RIGHT", "NORTHWEST" and "SOUTHEAST" renderer_hacks for doors
- Added code to the monster AI to better handle individual monsters being frozen
- Improved handling of x_compress and y_compress so it makes more sense
- Added "shading_info" table (in base/render.lua) to allow individual control of object shading
- stat_bonus can now use a table for stat and stat_up for multiple attribute boosts
- Fixed an occasional Lua error when a monster counterattacks
- Improved handling of monster passage through fake walls
- Fixed an error causing ven bombs to glitch if they explode in hand
- Fixed a bug causing torch durations to be shorter than they should be
- Fixed some mistakes and inaccuracies in the base code's comments

Download it here

Note: Some of the fancier new features have only been tested in a very simplistic way, because, in all honesty, after all this coding I didn't really feel like building a thorough test situation. Please let me know if there are bugs, of course.

Re: DSB Version 0.55

Posted: Tue Jan 15, 2013 10:42 am
by Gambit37
Oooooooooooooooooh! Shiny new features! :)

Wow, you''ve been busy, there's loads of stuff in there and I think I shall be very busy testig it all out. I won't have time to look at it for a few days, but when I do, I'll let you know if I see any bugs or issues.

Is the "invisiblewall" arch also to be used for the full-tile pillar blockers that I mentioned?
Presumably the function dsb_put_ppos_at_tile() can replace that mod/rounding code you gave me for updating the weapons attack order?
Is dsb_mouse_state() available everywhere? And does it report a max of 640x480 reported from top left 0/0?

Re: DSB Version 0.55

Posted: Tue Jan 15, 2013 11:16 am
by Joramun
YAY !

Re: DSB Version 0.55

Posted: Tue Jan 15, 2013 8:13 pm
by Sophia
Gambit37 wrote:Is the "invisiblewall" arch also to be used for the full-tile pillar blockers that I mentioned?
That's pretty much the main reason I made it. :mrgreen:
Gambit37 wrote:Presumably the function dsb_put_ppos_at_tile() can replace that mod/rounding code you gave me for updating the weapons attack order?
I'm not sure what code you mean. The actual reason I made it was to facilitate reordering the party's marching order by means of custom GUI thingies you might want to make, like a combined weapon selector + marching order box, or whatever.
Gambit37 wrote:Is dsb_mouse_state() available everywhere? And does it report a max of 640x480 reported from top left 0/0?
Yes to both.

Re: DSB Version 0.55

Posted: Tue Jan 15, 2013 8:23 pm
by Gambit37
Sophia wrote:I'm not sure what code you mean. The actual reason I made it was to facilitate reordering the party's marching order by means of custom GUI thingies you might want to make, like a combined weapon selector + marching order box, or whatever.
Aha, right! Nice :-D (I was referring to that code you gave to reorder weapons attack icons based on the marching order)

Re: DSB Version 0.55

Posted: Wed Jan 16, 2013 1:25 am
by Gambit37
Thought I'd have a quick look at this :-)

Regarding shading table: looks straightforward enough, though it seems to only apply to TYPES. If I wanted to shade a single unique arch, would I have to create a new Type and assign just that arch to the type?
Or is there a way of applying shading to individual archetypes?

Is the new "smooth" property a boolean?

Re: DSB Version 0.55

Posted: Wed Jan 16, 2013 2:30 am
by Sophia
Gambit37 wrote:If I wanted to shade a single unique arch, would I have to create a new Type and assign just that arch to the type?
Or is there a way of applying shading to individual archetypes?
You can't create your own types. You're probably thinking of classes.
So, right now, there's no way to apply shading to individual archetypes.

This would be a bit messy to add. What are you trying to do?
Gambit37 wrote:Is the new "smooth" property a boolean?
Yes, it is.

Re: DSB Version 0.55

Posted: Wed Jan 16, 2013 10:37 am
by Joramun
EDIT: removed meanlingess babbles

Soon dsb will look like that : http://xlengine.com

Re: DSB Version 0.55

Posted: Sun Mar 10, 2013 3:41 pm
by Gambit37
Added ability to use individual animation timers for conditions
Any clues how to set this up?

Re: DSB Version 0.55

Posted: Sun Mar 10, 2013 7:31 pm
by Sophia
Gambit37 wrote:
Added ability to use individual animation timers for conditions
Any clues how to set this up?
It's just an additional optional parameter to dsb_set_condition.
If you specify a fourth parameter, this will be used as the animation timer. Otherwise, conditions use the global timer.

(I honestly don't remember exactly how it works due to the amount of stuff that has happened since I added this feature. Experiment with it. :mrgreen: )

Re: DSB Version 0.55

Posted: Wed Mar 20, 2013 10:17 pm
by Gambit37
I created a new thread "DSB Version History" that copies all the info from all releases into one easy-to-scan post. It's interesting to look back over the development: I had no idea DSB is 6 years old!!!

Re: DSB Version 0.55

Posted: Wed Mar 20, 2013 10:59 pm
by Sophia
I feel old.

It's an interesting retrospective. Thanks for doing that. :)

Re: DSB Version 0.55

Posted: Wed Mar 20, 2013 11:23 pm
by Gambit37
Ooops, I hope doing that hasn't made you feel too old! I hope you can instead be proud of what you've achieved, it's an awesome project :D