BullyWiiHacks
Welcome dear guest! Very Happy

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

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

You can probably see and download most content provided for regular members even without an account.

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

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

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

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

You can probably see and download most 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
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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
Latest topics
» Wii Play Tanks
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty3/24/2024, 2:46 pm by helpmeout

» [Bypass Paywalls] (Global) @magnolia1234 - GitLab
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty3/18/2024, 3:55 am by Seth@WiiPlaza

» [Download] Mary Shelley's Frankenhole
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty3/16/2024, 8:29 am by Seth@WiiPlaza

» Completely Custom Modded Controllers (Undetectable)
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty3/5/2024, 1:55 pm by Shadow@BWH

» (Zombies) Drink perks code?
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty3/5/2024, 1:24 pm by Shadow@BWH

» Die Rückkehr zu STEAM und WARFACE
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty3/2/2024, 3:54 am by Seth@WiiPlaza

» First person hand model change?
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty2/28/2024, 4:53 am by Ad3lamac611

» {RELEASE} Field Raider Firefox v1.72 by Seth@WiiPlaza
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty2/21/2024, 8:52 am by naxil

» FREE Language-Learning YouTube Channel, Best Way to Learn Language
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty2/19/2024, 10:40 am by SnB@BWH

» Need help to get command line console code to work
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty2/19/2024, 6:41 am by Bully@WiiPlaza

Search
 
 

Display results as :
 


Rechercher Advanced Search

March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial

Go down  Message [Page 1 of 1]

SnB@BWH

SnB@BWH
Admin & Writer

This tutorial will assume you already know / have the following:

-FCEUX - NES Emulator
-How to search for codes (prior usage of Cheat Engine will come in handy)
-Basic knowledge of 6502 Assembly (it's rather easy.  Wink  )

1. Start off by playing the game and coming up to the first enemy. Make sure he doesn't hit you just yet.
2. Pause the game (always through FCEUX, NOT the game itself!)
3. Open up RAM Search and search for Equal to Value 0.
4. Let him punch you and as soon as he does and you see your character flinch, pause the game.
5. Open up RAM Search and search for Equal to Value = 1 or Equal to Changes = 1 (will produce more results and therefore take longer to narrow results).
Note: The value will also change when he isn't punching you.
6. Repeat steps 3 - 5 according to the value (not punching = 0, punching = 1)
7. After repeating those steps some times, you will have a narrowed down results list.
8. You should soon have 1 - 2 values. Unpause the game and analyse the results. If any values seem off, like ones that are changing randomly or really fast, eliminate those, because you should know that a punch is a quick movement and a boolean (on / off, yes / no, true / false or as the computer sees it: 0 / 1) and therefore, should only be changing once every so often, but specifically when you get hit, not randomly or really fast without stopping.
9. If you did it right, you should have just one value left.
10. Time to use the debugger! Open it up and add a new breakpoint. Input the address you got (should be $04BF) and checkoff Write. Play the game and as soon as the value changes, the debugger should pop up with an arrow where the 6502 ASM is. This indicates that the address $04BF is linked to this ASM code.

Code:
>07:DAED:9D B8 04  STA $04B8,X @ $04BF = #$00
 07:DAF0:A9 00     LDA #$00
 07:DAF2:9D C8 04  STA $04C8,X @ $04CF = #$51
 07:DAF5:9D D8 04  STA $04D8,X @ $04DF = #$00

This code, in layman's terms, is telling the game to STore Accumulator X from address $04B8 into address $04BF with value #$00 (Hex). Then LoaD Accumulator (put the values into function) with the value that was stored. Basically, telling the game's enemy it has the ability to punch. We want to tell it that it doesn't have that ability. So, we need to tell it to do the opposite.

This is what you need to take a look at:

DAED = ASM Address
9D = Store Accumulator X Absolute

In order to do the opposite, we need to know the opposite of 9D, which is BD (LoaD Accumulator X Absolute). Here you can find the 6502 Instruction Set Opposites HERE.

Open up the Game Genie Encoder / Decoder. Paste the address DAED, compare value 9D and value BD. Then click Add to Cheat List.

Enemies Run Back When They Get Too Close [Hucklow]
SUVSSXSO

I should've called the code Enemies Don't Punch, just to shorten it up, lol

There you go! You (hopefully) learned how to make this code. This can prolly be applied to different games with possibly a bit of tweaking and maybe different effects. What are you waiting?! Go ahead and apply what you now know to other games!


_________________
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Simple10

Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial LSTjSyDDiscord: SnB_BWH

Click HERE to earn free bitcoin, litecoin, dogecoin, and dash!

Win Free Bitcoins every hour!

Back to top  Message [Page 1 of 1]

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