Hacking Simple Cheat Code Loader

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
I threw this up in the Post your cheat codes thread, but I fixed a couple bugs. Anyway,

***CHANGE LOG***
Added a simple check to ensure to ignore cheats or recheats file that has codes in it. This way it won't error out on zero length lists.
Added some simple error detection and provided some level of feedback on the activity.
Revised parsing logic to use Regular Expresions.
Parses Pointer Codes with Offsets See below for examples of offsets.

*****************************************************************************************************
Make sure you change the WiiU IP Address in Line: 4
******************************************************************************************************

This is a simple Cheat Code Loader. Just unzip and install in the PyGecko folder. Run the Kernel exploit and PyGecko Code Handler on the Wii U. Once you've loaded your game and your cheats are in the files you want. Just double click "cheats.py".

If you are using someone's hosted kernel exploit and tcpgecko handler, than you will still need to download pyGecko from the github. Its at: https://github.com/wiiudev/pyGecko Download the zip folder and install wherever you want, unzip the file I attached into that folder. You will also need at Python 2.7 installed. To run it, connect to the hosted site, run the kernel exploit, the tcpgecko installer and than go to the main menu and launch your game. Once you've launched the game, you can double click cheat.py and it will auto auto connect, grab the codes in cheat.txt, and recheat.txt and load the codes into memory.


This has to have files included, "cheats.txt" and "recheats.txt". This codes stored in cheats.txt are one time run only required, such as infinite lives for Mario 3d World, which uses a pointer code. The codes stored in recheats.txt are ones that you want to keep constant. Example in the recheat is for Mario 3d World, sets the time to not reduce and autoloads a P-Leaf in your 2nd container.

To be clear, any line in cheats or recheats.txt thats with a # is a comment and is ignored by the script. Any code you want to run is must be in this example:

Examples Codes:

This is a simple address/value code. Just adjust the value at this address:
Code:
378D6AD4 0000FFFF


This is a simple Pointer address/value code. It resolves the address in the brackets and uses that as the address/value
Code:
[378D3738] 0000FFFF

This is a complex Pointer address/value code. It will resolve the address in the brackets and than adds the hex value to it. This code is where the adjustment is a value that is part of a structure.
Code:
[2E341062 + 34] 0000FFFF
   or:
[2E341062] + 34 0000FFFF

This is a complex Pointer in Pointer address/value code.It resolves the address in the brackets, and adds the Modifier to it. It than it resolves that Pointer code and than subtracts the offset. It uses the result of that expression as the address/value
Code:
[[1158342B + 34] - 6F] 0000FFFF


Any code that is in the format of [xxxxxxxx] is a pointer code. It is recursive dereference as many pointers as necessary.




I don't know if anyone finds it useful, but if you do, credits belong to others. This is mostly a wrapper for some functions already in pygecko, with some simple file parsing.

Marionumber1
NWPlayer123
Mathew_Wi
CosmoCourtney
Cyan
 

Attachments

  • cheat.zip
    1.8 KB · Views: 1,685
Last edited by Onion_Knight,

BENETNATH

Well-Known Member
Newcomer
Joined
Nov 21, 2014
Messages
74
Trophies
0
Age
45
XP
152
Country
France
good, so the recheat is constantly modifying the same value again and again ?
do you have the possibility to modify the time interval ?
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,455
Country
So if I wanted max health in Zelda Wind Waker I would change what? or do I just copy & paste the code in anywhere in the .txt file and then click on python/cheat:-

# Example
# Offset Pointer Addr Addr Value
# 378D3738 [378D6A38] -> 378D6A38 0000ffff

#Super Mario 3D World

#Infinite Lives
#[378D3738] 0000ffff
#Change time to 999
378D6AD4 0000FFFF
378D6B9C 00000006

ZWW Max Life addr.> 15073BC3 00000050

Is it not just easier to use Gecko instead? could do with a bit more explaining in OP for people that are not sure ;)
 
Last edited by Reecey,

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
So if I wanted max health in Zelda Wind Waker I would change what?:-
# Example
# Offset Pointer Addr Addr Value
# 378D3738 [378D6A38] -> 378D6A38 0000ffff

