Banner
Views: 313,620,835
Time: 2014-09-19 12:46:42 AM
9 users online: Adam, Amos Defamos, o Domiok, Eevee, FloodresistantMirrordrill, Masterlink, Raidenthequick, Torchkas, Wuthering - Guests: 21 - Bots: 43Users: 25,612 (1,170 active)
Latest: Mista Epic
Tip: Don't place Yoshi coins near a goal post because they keep glowing when a level fades out.
Posts by zkip
zkip's Profile - Posts by zkip
Pages: « 1 2 3 4 5 6 ... 47 48 »
I was looking on my computer today and found an old hack that i made with some good sprites and blocks , and i was wondering is there a offset that is predetermined for the ASM insertion? I was thinking of making a tool, but cant figure out where the inserted ASM is. Thanks

-zKiP
Yes i know about using freespace, ill look using Transhex.
Thanks, al lot
-zKiP
Ive recently been studing on HEX and programming and was wondering where do you and how do you locate offsets for graphics, ROM, RAM, ect. I am looking into creating tools for hacking all sorts of games, but cant locate the offsets for the respective things. But my question is how do locate the offsets for these things. I posted here cause im thinking it has to do with your type of emulator?
Thanks,
-ZkiP
Thats what i mean how do u find it yourself?
yes i understand using YY-CHR and TLP..but the rest..?
Last edited on 2009-10-09 05:41:08 PM by zkip.
I do know that snes9x is possibly an option?.. mayby?
I just got all my SMW hacking documents and files all downloaded back
from a malious virus destroying everything, but missing one tutorial
I dont know where or who made it but it was about using snes9x debugger and setting breakpoints, used for asm hacking. Anyone know whre this is?
-zKiP
Thanks a lot! Your greatly appriciated :)
Originally posted by Alcaro
Why am I thinking you want this?


No i already have that.
Tool creating in VB6


Im writting this tutorial to show that the language that Experts cannot stand, but newcommers understand and like, can be used for more than you think! In writting this I enphasise that you must first understand that Visual Basic is at the bottom of the chart when it comes to compatibility. This is for you to create from to provide a sense of accomplishment rather than to be used as a basis of releasing Tools. Never the less lets move on!



1: CREATING THE BASIS

Load up Visual Basic and Create a Standard EXE. Create 2 CommandButtons and 1 TextBox. Give the buttons Captions of 'Open' and 'Save'. Make the Textbox have no text and lock it.(These options are in the right Under The Project Properties). Next you need to create a CommonDialog. This isnt in the default toobox you must add it yourself. To do this move your mouse over to the toolbox, right click, and go to 'Components..'. You can also use the shortcut (CTRL+T). Scroll the list to find 'Microsoft Common Dialog Control' Click apply.
When that is done there should be a new button in your toolbox. Click on it and put it in your application. You have just created the basic 4 items needed for a rom hacking tool!


2: THE COMMON DIALOG BOX

The Common Dialog Box has a few commands that we will need:

Code
CommonDialog1.ShowOpen

Show the Open file dialog.

Code
CommonDialog1.ShowSave

Show the save file dialog.(Wont need it as were editing a file.)

Code
CommonDialog1.FileName

The Full Path of the file loaded.(Must use ShowOpen first!)

Code
COmmonDialog1.FileTitle

The title of the file.(excluding the path)

So that is the basics of opening and using the CommonDialog.



3: USING COMMONDIALOG IN APPLICATION
To use this in a application you would first need to Show the 'Open file' dialog, next show the path in a text box. Use this in the 'Open' button Click:
Code
CommonDialog1.ShowOpen 'Show the Open File Dialog

Code
Text1.Text = CommonDialog1.FileName 'Set the textbox to the full path of file


Run that and you will see that clicking the 'Open' button will let you choose a file and display it's path in the textbox.



4. VISUAL BASIC FILE EDITING COMMANDS
Visual Basic has 2 commands that will read and get info from a file. But before using these we must open the file for editing and declare a byte value:

Code
Open CommonDialog1.FileName For Binary As #1

Code
Dim byte1 As Byte

That will open the file loaded for editing as "#1" and set the variable byte1 for use.

THE PUT COMMAND)

So know that we have the file opened for editing lets learn the code to edit it:
Code
byte1 = 1

Code
Put #1, &HFF44, byte1

The put command requires 3 things: The file that was oppened(#1), the offset to put data to, before continuing you must know that when dealing with HEX in VB use must use "&H" before the offset and for some reason you have to add 1 to the oringinal offset(FF43 would be FF44 in VB) and last the byte to put into the offset. So the code above would Put the byte '1' into the offset FF43 of a rom.

THE GET COMMAND)

So we have learned that the Put command writes to a file, so how would you get a byte from the rom? This requires the Get command:
Code
Dim gotbyte As String

Code
Get #1,&HFF44, gotbyte

This will get the byte of the offset FF43 and store it as the string gotbyte. If you wanted to write the byte in a textbox just use the code above and:
Code
Text1.Text = gotbyte


CLOSING A FILE
When fishised with a file its nice to close it to not get errors when opening another file.
Code
Close #1

Closes the file oppened as #1.


5. THE OUTRO
So you have know learned the basics of opening, and editing a rom! Please remember that the offset you use is +1 in VB, and to always Dim variables before using them. And to close a file after using PUT or GET to avoid any errors. As stated first many people do not like Visual Basic because of its compatibility issues, but use this to create your own tools for any rom that you would like to hack. And if you do release to public dont forget to state that it was made in Visual Basic 6 and requires runtime files.




Happy Tool Making,
-zKiP
Last edited on 2009-12-20 05:15:41 PM by zkip.
(restricted)
(restricted)
Im thinking this might help?
$7E:13E2
Quote
Seems to be another spin-jump fireball timer. It increments every frame. If any of the first four bits are set, Mario won't shoot a fireball. If bit 4 ($10) is set, it shoots a fireball.

oh and also its 1 byte

Mod edit: DEC stretch
Last edited on 2009-10-11 03:02:41 AM by Alcaro.
I think you may need to LDA 10 to free space and use DEC with a loop. im not sure
Last edited on 2009-10-10 07:13:23 PM by zkip.
Im making a new sprite similar to a koopa that when mario is hit with it his coins go down i know how to code this, but i want coins to start at marios x pos and scatter and disapppear, like in sonic. Can anyone help?
-zKiP
Just scannned over, and doesnt seem to create coins at mario and make them scatter?
Thanks Iceyoshi! thats what i needed and note that im will be using this to learn from and not just patch it
I recently became so interested in ROM hacking that its all I do, but im having trouble in the area of even finding the text tables and making ROM and RAM maps, so my question is to the creators of the ram and rom map here: where did you find this data?
Ok so using a debugger(no$gba or no$gmb) on a gbc game what do i look for?
Last edited on 2009-10-11 02:09:55 PM by zkip.
Ok i think i understand know... thanks! :)
(restricted)
Pages: « 1 2 3 4 5 6 ... 47 48 »
zkip's Profile - Posts by zkip

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2014 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 27

Menu

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG