Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-07-24 15:25:58

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 496/1,199
Website

Writing a Hacking tool

I am going to write a hacking tool, but the problem is that I don't know how to write an executable program. My idea is making a program with the same idea of a scripting program, like PKSV, PokéText, etc.
So, the point is writing a program that loads data from a ROM, and reads the hex bytes as text commands, which you can change with the program, and save it back as hex bytes into the ROM. Does anyone know where I have to start writing a program like this?


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#2 2013-07-24 15:53:46

AtecainCorp.
Member
Registered: 2013-04-14
Post 352/627

Re: Writing a Hacking tool

But PKSV Read GSC data. It was dumb to use another editor. But if you want create them. First disassamble PKSV and check how they working. After they start write again.


http://hax.iimarck.us/topic/3435/ - Pokemon Ruby GEN V GRAPHIC hack Thread
http://hax.iimarck.us/topic/3476/ - Unused Music Midi Thread
http://hax.iimarck.us/topic/3579/ - Some info about region Thonsu

Offline

#3 2013-07-24 16:12:07

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 2,804/3,512

Re: Writing a Hacking tool

I'm assuming he is wanting to edit something else besides scripts, but in a format similar to PKSV. I'm gonna go out on a limb here and assume he is wanting to be able to decompile music into things like "Octave 2, B#" "Volume 20" and things like that, then compile it back to the rom. But I could be wrong.

Offline

#4 2013-07-24 17:34:02

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 497/1,199
Website

Re: Writing a Hacking tool

Mateo wrote:

I'm assuming he is wanting to edit something else besides scripts, but in a format similar to PKSV. I'm gonna go out on a limb here and assume he is wanting to be able to decompile music into things like "Octave 2, B#" "Volume 20" and things like that, then compile it back to the rom. But I could be wrong.

Yes. That's exactly what I want to make. I want to make a Gen I music editor which loads the code of a selected song, displays it as words, make it able it edit as words, and be able to save it back in the ROM and it get converted back to the code. I am now writing a list of which byte(s) must be turned in which word, but I don't see a way to make an EXE program executing this progress.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#5 2013-07-24 19:13:09

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 498/1,199
Website

Re: Writing a Hacking tool

Has anyone an idea of how to do this. Anyway, here is what I want the program to display instead of the bytes:

0x = noteC    
1x = noteC#    
2x = noteD    
3x = noteD#    
4x = noteE    
5x = noteF    
6x = noteF#    
7x = noteG    
8x = noteG#    
9x = noteA    
Ax = noteA#    
Bx = noteB    
Cx = noteRst    

D0 YZ = *freeze*??!    
D2 YZ = speed1    ?
D4 YZ = speed2    ?
D6 YZ = speed3    ?
D8 YZ = speed4    ?
DA YZ = speed5    ?
DC YZ = speed6    !
DE YZ = speed7    ?

Dx 0Z = volume0    
Dx 1Z = volume1    
Dx 2Z = volume2    
Dx 3Z = volume3    
Dx 4Z = volume4    
Dx 5Z = volume5    
Dx 6Z = volume6    
Dx 7Z = volume7    
Dx 8Z = volume8    
Dx 9Z = volume9    
Dx AZ = volume10
Dx BZ = volume11
Dx CZ = volume12
Dx DZ = volume13
Dx EZ = volume14
Dx FZ = volume15

Dx Y0 = fadeBlank    
Dx Y1 = fadeQuickest    
Dx Y7 = fadeSlowest    
Dx Y8 = fadeUp    

E0 = oct7    
E1 = oct6    
E2 = oct5    
E3 = oct4    
E4 = oct3    
E5 = oct2    
E6 = oct1    
E7 = oct0    
E8 = oct8    ?

EA XX YZ = vibrato    

EC 00 = duty0    
EC 01 = duty1    
EC 02 = duty2    
EC 03 = duty3    

ED 00 50 = tempo240    ?
ED 00 70 = tempo180    
ED 00 A0 = tempo120    
etc. 

F0 XX = ???    

FD yyYY = loadoffset$YYyy    

FE XX yyYY = ???    

FF = ???


So, I just want to let the program display these commands in a white text box instead of hex bytes, and save the edited commands back as code into the ROM. The comments I have no knowledge about will be displayed as the command with the actual bytes following.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#6 2013-07-24 19:47:04

Miksy91
Member
Registered: 2010-10-16
Post 1,841/2,317

Re: Writing a Hacking tool

1. Choose the programming language you want to use
2. Build the program with that programming language.

Of course, you'll need to have the required knowledge to do it...
I can't, yet, write a program similar to pksvui either.

Offline

#7 2013-07-25 10:00:01

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 499/1,199
Website

Re: Writing a Hacking tool

Miksy91 wrote:

1. Choose the programming language you want to use
2. Build the program with that programming language.

Of course, you'll need to have the required knowledge to do it...
I can't, yet, write a program similar to pksvui either.

Maybe, there is an open source of PKSV somewhere, so I can modify the bytes and the displayed commands.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

Board footer

Powered by FluxBB