Register - Login
Views: 99791893
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 04:41:28 AM
Jul - General Game/ROM Hacking - Nintendo64 Rom hacking dealing with C New poll - New thread - New reply
Next newer thread | Next older thread
ShenoxVII

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


Posts: 15/111
EXP: 76000
For next: 2125

Since: 10-09-10


Since last post: 9.0 years
Last activity: 9.0 years

Posted on 10-25-10 08:25:23 PM Link | Quote
Does anyone know how to properly compile N64 rom files that have been modified using C programming language to edit or add something in the game?

____________________
Nicole

Disk-kun
Level: 146


Posts: 1168/6469
EXP: 38284425
For next: 228869

Since: 07-07-07

Pronouns: she/her
From: Boston, MA

Since last post: 78 days
Last activity: 1 day

Posted on 10-25-10 08:55:18 PM Link | Quote
I'm a bit confused on what you mean. I mean, are you using a C program to edit the Nintendo 64 ROM, in which case I don't think "recompilation" would be necessary... or are you decompiling the N64 ROM into C code, and then editing that?

____________________
ShenoxVII

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


Posts: 16/111
EXP: 76000
For next: 2125

Since: 10-09-10


Since last post: 9.0 years
Last activity: 9.0 years

Posted on 10-26-10 11:01:02 AM Link | Quote
Originally posted by Imajin
I'm a bit confused on what you mean. I mean, are you using a C program to edit the Nintendo 64 ROM, in which case I don't think "recompilation" would be necessary... or are you decompiling the N64 ROM into C code, and then editing that?



I'm directly following this tut - http://code.google.com/p/gzrt/wiki/Nintendo64ToolchainSetup

I keep getting errors and idk how to save it.
Keitaro

Fire Snake
LOVELY ARRANGEMENT. VOLCANO BAKEMEAT
Level: 70


Posts: 549/1191
EXP: 2901499
For next: 114312

Since: 09-09-08

From: California

Since last post: 4.1 years
Last activity: 3.8 years

Posted on 10-27-10 07:29:52 AM Link | Quote
Looks like it compiles the code in to a file which is then used as cheats in a specific emulator...though I did only skim it.
Joe
Common spammer
🍬
Level: 111


Posts: 1571/3392
EXP: 14501027
For next: 367333

Since: 08-02-07

From: Pororoca

Since last post: 12 days
Last activity: 6 hours

Posted on 10-29-10 03:38:38 AM Link | Quote
Originally posted by ShenoxVII
I keep getting errors
What do the error messages say?

____________________
q0zi
Random nobody
Level: 4


Posts: 1/2
EXP: 183
For next: 96

Since: 10-29-10


Since last post: 11.5 years
Last activity: 10.4 years

Posted on 10-29-10 07:20:44 PM Link | Quote
Originally posted by Joe
Originally posted by ShenoxVII
I keep getting errors
What do the error messages say?

ShenoxVII

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


Posts: 29/111
EXP: 76000
For next: 2125

Since: 10-09-10


Since last post: 9.0 years
Last activity: 9.0 years

Posted on 11-02-10 04:03:30 PM Link | Quote
Originally posted by Joe
Originally posted by ShenoxVII
I keep getting errors
What do the error messages say?



There is no error. I can compile it correctly, i think. But when I go to play in any N64 emulator it does not play rom. It goes black. Iv tried nemu64, Pj64, Pj64 1.7, and of course iv tried it with 8mb too. I also tried running it through chksum64 and still no fix. Idk why it doesn't work.
Joe
Common spammer
🍬
Level: 111


Posts: 1580/3392
EXP: 14501027
For next: 367333

Since: 08-02-07

From: Pororoca

Since last post: 12 days
Last activity: 6 hours

Posted on 11-02-10 06:30:53 PM Link | Quote
Wait a minute. Are you trying to patch the Gameshark code into the ROM?

____________________
Hectamatatortron
Member
Level: 35


Posts: 214/232
EXP: 258214
For next: 21722

Since: 09-19-07


Since last post: 7.2 years
Last activity: 5.3 years

Posted on 11-29-10 01:12:01 AM (last edited by Hectamatatortron at 11-28-10 10:27 PM) Link | Quote
Read through my doc.

Link

The examples aren't as robust as what you probably want, but they do work.

(Specifically, they work with the compiler and assembler I am using...the compiler and associated batch scripts are around

Hextator's Doc/Development/Compilers

there somewhere; however, I have not included the assembler...you will have to find mips-elf-as on your own I guess D:)

There are example C files for making GameShark codes in C in the

"Mischief Makers"
Hextator's Doc/Console Games/Mischief Makers

and

"Ocarina of Time"
Hextator's Doc/Console Games/Zelda Series/Ocarina of Time

folders.

