Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old September 24, 2017, 16:31   #1
Sideways
Apprentice
 
Join Date: Nov 2008
Posts: 58
Sideways is on a distinguished road
PosChengband bug - game hangs at midnight

PosChengband repeatedly hung at midnight on my latest character, and I managed to figure out what the problem was.
(I was playing 6.1.0, but this bug affects many other versions as well, including the current PosChengband and elliposchengband masters.)

If you spend midnight in Chameleon Cave and your max depth is at least 42, determine_today_mon() (the function responsible for selecting the new wanted monster of the day) gets stuck in an infinite loop. The problem is that because the player is in Chameleon Cave, get_mon_num() only ever returns two monsters - Chameleon and Chameleon Lord - to determine_today_mon(); but neither of those can be wanted monster of the day, Chameleon Lord because he's a unique and regular chameleon because it's too low-depth compared to the player's maximum depth. There's no sanity check that says "we've tried this loop 5,000 times and didn't get a valid monster", so the loop just keeps trying infinitely and the game hangs.

If this bug happens to you, probably the easiest way to get around it is to edit r_info.txt and temporarily modify the regular chameleon's depth so it survives the check that says "if (r_ptr->level < MIN(max_dl / 2, 40)) continue;"; that way, you won't have to modify and recompile the source code like I did.
__________________
The Complainer worries about the lack of activity here these days.

Last edited by Sideways; September 24, 2017 at 16:47. Reason: clarifying
Sideways is offline   Reply With Quote
Old September 24, 2017, 17:07   #2
HugoTheGreat2011
Knight
 
HugoTheGreat2011's Avatar
 
Join Date: Jan 2012
Location: Mid-Atlantic, U.S.
Age: 34
Posts: 934
HugoTheGreat2011 is on a distinguished road
Good catch, Sideways!
__________________
Hugo = Big-time PosChengband player

My YouTube channel, where I'm known as YggdrasilTid (includes my PosChengband gameplay+music):
https://www.youtube.com/channel/UCqG...vf4c0P8ipsIeQQ

My most recent good try at PosChengband 7.0.0's nightmare-mode on Angband.live:
https://www.youtube.com/watch?v=rwAR0WOphUA
HugoTheGreat2011 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PosChengBand - How to get to late game Red Sky Grishka Variants 6 August 31, 2017 02:30
[PosChengband 6.0.0] Game-breaking bug HugoTheGreat2011 Variants 6 March 31, 2017 00:51
Poschengband game mechanic questions Fnord Variants 259 September 7, 2016 05:15
Hellband: Control S hangs on Vector Linux konijn_ Variants 2 January 5, 2010 22:43
Angband (3.1.0) hangs on create trap, dl 0 Pete Mack Vanilla 1 February 7, 2009 06:59


All times are GMT +1. The time now is 10:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.