# Underspire: The Return of the Endless Corridor

**URL:** <https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513>\
**Category:** Bug Reports\
**Created:** [September 22, 2023, 11:31am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513 "2023-09-22T11:31:52Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![Kafka](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/kafka/32/33529_2.png) [@Kafka](https://community.gemsofwar.com/u/Kafka)\
**Post date:** [October 2, 2023, 7:42am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/21 "2023-10-02T07:42:35Z")

</div>

I did speak to them directly this morning. They said this behaviour is intended and that there are dead end branches off the main dead end path and that this fix was to prevent dead ends from being as crazy long as they used to be able to be (30+ tiles for example) but dead ends of 10ish tiles were still possible.

That’s all the info I have.

---

<div class="post-metadata">

**Author:** ![Schaafy](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@Schaafy](https://community.gemsofwar.com/u/Schaafy)\
**Post date:** [October 2, 2023, 7:46am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/22 "2023-10-02T07:46:15Z")

</div>

Can we please just get the user-generated graphic inserted in the game, it would literally solve 95% of problems, and will trigger the other 5% to look up more information so they understand.

Instead of worrying about what the code is or needing changing the code, which is more likely to just break things, just telling the players how to go about doing the underspire would mean NOBODY would ever encounter a dead end longer than 6 because it would literally always be a waste to go farther than that.

---

<div class="post-metadata">

**Author:** ![Fourdottwoone](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/fourdottwoone/32/66655_2.png) [@Fourdottwoone](https://community.gemsofwar.com/u/Fourdottwoone)\
**Post date:** [October 2, 2023, 8:32am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/23 "2023-10-02T08:32:33Z")

</div>

> [@Kafka](#):
>
> did speak to them directly this morning. They said this behaviour is intended and that there are dead end branches off the main dead end path and that this fix was to prevent dead ends from being as crazy long as they used to be able to be (30+ tiles for example) but dead ends of 10ish tiles were still possible.

No, the fix was to prevent dead ends to be longer than 6 rooms long. They even attempted to do that and almost succeeded.

To illustrate it be bit better for the map posted above, this is the main path, marked in green:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/2/7/276d3cc7e69a2dd3f828d129575f1ddb200e7322.jpeg)

This is the same map, extended with dead ends marked in red:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/2/f/2f7c6218eeafdb138f7d0be9cc706f00fa119072.png)

The white numbers are the dead end length counters. If you mark several dozen maps the same way, NONE will have any of those counters go above 6. This isn’t just a coincidence, whoever designed Underspire intended this to be “fair”, there’s a fixed limit on how far you can wander off into the wrong direction. Allowing extra paths that can be arbitrarily longer breaks the whole design. You might as well drop the fixed limit entirely, because players can’t tell whether they are on a “normal” or “arbitrarily longer” path.

Which brings us to the bug. In some very rare cases the constraint check fails. It seems to be caused by the dead end branch being located on an outside border and entirely locked in by other rooms, except the very last one (with counter 6). The algorithm will then attach extra rooms to the very end, without first verifying that it doesn’t exceed the fixed limit.

This SHOULD be easy to fix, once you get “them” to admit that the initial fix may not have covered all the situations it was supposed to cover.

---

<div class="post-metadata">

**Author:** ![sylverscale](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sylverscale](https://community.gemsofwar.com/u/sylverscale)\
**Post date:** [October 2, 2023, 8:43am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/24 "2023-10-02T08:43:42Z")

</div>

Upper right - makes sense. We expected this.

Lower middle to left - this doesn’t make sense at all. That’s not a branch and a main path, that’s just straight on. Where is the branching off? You can’t just arbitrarily take a path that’s just a straight line of room and claim those are “branches”. That is not how a branch works.

Sorry but whoever told you that is telling you something that just doesn’t make any sense to any ordinary person who would look at this.

---

<div class="post-metadata">

**Author:** ![Fourdottwoone](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/fourdottwoone/32/66655_2.png) [@Fourdottwoone](https://community.gemsofwar.com/u/Fourdottwoone)\
**Post date:** [October 2, 2023, 8:48am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/25 "2023-10-02T08:48:02Z")

</div>

> [@sylverscale](#):
>
> Where is the branching off?

It’s Incorrectly branching off the end of the dead end (room 6), making the dead end longer.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/6/1/61b2be47dcf3c8c0041224049f47ae852e9595ad.jpeg)

---

<div class="post-metadata">

**Author:** ![sylverscale](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sylverscale](https://community.gemsofwar.com/u/sylverscale)\
**Post date:** [October 2, 2023, 9:30am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/26 "2023-10-02T09:30:20Z")

</div>

I know what they’re saying but it’s a stretch to call that branching off is what I meant to say. 😅

---

<div class="post-metadata">

**Author:** ![Jerry\_the\_skunk](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jerry_the_skunk/32/53897_2.png) [@Jerry\_the\_skunk](https://community.gemsofwar.com/u/Jerry_the_skunk)\
**Post date:** [October 2, 2023, 9:45am UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/27 "2023-10-02T09:45:50Z")

</div>

The fix should be easy. Do not allow branches from rooms, that are 6 tiles removed from the main path. If we take the pattern described by 4,21 up there as correct (and there is no reason to doubt it), those rooms should be the natural limit to any extension by design.

---

<div class="post-metadata">

**Author:** ![Elfin](https://avatars.discourse-cdn.com/v4/letter/e/258eb7/32.png) [@Elfin](https://community.gemsofwar.com/u/Elfin)\
**Post date:** [October 2, 2023, 3:15pm UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/28 "2023-10-02T15:15:00Z")

</div>

Not happy with the outcome but thanks so much for letting us know.

---

<div class="post-metadata">

**Author:** ![Smiling\_Spectre1](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/smiling_spectre1/32/7204_2.png) [@Smiling\_Spectre1](https://community.gemsofwar.com/u/Smiling_Spectre1)\
**Post date:** [October 6, 2023, 6:26pm UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/29 "2023-10-06T18:26:18Z")

</div>

Looks like a bug for me. Any branch on pictures posted (including yours) goes 6 tiles long _from the main path_. Except the last one. Not “6 tiles long from the any arbitrary intersection”, as this one looks like. So it’s the edge case - but it is the bug, and _must_ be fixed.

---

<div class="post-metadata">

**Author:** ![Draegor](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/draegor/32/70763_2.png) [@Draegor](https://community.gemsofwar.com/u/Draegor)\
**Post date:** [October 7, 2023, 11:12pm UTC](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513/30 "2023-10-07T23:12:58Z")

</div>

Thanks Kafka, this was very helpful!

[Previous page](https://community.gemsofwar.com/t/underspire-the-return-of-the-endless-corridor/81513.md?page=1)
