Page 1 of 1
DSB Version 0.46
Posted: Mon Dec 06, 2010 10:03 pm
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
Re: DSB Version 0.46
Posted: Mon Dec 06, 2010 10:10 pm
by Mon Ful Ir
Haha, nobody can say you aren't quick to fix things!
Re: DSB Version 0.46
Posted: Mon Dec 06, 2010 10:49 pm
by Sophia
DSB needs unit tests and regression tests.
Anyone want to write some?!
Re: DSB Version 0.46
Posted: Tue Dec 07, 2010 2:38 pm
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 ?
Re: DSB Version 0.46
Posted: Tue Dec 07, 2010 6:15 pm
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
Re: DSB Version 0.46
Posted: Tue Dec 07, 2010 7:52 pm
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.

(If it still doesn't work, there is something wrong with your PCX file!)
Re: DSB Version 0.46
Posted: Tue Dec 07, 2010 7:57 pm
by Gambit37
Out of interest, why are you using PCX? It's a horrible, inflexible ancient format

Re: DSB Version 0.46
Posted: Tue Dec 07, 2010 8:05 pm
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.

Re: DSB Version 0.46
Posted: Tue Dec 07, 2010 8:28 pm
by ian_scho
Confirmed.
Thanks Sophia I must have completely missed that reply :O I'll update the
documentation.
Re: DSB Version 0.46
Posted: Wed Dec 08, 2010 12:12 pm
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)
Re: DSB Version 0.46
Posted: Wed Dec 08, 2010 4:20 pm
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.
Re: DSB Version 0.46
Posted: Thu Dec 09, 2010 7:09 am
by Sophia
If you get that crash, replace your exe with
this one.