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
» Lego Stars Wars: The Complete Saga [RLGE64]
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty11/12/2024, 3:19 am by SnB@BWH

» JMaster Duel Bot: A Yu-Gi-Oh! Master Duel Bot and Trainer for Steam
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty11/10/2024, 5:26 am by Bully@WiiPlaza

» Error Injecting Drool Links Saliva Mod Menu
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty11/10/2024, 5:24 am by Bully@WiiPlaza

» USB Gecko problems with some games
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty10/16/2024, 1:59 pm by Reclaimer Shawn

» Metal Gear Solid V The Phantom Pain X Flashpoint Batman Gameplay unedited [Seth@WiiPlaza]
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty9/23/2024, 12:48 pm by Seth@WiiPlaza

» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty8/9/2024, 7:09 am by SnB@BWH

» ASM <> Gecko Code Converter
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty7/29/2024, 11:15 am by Mac11ngAround

» German With a Jackhammer
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty7/28/2024, 3:42 pm by SnB@BWH

» Wii RAM Hacking: Pointers and ASM
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty7/23/2024, 1:54 pm by Mac11ngAround

» IBM AIX Assembler Programming Reference - Useful For PPC ASM
Prisoners of War - 'Enemies Run Back When They Get Too Close' Code Tutorial Empty7/21/2024, 5:00 pm by Mac11ngAround

Search
 
 

Display results as :
 


Rechercher Advanced Search

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

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