11
submitted 7 months ago* (last edited 7 months ago) by RavenDev1@lemmy.world to c/pixeldungeon@lemmy.world

@00_Evan@lemmy.world

Some rare seeds will cause an NPC, in this case Wandmaker, to get stuck in an infinite loop trying to spawn.

I could have perhaps made a fix and do a PR on Github, but as there are several ways to address it, as well as the possibility similar issues might happen with Ghost or Imp, I'm posting here.


Issue:

Game freeze. Wandmaker is stuck in an infinite loop attempting to spawn.


File:

.../core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java


Method:

spawnWandmaker(...)


Lines:

305-321


Reproducibility:

Game seed RAT-KCA-BLR will attempt to spawn Wandmaker on floor 8 in a 7x7 room (see screenshot), within the middle 3x3 area. All tiles here are considered not valid due to traps, entrance, or non-solid ground, including the bridge.


Suggestions:

  • Limit number of spawn attempts (ie. 100). If failed, consider trapped locations to be valid, optionally erasing any trap under the Wandmaker.
  • Alternative is to spawn a new room with same width/height after x attempts, overwriting the old room and try again.

you are viewing a single comment's thread
view the rest of the comments
[-] TE_0@lemmy.world 2 points 7 months ago

This man HATES community contributions.

[-] 00_Evan@lemmy.world 4 points 7 months ago

That's a pretty big mischaracterization. I don't accept code contributions both because I prefer to keep Shattered solo, and due to copyright implications. Community contributions in other forms, such as bug reports, are of course welcome.

this post was submitted on 02 Nov 2025
11 points (100.0% liked)

Pixel Dungeon

2642 readers
38 users here now

This community is a place to talk strategies, tell stories, or discuss anything related to Pixel Dungeon or its many versions.

Rules:

We have a few title tags for standout posts:

Sister Communities:

founded 2 years ago
MODERATORS