Codes
WiiRd forum
March 29, 2024, 01:22:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome on the new server

Update 4.3 - do NOT update!
Gecko 1.9.3.1
Should I get a USB Gecko, I wanna hack?
How do I use my USB Gecko
Where can I get WiiRd?
 
   Home   CODE DATABASE GAMEHACKING Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Simple GCT Editor  (Read 14010 times)
Mathew_Wi
Guest
« on: April 21, 2011, 05:54:07 PM »

Just a simple GCT editor as the title says.

I find this very useful if you do something wrong with your GCT and don't want to re-create it. You can just edit the code with this and save it.

Requires .NET framework!

Bugs:
Will crash if you try to add text to the code.

Download:
http://www.mediafire.com/?165bm9ysufafdb9
http://www.mediafire.com/?noo3b0uyg39k05n - v2.0

Changes:
v2.0 
Added a "Quick Save" button so you don't have to choose where to save it every time.
Fixed a bug or two.
« Last Edit: April 30, 2011, 04:26:05 PM by Mathew_Wi » Logged
-LeetGamer-
Elite PSP Coder
Newbie
*

Karma: 0
Posts: 14

iLeetGamer
WWW
« Reply #1 on: April 21, 2011, 05:59:01 PM »

Did you make this?
Logged

-LeetGamer-
Elite PSP Coder
Newbie
*

Karma: 0
Posts: 14

iLeetGamer
WWW
« Reply #2 on: April 21, 2011, 07:55:12 PM »

Yeah, why?

Just wondering, good job.
Logged

memorris
Hacker
Jr. Member
*****

Karma: 52
Posts: 53


« Reply #3 on: April 21, 2011, 09:09:53 PM »

Nice one dude :-)
+karma
Logged
dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #4 on: June 02, 2011, 08:32:59 PM »

I have a suggestion.  Can you integrate Gecko Patch File (GPF) support?

I ask this because there's someone who is using my codes for ToS and he's hitting the code limit.  Some of the codes (e.g. simple ASM edits, data table edits) can probably be put into a gpf, allowing him to add more codes.

If you could add support for turning 00/02/04/06 codes into a gpf, that would be awesome.  People could then plug gpf-compatible codes into your app and make a gpf file, freeing up gct code lines.

Here's the description from the docs that come with Gecko OS describing the patch file.

---

In order to make a GPF (Gecko Patch File) you will need to use a hex editor.  The file should be given named with the game ID and gpf extension and put in a patch folder, that is on the root of your SD card.  Here's the patch file format as described by Nuke:

"[1 byte]   - Number of patches (hex)
 [4 bytes]   - Patch Destination (hex)
 [4 bytes]   - Patch Size (hex)
 [Patch X]   - Patch data size of Patch Size

example

02      - Number of Patches
91000000   - Destination Address
00000002   - Patch Size (this example 2 bytes)
AABB      - The Patch (size of Patch size)
91000004   - next
00000002   - next
CCDD      -

The format will be just a hex blob like this

029100000000000002AABB9100000200000002CCDD

and saved to folder 'patch' on the SD card, with the GameID being the filename with .gpf extension, so for red steel jap, the file name would be REDJ41.gpf placed in folder 'patch'."
Logged

Deathwolf
Hacker
Legendary Member
*****

Karma: 62
Posts: 1795


WWW
« Reply #5 on: June 02, 2011, 08:39:34 PM »

Sorry maybe it's offtopic but is it possible to create a "gecko file loader" which loads any file data from SD card and replace it in the game? Just like the Dynamic SD loader and File Replacement for SSBB but it's a code. I know there is an app called "Riivolution" but I think this app is fail...
Logged

lolz
dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #6 on: June 02, 2011, 08:51:52 PM »

I doubt that is possible.  Gecko OS isn't running when the game is loaded, so it can't redirect disc access.  The Gecko Patch File is only used to patch the game's MEM1 or MEM2 just before Gecko OS turns control over to it. 

If you want to redirect disc access to a file on the SD/USB/Wifi, you have to use Riivolution.  And lemme tell you, redirecting disc access over wifi is cool.   cool   I was doing texture hacks to change a character's hair color, and I would replace the file with the hacked texture on my PC and I could observe the effects in the game without having to reboot it.

I plan on making a Riivolution guide soon.  It is very confusing at first.  But once you get going, it's not so bad.
Logged

Deathwolf
Hacker
Legendary Member
*****

Karma: 62
Posts: 1795


WWW
« Reply #7 on: June 02, 2011, 08:59:14 PM »

