Integer wrap-rounds
issueid=25 03-11-2008 04:15 AM
Ancient Member
Number of reported issues by Grey: 58
Integer wrap-rounds
Several bugs can crop up during play due integer wrap-rounds

A number of different variables in the game do not have any protection from wrap-rounds, meaning that making the value too low will cause it to flip over to a very high amount, or increasing the value too much can result in a very low value. This has the potential to affect game balance heavily, possibly even fatally.

Known examples:

-Piety wrap-round. Continuously praying will reduce piety more and more, until it wraps round to an extremely high value, allowing for easy precrownings. (Though some method of dealing with the deity summons is needed to abuse this it is still very exploitable.)
-Gold wrap-round. Increasing a stack of gold beyond 2 billion will make it become negative gold, which behaves buggily and can crash the game. (this level of gold can be reached with dragon gold-doubling, potentially another bug in itself)
-Moloch armour bug. A monster with low dexterity that equips moloch armour will have it's dexterity wrap round to a high amount resulting in it being insanely fast. This becomes a game-ending issue when a threat room of greater molochs is encountered - a super-fast greater moloch will kill most characters rather quickly.

These are the only 3 known to affect gameplay, but other such bugs may exist undiscovered or unexploitable. I've grouped them in the one report as they have a common cause and solution.
Issue Details
Issue Number 25
Project ADOM (Ancient Domains Of Mystery)
Category Unknown
Status Fixed
Priority 5 - Medium
Affected Version ADOM 1.1.1
Fixed Version ADOM 1.2.0 pre 1
Milestone (none)
Users able to reproduce bug 5
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




02-06-2012 07:34 PM
Issue Changed by jt
  • Issue marked as addressed

02-06-2012 07:34 PM
Issue Changed by jt
  • Status changed from Unconfirmed to Fixed

09-23-2012 10:42 PM
Issue Changed by jt
  • Applicable version changed from Unknown to ADOM 1.1.1
  • Addressed version changed from ADOM 1.2.0 pre 4 to ADOM 1.2.0 pre 1

+ Reply