The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other General Questions About How to Hack, Please Help! (https://www.pokecommunity.com/showthread.php?t=351922)

Anthonyuseryjr July 8th, 2015 4:00 PM

General Questions About How to Hack, Please Help!
 
Hey guys this is my first post. Been using this site for awhile now and never asked anything.
I'm working on my own pokemon fire red hack. My first attempt ever.


*I have ran into a patching/ rendering problem. I guess. when I walk thru route 1 to viridian city, route one looks good. As soon as I take one step into viridian city, route 1 then glitches out and shows random tiles. when I walk down route 1 and back up it looks fine. until I take one step into viridian city, then route 1 glitches out again. Please help me fix this so my first rom hack runs smooth.
*I wanted to change the gym leader order in my rom hack. I am going to do that by simply changing the gym door to different gym inside via the warp tile. The problem I am having is, I want to change what gym gives what badge or more so I want to change the effects of the badge. like example I want to trade Misty for Sabrina. I need Sabrina to let my player use cut outside of battle. So please help me!
*Last note. I was working on a rom hack that I had to restart because I only changed the text and made few map changes. but after awhile my scripts were deleted and when I re-enter text editor it shows a blank box where the old and edited text was. when I change it, it just doesn't show up in game. ??? any ideas as to why? please help guys!

I have been looking over old forums and posts as well as finding out about you're guys rom hacks and playing then for a few years now. finally I am asking for help so please help me out and support my first rom hack.


Thanks guys
Anthony

GoGoJJTech July 9th, 2015 9:34 AM

Quote:

Originally Posted by Anthonyuseryjr (Post 8837433)
Hey guys this is my first post. Been using this site for awhile now and never asked anything.
I'm working on my own pokemon fire red hack. My first attempt ever.


*I have ran into a patching/ rendering problem. I guess. when I walk thru route 1 to viridian city, route one looks good. As soon as I take one step into viridian city, route 1 then glitches out and shows random tiles. when I walk down route 1 and back up it looks fine. until I take one step into viridian city, then route 1 glitches out again. Please help me fix this so my first rom hack runs smooth.
*I wanted to change the gym leader order in my rom hack. I am going to do that by simply changing the gym door to different gym inside via the warp tile. The problem I am having is, I want to change what gym gives what badge or more so I want to change the effects of the badge. like example I want to trade Misty for Sabrina. I need Sabrina to let my player use cut outside of battle. So please help me!
*Last note. I was working on a rom hack that I had to restart because I only changed the text and made few map changes. but after awhile my scripts were deleted and when I re-enter text editor it shows a blank box where the old and edited text was. when I change it, it just doesn't show up in game. ??? any ideas as to why? please help guys!

I have been looking over old forums and posts as well as finding out about you're guys rom hacks and playing then for a few years now. finally I am asking for help so please help me out and support my first rom hack.


Thanks guys
Anthony

1: Your tilesets have to be the same between maps or else they'll overwrite each other in ram as they get loaded
2: Open their scripts and change which badges they give you via setflag.
Code:

Fire Red
0x820 – Activates First Badge
0x821 - Activates Second Badge
0x822 - Activates Third Badge
0x823 - Activates Fourth Badge
0x824 - Activates Fifth Badge    (surf)
0x825 - Activates Sixth Badge
0x826 - Activates Seventh Badge
0x827 - Activates Eighth Badge
0x828 - Activates Pokemon Menu
0x829 - Activates Pokedex Menu
0x82F - Activates Running Shoes
0x839 - Activates Mystery Gift Option On Main Menu


3: You aren't repointing to free space, you're just overwriting data with other data and then you get corruption. Check out a scripting tutorial such as diegoisawesome's MEGA-HUGE XSE Scripting Tutorial and you'll learn how to script.

Anthonyuseryjr July 9th, 2015 2:35 PM

thanks so much!
yes at first I was searching free space, now have not this go around. I will chech that link.
as for the setflags thanks a lot! I would have not found them alone.
the tiles I will try to fix and see what happens.

Uncommon July 10th, 2015 11:20 AM

Quote:

Originally Posted by Anthonyuseryjr (Post 8837433)
*I wanted to change the gym leader order in my rom hack. I am going to do that by simply changing the gym door to different gym inside via the warp tile. The problem I am having is, I want to change what gym gives what badge or more so I want to change the effects of the badge. like example I want to trade Misty for Sabrina. I need Sabrina to let my player use cut outside of battle. So please help me!

Quote:

Originally Posted by GoGoJJTech (Post 8838471)
2: Open their scripts and change which badges they give you via setflag.
Code:

Fire Red
0x820 – Activates First Badge
0x821 - Activates Second Badge
0x822 - Activates Third Badge
0x823 - Activates Fourth Badge
0x824 - Activates Fifth Badge    (surf)
0x825 - Activates Sixth Badge
0x826 - Activates Seventh Badge
0x827 - Activates Eighth Badge
0x828 - Activates Pokemon Menu
0x829 - Activates Pokedex Menu
0x82F - Activates Running Shoes
0x839 - Activates Mystery Gift Option On Main Menu



So I am working on a similar thing, and this is the solution I’m currently using, but I’m wondering if there is a more complete way to do it. Activating each badge flag does a number of things:

- badge image shows up on the Trainer card
- (possibly) allows use of overworld HM
- affects stats (is this actually true?)

My question is, can you change some of these effects while retaining others? In other words, if I want the badges to still appear on the Trainer card and affect stats in the correct order, but activate overworld HMs in a different order (say, Cut at Gym 1, Surf at Gym 4, etc.), is this possible?

GoGoJJTech July 10th, 2015 11:27 AM

Quote:

Originally Posted by Uncommon (Post 8839974)
So I am working on a similar thing, and this is the solution I’m currently using, but I’m wondering if there is a more complete way to do it. Activating each badge flag does a number of things:

- badge image shows up on the Trainer card
- (possibly) allows use of overworld HM
- affects stats (is this actually true?)

My question is, can you change some of these effects while retaining others? In other words, if I want the badges to still appear on the Trainer card and affect stats in the correct order, but activate overworld HMs in a different order (say, Cut at Gym 1, Surf at Gym 4, etc.), is this possible?

Yes, you'd just swap around the order you give those badges to give the correct one.
The effects are hardcoded in, so you'd obviously not be able to change it without major research as to how that goes about doing its thing.

Uncommon July 10th, 2015 11:42 AM

Quote:

Originally Posted by GoGoJJTech (Post 8839979)
Yes, you'd just swap around the order you give those badges to give the correct one.
The effects are hardcoded in, so you'd obviously not be able to change it without major research as to how that goes about doing its thing.

Let me rephrase. Let’s say I want Cut to be activated by the first Gym. I change the first Gym Leader’s script to activate the second badge’s flag. Now when I beat the first Gym leader, Cut activates, but the second badge shows up on the Trainer card.

Is there any way to make it so that Cut activates, but the first badge shows up on the Trainer card?

I’ve actually found a workaround for Cut, Rock Smash, and Strength. Each of those is controlled by a script on the tree or rock that you cut, smash, or move. It’s simple to open that script and change the flag it checks for to the correct (new) badge.

What I’d love to see is a way to do it for Flash, Surf, Fly, and Waterfall. I have no idea where the flags for those are checked.

Uncommon July 13th, 2015 5:09 PM

Sorry for the double post, but I wanted to add what I've found regarding this.

Regarding Cut, Rock Smash, and Strength:

Cut - 0x1BDF13
Rock Smash - 0x1BE00C
Strength - 0x1BE11D

These three are actual scripts, you put those offsets in XSE and hit decompile. The script that comes up should include

Code:

checkflag 0x82x


Change 82x to the flag you want and compile.


Regarding Surf and Waterfall:

Quote:

Originally Posted by Lost Heart (Post 7015146)
For anyone that wants to change the badge required for surf, the offset of the flag is 0806D59C. Also, I pretty sure that 0806D5D0 is waterfall, but I haven't tested it. (FireRed)

The badge check for Surfing from the overworld is at 0x06D59C. It's stored in reverse hex. The original Surf badge flag is 824, so at that offset, we see 24 08. Change that to the reverse hex of the flag you want (ie., the third badge: 823 -> 23 08) and you're good to go. The check for Waterfall is at 0x06D5D0 and it works the same way (reverse hex).


However, none of these edits affect using the HMs from the Pokemon menu. The best I've been able to find regarding that is this:

Quote:

Originally Posted by karatekid552 (Post 7777112)
to remove badge checks from ALL HMs on the POKEMON MENU:

Go to 0x124620 and paste-write "01 20 00 00 00 00 00 00 00 00 00".

This gets you very close, but there are still some problems. If you have an HM before you get the appropriate badge, you can use it from the menu. And since this is the only way to use Flash and Fly, you have full use of those two as soon as you get the HMs.

You could always make sure that you never get an HM until you beat the appropriate Gym Leader, but that defeats the purpose of the badge checks altogether...

If anyone knows of a way to change which flag allows the use of each HM move from the menu, I'd be very grateful if you'd share.


TL;DR version: you can change which badges allow the use of HMs from the overworld, but there's no known way to edit which badges allow the use of HMs from the Pokemon menu. You can remove the menu check altogether, though.

Chicken Fingers July 17th, 2015 5:52 PM

Quote:

Originally Posted by Uncommon (Post 8840026)
Let me rephrase. Let’s say I want Cut to be activated by the first Gym. I change the first Gym Leader’s script to activate the second badge’s flag. Now when I beat the first Gym leader, Cut activates, but the second badge shows up on the Trainer card.

Is there any way to make it so that Cut activates, but the first badge shows up on the Trainer card?

I’ve actually found a workaround for Cut, Rock Smash, and Strength. Each of those is controlled by a script on the tree or rock that you cut, smash, or move. It’s simple to open that script and change the flag it checks for to the correct (new) badge.

What I’d love to see is a way to do it for Flash, Surf, Fly, and Waterfall. I have no idea where the flags for those are checked.

nobody really cares about the trainer card that much.... it may not be as professional but you aren't getting it anymore professional... it's really unnecessary work....


All times are GMT -8. The time now is 2:29 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.