Yes texture hacking is funny thats right xD but maybe you know the so called "File Patch code" from Phantom Wings is only NTSC-U.
Sure Riivo. is usefull but many gamers are using USB Loaders and still have the original disc (like me). The problem is, that this code is "impossible" to port to PAL. I'm hanging on it since month and still don't work.... Whatever nobody can port this code so an app or something like this would be nice : / Have you ever tried to port this code? I'm not sure but I think you're NTSC.
« Last Edit: June 02, 2011, 09:01:10 PM by Deathwolf » Logged

lolz
Deathwolf
Hacker
Legendary Member
*****

Karma: 62
Posts: 1795


WWW
« Reply #8 on: June 02, 2011, 10:31:31 PM »

are you able to port with 2 dumps? I'm not sure if you could do that.
Logged

lolz
dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #9 on: June 02, 2011, 10:33:42 PM »

It's possible (open two different instances of Gecko.NET and load a dump into each one), but for a code of such complexity as the File Patch code, I wouldn't dare try porting it without the source and notes that the original hacker used.
Logged

Deathwolf
Hacker
Legendary Member
*****

Karma: 62
Posts: 1795


WWW
« Reply #10 on: June 02, 2011, 10:54:41 PM »

hmm ok because there are LOTS of branches which you have to port. There is only one who ported this code to NTSC-J but it was not so hard as porting it to PAL. So should I better stop porting this code?

Spoiler for Hiden:
File Patch Code v3.5.1 NTSC-UEdit
The code below was created by Phantom Wings.

E0000000 80008000 225664EC 00000000 0401BFE0 4858BE20 065A7E00 00000070 38A00067 38810020 3CE0805A 60E37C18 4BE52531 38A0007F 3883FFE8 38610020 4BE52521 38A00068 60E47C18 38610020 9421FF80 BC410008 38610088 4BA74DB9 7C7C1B78 2C030000 4082000C 38210080 4800001C B8410008 38210080 4BE524E5 38610008 4BA742E1 7C7C1B78 4BA741E8 040223E0 48585BC0 065A7FA0 00000028 80010044 3C608001 6063581C 7C001800 4082000C 7FDDC850 3BDEFFE0 93DB0008 4BA7A424 00000000 0401CD0C 4858B1F4 065A7F00 00000038 2C030000 4182000C 4BA7DD51 4BA74E04 80780008 2C030000 41820014 8118000C 7C634214 7C7B1850 48000008 8078000C 4BA74DE0 00000000 043EE9D8 48000014 043EEBD4 48000014 043D8B9C 48000018 043E9B4C 38600000 043E9D38 38600000 043D8C80 60000000 80000000 80406920 80000001 805A7C00 8A001001 00000000 045A7C10 2F525342 045A7C14 452F7066 80000001 805A7B00 8A001001 00000000 065A7B10 0000000F 2F525342 452F7066 2F736F75 6E642F00 041C6CE0 483E0D20 065A7A00 00000028 9421FF80 BC410008 3C60805A 60637B1F 4BE52931 B8410008 38210080 4BE52995 4BC1F2C4 00000000 065A7900 00000078 9421FF80 7C0802A6 9001000C BC810010 9421FF00 7C872378 54B2BA7E 7CD33378 38800000 9081000C 90810010 90610014 90810018 3880FFFF 9081001C 38610020 90610008 7CE43B78 38A00080 4BE529F5 38610008 4BA752A1 60000000 80210000 B8810010 8001000C 7C0803A6 80210000 4E800020 00000000 043E399C 481C3F04 065A78A0 00000010 80BC0020 7CA59214 3A400000 4BE3C0F4 043DBAEC 481CBDE4 065A78D0 00000018 800302A4 2C130000 41820008 7E609B78 3A600000 4BE3420C 041CDF7C 483D9884 065A7800 00000098 818C0014 9421FF80 BC410008 3D009034 61089D94 7C034000 4082003C 7C882378 3C60804D 60630000 3C80805A 60847B00 7CC53378 38C04200 80E40080 2C070000 40820014 60000000 480000B9 2C030000 41820010 B8410008 80210000 4BC26724 70A501FF 3868FFFF 3C80804C 6084FFFF 7C842A14 38A04001 38A5FFFF 8C040001 9C030001 2C050000 4082FFF0 B8410008 80210000 4BC2670C 141CCF90 483DA770 065A7700 00000048 9421FF80 BC410008 7FE3FB78 3C80805A 60847B00 38A00000 38C04000 480001E5 90640080 807F0008 907A0014 907A005C 907A0074 B8410008 80210000 807F0000 4BC25854 00000000 E0000000 80008000

