CASTLEVANIA SOTN: Hacked-
Esco
12-08-2007, 02:52 PM
#2
Members · 164 posts · joined 26-November 07

IMPORTANT note... VERY important.... THE MEMORY ADDRESSES LISTED ARE FOR THE US VERSION OF CASTLEVANIA SOTN! THE EMULATOR I USE IS ESPXE AND I AM USING THE MOST CURRENT VERSION! Please don't ask me about the jap or pal releases, most of the stuff is the same value wise, but address wise the locations are different. With the data I'm giving you guys here, you can probably find them on your own pretty easily. However, the ASM changes might be a different story since the pal and jap versions have stuff in different places.

Also some other emulators, use different memory addresses. Again with what I'm giving you here it is pretty easy to find them, if your willing to take the time and want to use a different emulator. All that you would need to change would be the memory addresses (ex 800a000d). Since all the addresses would still be the same distance relative to each other.

1st up... some BASIC STUFF:

BYTE format: range 0-255.... you'll see this used for a few things, but mostly addresses that end in an ODD value (800a0001, 800a0007, 800a000b, etc.)

SHORT FORMAT: range -32768 to +32767..... this is the type I'll be using the most. It's the easiest to read and follow along with in the game (ex. - values heal, + values dmg)

WORD Format: range 0 - 65535... basically UNSIGNED SHORT.... SHORT without signs used like the name indicates, instead it maxes out at 65535. Not used much. And then, only for my convenience.

LONG: for stuff that needs to have a bigger range than SHORT type. I use this mostly for movement speed things.

3951E0 is the offset for the newest version of EPSXE. You will notice that if you look thru my scripts once it is released you have one address+this 2nd amount added to it. This is so when epsxe is updated, I can easily update the addresses too.

To convert from a GS/AR code address to memhack addresses: Simply drop the 1st 2 digits, and then add 5b6e40+3951e0 to it. The second # is included after the 5b6e40 instead of just being added to it because as the emulator is updated it will probably change, and it makes updating this thread easier. I use calc.exe under windows, set to scientific view and hex for this So in other words, I won't be reviewing the codes found on www.cmgsccc.com (GS/AR codes site) since you guys now know how to convert all those now thanks to the above data.

Obviously to convert from memehack back to GS/AR code format you simply subtract (5b6e40+3951e0) from the address.

To create a memory hack using c scripts: I recommend memhack. It is found on www.memoryhacking.com, pre releases can be found regularly on the forums. It's a GREAT easy to use program, where you can see memory addresses and values as they change in real time. It is very stable, and has a LOT of features, and the creator of the program CONSTANTLY browses his forums, is friendly and very helpful and knowledgeable. This is the program I will be using here.

To ensure codes work properly: Makes sure the emulator runs at about 55-60 FPS.... the reason is that if it doesn't, and you use codes based on timers you implement yourself, even though the emulator will have slowed down.... MEMHACK STILL WOULD BE RUNNING AT FULL SPEED! This results in things not working like they should.

To declare a variable in memhack:

........ //the type//the name of the var.//the memory address it points to

extern SHORT rooms = { "", 0x005f35a0};

//to comment use the usual

To use one of the codes below take the memory address and input it into memhack. Change the value as you wish, and you can even freeze it to a certain number, or keep it above or below certain values.

VOID Lock() {

//put code here, this is basically MAIN and needed to run your codes in memhack

}

//create functions as normal

VOID function(){

}

I have also made some changes to the actual ASM code in the game now (credit goes to geminimewtwo for teaching me this). You can usually find what you need using pcsx (the one with the debugger), combined with pcsxt (which prints out a trace log of the ASM code used). I'm still new at ASM though, so please don't ask me for help with it. All I can provide is notes on things I changed. And I usually change things that could be EXTREMELY effected by slowdown with the emulator, or were bug prone, if I used memhack instead. Stuff like the wolf/bat's movement speed, magic regeneration, etc.

Unfortunately, the way Konami coded things is FUCKTASTICALLY RETARDED! So it makes ASM hacking a real chore. But as I go I am going to edit the stage files with more and more info, so that memhack is needed less for some things. Wehn I am done using the hack should be easy:

