DSB Version 0.46

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

Post by Sophia »

Otherwise known as "The release that invariably follows when I have the audacity to call a release stable"

What's new:
- Fixed a potentially very ugly problem with dsb_get_font and dsb_get_sound
- Added dsb_replace_topimages(char, hands_background, portrait_background, death_icon)
- All archs now have a msg_handler_ext that can be used just like a msg_handler, for easier overriding
- Monster special attacks can now return a modified damage type, amount, and zone
- Moved most "housekeeping" tasks of sys_character_die into a new function
- Fixed a bug causing monsters to attack doors with missiles that will never open them
- Fixed a rare bug causing multiple copies of the same rune to appear in a spell when entered very fast

Download it here
Mon Ful Ir
Adept
Posts: 221
Joined: Sat Jan 07, 2006 1:54 am
Location: Britain

Re: DSB Version 0.46

Post by Mon Ful Ir »

Haha, nobody can say you aren't quick to fix things!
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.46

Post by Sophia »

DSB needs unit tests and regression tests.

Anyone want to write some?!
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: DSB Version 0.46

Post by Joramun »

Ok, who's typing so fast that it has the same rune multiple times ? I call that crazy. (however, I use the mouse, that's probably the reason).

As for tests, aren't all your embarrassing fans / dsb modders a very proficient group of testers ?
What Is Your Quest ?
User avatar
ian_scho
High Lord
Posts: 2807
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

Re: DSB Version 0.46

Post by ian_scho »

1. Don't remove stuff like spawn_door for now in utils, cheers.... I could always create my own utils I suppose.

2. I get an error using dsb_get_font, since maybe 0.36 or 0.37:

Code: Select all

gfx["GAUDYMEDIEVALFONT"] = dsb_get_font("./fonts/gaudymedieval")
The error for 0.46 is:

Code: Select all

Error: Font not found:
./fonts/gaudymedieval (Hý")
The thing in brackets is new for this version. Obviously the file is located relative to my 'test' sub-directory: ./fonts/gaudymedieval.pcx
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.46

Post by Sophia »

Like I mentioned in the other thread, that syntax can cause problems. I'll fix what's going wrong here, but, in general, it's better to specify a short name and a long name when you want to use a path:

Code: Select all

gfx["GAUDYMEDIEVALFONT"] = dsb_get_font("GAUDYMEDIEVAL", "fonts/gaudymedieval.pcx")
That should make it work for now. :D
(If it still doesn't work, there is something wrong with your PCX file!)
User avatar
Gambit37
Should eat more pies
Posts: 13766
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: DSB Version 0.46

Post by Gambit37 »

Out of interest, why are you using PCX? It's a horrible, inflexible ancient format :P
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.46

Post by Sophia »

It's a 256 color bitmap format that is well-supported in Allegro. :)
DSB also supports PNG, but didn't originally, and it would just be a waste of time to convert all the stuff that is already PCX.

Why people use it in new dungeons, I don't know. ;)
User avatar
ian_scho
High Lord
Posts: 2807
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

Re: DSB Version 0.46

Post by ian_scho »

Confirmed.
Thanks Sophia I must have completely missed that reply :O I'll update the documentation.
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Re: DSB Version 0.46

Post by linflas »

just got a crash in 0.46 for test_dungeon : clicking Enter > entrance door opens > crash :
Lua function sys_tick: base/system/lua:583: attempt to perform arithmetic on global 'g_last_party_move' (a boolean value)
"The only way out is another way in." Try Sukumvit's Labyrinth II
Doomer
Neophyte
Posts: 9
Joined: Wed Jul 06, 2005 7:27 am

Re: DSB Version 0.46

Post by Doomer »

linflas wrote:just got a crash in 0.46 for test_dungeon : clicking Enter > entrance door opens > crash :
Lua function sys_tick: base/system/lua:583: attempt to perform arithmetic on global 'g_last_party_move' (a boolean value)
Same too.
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.46

Post by Sophia »

If you get that crash, replace your exe with this one.
Post Reply