File Patch Code v3.5.1 NTSC-JEdit
The code below was created by Phantom Wings and ported by ‚Bero

E0000000 80008000 2256606C 00000000 0401BFE0 4858B9A0 065A7980 00000070 38A00067 38810020 3CE0805A 60E37798 4BE52525 38A0007F 3883FFE8 38610020 4BE52515 38A00068 60E47798 38610020 9421FF80 BC410008 38610088 4BA75239 7C7C1B78 2C030000 4082000C 38210080 4800001C B8410008 38210080 4BE524D9 38610008 4BA74761 7C7C1B78 4BA74668 04022360 48585C40 065A7FA0 00000028 80010044 3C608001 6063550C 7C001800 4082000C 7FDDC850 3BDEFFE0 93DB0008 4BA7A3A4 00000000 0401CD0C 4858AD74 065A7A80 00000038 2C030000 4182000C 4BA7E1D1 4BA75284 80780008 2C030000 41820014 8118000C 7C634214 7C7B1850 48000008 8078000C 4BA75260 00000000 043EEA50 48000014 043EEC4C 48000014 043D8C14 48000018 043E9BC4 38600000 043E9DB0 38600000 043D8CF8 60000000 80000000 80406490 80000001 805A7780 8A001001 00000000 045A7790 2F525342 045A7794 4A2F7066 80000001 805A7B00 8A001001 00000000 065A7B10 0000000F 2F525342 4A2F7066 2F736F75 6E642F00 041C6D58 483E0CA8 065A7A00 00000028 9421FF80 BC410008 3C60805A 60637B1F 4BE524A5 B8410008 38210080 4BE52509 4BC1F33C 00000000 065A7900 00000078 9421FF80 7C0802A6 9001000C BC810010 9421FF00 7C872378 54B2BA7E 7CD33378 38800000 9081000C 90810010 90610014 90810018 3880FFFF 9081001C 38610020 90610008 7CE43B78 38A00080 4BE52569 38610008 4BA752A1 60000000 80210000 B8810010 8001000C 7C0803A6 80210000 4E800020 00000000 043E3A14 481C3E8C 065A78A0 00000010 80BC0020 7CA59214 3A400000 4BE3C16C 043DBB64 481CBD6C 065A78D0 00000018 800302A4 2C130000 41820008 7E609B78 3A600000 4BE34284 041CDFF4 483D980C 065A7800 00000098 818C0014 9421FF80 BC410008 3D009034 61089D94 7C034000 4082003C 7C882378 3C60804D 60630000 3C80805A 60847B00 7CC53378 38C04200 80E40080 2C070000 40820014 60000000 480000B9 2C030000 41820010 B8410008 80210000 4BC2679C 70A501FF 3868FFFF 3C80804C 6084FFFF 7C842A14 38A04001 38A5FFFF 8C040001 9C030001 2C050000 4082FFF0 B8410008 80210000 4BC26784 141CD008 483DA6F8 065A7700 00000048 9421FF80 BC410008 7FE3FB78 3C80805A 60847B00 38A00000 38C04000 480001E5 90640080 807F0008 907A0014 907A005C 907A0074 B8410008 80210000 807F0000 4BC258CC 00000000 E0000000 80008000

File Patch Code v3.5.1 PALEdit
The code below was created by Phantom Wings and ported by ,Deathwolf