There is also a completed project regarding applying GameShark codes to the ROM of

"Jet Force Gemini"

in this folder

Hextator's Doc/Console Games/Jet Force Gemini/Training

Though the hack itself is in need of debugging, the rest of the project is not.

HOWEVER note that the "GameShark" codes which are being applied are not actually GameShark codes. In that particular case, I hacked the ROM to have a trainer which executed codes SIMILAR to GameShark codes, the format of which I designed myself (and included documentation of therein).

The format I designed is more profound and thus better; if you are any good with C you should be able easily write C code which compiles to assembly which can be pasted into the cheat list assembly file (there known as "Cheat List - [Address].txt") after being wrapped with the appropriate code type specification and being formatted to not have extraneous stuff from the compiler (there is actually a Java program in my doc somewhere which is specifically designed to format the output of the MIPS compiler I use for this purpose located at

Hextator's Doc/Development/Apps/Reformatting/Text Reformatters/MIPS Parse

).

Following that it is a simple matter of assembling the cheat list and pasting the resulting binary at the appropriate address and, in the case of Jet Force Gemini, you could easily be reprogramming the game in C. Or if you want to edit existing functions you will have to be trickier, but you should be able to figure it out.

____________________
ShenoxVII

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


Posts: 36/111
EXP: 76000
For next: 2125

Since: 10-09-10


Since last post: 9.0 years
Last activity: 9.0 years

Posted on 12-20-10 11:44:04 PM Link | Quote
Originally posted by Hectamatatortron
Read through my doc.

Link

The examples aren't as robust as what you probably want, but they do work.

(Specifically, they work with the compiler and assembler I am using...the compiler and associated batch scripts are around

Hextator's Doc/Development/Compilers

there somewhere; however, I have not included the assembler...you will have to find mips-elf-as on your own I guess D:)

There are example C files for making GameShark codes in C in the

"Mischief Makers"
Hextator's Doc/Console Games/Mischief Makers

and

"Ocarina of Time"
Hextator's Doc/Console Games/Zelda Series/Ocarina of Time

folders.

There is also a completed project regarding applying GameShark codes to the ROM of

"Jet Force Gemini"

in this folder

Hextator's Doc/Console Games/Jet Force Gemini/Training

Though the hack itself is in need of debugging, the rest of the project is not.

HOWEVER note that the "GameShark" codes which are being applied are not actually GameShark codes. In that particular case, I hacked the ROM to have a trainer which executed codes SIMILAR to GameShark codes, the format of which I designed myself (and included documentation of therein).

The format I designed is more profound and thus better; if you are any good with C you should be able easily write C code which compiles to assembly which can be pasted into the cheat list assembly file (there known as "Cheat List - [Address].txt") after being wrapped with the appropriate code type specification and being formatted to not have extraneous stuff from the compiler (there is actually a Java program in my doc somewhere which is specifically designed to format the output of the MIPS compiler I use for this purpose located at

Hextator's Doc/Development/Apps/Reformatting/Text Reformatters/MIPS Parse

).

Following that it is a simple matter of assembling the cheat list and pasting the resulting binary at the appropriate address and, in the case of Jet Force Gemini, you could easily be reprogramming the game in C. Or if you want to edit existing functions you will have to be trickier, but you should be able to figure it out.



I see what the problem was, but a lot of the information might be useful later if I try anymore stuff with this. Also I'm not trying to patch a gameshark to the rom, you can do that another way thats very easy.
Hectamatatortron
Member
Level: 35


Posts: 218/232
EXP: 258214
For next: 21722

Since: 09-19-07


Since last post: 7.2 years
Last activity: 5.3 years

Posted on 12-22-10 04:34:47 AM Link | Quote
GameShark sucks. I wanted real code types. The point was to guide you anyway.

____________________
ShenoxVII

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


Posts: 37/111
EXP: 76000
For next: 2125

Since: 10-09-10


Since last post: 9.0 years
Last activity: 9.0 years

Posted on 12-23-10 04:50:00 AM Link | Quote
Originally posted by Hectamatatortron
GameShark sucks. I wanted real code types. The point was to guide you anyway.



I seen you somewhere before? From anti3d? or something like that.
Hectamatatortron
Member
Level: 35


Posts: 219/232
EXP: 258214
For next: 21722

Since: 09-19-07


Since last post: 7.2 years
Last activity: 5.3 years

Posted on 12-23-10 06:24:13 AM Link | Quote
No.

Been to Heaven recently? I hang out there a lot.

____________________
Next newer thread | Next older thread
Jul - General Game/ROM Hacking - Nintendo64 Rom hacking dealing with C New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

29 database queries, 3 query cache hits.
Query execution time: 0.091825 seconds
Script execution time: 0.018723 seconds
Total render time: 0.110547 seconds