Progress Report: Dungeon Rework
For a game called Ero Dungeons, the dungeons were rather paltry up to now. They were long corridors with fights. However, that changes now. Dungeons are now actual dungeons. In this devlog I'll explain how the dungeon algorithm creates something like this:
Analytics
But first, something completely different.
It is well known that not all goals are created equally. Neither are all moves equally good. As a dev it's very difficult to balance these things without objective usage data. That's where analytics come in. If you accept it, the goals you complete, the classes you pick and the moves you make will be sent out and aggregated. This allows me to see which goals are never completed, or which moves are never used, and give me more tools for knowing what and how to balance.
Of course, I need your permission for those things. So click on the Accept button of this large pop-up (or don't if you don't want to).
Dungeon Rework
Layout Creation
Even before the first public release of Ero Dungeons I had plans for non-linear randomly generated dungeons. However, as you know, it didn't work out. I originally started with the starting room, and then added a new room from a set of possible rooms. Repeat until you get a full dungeon. Unfortunately, this was very convoluted. It was very hard to get a neat condensed layout without long winding paths, it was also difficult to put special rooms in good locations. All in all, it didn't work, and I switched to the current layout.
To fix it I decided to start from a grid, and built the thing with moddability in mind. Any capital letter is a moddable parameter. You start with an X by Y grid and fill it with rooms. Then you do Z steps, where in each step you either (with a W% chance) remove an entire room, or (with a V% chance) remove a connection between two rooms. After each step we check whether the start and end room are still connected, and if not, undo the step.
After all this, we remove all disconnected rooms. Checking connection is very simple since Godot has a built-in Astar2D node which does all that work for us.
Room Creation
I originally thought to create rooms using perlin noise. It would give a very random result, but still tie everything nicely together. It didn't work at all. The results were hard to work with, especially ensuring that the rooms would connect correctly on the corridors. So I switched to a different method.
A room consists of a center part and side corridors. The center part could be a square, or a rectangle (all moddable) where the main attraction of the room is. This contains a combat encounter, or (soon) a curio, or a combination (or nothing). This is drawn out first.
Then, depending on the surrounding rooms, corridors are drawn from the sides to the center (the width is also moddable). And that's how you get the rooms. It's a pretty simple process, but it works.
Variety
The algorithm above allows variety between different dungeon types.
A machine dungeon has few removed rooms, and is very packed. Here's an adept lab dungeon:
A spider dungeon covers a large area, but has many removed rooms and connections, as well as many empty rooms. Making it feel cavernous. Here's a veteran caverns dungeon:
A ratkin dungeon lies between the two, and is average on both. Here's an elite ratkin dungeon:
As you see, the dungeons become larger and more complex as the difficulty increases.
Changelog
Content:
- Analytics for balancing. See above.
- Full dungeon rework. See above.
- UI changes to accommodate for the dungeon rework. See below:
- Hypnosis has been completely reworked. Suggestibility now decreases after each day. Hypnotic suggestions are given at the end of a dungeon and are a lot more fun.
- A bunch of new equipment from modders Orchid and HereticAngel.
Minor:
- Corrupted girls are now corrupted over time (and you can see the corruption when you inspect their info panel) instead of all at once.
- You can now see the chance that you rolled a girl that good or worse on the stagecoach.
- Swift is now a hidden script and shown explicitly in the tooltips.
- All self targeting moves now explicitly show they target self in their move description.
Bugs:
- Items on hidden parts of the sprites weren't correctly hidden.
- The maid bikini didn't remove a worn outfit when equipped.
- Visual bug when recruiting girls while at max capacity.
- Satisfaction of afflictions wasn't saved.
- Brows would show over hoods after expression changes in combat.
- You no longer get half essence from some parasite extractions.
- Cocooned girls would stop moving after attacking.
- Denial tokens would disappear after 10 turns.
- Forced tokens stuck after the forcing gear got destroyed.
- Removing an accessory which fitted multiple places, would only remove the first overlapping item.
Ero Dungeons [Old Version]
Darkest Dungeon but Lewd
More posts
- Ero Dungeons has Released!27 days ago
- Progress Report: Breaking Mods and Updating ScriptsAug 08, 2024
- Technical Devlog: Evolution of ScriptingAug 03, 2024
- Progress Report: Gargoyles, Lamias, and a VineAug 01, 2024
- Progress Report: Obligatory Beach EpisodeJul 26, 2024
- Progress Report: ArachnidsJul 18, 2024
- Progress Report: A Livelier Guild and More RatkinJul 12, 2024
- Public Release: Beta 1.3: Mechanic, Dreamer, and HumansJul 05, 2024
- Progress Report: The Dreaming AdventurerJun 27, 2024
- Progress Report: Dreamer Boss DungeonJun 21, 2024
Comments
Log in with itch.io to leave a comment.
hey, funny behavior when venturing out then returning to the guild: All dungeons will have the same reward and no modifiers
As much as I like the procedural generation, I find that the spawn/destination being at opposite corners makes it easy to find a route with minimal encounters, letting adventurers swing confidently way above their weight class
also who the fuck does the soundtrack this slaps
Will be fixed in the next version.
Soundtrack is by Horbror, https://horbror.itch.io/dreams-of-joy-departed
So that's what caused it. I had seen the "all dungeons same reward" before, but wasn't able to figure out how to reproduce it !
I've been loving this update from Patreon so far, but am passing on the analytics option. Would like to share some thoughts after playing it for a while though:
Bugs:
- Guild area, character panel, change Goals, exit character panel - new goals are not reflected on party member sidebar. (fairly minor really)
- Purchased provisions are not shown while preparing for dungeon (add bread or herb, left side "Provisions" panel doesn't show what has been selected, no other sign of inventory until entering dungeon either. Maybe I'm just blind?)
Feature Request:
When looting gear in dungeon, can you show an icon or "X" over gear that has already been collected enough to be "infinite"?
(I often forget if I have enough of a piece of gear, and waste precious loot space thinking I needed more of it still)
Problematic Goals:
"Kill enemies of type Human" - Humans are quite rare and random, this has been the hardest "kill X" to complete by far. It's #2 in my list of reasons to re-roll goals.
"End dungeons with ### Cash" - Since cash only stacks to 1750, this means you either need ~3x stacks on lower difficulties (doable if you skip treasures), or ~6 stacks on higher difficulties. The 5k is doable with random luck, but I'm doubting the 10k is possible, even with fully farming explore mode and dropping mana.
"Start turns with token (Blind/Silence)x20" - Even trying to force these via equipment is very difficult to achieve, as (almost) any action will negate the token... so this becomes a "Wait 20++ turns with a debuff" goal instead (burning at least 1 turn in a combat to spawn the debuff via equipment).
"Start turns with token Faltering" - My #1 reason to re-roll goals.
I get the point behind this, a very high "Risk/Reward" payoff. I don't think there's anything "wrong" with this one, just personally I don't even try to attempt it. It's hard to control enemy attacks enough within a single battle to force a character into Falter state (unless said character has a Taunt skill); and that's not counting the huge risk of a character getting kidnapped since Falter state generally stacks higher each turn afterwards. (Yes, Healing pauses it - but most of the time when someone Falters, I often can't heal them enough to prevent another Falter+1 on their next turn, due to unremovable damage DoT debuffs or further incoming damage voiding out the Heal. )
..... sorry for wall of text.
Thanks for the bug reports. Second one is fixed in the next version, but the first one is new to me.
You can see whether equipment is infinite by the small infinite symbol in the tooltip, assuming it still works.
Thanks for the goal comments, it makes up for not getting your analytics ;p
I noted that there is a lot of waiting around that people do, so especially the blind/silence once need to be looked at.
I know I end up using "wait" a lot as well, often either
a) Stalling in a "safe" battle to use buffs or heals for the "Receive Heal #" or "Deal Heal #" or "Get Buff x times" type missions
b) Letting a specific (often weaker char) get kills on a target for "Kill x [enemy type]" missions. Sad that DoT's dont count, but it makes sense that would be difficult to track. (Kill X is especially difficult on Maid, since most of their damage potential is DoT based; French Kiss and/or pink feather duster's DoT)
Sorry for no analytics; just not a fan of games that do that. Very grateful for the opt-in approach though. Seen games that get screwy performance with analytics on; or kill my limited shared bandwidth. I play slow and weird anyways....