Search found 13006 matches

by Gambit37
Fri Nov 13, 2020 8:30 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.78
Replies: 15
Views: 11625

Re: DSB Version 0.78

Yeah, I noticed this but haven't noticed what it's useful for? How is it different to Set Party Start position?
by Gambit37
Thu Nov 12, 2020 4:01 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.78
Replies: 15
Views: 11625

Re: DSB Version 0.78

It was my modified mirror_clicks function, with this modified part within it. I've commented out the two functions that no longer work, and instead I swap to a null wallitem with blank graphics. (Obviously I wouldn't use both a destroy msg and a delete on the same item, that's just from testing). ds...
by Gambit37
Thu Nov 12, 2020 2:27 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Alpha not respected in previously working utility function (0.78)
Replies: 3
Views: 2825

Re: Alpha not respected in previously working utility function (0.78)

Clearing the bitmap to alpha 0 fixed all the issues. I also changed my UI functions to use shadow icons generated at startup, rather than dynamically tinted. Should be more efficient now. :)
by Gambit37
Thu Nov 12, 2020 2:24 pm
Forum: Dungeon Master (DM)
Topic: New experiences with an old game...DM
Replies: 111
Views: 76771

Re: New experiences with an old game...DM

In another thread I've shared some progress I'm making on a revamp of DM. This has meant a spending a lot of time perusing the original map in a map editor. And that's made me think about a lot of things in the game that don't really make a lot of sense: 1) The dungeon was apparently the Grey Lord's...
by Gambit37
Wed Nov 11, 2020 11:32 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Alpha not respected in previously working utility function (0.78)
Replies: 3
Views: 2825

Re: Alpha not respected in previously working utility function (0.78)

Aha, right thanks that makes sense. I'll go back and rework these, and try caching too.
by Gambit37
Wed Nov 11, 2020 11:03 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Alpha not respected in previously working utility function (0.78)
Replies: 3
Views: 2825

Alpha not respected in previously working utility function (0.78)

Sorry to be a pain, but I have a new problem in 0.78. I have a function I use for tinting bitmaps, which I use to create shadows for icons and other special effects. In 0.78, the alpha is no longer respected when I use this function, even though it previously worked. This is an example of how I migh...
by Gambit37
Wed Nov 11, 2020 10:57 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.78
Replies: 15
Views: 11625

Re: DSB Version 0.78

It's no big deal: one of the multidraw items could previously send a M_DESTROY message to the other multidraw item on the same tile. It worked in all previous versions, but it doesn't in 0.78. Same for dsb_delete() -- nothing happens. But don't worry about it, I found a different solution.
by Gambit37
Wed Nov 11, 2020 10:31 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.78
Replies: 15
Views: 11625

Re: DSB Version 0.78

I discovered a side effect of the multidraw fix is that I can no longer send messages from one of the multidraw items to another. But don't worry, I don't need a fix for that: I found another way of doing what I wanted, and I know what I'm doing is pretty unusual (no other DSB dungeon designer would...
by Gambit37
Wed Nov 11, 2020 9:03 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 2273772

Re: Questions about DSB/ESB

Ah amazing, thanks! It's not in the wiki, so I'll add it in.
by Gambit37
Wed Nov 11, 2020 11:49 am
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 2273772

Re: Questions about DSB/ESB

Is there a way of finding out the wallset of a specific tile (ie, one that was painted in ESB wall painting mode). dsb_fetch() doesn't yield that info and I couldn't find anything in the wiki under wallsets.
by Gambit37
Wed Nov 11, 2020 11:47 am
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.78
Replies: 15
Views: 11625

Re: DSB Version 0.78

Awesome, thank you so much for for all these updates. I already tried the window spell and it works great! Looking forward to sorting out all the other bits and bobs... :D
by Gambit37
Sat Nov 07, 2020 11:05 am
Forum: Dungeon Strikes Back (DSB)
Topic: (done) Window spell mask
Replies: 15
Views: 7212

Re: (done) Window spell mask

Cool, thanks for looking at that again. It's a better fix. Must admit I'm having fun getting all these bits in place finally! :-)
by Gambit37
Fri Nov 06, 2020 1:43 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (done) Window spell mask
Replies: 15
Views: 7212

Re: (done) Window spell mask

Update: the two pixel edge error appears for either of the images independently, so it's not just about the alpha overlay.
by Gambit37
Fri Nov 06, 2020 12:00 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (done) Window spell mask
Replies: 15
Views: 7212

Re: (done) Window spell mask

OK, so I tried the new setup and it doesn't seem to work. The "hole" image is correctly indexed as you specified, with black at index 0 and powerpink at index 1, but it only makes the middle transparent and doesn't punch a hole in the wall, and the outer black areas don't go transparent. T...
by Gambit37
Thu Nov 05, 2020 9:35 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (done) Window spell mask
Replies: 15
Views: 7212

Re: (done) Window spell mask

Perfect. Yep it's the glowy part that would need alpha. Thank you 😁
by Gambit37
Thu Nov 05, 2020 8:50 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (done) Window spell mask
Replies: 15
Views: 7212

Re: (done) Window spell mask

