ShenoxVII
 (in all seriousness, you're a prick)
Level: 24
   

Posts: 5/111
EXP: 76001 For next: 2124
Since: 10-09-10
Since last post: 9.0 years Last activity: 9.0 years
|
| Posted on 10-23-10 05:12:59 PM |
Link
| |
http://www.mediafire.com/?o8266a694qo2wlq
Read read me for information.
This just corrects the type of gameshark code and turns the address of the code into a offset and gives you your value back and lets you do the rest. I cut off a lot of the program in this post so I could work the bugs out. I'm still working on the program to directly edit a rom and fix the gameshark code if it happens to be outdated or if something is wrong with it. Also to self correct rom with chksum is another thing on to due list. This program I think will make some people's life just a bit easier. Still a lot of bugs so don't complain if you are reading this. |
Flames540
User
Level: 10
   

Posts: 12/16
EXP: 4185 For next: 229
Since: 08-17-10
Since last post: 11.5 years Last activity: 10.5 years
|
| Posted on 10-23-10 06:41:44 PM |
Link
| |
so let's say if I insert a gameshark code into your program.. it'll overwrite the orginal values so that the gameshark code is always activated? if so... good work
if not, please explain more understandable
Flames540
____________________ -Hardstyle!- www.lsdb.nl -Hardstyle!- |
MarIO0
Member
Level: 16
   
Posts: 15/43
EXP: 19175 For next: 1081
Since: 09-03-09
Since last post: 9.3 years Last activity: 8.6 years
|
| Posted on 10-23-10 07:42:54 PM |
Link
| |
| What kind of Gamesharks can this program patch? Patches to the ROM, patches to the RAM, or both? |
ShenoxVII
 (in all seriousness, you're a prick)
Level: 24
   

Posts: 6/111
EXP: 76001 For next: 2124
Since: 10-09-10
Since last post: 9.0 years Last activity: 9.0 years
|
| Posted on 10-23-10 08:18:55 PM |
Link
| |
Originally posted by MarIO0 What kind of Gamesharks can this program patch? Patches to the ROM, patches to the RAM, or both?
Read read me. It will directly patch to the rom when I fix some of the check gameshark feature and when I fix a few other things ill work on directly patching to extended m64 roms. It currently just takes the code that you broke down and put the type and stuff in the boxes and turns that into a offset in hex decimal in ROM and then gives you your value. I just made this post so people will know it's here and you can see it. I'm still working on it. More stuff to come soon. |
ShenoxVII
 (in all seriousness, you're a prick)
Level: 24
   

Posts: 7/111
EXP: 76001 For next: 2124
Since: 10-09-10
Since last post: 9.0 years Last activity: 9.0 years
|
| Posted on 10-23-10 08:19:33 PM |
Link
| |
Originally posted by Flames540 so let's say if I insert a gameshark code into your program.. it'll overwrite the orginal values so that the gameshark code is always activated? if so... good work
if not, please explain more understandable
Flames540
Not right now it does not. It will soon after I get the direct rom editing fixed and a few other features fixed. |
Lyskar
12210          -The Chaos within trumps the Chaos without-
Level: 192
   

Posts: 6771/12211
EXP: 99321012 For next: 552559
Since: 07-03-07
From: 52-2-88-7
Since last post: 7.4 years Last activity: 7.3 years
|
| Posted on 10-23-10 08:43:51 PM |
Link
| |
| Stats | Time/Date
10-23-10 02:43:51 PM
Posts
6771
Days Here
1208
Level
120
|
| | Metal_Man88's Post | Currently it just deciphers Gameshark codes into the actual locations of where the rom is being edited; then you have to go in a hex editor and do the rest, if I read it correctly.
____________________
|
| |
|
Flames540
User
Level: 10
   

Posts: 14/16
EXP: 4185 For next: 229
Since: 08-17-10
Since last post: 11.5 years Last activity: 10.5 years
|
| Posted on 10-23-10 08:55:42 PM |
Link
| |
Originally posted by Metal_Man88 Currently it just deciphers Gameshark codes into the actual locations of where the rom is being edited; then you have to go in a hex editor and do the rest, if I read it correctly.
yeah that was probably the programs main function by now
Flames540
____________________ -Hardstyle!- www.lsdb.nl -Hardstyle!- |
RDX
Level: 32
   
Posts: 123/198
EXP: 193546 For next: 12896
Since: 02-14-09
Since last post: 10.8 years Last activity: 10.5 years
|
| Posted on 10-23-10 09:10:13 PM |
Link
| |
Originally posted by ShenoxVII
Originally posted by Flames540 so let's say if I insert a gameshark code into your program.. it'll overwrite the orginal values so that the gameshark code is always activated? if so... good work
if not, please explain more understandable
Flames540
Not right now it does not. It will soon after I get the direct rom editing fixed and a few other features fixed.
That'll be pretty sweet. Noob hackers such as myself greatly appreciate what you're doing, I wasn't planning on learning how to ASM hack anyway so this'll help a lot.
____________________
 |
ShenoxVII
 (in all seriousness, you're a prick)
Level: 24
   

Posts: 8/111
EXP: 76001 For next: 2124
Since: 10-09-10
Since last post: 9.0 years Last activity: 9.0 years
|
| Posted on 10-23-10 09:25:39 PM |
Link
| |
Originally posted by Metal_Man88 Currently it just deciphers Gameshark codes into the actual locations of where the rom is being edited; then you have to go in a hex editor and do the rest, if I read it correctly.
Yea, I'm still looking for a way to turn program into hex viewing, then make it go to the offset of textbox 2 and then change next 2 bytes to the value's then save it into the rom. Much work to be done, the biggest block in the road for me is making a hex editor inside a program that is already a advance calculator and gameshark code fixer sort of, sense it can translate older gamesharks into 3.0 version ones, which is the kind pj64. Iv searched google, and tried many possible codes but I can't get it to correctly open a program, view in "&H" which tells the program to view or see something in hex, then to have it fully view the file, say a rom. It will only show the first byte of the full rom. It's getting annoying that I can't do anything to stop this. |
Lyskar
12210          -The Chaos within trumps the Chaos without-
Level: 192
   

Posts: 6773/12211
EXP: 99321012 For next: 552559
Since: 07-03-07
From: 52-2-88-7
Since last post: 7.4 years Last activity: 7.3 years
|
| Posted on 10-23-10 10:00:33 PM (last edited by Metal_Man88 at 10-23-10 07:07 PM) |
Link
| |
| Stats | Time/Date
10-23-10 04:00:33 PM
Posts
6773
Days Here
1208
Level
120
|
| | Metal_Man88's Post | I get the feeling it may be presenting it in an array or stack fashion. I couldn't tell without the code (and I hope it's C/C++ or Java, since I wouldn't be sure of how to modify it in other languages) but if you gave me the offending snippet I might be able to guess at it.
Edit: Visual Basic? D'oh.
____________________
|
| |
|
ShenoxVII
 (in all seriousness, you're a prick)
Level: 24
   

Posts: 10/111
EXP: 76001 For next: 2124
Since: 10-09-10
Since last post: 9.0 years Last activity: 9.0 years
|
| Posted on 10-24-10 02:06:03 AM |
Link
| |
Originally posted by Metal_Man88 I get the feeling it may be presenting it in an array or stack fashion. I couldn't tell without the code (and I hope it's C/C++ or Java, since I wouldn't be sure of how to modify it in other languages) but if you gave me the offending snippet I might be able to guess at it.
Edit: Visual Basic? D'oh.
I only use C/C++ for emulation. Java for emulinker hacks for kaillera. VB for my own personal stuff because it is very visual and very basic, sort of. |
MarIO0
Member
Level: 16
   
Posts: 16/43
EXP: 19175 For next: 1081
Since: 09-03-09
Since last post: 9.3 years Last activity: 8.6 years
|
| Posted on 10-24-10 06:14:27 AM |
Link
| |
Originally posted by ShenoxVII
Originally posted by Metal_Man88 Currently it just deciphers Gameshark codes into the actual locations of where the rom is being edited; then you have to go in a hex editor and do the rest, if I read it correctly.
Yea, I'm still looking for a way to turn program into hex viewing, then make it go to the offset of textbox 2 and then change next 2 bytes to the value's then save it into the rom. Much work to be done, the biggest block in the road for me is making a hex editor inside a program that is already a advance calculator and gameshark code fixer sort of, sense it can translate older gamesharks into 3.0 version ones, which is the kind pj64. Iv searched google, and tried many possible codes but I can't get it to correctly open a program, view in "&H" which tells the program to view or see something in hex, then to have it fully view the file, say a rom. It will only show the first byte of the full rom. It's getting annoying that I can't do anything to stop this.
Mmm, sorry for making you look like a noob, but you absolutely don't need an hex editor to modify a file in any programming language I know. Assuming you're using C# (which is quite probable), it's as easy as:
byte[] rom = File.ReadAllBytes("C:/m64.z64")
rom[0x1234] = (byte)0x80; // Change byte at position 0x1234 to value 0x80
// Other operations
File.WriteAllBytes("C:/modified_m64.z64", rom)
|
Lyskar
12210          -The Chaos within trumps the Chaos without-
Level: 192
   

Posts: 6794/12211
EXP: 99321012 For next: 552559
Since: 07-03-07
From: 52-2-88-7
Since last post: 7.4 years Last activity: 7.3 years
|
| Posted on 10-24-10 08:29:45 AM |
Link
| |
| Stats | Time/Date
10-24-10 02:29:45 AM
Posts
6794
Days Here
1208
Level
120
|
| | Metal_Man88's Post | He's using VB, but it is true--you can just open the file and find the offset, change it, and save it without having to load it in hex view or whatever. Just have to know how to get to the right place too.
____________________
|
| |
|
ShenoxVII
 (in all seriousness, you're a prick)
Level: 24
   

Posts: 11/111
EXP: 76001 For next: 2124
Since: 10-09-10
Since last post: 9.0 years Last activity: 9.0 years
|
| Posted on 10-24-10 01:10:57 PM |
Link
| |
Originally posted by MarIO0
Mmm, sorry for making you look like a noob, but you absolutely don't need an hex editor to modify a file in any programming language I know. Assuming you're using C# (which is quite probable), it's as easy as:
byte[] rom = File.ReadAllBytes("C:/m64.z64")
rom[0x1234] = (byte)0x80; // Change byte at position 0x1234 to value 0x80
// Other operations
File.WriteAllBytes("C:/modified_m64.z64", rom)
Thanks, I never done my own project or program using C/C#/C++ or anything like that, I only used C programing language when I was dealing with emulation and some rom hacks. With VB it's probably not as open to what I could do but it is much easier in my opinion. I suppose because I'm not really more then a year of experience with java, C, and VB when most people like frauber or VLtone have like yearS of experience. Is there anyway I could launch two different programing languages into one project file to work all as one problem, and just make it so my gs to offset button can access the C written program and then the C written program can also access the strings I used in VB so I could get the offset and value?
|
MarIO0
Member
Level: 16
   
Posts: 17/43
EXP: 19175 For next: 1081
Since: 09-03-09
Since last post: 9.3 years Last activity: 8.6 years
|
| Posted on 10-24-10 01:26:46 PM (last edited by MarIO0 at 10-24-10 10:31 AM) |
Link
| |
Originally posted by ShenoxVII
Originally posted by MarIO0
Mmm, sorry for making you look like a noob, but you absolutely don't need an hex editor to modify a file in any programming language I know. Assuming you're using C# (which is quite probable), it's as easy as:
byte[] rom = File.ReadAllBytes("C:/m64.z64")
rom[0x1234] = (byte)0x80; // Change byte at position 0x1234 to value 0x80
// Other operations
File.WriteAllBytes("C:/modified_m64.z64", rom)
Thanks, I never done my own project or program using C/C#/C++ or anything like that, I only used C programing language when I was dealing with emulation and some rom hacks. With VB it's probably not as open to what I could do but it is much easier in my opinion. I suppose because I'm not really more then a year of experience with java, C, and VB when most people like frauber or VLtone have like yearS of experience. Is there anyway I could launch two different programing languages into one project file to work all as one problem, and just make it so my gs to offset button can access the C written program and then the C written program can also access the strings I used in VB so I could get the offset and value?
From the screenshot it looks like you may be using VB.NET, in this case you have the functions I used above available in the .NET standard library(1, 2). If you're using an older VB then I have no idea, but I'm sure that there's some way to do it.
About mixing different languages, I wouldn't do it, but if you want to do it anyway: If you're using .NET, I believe you can freely mix any .NET language (like C# and VB.NET) in a project. If you're not using .NET, it gets a lot more complicated, but you can use an external process, or you can also use C libraries with VB. |
ShenoxVII
 (in all seriousness, you're a prick)
Level: 24
   

Posts: 13/111
EXP: 76001 For next: 2124
Since: 10-09-10
Since last post: 9.0 years Last activity: 9.0 years
|
| Posted on 10-24-10 03:06:01 PM |
Link
| |
Originally posted by MarIO0
Originally posted by ShenoxVII
Originally posted by MarIO0
Mmm, sorry for making you look like a noob, but you absolutely don't need an hex editor to modify a file in any programming language I know. Assuming you're using C# (which is quite probable), it's as easy as:
byte[] rom = File.ReadAllBytes("C:/m64.z64")
rom[0x1234] = (byte)0x80; // Change byte at position 0x1234 to value 0x80
// Other operations
File.WriteAllBytes("C:/modified_m64.z64", rom)
Thanks, I never done my own project or program using C/C#/C++ or anything like that, I only used C programing language when I was dealing with emulation and some rom hacks. With VB it's probably not as open to what I could do but it is much easier in my opinion. I suppose because I'm not really more then a year of experience with java, C, and VB when most people like frauber or VLtone have like yearS of experience. Is there anyway I could launch two different programing languages into one project file to work all as one problem, and just make it so my gs to offset button can access the C written program and then the C written program can also access the strings I used in VB so I could get the offset and value?
From the screenshot it looks like you may be using VB.NET, in this case you have the functions I used above available in the .NET standard library(1, 2). If you're using an older VB then I have no idea, but I'm sure that there's some way to do it.
About mixing different languages, I wouldn't do it, but if you want to do it anyway: If you're using .NET, I believe you can freely mix any .NET language (like C# and VB.NET) in a project. If you're not using .NET, it gets a lot more complicated, but you can use an external process, or you can also use C libraries with VB.
I'm not 100% sure. I just need a way to view a file in hex decimal with VB and the rest I can do on my own. I just can't figure out a way to, i tried lots of things, many google searches and still no find.
|
Lyskar
12210          -The Chaos within trumps the Chaos without-
Level: 192
   

Posts: 7347/12211
EXP: 99321012 For next: 552559
Since: 07-03-07
From: 52-2-88-7
Since last post: 7.4 years Last activity: 7.3 years
|
| Posted on 12-12-10 09:17:27 PM |
Link
| |
| Stats | Time/Date
12-12-10 03:17:27 PM
Posts
7347
Days Here
1258
Level
125
|
| | Metal_Man88's Post | This topic was left open on the premise the utility would actually be finished. It was not, and thus remains a simple program which cannot do what it says it should do. To save the time and sanity of would-be newbies who would waste their time with it, I am trashing this thread.
Shenox, if you figure out how to actually program things which do their job, make another topic then. Otherwise, I am done with these half-made program shenanigans.
____________________
|
| |
|