Search found 3904 matches

by Sophia
Fri Jul 17, 2020 4:52 am
Forum: Dungeon Master (DM)
Topic: Best way to level?
Replies: 111
Views: 48103

Re: Best way to level?

I am still going through the CSBwin source code but what I can say as fact is that; When attacking monsters, dungeon level is not relevant at all. The dungeon level isn't relevant because the dungeon level is never used directly in the experience calculation. However, it's important to clarify that...
by Sophia
Thu Jul 02, 2020 10:20 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Cheat for Food?
Replies: 9
Views: 5991

Re: Cheat for Food?

DSB's math is based directly on my best understanding of the reverse engineered DM source code. It should match DM's behavior exactly. If there are any differences, they are not intentional and I will correct them if/when someone brings them to my attention.
by Sophia
Wed Jul 01, 2020 8:54 pm
Forum: Dungeon Master (DM)
Topic: Dane Potions, Wisdom, and Mana Recovery.
Replies: 50
Views: 16766

Re: Dane Potions, Wisdom, and Mana Recovery.

Interesting. There is, as far as I can tell, nothing in the actual DM code (at least on the Atari ST) that makes time run any faster on the inventory screen, but I suspect some speed-up may be evident on old computers due to the fact that rendering the dungeon view took a fairly significant amount o...
by Sophia
Wed Jul 01, 2020 4:40 am
Forum: Dungeon Master (DM)
Topic: Dane Potions, Wisdom, and Mana Recovery.
Replies: 50
Views: 16766

Re: Dane Potions, Wisdom, and Mana Recovery.

jayrshaw wrote: Tue Jun 23, 2020 9:51 pm Perhaps everyone already knew this except for me, but I just discovered that in-game time flows twice as fast when you are in the character menu view as when you are in the normal dungeon view.
This seems odd. What platform and version of DM are you playing?
by Sophia
Mon May 04, 2020 2:37 am
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.77
Replies: 10
Views: 4813

DSB Version 0.77

What's new: - Added (experimental!) DSB+ESB integration to be able to visualize and edit your dungeon in realtime - Added on_stuck_in_monster(self, id, monster_id, monster_arch) called when a projectile gets stuck in a monster - Added consume_effect so food items can have additional effects beyond t...
by Sophia
Thu Apr 23, 2020 10:52 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

