hello,
some time ago i have found some code injection code (mhg monster health display) and it worked just fine ... later i noticed that there is a minor bug in it: when a monster is poisoned, it goes like 6 HP -> 1 HP -> 65532 HP but of course it should go as 6 HP -> 1 HP -> -4 HP
so what has to be changed in the code to change from unsigned to signed short?
i tried to change some things in the c++ like sentence "%s: %d/%d" (data bytes interpreted as ascii) but it didnt affect the display of signed/unsigned short (see first 3 codelines 057C5000 25733a20, 057C5004 25642F25, 057C5008 64000000)
some time ago i have found some code injection code (mhg monster health display) and it worked just fine ... later i noticed that there is a minor bug in it: when a monster is poisoned, it goes like 6 HP -> 1 HP -> 65532 HP but of course it should go as 6 HP -> 1 HP -> -4 HP
so what has to be changed in the code to change from unsigned to signed short?
i tried to change some things in the c++ like sentence "%s: %d/%d" (data bytes interpreted as ascii) but it didnt affect the display of signed/unsigned short (see first 3 codelines 057C5000 25733a20, 057C5004 25642F25, 057C5008 64000000)
- Code:
$Monster HP Display (Bottom Left Corner, Green) [unknown japanese code]
057C5000 25733a20
057C5004 25642F25
057C5008 64000000
057C5200 3B000000
057C5204 3AE00000
057C5208 38600012
057C520C 38800012
057C5210 4A855B15
057C5214 38600003
057C5218 4AAACE39
057C521C 38600036
057C5220 3897018C
057C5224 4A855B15
057C5228 3E808073
057C522C 3A947D68
057C5230 1CB80A54
057C5234 7E942A14
057C5238 88940002
057C523C 2C040000
057C5240 41820030
057C5244 3C60817C
057C5248 38635000
057C524C 3EA08068
057C5250 5484103A
057C5254 7EB52214
057C5258 80958D98
057C525C A0B40302
057C5260 A0D407A2
057C5264 4CE73982
057C5268 4AAABCA1
057C526C 3AF70014
057C5270 3B180001
057C5274 2C18000F
057C5278 4081FF90
057C527C 38600012
057C5280 4AA39F04
041FF180 495C6080
*don't use in training mode, original code found on some japanese site, some bits here and there changed by viciousShadow
Last edited by viciousShadow on 4/18/2014, 8:30 am; edited 2 times in total