#Super Mario 3D World

#Infinite Lives
#[378D3738] 0000ffff
#Change time to 999
378D6AD4 0000FFFF
378D6B9C 00000006

ZWW Max Life> 15073BC3 50
#comment out the Mario codes or delete them. I'm assuming this is not a pointer value. If you want it to keep your hearts at a constant value. Add the code
15073bc3 00000050
To the recheats.txt
 
  • Like
Reactions: eco95 and Reecey

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,455
Country
#comment out the Mario codes or delete them. I'm assuming this is not a pointer value. If you want it to keep your hearts at a constant value. Add the code
15073bc3 00000050
To the recheats.txt
so I just delete all that and add the code with a # and that's it, just then click on python/cheat or do you have to write all the #Mario/offset pointer addr. stuff as well?
 

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
so I just delete all that and add the code with a # and that's it, just then click on python/cheat or do you have to write all the #Mario/pointer addr. stuff as well?
Anything with a # is treated as a comment. Codes you want run should have no comment
 
  • Like
Reactions: eco95

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,455
Country
I will later, on my phone at the moment.

You will also want remove anything from the cheats so those codes aren't run
Sorry don't want to come across annoying or nothing keep asking but would this be ok then for SM3DW for recheats in the txt file:-
378D6AD4 0000FFFF
378D7E04 0000FFFF
378D6B9C 00000002

That's all I would write and then click on the cheat?
 

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
Sorry don't want to come across annoying or nothing but would this be ok then for SM3DW for recheats in the txt file:-
378D6AD4 0000FFFF
378D7E04 0000FFFF
378D6B9C 00000002

That's all I would write?
what codes are those?
I recognize the Secondary modifier to always have a bell. The second looks like infinite lives
for the second profile. Is the first the unlimited time?
 
  • Like
Reactions: eco95

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,455
Country
what codes are those?
I recognize the Secondary modifier to always have a bell. The second looks like infinite lives
for the second profile. Is the first the unlimited time?
I didn't want to write next to them in case you got confused and then said no you write nothing next to the codes in the txt file.

Last one bell, first one 999, middle one infinite lives.
 

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
Yeah that's it. I didn't want to write next to them in case you got confused and then said no you write nothing next to the codes in the txt file.
Don't use the infinite life one. The code in cheats.txt is a pointer code for all save profiles that will give you unlimited lives in any profile and is only needed to run once. It gets saved into your profile and survives reboits
 
  • Like
Reactions: eco95

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,455
Country
Don't use the infinite life one. The code in cheats.txt is a pointer code for all save profiles that will give you unlimited lives in any profile and is only needed to run once. It gets saved into your profile and survives reboits
I'm lost dude, serious. Its ok I will wait for you to update.

I think I may have it> you don't want to put infinite lives into recheats cause that only needs booting once so say for example put 999 into recheats so the counter keeps resetting?, is that about correct?
 

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
I'm lost dude, serious. Its ok I will wait for you to update.

I think I may have it> you don't want to put infinite lives into recheats cause that only needs booting once so say for example put 999 into recheats so the counter keeps resetting?, is that about it?
Right, it's not necessary. You can do it, but you don't have to.
Once your codes in cheat and recheats are aet the way you want your good to go.
 
  • Like
Reactions: eco95 and Reecey

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
Can someone explain how to do this and use PyGecko?


If you have built and are hosting the Wii U Kernel Exploit at home, and are using TCPGecko, you already have the files you need. Just unzip the file in your pyGecko directory as it uses tcpgecko.py.

If you are using someone's hosted kernel exploit and tcpgecko handler, than you will still need to download pyGecko from the github. Its at: https://github.com/wiiudev/pyGecko Download the zip folder and install wherever you want, unzip the file I attached into that folder. You will also need at Python 2.7 installed. To run it, connect to the hosted site, run the kernel exploit, the tcpgecko installer and than go to the main menu and launch your game. Once you've launched the game, you can double click cheat.py and it will auto auto connect, grab the codes in cheat.txt, and recheat.txt and load the codes into memory.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Nut on the hill