Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Testing Item at off-screen (The game doesn't recognize it's in an infinite loop)
New Topic New Poll Post Reply
Poster Message
Kwakstur
Level: Smiter
Avatar
Rank Points: 385
Registered: 05-05-2006
IP: Logged
icon Testing Item at off-screen (+2)  
I think this sword is working nice, so I go to test it out in a place larger than 1 room. The moment I reach the screen edge, though, I get an endless stream of beeps. It took me forever to Alt-tab out and get up the Task Manager to end the process! drodrpg.err grew by 220 kB! It has thousands of this line:
Assertion error in line 4918 of .\DbRooms.cpp: "wX < this->wRoomCols"
I'm pretty sure what caused the error. This sword turns all water under it to bridges. When I reach the edge, if I face West, the sword ends up off the screen, so the game is instructed to check an area off screen boundaries.

It's perfectly reasonable that the game produces an error for this, as it tells the architect he should fix his code. But I wish the game would do what it normally does in an infinite loop and end the NPC. This way, the architect doesn't feel the need to reset his computer before he can fix it.

I would prefer that the public don't download the hold. I do plan to release this sword to the public, but not in this unfinished state. So delete the attatchment once you have it, mods.

[removed attachment -- mrimer]

____________________________
Also known as ExpHP everywhere else.

[Last edited by mrimer at 01-14-2016 05:05 AM]
12-21-2008 at 09:56 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5106
Registered: 02-04-2003
IP: Logged
icon Re: Testing Item at off-screen (0)  
If this is still an issue I'm going to fix it.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
01-13-2016 at 02:55 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5106
Registered: 02-04-2003
IP: Logged
icon Re: Testing Item at off-screen (0)  
Confirmed the IsTileAt script command isn't applying the same limits and guards that DROD 3 and higher applies.

I've added the following checks, similar to what is used in the IsTileAt script command in regular DROD:

* The region being considered is cropped to a valid room region.

Fixed in rev 105.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.

[Last edited by mrimer at 01-14-2016 05:26 AM]
01-14-2016 at 05:11 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2806
Registered: 07-11-2014
IP: Logged
icon Re: Testing Item at off-screen (+1)  
Checking for an item out of bounds, and trying to build something out of bounds by using MyScript variables did not cause the game to throw an error 1.2.3.116. :thumbsup
01-17-2016 at 11:18 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : Testing Item at off-screen (The game doesn't recognize it's in an infinite loop)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.