Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2012-02-18 03:22:41

ElectrikeInc
Member
Registered: 2012-02-14
Post 21/120

How to implement event Pokemon in Gold

I am not asking for a code - I already have mine (831790067FF1E03075CAmpharos355E5F33078C6D0290) - but how can I add it to a specific location in the game, and will I need to replace something? I would like to add it to Olivine City, right in front of the Lighthouse, but I don't know how with Hex. However, I am okay if it appears in a different tile, because I can move it on Goldmap. I really need help, so thanks in advance.
This is what it SHOULD be in the ROM:
Level 35 Shiny Ampharos, talk to it to battle, play Mareep's cry and begin battle. Please let me know if there is anything wrong with this, if you can.


I haven't been on this site for a very long time. Sorry about that! >.<
I am probably not going to get very far in the ROM projects that I've started, at least until I get more experience hacking, so I apologize.

Offline

#2 2012-02-18 19:08:26

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,221/3,456

Re: How to implement event Pokemon in Gold

You would just find the bank that olivine's scripts are in, add this script in the blank space ( 00s ) at the end of the bank, and write down the offset. Then you would change one of the person events on the map to call this script. To make sure it worked properly, you would need to make sure the Number of the person event matches the one that the script tells it to hide after the battle. If you don't want to erase someone and want to add a new event, there is a tutorial on how to add more events to a map in this same section. I hope this helps.

Offline

#3 2012-02-19 00:35:54

ElectrikeInc
Member
Registered: 2012-02-14
Post 23/120

Re: How to implement event Pokemon in Gold

Thanks! I'm going to try that, and if I have more questions I'll post here.
Edit: What do you mean by "bank"? I tried 0AD3DC and 124463, because that's what GoldMap says the map location and event data start are, respectively, but my Hex Editor claims that it doesn't exist. I need to get this ROM past the map editing stage before it gets forgotten, so please help me get through this part so I can do the events I need. Also, I know that the Ampharos is nowhere near valid, but I'm working on another code - with you, actually, on my Recovering Lost Scripts thread.

Last edited by ElectrikeInc (2012-02-19 03:04:42)


I haven't been on this site for a very long time. Sorry about that! >.<
I am probably not going to get very far in the ROM projects that I've started, at least until I get more experience hacking, so I apologize.

Offline

#4 2012-02-19 05:42:10

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,226/3,456

Re: How to implement event Pokemon in Gold

A map is divided up into different sections called Banks. There should be a document that explains them in much more detail on here, it will most likely be one of the ones explaining pointers. But basically if you just look at where the events are located and scroll down until you see a long stretch of 00s you will still be in the same Bank, and you can insert your script there.

Also, those are accurate locations that Goldmap is telling you. I can't imagine why your hex editor would claim that they don't exist, because they do. Which hex editor are you using?

Offline

#5 2012-02-19 17:17:36

ElectrikeInc
Member
Registered: 2012-02-14
Post 26/120

Re: How to implement event Pokemon in Gold

I'm using HxD. I loaded Pokemon Gold, so I'm suprised that it claims they don't exist. Was I supposed to add a 0 to the end? Everything on the ROM seems to end in 0. Thanks for telling me that - I'm going to look for the tutorial about Banks so I can put standing Pokemon in my game.


I haven't been on this site for a very long time. Sorry about that! >.<
I am probably not going to get very far in the ROM projects that I've started, at least until I get more experience hacking, so I apologize.

Offline

#6 2012-02-19 17:32:58

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,229/3,456

Re: How to implement event Pokemon in Gold

No, you don't need to add 0 to the end. Those are the real addresses as they are. Does the goto function give you the choice of typing a decimal or hexadecimal offset? Because if you typed a hexadecimal offset (which those are) but told the hex editor that it was decimal, it might do weird things.

As for the hex editor, I know GoldFinger and Translhextion will both work normally with those addresses. Those are the hex editors I use.

Offline

#7 2012-02-19 17:45:54

ElectrikeInc
Member
Registered: 2012-02-14
Post 28/120

Re: How to implement event Pokemon in Gold

It gives a dropdown list of options, like Text String and Floating Integer, but I tried all of them and it always said it couldn't find it or it was invalid. I'll try to find one of the hex editors you mentioned, so thanks for telling me that.


I haven't been on this site for a very long time. Sorry about that! >.<
I am probably not going to get very far in the ROM projects that I've started, at least until I get more experience hacking, so I apologize.

Offline

#8 2012-02-19 19:13:50

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 1,230/3,456

Re: How to implement event Pokemon in Gold

Ohhh it looks like you are trying to use the Search function instead of goto or jump to or whatever it is called in your editor. Searching for an offset in that way is not correct, as you are trying to search for a string of bytes somewhere in the rom that matches that offset's location, instead of actually going to the location. It's like if you were trying to go to line 25 in a word document, but typed CTRL + F and then types "Line 25". Since "Line 25" doesn't occur as text in the document, it will say it doesn't exist. Hope that helps.

Offline

Board footer

Powered by FluxBB