Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old May 2, 2013, 10:39   #1
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,077
PowerWyrm is on a distinguished road
[3.5-dev] Possible crash on cavern levels

Since the removal of the in_bounds macros, I think it's possible to crash the game on cavern levels because the layout doesn't generate permanent walls outside of the cavern bounds.

See init_cavern():

Code:
/* Fill the edges with perma-rock, and rest with rock */
draw_rectangle(c, 0, 0, DUNGEON_HGT - 1, DUNGEON_WID - 1, FEAT_PERM_SOLID);
fill_rectangle(c, 1, 1, DUNGEON_HGT - 2, DUNGEON_WID - 2, FEAT_WALL_SOLID);
compared to the same code for the town:

Code:
/* Start with solid walls, and then create some floor in the middle */
fill_rectangle(c, 0, 0, DUNGEON_HGT - 1, DUNGEON_WID - 1, FEAT_PERM_SOLID);
fill_rectangle(c, 1, 1, c->height -2, c->width - 2, FEAT_FLOOR);
__________________
PWMAngband variant maintainer - check http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old May 2, 2013, 10:55   #2
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,077
PowerWyrm is on a distinguished road
The best would be to ensure that everything outside cave bounds is FEAT_PERM_SOLID, so that nothing can be placed there.
__________________
PWMAngband variant maintainer - check http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old May 4, 2013, 21:58   #3
eMeM
Apprentice
 
Join Date: Oct 2012
Posts: 74
eMeM is on a distinguished road
I'm playing current dev version and there is a display problem on cavern levels
Attached Thumbnails
Click image for larger version

Name:	angband-cavern.png
Views:	97
Size:	3.0 KB
ID:	1028  
eMeM is offline   Reply With Quote
Old May 4, 2013, 22:02   #4
scud
Swordsman
 
Join Date: Jan 2011
Location: Sarf Laaaahdon
Posts: 323
scud is on a distinguished road
You've somehow managed to access the top secret multi-player mode.

Shhhh. Tell no-one.
scud is offline   Reply With Quote
Old May 5, 2013, 00:52   #5
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,663
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by eMeM View Post
I'm playing current dev version and there is a display problem on cavern levels
Yep, I've found that bug too. Refreshing the screen fixes it.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old May 7, 2013, 16:55   #6
eMeM
Apprentice
 
Join Date: Oct 2012
Posts: 74
eMeM is on a distinguished road
Multiplayer on maze level
Attached Thumbnails
Click image for larger version

Name:	multi.png
Views:	87
Size:	2.3 KB
ID:	1029  
eMeM 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
V 3.5-dev crash eMeM Development 4 May 2, 2013 17:21
[3.3] Bug in cavern level generation PowerWyrm Development 10 July 30, 2011 05:19
Cavern levels jens Development 3 April 12, 2011 00:04
Small Levels bonzo Variants 7 February 29, 2008 21:50
[Un, others] Difficulty levels andrewdoull Variants 10 May 29, 2007 23:00


All times are GMT +1. The time now is 21:29.


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