DSB Version 0.47

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.47

Post by Sophia »

What's new:

- Added dsb_viewport_distort(effect) for viewport postprocessing
- trigger_controller can now respond depending on the party's facing
- Inventory load "yellow" and "red" colors and values are no longer hardcoded
- Added a DM2 table to the test_dungeon and slightly modified the renderer to support it
- Light handles can now be arbitrary integers or strings
- Behavior of item_action sending messages to a list of targets is now more sensible
- viewangle property now takes a four element boolean table of the form {north, east, south, west}
- Added dsb_get_pixel(bmp, x, y) and dsb_set_pixel(bmp, x, y, rgb, [alpha]) for per-pixel bitmap manipulation
- Added h_party_move(have_party, delay) hook
- Added use_ch_exvar(who) function to base code
- Positive-numbered SYSTEM messages are now processed through sys_system_message
- Fixed a Lua error when a monster uses zo to open a door
- Fixed some glitches with font and sound loading
- Fixed the parameter list for sys_base_impact
- Made ESB's right side controls able to become floating windows
- ESB Location and Target pickers can now be resized
- ESB Find Insts now keeps highlight marker after you go to location in main view
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.47

Post by Gambit37 »

Cool! Is there a "Coding in DSB Lua" manual with this version? :mrgreen: :mrgreen:
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: DSB Version 0.47

Post by Joramun »

Nice.
Bug: The table renderer doesn't show the closest two items when the party is one step away from the table. I couldn't test other relative positions yet.

Request for the next version : dsb_get_portrait(char) = bitmap (returns a *copy* of the portrait bitmap)
I know it's not possible to change the character portraits during the game, however, being able to have a reference to said portraits to make custom displays (dialogs, end of game stats etc.) would be nice.
What Is Your Quest ?
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.47

Post by Gambit37 »

Oh, and only 3 more releases to beat RTC ;-)
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.47

Post by Sophia »

Joramun wrote:The table renderer doesn't show the closest two items when the party is one step away from the table.
What? It works fine for me. Unless you meant to say that the table renderer doesn't show the most distant two items when the party is two steps away from the table... in which case, you're correct. Floor items aren't drawn at this distance, either. It would be kind of a mess to change this. :(
Joramun wrote:Request for the next version : dsb_get_portrait(char) = bitmap (returns a *copy* of the portrait bitmap)
I know it's not possible to change the character portraits during the game, however, being able to have a reference to said portraits to make custom displays (dialogs, end of game stats etc.) would be nice.
It is possible to change character portraits!
You can do dsb_replace_portrait(character, bitmap_name) to set it to gfx.bitmap_name. It needs the name as a string, rather than a bitmap, because there isn't (or I don't know of a sensible way to) save a reference to an arbitrary bitmap. Or is this not what you meant?
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: DSB Version 0.47

Post by Joramun »

Sophia wrote:
Joramun wrote:The table renderer doesn't show the closest two items when the party is one step away from the table.
What? It works fine for me.
The bug seems random. Sent you an e-mail.
Sophia wrote:there isn't (or I don't know of a sensible way to) save a reference to an arbitrary bitmap. Or is this not what you meant?
Hehe. That's not what I meant.

Now, what if the player has chosen his party members, and I want to make a dialog pop-up and show the portrait of the leader character?

I can't, because I don't know which character has which portrait. That's because once the:
dsb_add_champion(id, name, port, stats) has been executed,
the info: characher "id" has the portrait "port" is lost by the script code.
there is no way to tell the engine that it should get the portrait of a specific character in the party and display it somewhere.

If you don't want to make a bitmap reference, then a simple function returning the name of the portrait in the gfx table would be ok.

Do I make any sense ?
What Is Your Quest ?
Post Reply