PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Other Generations Hacking > Guides & Documentation

Guides & Documentation Learn how to make your own Pokémon game through the process of ROM Hacking, or help out the community by sharing your information.

Reply
 
Thread Tools Display Modes
Old 6th July 2013, 01:14 AM   #1
karatekid552
What does this button do?.....
Ex-Staff
 
karatekid552's Avatar
 
Join Date: Feb 2013
Location: Stalker.......
Posts: 242
karatekid552 karatekid552
Default How to Change the Start Map with a Hex Editor (FireRed only)

This tutorial is for FireRed hackers who use JPAN's Hacked Engine and have had the unfortunate experience of opening SMCA to get this error:


(I'll type it too, so hopefully searching the error in Google will find this page)
Run-time error '380':

Invalid property value


I will explain what caused this error in a little bit, but first, let's do what SMCA can do with a Hex editor. I personally recommend HxD for this.

So, here are your offsets:
(These are taken from the source code of SMCA, except for the y-coordinate, which I had to find myself, only later realizing JPAN had documented it in his notes for the first Hacked Engine release.)


Quote:
Bank = 0x054A04
Level = 0x054A06
X-coordinate = 0x054A08
Y-coordinate = 0x054A00
And, here they are in HxD (on a copy of FireRed with the Hacked Engine of course):



So, it is as simple as changing those bytes to match what you want the starting players location to be. Remember, everything is in Hex.


Now, you will notice I did not tell you how to change the player facing. In a standard, unhacked FireRed, the location for the player facing is 0x168CCB and here is a key:

Quote:
down= 01
up= 02
left= 03
right= 04
Now, let's go to that offset in the hacked copy of FireRed:




As you can see, this location has been removed by JPAN. It was a map script and in his hacked engine, all scripts are removed. This is what caused the error in SMCA. It was looking for either a 01, 02, 03, or 04 at offset 0x168CCB, but instead got an FF.

Thanks to DrFuji, we now know how to add this feature back in.

Here is the script we are going to use:
Code:
#Dynamic 0x800000
#org @start
spriteface 0xFF 0x(refer to above key for direction)
setvar 0x4056 0x1
end

Now, just insert this script into the Map Script section of the Header of your start map in Advance Map:

Settings-
Type:04
Flag:4056
Value:0000
Script Offset 2: @start (from the script)

Credits:
JPAN
HackMew
DrFuji
karatekid552 is offline   Reply With Quote
Likes PokéMew, Dark Sneasel, Mateo liked this post
Sponsored Links
Reply

Tags
change, editor, firered, hex, issues, jpan's engine, jpans engine, map, smca, start, start map, [Tutorial]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:40 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts