Trying to find some magic spot in the dungeon where you can rest is frustrating and very often feels dumb. You know the enemies are not near you at all, they are half the dungeon away in walking distance, but happen to be on the other side of a wall you are near.
Would there be some way to mod this? I can think of a couple of ways to go. But really uncertain of what could be done from a code perspective.
Alternatives:
Adjust range
Either turn off the mechanic or make the range shorter.
Prompt
"There are enemies nearby, do you still wish to rest? YES/NO. "
The chance of monsters spawning is higher if you sleep here.
Smarter Mechanic
The game calculates paths and distance instead of a direct line.
If it does this correctly, you should be able to lock yourself in a room to create a safe spot to sleep.
Resting Spots
Create some kind of safe spots where you can sleep uninterrupted.
Wandring Monster
Ditch the random monster spawning and let monsters allready spawned in the dungeon wander around and bump into you.
There Are Enemies Nearby mod suggestion
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
- MasonFace
- Posts: 543
- Joined: Tue Nov 27, 2018 7:28 pm
- Location: Tennessee, USA
- Contact:
Re: There Are Enemies Nearby mod suggestion
I think the ultimate goal would be the "smarter mechanics" route, but it would take someone smarter than me to implement.
It would be nice to have a quad tree (although I think there are more modern techniques that may be more appropriate) generated when the dungeon is initialized that computes the visibility from one area/volume to another.
The generated data could accomplish two really important things:
For the second point, the data could help to prevent the enemy directly on the other side of the wall that is actually far away by walking distance, from interrupting rest. A bonus of this data could be to adjust the audio volume of enemies based on the approximate distance from the player according to the vis table data.
I think some of this has been discussed before at some point, but to my knowledge, no one has actually taken a crack at it yet.
It would be nice to have a quad tree (although I think there are more modern techniques that may be more appropriate) generated when the dungeon is initialized that computes the visibility from one area/volume to another.
The generated data could accomplish two really important things:
- Increase performance by allowing for simple table-based vis culling.
- Approximate distance between two volumes by traversing the vis table data.
For the second point, the data could help to prevent the enemy directly on the other side of the wall that is actually far away by walking distance, from interrupting rest. A bonus of this data could be to adjust the audio volume of enemies based on the approximate distance from the player according to the vis table data.
I think some of this has been discussed before at some point, but to my knowledge, no one has actually taken a crack at it yet.
The above method would require changes/additions to code in core DFU, but your other suggestions would probably work as a mod (except the wandering monsters may require some sort of Nav mesh and that may need to tap into core).Would there be some way to mod this?
It would be funny if this put a "do not disturb" card on the doorknob of whatever room you're in.Resting Spots
Create some kind of safe spots where you can sleep uninterrupted.
Last edited by MasonFace on Fri Oct 25, 2019 8:14 pm, edited 1 time in total.
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: There Are Enemies Nearby mod suggestion
Haha, true. But I have been thinking about the Wizard Lock spell that's not really used a lot is it? Last character I played I ran into scorpions before I was able to fight them. I kept locking them into dungeon rooms because they couldn't open doors and it made me realize that being able to lock doors would be a interesting mechanic to make things more complex. Being able to lock the doors to a room to create a safe zone would be one such example.
But as for the rest of your post, yeah. Much what I figured. It's the best solution but very likely not the easiest
-
- Posts: 1409
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: There Are Enemies Nearby mod suggestion
This is really critical to get in at some point for all the reasons plus more you listed. I'll keep an eye on this, and if I ever get some free time outside of working on my combat coding stuff or get to a stopping point with it, I may start researching and digging into this. So much I would like to do, so little time.
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
-
- Posts: 555
- Joined: Fri Oct 23, 2015 8:19 pm
Re: There Are Enemies Nearby mod suggestion
The obvious solution would be some kind of HUD indicator for rest so you don't have to keep mashing "R" to find out if you're in the clear.
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: There Are Enemies Nearby mod suggestion
True, that would be really handy for avoiding having to "hunt" in the same way for a spot to sleep.
It struck me that the problem with monster detecting is really also a sound problem. It's caused by how the dungeons does not care about walls. You can walk around empty hallways and hear a skeleton continuously scream in your ear because he is one wall away in a different part of the dungeon.
And when you can't sleep isn't it really implied that you can hear monsters nearby? Maybe it's the same function that detect both? So if you could make the player only hear monster he should be hearing, you can't sleep as long as you hear monsters. Which would make sense.
It struck me that the problem with monster detecting is really also a sound problem. It's caused by how the dungeons does not care about walls. You can walk around empty hallways and hear a skeleton continuously scream in your ear because he is one wall away in a different part of the dungeon.
And when you can't sleep isn't it really implied that you can hear monsters nearby? Maybe it's the same function that detect both? So if you could make the player only hear monster he should be hearing, you can't sleep as long as you hear monsters. Which would make sense.
-
- Posts: 555
- Joined: Fri Oct 23, 2015 8:19 pm
Re: There Are Enemies Nearby mod suggestion
Enemies close enough to disable rest aren't always audible. That's kind of the main problem.
And no, walls don't matter and shouldn't. If they did, you could sleep almost anywhere. I'd rather a mod go in the opposite direction and disallow rest in dungeons. Have the player prep for dungeons with mana potions and bandages.
And no, walls don't matter and shouldn't. If they did, you could sleep almost anywhere. I'd rather a mod go in the opposite direction and disallow rest in dungeons. Have the player prep for dungeons with mana potions and bandages.
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: There Are Enemies Nearby mod suggestion
I would actually be ok with this. Just remove the entire problem area instead of finding some way to fix it. Allthough I'm not sure the game is balanced for making this work. When you are higher levels and have the money and guild ranks to stock up with potions and magic items it would work fine. But at lower levels I could only see it work if you combined it with the Persistent Dungeons mod that would let you leave the dungeon, sleep outside and go back in. But that would also be tedious, having to backtrack out of the dungeon every time you got hurt.BansheeXYZ wrote: ↑Sat Oct 26, 2019 2:53 pm And no, walls don't matter and shouldn't. If they did, you could sleep almost anywhere. I'd rather a mod go in the opposite direction and disallow rest in dungeons. Have the player prep for dungeons with mana potions and bandages.
This would actually work better with some kind of "safe spot" mechanic where there would only be some specified rooms that you could use to rest. For example, all quest rooms. Each dungeon has, what? 5 or so spots where the quest goal can be placed? Designating them as safe spots unless monsters actually are near, would work pretty nice.
Alternatively, if there were static items in the dungeons that let you replenish your health, mana and stamina. For example fireplaces?
-
- Posts: 201
- Joined: Sat Sep 15, 2018 9:49 am
Re: There Are Enemies Nearby mod suggestion
That would make dungeons suicide for low-level characters, though. Not to mention that it would make it almost impossible to get out of privateers hold for people that don't know the layout already.I'd rather a mod go in the opposite direction and disallow rest in dungeons. Have the player prep for dungeons with mana potions and bandages
- Ralzar
- Posts: 2211
- Joined: Mon Oct 07, 2019 4:11 pm
- Location: Norway
Re: There Are Enemies Nearby mod suggestion
True. You would either have to include a bunch of starting items for healing etc, or you would have to implement something like what I suggested above with resting spots. The cave with the fireplace where you start being an obvious resting spot you could keep backtracking to in order to heal up.jedidia wrote: ↑Wed Oct 30, 2019 3:14 pmThat would make dungeons suicide for low-level characters, though. Not to mention that it would make it almost impossible to get out of privateers hold for people that don't know the layout already.I'd rather a mod go in the opposite direction and disallow rest in dungeons. Have the player prep for dungeons with mana potions and bandages