That information isn't actually preserved anywhere currently. For 0.77 I'll add dsb_get_attackppos which will return the party position of the currently displayed attack result graphic. You can then call this in your renderer function. Since you'll now know the ppos, you'll then be able to call (the...
by Sophia
Sat Apr 18, 2020 1:18 am
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

For 0.77 I've added dsb_get_lookmode which will work very similarly to what you're trying to do, only without the need of any global variable hacks.

Code: Select all

local eyeclicked, mouthclicked = dsb_get_lookmode()
(In standard DM, a return value of true, true is not possible)
by Sophia
Fri Apr 17, 2020 6:34 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

What you ended up doing is very similar to how it would work once I added the feature I mentioned above. If you could query the engine directly to find out that the eye is being clicked, you could just do that; this code does about the same thing, just a bit less elegantly since you can't actually d...
by Sophia
Fri Apr 17, 2020 2:11 am
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

Ok, now I understand what you're trying to do. It seems like the easiest approach is to just give you some way you can query that the eye is being held down, so you can just check for that and render the appropriate thing. The reason the subrenderer is blank is probably because DSB is trying to draw...
by Sophia
Fri Apr 17, 2020 1:18 am
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

Ok, I still don't really understand what you're trying to do, but I'll do my best to help you. The reason why the stats panel disappears if you move the mouse is because that's what your code does. You check if the left mouse button is down, and then, inside of that loop, you check if the mouse is w...
by Sophia
Thu Apr 16, 2020 9:48 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

If I'm correctly understanding the problem that you are having, the issue is that sys_render_other is called before any subrenderers are drawn onto the inventory bitmap, so that anything you add will appear to be "under" the subrenderer. If this is all it is, it seems like the easiest thin...
by Sophia
Wed Apr 15, 2020 11:50 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

I think you'll have to clarify what you mean by "when a subrenderer is displayed," because some sort of bitmap that the code considers a subrenderer is being drawn any time you're on the inventory screen. Or do you mean specifically only when an object is held in hand? Because then you cou...
by Sophia
Tue Apr 14, 2020 12:51 am
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

All monsters internally have a facing, and a monster without certain bitmaps defined is handled internally exactly the same as if the bitmaps had been defined. This means that there would be turning delays and such. However, the instant_turn property negates this, and is set on all DM monsters with ...
by Sophia
Fri Apr 03, 2020 11:07 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

It isn't actually used by the base code. It's for designers to create an item that only offers attack methods under specific circumstances; if rend_method_check is defined and returns false, no attack method icon is drawn and thus no attack methods are offered.
by Sophia
Wed Apr 01, 2020 8:22 pm
Forum: Gaming & Sport
Topic: Integer scaling now in Nvidia drivers
Replies: 1
Views: 2393

Re: Integer scaling now in Nvidia drivers

I have a GTX 1070 which apparently isn't supported either... :(
by Sophia
Wed Apr 01, 2020 7:36 am
Forum: Dungeon Strikes Back (DSB)
Topic: [April Fool's] DSB in the Cloud
Replies: 4
Views: 3077

[April Fool's] DSB in the Cloud

Cloud gaming is the big trend of the future, and much like every other fan of a 30+ year old computer game, I am all about chasing the latest and greatest trends. So along the lines of Google Stadia and similar services, I've decided to make future versions of DSB streamed! No longer will you have t...
by Sophia
Wed Apr 01, 2020 1:57 am
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

You're clearing the background to power pink and then drawing an image with alpha, which gets blended with the power pink. If you want to use dsb_bitmap_draw then you want to clear the screen to black , which essentially makes it work like pre-multiplied alpha. Can you post a screenshot of what dsb_...
by Sophia
Wed Apr 01, 2020 12:04 am
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

When you dsb_bitmap_clear a bitmap, it also sets the alpha channel to 0. The background can be black, power pink, or whatever, because it isn't drawn, so normally you don't even notice. The problem I think you're having is that due to DSB's old-fashioned means of rendering stuff, drawing images with...
by Sophia
Tue Mar 31, 2020 10:58 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

To answer your prior question, if you draw a bitmap with dsb_bitmap_blit rather than dsb_bitmap_draw it will not respect the alpha channel, which in this case is what you want. You can also dsb_bitmap_clear a bitmap to set it to 0 (including 0 alpha) rather than using power pink. There isn't current...
by Sophia
Mon Mar 23, 2020 8:20 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

I don't really understand why it won't work. It seems like we're sort of saying the same thing. So let me ask this way. What do you want to have shown in the subrenderer area if the resurrection and reincarnation interface is onscreen but not being drawn there? Or, perhaps, the real question for me ...
by Sophia
Mon Mar 23, 2020 7:22 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

The size would be the size of whatever bitmap you used.

The way I've designed it currently, if the resurrection and reincarnation interface is onscreen and not a subrenderer, the stats are drawn in the normal place. I can change this if you want to but I thought it was sensible default behavior.
by Sophia
Mon Mar 23, 2020 6:10 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

I don't really have any interest in delving into that mess of code right now and rewriting it all in Lua, but fortunately there is probably something that is quite a bit easier for me that should still allow things to work somewhat the way you want. Since the resurrection and reincarnation interface...
by Sophia
Wed Mar 18, 2020 9:33 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Questions about DSB/ESB
Replies: 433
Views: 1261891

Re: Questions about DSB/ESB

I'm not totally sure if I understand what you're asking for, but if you're saying you want to just keep drawing the same thing, wouldn't the simplest approach be to just directly call whatever function that draws what you want to draw, and then return true?
by Sophia
Tue Mar 17, 2020 1:41 am
Forum: Dungeon Strikes Back (DSB)
Topic: Localtext.txt (DSB 0.76+)
Replies: 8
Views: 4984

Re: Localtext.txt (DSB 0.76+)

The reason the symbols aren't showing up is because when you try to paste that char 129, your text editor is trying to be "helpful" and converting the character to Unicode. There are ways around this by changing your settings from UTF-8 to ASCII, but the simplest answer is probably to esca...
by Sophia
Mon Mar 16, 2020 10:14 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Localtext.txt (DSB 0.76+)
Replies: 8
Views: 4984

Re: Localtext.txt (DSB 0.76+)

Sure, for 0.77 I've increased it to 4k.
by Sophia
Mon Mar 16, 2020 12:20 am
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.76
Replies: 7
Views: 4157

Re: DSB Version 0.76

No, ticks.
by Sophia
Sun Mar 15, 2020 10:50 pm
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.76
Replies: 7
Views: 4157

Re: DSB Version 0.76

I'm curious why the graphics.dat jumped from 442KB to 1.29MB? Oh, when I updated the file in the grabber I probably forgot to compress it. I guess this shows you that Allegro's datafile compression is actually pretty good! I was fiddling in the test dungeon, filled the quiver with arrows and put it...
by Sophia
Sat Mar 14, 2020 11:49 pm
Forum: Dungeon Strikes Back (DSB)
Topic: I never thought I'd be scared by DM again
Replies: 2
Views: 2761

I never thought I'd be scared by DM again

I was fixing a bug in DSB that would make certain bad Lua cause it to freeze up rather than shut down in an orderly fashion. I ran my test case, DSB closed, and that was that, so I went back to coding. I normally have music in my headphones while I'm coding so I didn't notice anything at first, but ...
by Sophia
Sat Mar 14, 2020 12:52 am
Forum: Dungeon Strikes Back (DSB)
Topic: Localtext.txt (DSB 0.76+)
Replies: 8
Views: 4984

Localtext.txt (DSB 0.76+)

DSB 0.76 includes support for localization (or easier modification) of text strings; most of the text strings that were formerly more or less hardcoded are now found in base/localtext.txt . If you want to modify these strings for your own dungeon, you can create your own copy of localtext.txt in you...
by Sophia
Sat Mar 14, 2020 12:50 am
Forum: Dungeon Strikes Back (DSB)
Topic: DSB Version 0.76
Replies: 7
Views: 4157

DSB Version 0.76

What's new: - Overhauled the 3d sound system to account for walls - Sound configuration options are now available in the sound_info table, defined in sound_info.lua - Added support for localization (or easier modification) of text strings - Added keep_viewmode option to the fullscreen renderer, whic...