BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the community, you simply need to register an account or log into an existing one.

Be sure to check out disposable e-mail services, in case you prefer using one for this site instead of your legit address: http://10minutemail.com/10MinuteMail/

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can see and download all content provided for regular members even without an account!

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Search
 
 

Display results as :
 


Rechercher Advanced Search

May 2018
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Country Statistics
Free counters!
LaTeX Generator


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

viciousShadow

avatar
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)

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
[EDIT]



Last edited by viciousShadow on 4/18/2014, 8:30 am; edited 2 times in total

SnB@BWH

avatar
Admin & Writer
What do you mean by C++? I know it's a programming language, but what do you mean you changed stuff in the C++ code? Neutral That isn't C++, that's Hexadecimal. Wink Also, please do not take credits even if there is none. Someone already made the code and took the addresses and it wasn't you. You don't get any credits at all for making a derivative code. Wink


_________________

viciousShadow

avatar
shitnbitch wrote:What do you mean by C++? I know it's a programming language, but what do you mean you changed stuff in the C++ code?  Neutral  That isn't C++, that's Hexadecimal.  Wink  Also, please do not take credits even if there is none. Someone already made the code and took the addresses and it wasn't you. You don't get any credits at all for making a derivative code.  Wink

i just noticed some errors, fixed in post 1.
removed credits (tho i like my derivative code way better than the original XD)

added more detail explanation in post 1
(if you read the data of code line 1/2/3 as ascii, it reads as "%s: %d/%d" which i know from c++(or at least similar). it means write on screen: [first string type variable content] + ": " + [2nd short variable content] + "/" + [third short type variable content]

in game it looks like: "Rathalos: 4578/5000" (monstername: current hp/max hp)

i hope its more clear now

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum