Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Fri Jul 11, 2025 7:44 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Nov 13, 2008 10:32 am 
Offline
Kommunist
Kommunist

Joined: Tue Oct 30, 2007 9:53 am
Posts: 43
I have codes for an N64 game that completely change every spell in the whole game, but this
will need several hundred codes to change them all, about 600 lines of code by my estimate.

the problem is the N64 gameshark only seems to be able to handle around 200 lines of code,

so I was wondering: Is there an N64 emulator with a gameshark feature that handles 600 lines
of code at a time?


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 14, 2008 8:00 pm 
Offline
Komrade
Komrade
User avatar

Joined: Tue Mar 27, 2007 6:23 pm
Posts: 1354
Location: Mario Raceway, 1509.831, 217.198, -564.429
Title: Mario Kart 64 Hacker
Probably, but that's an obscenely long code, and if it doesn't work on real hardware, it can be considered broken. If there's no way to shorten it (50-type codes, ASM hacks, etc), one thing you could do is write an ASM routine that will apply the changes, break it into several codes, and find a way to get the routine saved to and loaded from the game's save data. Then install it piece by piece and use a small hook code to call it.

Another option is to make a ROM hack instead.

_________________
Image 143
HyperNova Software is now live (but may take a few tries to load) currently down; check out my PSP/DS/Game Boy/Windows/Linux homebrew, ROM hacks, and Gameshark codes!


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 15, 2008 4:41 am 
Offline
Kommunist
Kommunist

Joined: Fri Sep 05, 2008 4:27 pm
Posts: 95
I'm guessing your making one line for each spell. If you did it in ASM, you could write certain values to a range of addresses, which would greatly shorten the code. If that doesn't work, you can always write it directly to the ROM so it treats it like a part of the game.


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 15, 2008 9:10 am 
Offline
Kommunist
Kommunist

Joined: Tue Oct 30, 2007 9:53 am
Posts: 43
Okay, here's how the spell variables work:

There's a pointer that leads to the spell's values(about a 1/4-screen's worth of variables for each spell). Modifiyng just 10 or so of the variables here is enough for a complete change in how the spell looks and what it does.
So that rom trick of putting these values somewhere in unused space sounds like it'd work.
-of possible important note is that these values only need to be changed one time before they're used in the game, and they stay that way throughout the gameplay session.

I've never used an emulator before, but I was thinking of using Project 64 with Renegade64.

What all would I need to do to get the rom data trick to work?

I'm guessing making an asm routine to determine where the pointer should go to read the data I put in the unused space, but I've never actually done either of these things before.

Would I need an programs besides renegade and project64 to do the rom load?

Finally, that sounds like a whole lot of code values to make, so there'd be a way to start it off by copying the original spell variable values, and then just modifying them for the rom load, right?

How about this: Copy the original spell variable values, modify them, and then load the rom right where they are to replace them. the change only needs to be applied one time, so that'd be great.

-would this be possible to do as a rom load, and how would I go about doing this?


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 17, 2008 6:07 pm 
Offline
Kommunist
Kommunist

Joined: Tue Oct 30, 2007 9:53 am
Posts: 43
So, I'm going to try the ROM hack method, and just replace the original spell values with a modified copy of them, if that's possible.

SO, how do I do this on an emulated game?


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 19, 2008 12:12 am 
Offline
Komrade
Komrade
User avatar

Joined: Tue Mar 27, 2007 6:23 pm
Posts: 1354
Location: Mario Raceway, 1509.831, 217.198, -564.429
Title: Mario Kart 64 Hacker
Open the ROM in a hex editor and look for the same data you found in memory.

_________________
Image 143
HyperNova Software is now live (but may take a few tries to load) currently down; check out my PSP/DS/Game Boy/Windows/Linux homebrew, ROM hacks, and Gameshark codes!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 90 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group