Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Decreasing _MyHP causes hang at times. (With attached hold.)
New Topic New Poll Post Reply
Poster Message
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged

File: BugShow.drh (1.5 KB)
Downloaded 43 times.
License: Public Domain
icon Decreasing _MyHP causes hang at times. (+2)  
So, when you try to decrease _MyHP to negative value not through battling, the DROD hangs, I think it enters Infinite Loop to be more precise.
Check the hold for further analysis, I have troubles with using English today ^^;

____________________________
My website | Facebook | Twitter
09-21-2008 at 05:05 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5058
Registered: 02-04-2003
IP: Logged
icon Re: Decreasing _MyHP causes hang at times. (0)  
skell wrote:
So, when you try to decrease _MyHP to negative value not through battling, the DROD hangs, I think it enters Infinite Loop to be more precise.
The negative _MyHP values were being considered as large unsigned integer values when fighting, causing a very long time before combat would complete since it takes so many hits to finish the fight. I've changed NPC behavior so that negative HP values are no longer allowed (or values above the signed integer limit of ~2.1B). If you attempt to set a negative integer value to _MyHP, it will be set to 0.

____________________________
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 10-13-2008 02:24 AM]
10-13-2008 at 02:23 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
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : Decreasing _MyHP causes hang at times. (With attached hold.)
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.