greater moloch monster memory weird values
issueid=2846 04-19-2014 11:45 PM
Qui Qui is offline
Senior Member
Number of reported issues by Qui: 98
greater moloch monster memory weird values

Code:
Greater molochs seem to have a DV of 613566753. The minimum DV encountered was
65533. They have a PV of about 100. They seem to have 873 hit points on the
average. They seem to have an average speed of about 72.
They are able to quickly regenerate.
They are immune to ice attacks.
So far you have killed but one greater moloch. One kill on the average seems to
be worth 206956 experience points.
Met this one in IDC. Killed it with Thunderstroke, so I guess it did not really have that much DV. It was the only one I killed so far. Also seen one in DH, but didn't fight it.
Issue Details
Issue Number 2846
Project ADOM (Ancient Domains Of Mystery)
Category All
Status Fixed
Priority 5 - Medium
Affected Version ADOM 1.2.0 pre 21
Fixed Version ADOM 1.2.0 pre 22
Milestone (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




04-20-2014 08:59 PM
The Creator
Anybody else seen this?

Were you on the final level of the frost giant jarl quest when this was noticed? Or had you been there before?

04-20-2014 09:45 PM
Qui Qui is offline
Senior Member
No, I was never there. That moloch was on ICD level and that's where I looked at monster memory.

Tried looking once more now, and it looks normal (I killed 2 more meanwhile).

Code:
Greater molochs seem to have a DV of 2. The maximum DV encountered was 5. They
have a PV of about 100. They seem to have 850-893 hit points (872 on the
average). They seem to have a speed of 64-72 (67 on the average).
They are able to quickly regenerate.
They are immune to ice attacks.
So far you have killed 3 greater molochs. One kill on the average seems to be
worth 174576 experience points.

04-20-2014 11:30 PM
The Creator
Weird. And disconcerting. I have analyzed the code and so far I see no way how this could happen. Hopefully not a sign of memory corruption...

04-21-2014 01:35 AM
Qui Qui is offline
Senior Member
Maybe that level has some sort of DV penalty? And it fell below 0 thus becoming 65533? This number is too close to 65536 for it to be a coincidence...

04-21-2014 03:03 AM
Ancient Member
Quote Originally Posted by adom-admin
Weird. And disconcerting. I have analyzed the code and so far I see no way how this could happen. Hopefully not a sign of memory corruption...
It's a sign of memory corruption.

Sorry,

MeMoRy CoRrUpTiOn.

04-21-2014 07:41 AM
The Creator
Quote Originally Posted by Qui
Maybe that level has some sort of DV penalty? And it fell below 0 thus becoming 65533? This number is too close to 65536 for it to be a coincidence...
You probably have nailed it. Actually a base DV of 5 e.g. could be lowered to -1 by the penalty for berserkering (-6) and there might be something else affecting this (there are lots of fiddly modifiers to DV in ADOM). The monster memory actually converts a signed value to unsigned so that would explain the problem.

I have now limited monster DV to 0 as the absolute minimum so this shouldn't happen again.

Fixed :-)

+ Reply