1)Apply IPS patch to ISO once... then it is changed forever

2)Open memhack, open hack file. Once loaded, minimize it. This must be done every time you want to play it.

3)Open epsxe and run the game

That's it. Nice and simple. Basically, two extra easy steps are invovled once the ISO is patched (which is easy to do)

This post has been edited by Esco: 24 February 2009 - 05:40 AM
Go to the top of the page


Messages In This Thread
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 02:46 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 02:52 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 02:59 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 03:27 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 03:35 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 03:36 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 04:15 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 04:16 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 04:17 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 12-08-2007, 04:20 PM
CASTLEVANIA SOTN: Hacked- - by Guest - 12-30-2007, 05:10 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 01-27-2008, 12:18 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 01-28-2008, 01:58 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 01-28-2008, 06:49 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 01-28-2008, 07:09 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 01-31-2008, 08:14 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 02-02-2008, 06:18 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 02-05-2008, 10:45 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 02-07-2008, 12:39 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 02-09-2008, 06:06 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 02-21-2009, 11:14 PM
CASTLEVANIA SOTN: Hacked- - by Buttersoft. - 02-23-2009, 01:50 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 02-25-2009, 04:24 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 03-15-2009, 12:56 AM
CASTLEVANIA SOTN: Hacked- - by Johnny Snake - 03-16-2009, 06:53 AM
CASTLEVANIA SOTN: Hacked- - by Yago - 04-22-2009, 09:49 PM
CASTLEVANIA SOTN: Hacked- - by Raven123 - 05-09-2009, 04:51 AM
CASTLEVANIA SOTN: Hacked- - by cobra302 - 05-18-2009, 08:56 AM
CASTLEVANIA SOTN: Hacked- - by Arowsrevenge - 10-27-2009, 08:42 PM
CASTLEVANIA SOTN: Hacked- - by Buttersoft. - 10-29-2009, 03:18 AM
CASTLEVANIA SOTN: Hacked- - by Esco - 11-15-2009, 06:57 AM
CASTLEVANIA SOTN: Hacked- - by Buttersoft. - 11-22-2009, 01:33 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 11-23-2009, 01:36 AM
CASTLEVANIA SOTN: Hacked- - by pirate_sephiroth - 11-24-2009, 09:06 AM
CASTLEVANIA SOTN: Hacked- - by Buttersoft. - 11-25-2009, 07:22 AM
CASTLEVANIA SOTN: Hacked- - by The_master - 12-02-2009, 10:44 PM
CASTLEVANIA SOTN: Hacked- - by The_master - 12-03-2009, 11:36 PM
CASTLEVANIA SOTN: Hacked- - by The_master - 12-15-2009, 09:44 PM
CASTLEVANIA SOTN: Hacked- - by The_master - 12-28-2009, 09:50 PM
CASTLEVANIA SOTN: Hacked- - by negativeions - 01-24-2010, 04:18 AM
CASTLEVANIA SOTN: Hacked- - by Seraphin - 01-31-2010, 11:14 AM
CASTLEVANIA SOTN: Hacked- - by Buttersoft. - 02-01-2010, 02:02 AM
CASTLEVANIA SOTN: Hacked- - by negativeions - 02-01-2010, 05:02 AM
CASTLEVANIA SOTN: Hacked- - by Seraphin - 02-01-2010, 05:53 AM
CASTLEVANIA SOTN: Hacked- - by Gnashvar - 03-25-2010, 07:13 PM
CASTLEVANIA SOTN: Hacked- - by Gokajern - 03-31-2010, 03:21 PM
CASTLEVANIA SOTN: Hacked- - by Buttersoft. - 05-09-2010, 04:19 AM
CASTLEVANIA SOTN: Hacked- - by STUFF - 05-10-2010, 01:39 PM
CASTLEVANIA SOTN: Hacked- - by Esco - 08-22-2010, 11:14 PM
CASTLEVANIA SOTN: Hacked- - by warrick - 08-23-2010, 05:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)