OK, thanks. Is there a special way to create the hole bitmap? The one in the graphics.dat uses black for the outer transparent bit and powerpink for the hole in a 4-bit bitmap, but I'd like to use either an 8-bit or even 24-bit bitmap.
by Gambit37
Thu Nov 05, 2020 8:47 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 2273772

Re: Questions about DSB/ESB

Cool, OK, sounds good to me! Thank you.
by Gambit37
Thu Nov 05, 2020 3:50 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 2273772

Re: Questions about DSB/ESB

I'm using the multidraw property to have two wallitems render together in the DM dungeon. Works great for rendering, but interaction is weird: If I add a dsb_write() into the on_click handler for each of the objects, I would expect two messages written to screen for each single click on the wall, fo...
by Gambit37
Thu Nov 05, 2020 12:13 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (done) Window spell mask
Replies: 15
Views: 7212

Re: (done) Window spell mask

I never got around to investigating this at the time you implemented it. Do you have a code example of how to do this as I can't work it out, thanks.
by Gambit37
Wed Nov 04, 2020 10:57 am
Forum: Dungeon Master (DM)
Topic: New experiences with an old game...DM
Replies: 111
Views: 76771

Re: New experiences with an old game...DM

Yep, later versions changed the perspective slightly and the lines between walls were moved to improve overall coherence. There's an animation on dmweb showing the difference.

Image
by Gambit37
Tue Nov 03, 2020 10:48 pm
Forum: Dungeon Master (DM)
Topic: New experiences with an old game...DM
Replies: 111
Views: 76771

Re: New experiences with an old game...DM

Something I never noticed before and only just spotted while watching some YouTubes of DM... the windows on some doors are higher in the early versions of the game (Atari) and lowered in later versions (Amiga): https://matthill.co/filesdm/dm-door-window-changes.png And thanks Boyflea, I'm well, hope...
by Gambit37
Tue Nov 03, 2020 5:45 pm
Forum: Dungeon Master (DM)
Topic: New experiences with an old game...DM
Replies: 111
Views: 76771

Re: New experiences with an old game...DM

I always remembered that as RBFLRB - facing west in the empty first square that's Right, Back, Forwards, Left, Right, Back. This also gets you a Mirror of Dawn and a Poison Dart.
by Gambit37
Mon Nov 02, 2020 10:50 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (fixed in 0.78) sys_render_other rendering woes. (0.77)
Replies: 3
Views: 2968

Re: sys_render_other rendering woes. (0.77)

Aaaaaaahahahaha! Awesome, thank you so much. :) I thought I was going mad. (Perhaps I still am but that's another issue entirely -- 2020 and all that!)
by Gambit37
Mon Nov 02, 2020 1:44 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (fixed in 0.78) sys_render_other rendering woes. (0.77)
Replies: 3
Views: 2968

(fixed in 0.78) sys_render_other rendering woes. (0.77)

After finally getting my sys_render_other to behave for 0.77, I've discovered new problems with how alpha channels and blitting behave. I don't know if I'm doing something wrong, so here's some pseudo code to show various setups and the results. I've reduced down to the pertinent code for brevity. N...
by Gambit37
Mon Nov 02, 2020 11:55 am
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.77
Replies: 10
Views: 5296

Re: DSB Version 0.77

I'm an idiot. dsb_current_inventory does work in 0.77, I was reading my results wrong. And I've found the problem. In sys_render_other , I clear the bitmap to powerpink. But I wasn't using dsb_bitmap_clear , I was using a function you previously gave me, bitmap_clear_alpha : function bitmap_clear_al...
by Gambit37
Mon Nov 02, 2020 11:01 am
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.77
Replies: 10
Views: 5296

Re: DSB Version 0.77

I'll send you the dungeon via PM. By the way, the test version of 0.77 that you sent me dated 23/March at 18:29 doesn't have this problem and dsb_current_inventory works correctly in that version.
by Gambit37
Sun Nov 01, 2020 7:22 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.77
Replies: 10
Views: 5296

Re: DSB Version 0.77

I don't know what else to tell you. It worked fine in 0.76. With 0.77, I've not changed anything else other than updating my /base folder to use the files from 0.77, and updating the dsb.exe and esb.exe to the 0.77 exes. To answer your other question, I completely redefine the gui_info table, but it...
by Gambit37
Sun Nov 01, 2020 1:47 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.77
Replies: 10
Views: 5296

Re: DSB Version 0.77

After some digging around, it seems that dsb_current_inventory() now only returns "nil" in 0.77. Previously it returned an integer (ppos), for example in my sys_render_other I do this sort of thing and it no longer works: if (gui_name == "inventory") then local current_inv_ppos =...
by Gambit37
Fri Oct 30, 2020 11:24 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.77
Replies: 10
Views: 5296

Re: DSB Version 0.77

I've just updated to 0.77 and all my custom sys_render_other zones have stopped working. Any ideas what would cause that?
by Gambit37
Fri Oct 30, 2020 10:49 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Find out if party is empty and player is viewing a mirror?
Replies: 3
Views: 2767

Re: Find out if party is empty and player is viewing a mirror?

OK, ta. Is dsb_current_champion in the newest version of DSB? I'm still using 0.76 and I get a crash if I try to use that function. EDIT: Never mind, I just read the release post for 0.77. Time for me to upgrade (I keep avoiding it due to how much modified code I have to check against the base code ...