E0000000 80008000 225683EC 00000000 0401C3A8 4858BA58 065A7E00 00000070 38A00067 38810020 3CE0805A 60E37C18 4BE55140 38A0007F 3883FFE8 38610020 4BE55328 38A00068 60E47C18 38610020 9421FF80 BC410008 38610088 4BA6F178 7C7C1B78 2C030000 4082000C 38210080 4800001C B8410008 38210080 4BE552EC 38610008 4BA6F14C 7C7C1B78 4BA74668 04022360 48585C0C 065A7FA0 00000028 80010044 3C608001 6063581C 7C001800 4082000C 7FDDC850 3BDEFFE0 93DB0008 4BA7A3D8 00000000 0401CD0C 4858B1F4 065A7F00 00000038 2C030000 4182000C 4BA7DCF4 4BA75088 80780008 2C030000 41820014 8118000C 7C634214 7C7B1850 48000008 8078000C 4BA75064 00000000 043EF000 48000014 043EEE04 48000014 043D8FC8 48000018 043E9F78 38600000 043EA164 38600000 043D90AC 60000000 80000000 80409728 80000001 805A7C00 8A001001 00000000 045A7C10 2F525342 045A7C14 452F7066 80000001 805A7B00 8A001001 00000000 065A7B10 0000000F 2F525342 452F7066 2F736F75 6E642F00 041C6CE0 483E0D20 065A7A00 00000028 9421FF80 BC410008 3C60805A 60637B1F 4BE55738 B8410008 38210080 4BE5579C 4BC1FB1C 00000000 065A7900 00000078 9421FF80 7C0802A6 9001000C BC810010 9421FF00 7C872378 54B2BA7E 7CD33378 38800000 9081000C 90810010 90610014 90810018 3880FFFF 9081001C 38610020 90610008 7CE43B78 38A00080 4BE557FC 38610008 4BA75518 60000000 80210000 B8810010 8001000C 7C0803A6 80210000 4E800020 00000000 043E3DC8 481C3AD8 065A78A0 00000010 80BC0020 7CA59214 3A400000 4BE3C51C 043DBF90 481CB940 065A78D0 00000018 800302A4 2C130000 41820008 7E609B78 3A600000 4BE346B0 041CE75C 483D90A4 065A7800 00000098 818C0014 9421FF80 BC410008 3D009034 61089D94 7C034000 4082003C 7C882378 3C60804D 60630000 3C80805A 60847B00 7CC53378 38C04200 80E40080 2C070000 40820014 60000000 480000B9 2C030000 41820010 B8410008 80210000 4BC26F04 70A501FF 3868FFFF 3C80804C 6084FFFF 7C842A14 38A04001 38A5FFFF 8C040001 9C030001 2C050000 4082FFF0 B8410008 80210000 4BC26EEC 141CD770 483D9F90 065A7700 00000048 9421FF80 BC410008 7FE3FB78 3C80805A 60847B00 38A00000 38C04000 480001E5 90640080 807F0008 907A0014 907A005C 907A0074 B8410008 80210000 807F0000 4BC26034 00000000 E0000000 80008000 
 

0401BFE0 = 2C1D00004182001C40800020 = 0401C3A8

stw r3,8(r1) 2C030000906100083BE10070 803FCF50

3884FFFF38C3FFFF38A50001 803FD148

8001CBF4 9421FF307C0802A6 80016FB4
 

« Last Edit: June 02, 2011, 10:59:32 PM by Deathwolf » Logged

lolz
dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #11 on: June 03, 2011, 01:11:45 AM »

Here's an example code for Tales of Symphonia.  It is a simple ASM write, replacing one instruction (a rlwinm.) with another (cmpwi).

Open All Areas [dcx2]
0403BA80 2C08FFFF

This would become the following binary hex string (I put spaces between each part)

01 8003BA80 00000004 2C08FFFF

1 Patch.  Address 8003BA80 (I think you can assume the ba will always be 80000000).  Patch size is 4 bytes - one whole ASM instruction.  The patched bytes are 2C08FFFF, or "cmpwi r8,-1"

I tested this patch file and it works.  I can do another one using an 06 write to the encounter table.

EDIT:

In that even that you could use a recommendation, the hex editing application that I use is XVI hex editor.  It is a decent freeware hex editor.  That's how I made and viewed that gpf file.

* RT4EAF.gpf (0.01 KB - downloaded 175 times.)
« Last Edit: June 03, 2011, 01:17:44 AM by dcx2 » Logged

dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #12 on: June 03, 2011, 02:03:46 PM »

Like I said, just assume ba = 80000000 always.  That covers 99% of the codes, and the remaining 1% can hack it with a hex editor.

Also, if you support just 00, 02, 04, and 06 code types, that should cover 99% of the cases where this would be used, too.

If you need help, just ask.  I know a thing or two about .NET programming.  Wink  I would do it myself, but you already have an app going that reads GCT, and I think this would be a great feature for it and would get you some more traffic.
Logged

dcx2
Computer Engineer
Moderator
Legendary Member
*****

Karma: 165
Posts: 3468


WWW
« Reply #13 on: June 14, 2011, 01:34:57 AM »

FYI

You can make your GCT editor resizeable by using the anchor property of the textbox and attaching it to all four sides.

When you open a GCT and then remove codes and save over it, the leftover bits from the old codes are still there and the file won't get smaller.  This can be really bad if your GCT at one point had too many codes, because it will still have too many.

You should end the codes with FFFFFFFF FFFFFFFF

Kudos for correct usage of the ... on the buttons.
Logged

Foxx
Disgruntled
Moderator
Full Member
*****

Karma: 20
Posts: 189

FoxxOTG FoxxOTG
WWW
« Reply #14 on: March 27, 2014, 08:17:25 AM »

It has been a long time since this old skool wii hacker has been around. Is there another download link for this GCT Creator? If not, do you need it hosted?

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!