The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Help Thread Quick Questions & Answers

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Closed Thread
 
Thread Tools
  #2576   Link to this post, but load the entire thread.  
Old March 25th, 2016 (1:47 AM).
DizzyEgg's Avatar
DizzyEgg DizzyEgg is offline
 
Join Date: Feb 2014
Location: Poland
Age: 25
Gender: Male
Nature: Quiet
Posts: 794
Quote:
Originally Posted by firestarterbeststarter! View Post
Alright, so I've figured out how to not have the red screen crash when I want a sprite to disappear after trainerbattle. However, the sprite does not disappear until after I've activated them (pressing A), in which case the screen flashes and the sprite remains until I leave the map and return.
So what am I doing wrong? I've tried waitkeypress and no matter what, I can't find any documentation to make a trainer disappear after battle. It seems 0x3 and 0x1 both work the same way, so I'm pretty sure it's not that.
Am I missing something fundamental here in regards to scripting?
]
Trainerbattle 0x0 ends the script execution, try 0x1, so script continues after a battle. Also, no need to set person's flag. The command hidesprite does it automatically.
  #2577   Link to this post, but load the entire thread.  
Old March 25th, 2016 (6:19 AM).
Ayonn-'s Avatar
Ayonn- Ayonn- is offline
The Unbelivable
 
Join Date: May 2014
Location: FRANCE
Gender: Male
Nature: Jolly
Posts: 209
TWO QUESTIONS:

Is there a way to set the IV of a pokemon with a script?

The other question is:

Is there a Save editor working with a ini ??
__________________
In current project...
  #2578   Link to this post, but load the entire thread.  
Old March 25th, 2016 (6:30 AM).
DizzyEgg's Avatar
DizzyEgg DizzyEgg is offline
 
Join Date: Feb 2014
Location: Poland
Age: 25
Gender: Male
Nature: Quiet
Posts: 794
Quote:
Originally Posted by Ayonn- View Post
TWO QUESTIONS:
Is there a way to set the IV of a pokemon with a script?
The other question is:
Is there a Save editor working with a ini ??
1.Yeah, you need to write a custom routine and then callasm. See this thread:
http://www.pokecommunity.com/showthread.php?t=347391

2.What do you mean a save editor? What exactly do you want to change?
  #2579   Link to this post, but load the entire thread.  
Old March 25th, 2016 (6:32 AM).
FSBS's Avatar
FSBS FSBS is offline
Defunct
 
Join Date: May 2015
Gender: Male
Posts: 147
Quote:
Originally Posted by DizzyEgg View Post
Trainerbattle 0x0 ends the script execution, try 0x1, so script continues after a battle. Also, no need to set person's flag. The command hidesprite does it automatically.
Alright, removing the flag causes the person to disappear when activating them after the battle only to reappear immediately, which is why I thought I needed a flag to begin with (I had this trouble when I first started doing pokeball item scripts.)
Setting a flag makes them disappear, but only when activating them after battle. The only trainerbattle parameters it allows me to do are trainerbattle 0x0 0x009 0x1, so when you say try 0x1 I assume you mean trainerbattle 0x1, which it won't allow me to do.
I studied Diego's tutorial a little more last night, and I'm wondering if I shouldn't be using the gym battle as a template, as the trainers I want to disappear are sort of special events like gym leaders would be.
  #2580   Link to this post, but load the entire thread.  
Old March 25th, 2016 (6:36 AM).
Ayonn-'s Avatar
Ayonn- Ayonn- is offline
The Unbelivable
 
Join Date: May 2014
Location: FRANCE
Gender: Male
Nature: Jolly
Posts: 209
Quote:
Originally Posted by DizzyEgg View Post
1.Yeah, you need to write a custom routine and then callasm. See this thread:
http://www.pokecommunity.com/showthread.php?t=347391

2.What do you mean a save editor? What exactly do you want to change?



Ok thank you, I want to change my badges and my pokemons, I ended the base of my hack, but I don't have the time to play it all along to seek for bugs...I wanted to use one of the existing save editors, but I changed tje offsets of pokemons etcs... So it says my file save is corrupted...
  #2581   Link to this post, but load the entire thread.  
Old March 25th, 2016 (8:32 AM).
Munichtastics's Avatar
Munichtastics Munichtastics is offline
 
Join Date: Aug 2014
Gender: Male
Posts: 78
Quick question
- Is there any way to import the version of the pokedex from DPP into Firered
__________________
Pokemon 'The Tree of Time'
Banner in progress!
https://www.pokecommunity.com/showthread.php?t=363830
  #2582   Link to this post, but load the entire thread.  
Old March 25th, 2016 (8:32 AM).
Munichtastics's Avatar
Munichtastics Munichtastics is offline
 
Join Date: Aug 2014
Gender: Male
Posts: 78
Quick question
- Is there any way to import the version of the pokedex from DPP into Firered
__________________
Pokemon 'The Tree of Time'
Banner in progress!
https://www.pokecommunity.com/showthread.php?t=363830
  #2583   Link to this post, but load the entire thread.  
Old March 25th, 2016 (7:24 PM). Edited March 26th, 2016 by aaronburnsyou.
aaronburnsyou aaronburnsyou is offline
Hi, I'm not a pokemon.
 
Join Date: Feb 2007
Location: Planet Hawaii (not really)
Nature: Lax
Posts: 263
Howdy.

I'm a bit new to hex editing, and I'm wondering if it's possible to add moves to a pokemon's level-up moveset in Pokemon Crystal. At this point I'm able to change the move and level it's learned by editing already-existing moves, but I want to know if it's possible to add new ones all together (and if so, how I would go about doing that).
__________________
Welcome to The Void. Trash Day's on Wednesdays.
  #2584   Link to this post, but load the entire thread.  
Old March 25th, 2016 (8:05 PM).
Crizzle's Avatar
Crizzle Crizzle is offline
Legend
 
Join Date: Apr 2015
Location: USA
Age: 28
Gender: Male
Posts: 943
Quote:
Originally Posted by firestarterbeststarter! View Post
Alright, removing the flag causes the person to disappear when activating them after the battle only to reappear immediately, which is why I thought I needed a flag to begin with (I had this trouble when I first started doing pokeball item scripts.)
Setting a flag makes them disappear, but only when activating them after battle. The only trainerbattle parameters it allows me to do are trainerbattle 0x0 0x009 0x1, so when you say try 0x1 I assume you mean trainerbattle 0x1, which it won't allow me to do.
I studied Diego's tutorial a little more last night, and I'm wondering if I shouldn't be using the gym battle as a template, as the trainers I want to disappear are sort of special events like gym leaders would be.
I think you are more or less misunderstanding trainerbattle. If you want to have a person who disapears right after the battle. It should look something like this.

Spoiler:
#dynamic 0x800000
#org @start
trainerbattle 0x2 0x9 0x0 @intro @inbattledefeat @postbattle
end

#org @postbattle
fadescreen 0x1
hidesprite 0x4
fadescreen 0x0
release
end

#org @intro
= Hey lets battle!

#org @inbattledefeat
= Oh no I lost



I think you can also use trainerbattle 0x1 with this as well.
__________________
Pokemon Savage Silver
Check out the crappy hacks that I made:

Credit to Corazon(or whatever he calls himself now) for banner.
Pokemon CAWPS
Pokemon Outlaw
  #2585   Link to this post, but load the entire thread.  
Old March 25th, 2016 (9:20 PM).
FSBS's Avatar
FSBS FSBS is offline
Defunct
 
Join Date: May 2015
Gender: Male
Posts: 147
Quote:
Originally Posted by Crizzle View Post
I think you are more or less misunderstanding trainerbattle. If you want to have a person who disapears right after the battle. It should look something like this.

Spoiler:
#dynamic 0x800000
#org @start
trainerbattle 0x2 0x9 0x0 @intro @inbattledefeat @postbattle
end

#org @postbattle
fadescreen 0x1
hidesprite 0x4
fadescreen 0x0
release
end

#org @intro
= Hey lets battle!

#org @inbattledefeat
= Oh no I lost



I think you can also use trainerbattle 0x1 with this as well.
Still getting the same effect. I'm trying to figure out what I'm not doing, what I've overlooked. Unknowns are set to 3 across the board, and hidesprite works with sprite pokemon encounters I've done and overworld items. Guess I'll look over Diego's tutorial again and see what I missed.
  #2586   Link to this post, but load the entire thread.  
Old March 26th, 2016 (5:11 AM).
Crizzle's Avatar
Crizzle Crizzle is offline
Legend
 
Join Date: Apr 2015
Location: USA
Age: 28
Gender: Male
Posts: 943
Quote:
Originally Posted by firestarterbeststarter! View Post
Still getting the same effect. I'm trying to figure out what I'm not doing, what I've overlooked. Unknowns are set to 3 across the board, and hidesprite works with sprite pokemon encounters I've done and overworld items. Guess I'll look over Diego's tutorial again and see what I missed.
You used the script that I posted above and got the same effect as you did initially?
__________________
Pokemon Savage Silver
Check out the crappy hacks that I made:

Credit to Corazon(or whatever he calls himself now) for banner.
Pokemon CAWPS
Pokemon Outlaw
  #2587   Link to this post, but load the entire thread.  
Old March 26th, 2016 (9:06 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Munichtastics View Post
Quick question
- Is there any way to import the version of the pokedex from DPP into Firered
without recoding it? No.
__________________
...
  #2588   Link to this post, but load the entire thread.  
Old March 26th, 2016 (9:19 AM).
LostRequiem LostRequiem is offline
 
Join Date: Mar 2016
Gender: Other
Posts: 1
Hi Folks,
This is my first post, but I've used numerous tips and tutorials from this site in my rom hacking so far, so thank you all for that. There's a problem though, that I've encountered that I can't see to google the answer for.
Rom I'm Hacking: Fire Red

Problem: I have new Fakemon Evolutions of first gen pokemon, some functioning by happiness, some by evo stones. I can't say if the happiness evos aren't working, but I know for a fact stone evo's aren't. I have hacked the game such that I can evolve pretty much any other pokemon in the game regardless of GEN, Ex: Teddiursa -> Ursaring using the Misc. Editor, so it's probably not Dex related, as that's the answer I generally find when I google this.

Ex. I changed the game so that Growlithe evolves by level and Arcanine Evolves into Fakemon Volcanine by Fire Stone, but When I use the stone the game goes into the use item animation, and then goes "huh?" and stops.

I have other Pokemon that evolve via happiness (Starmie into Starone) and I can't tell if that function is wrong too because I haven't beat the elite four and unlocked Daisy Oak's happiness checking function. I just know that none of those pokemon have evolved either, which could be part of the same problem.

Why is this happening?
  #2589   Link to this post, but load the entire thread.  
Old March 26th, 2016 (10:07 AM).
FSBS's Avatar
FSBS FSBS is offline
Defunct
 
Join Date: May 2015
Gender: Male
Posts: 147
Quote:
Originally Posted by Crizzle View Post
You used the script that I posted above and got the same effect as you did initially?
Yes. However, I am going to attempt to try it one more time tonight with a clean rom to test. I'll report results.
  #2590   Link to this post, but load the entire thread.  
Old March 26th, 2016 (3:10 PM).
CapnCrunch's Avatar
CapnCrunch CapnCrunch is offline
Captain
 
Join Date: Mar 2012
Location: Missouri
Age: 27
Gender: Male
Nature: Calm
Posts: 13
Im making a simple Hack of Fire Red so im not doing anything major. But I ran across a huge bug when crossing from Rt 14 to Rt 15. The game crashes as soon as you change maps. The only thing i changed about either of them was removing the Cut Tree so you dont need Cut to access that area in Rt 15. Im not too sure why its doing this, if anyone has any suggestions, thatd be great.
  #2591   Link to this post, but load the entire thread.  
Old March 26th, 2016 (3:29 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Quote:
Originally Posted by CapnCrunch View Post
Im making a simple Hack of Fire Red so im not doing anything major. But I ran across a huge bug when crossing from Rt 14 to Rt 15. The game crashes as soon as you change maps. The only thing i changed about either of them was removing the Cut Tree so you dont need Cut to access that area in Rt 15. Im not too sure why its doing this, if anyone has any suggestions, thatd be great.
Try giving every NPC in there the [No Movement] movement with A-Map and see what happens.
__________________

  #2592   Link to this post, but load the entire thread.  
Old March 26th, 2016 (3:54 PM).
CapnCrunch's Avatar
CapnCrunch CapnCrunch is offline
Captain
 
Join Date: Mar 2012
Location: Missouri
Age: 27
Gender: Male
Nature: Calm
Posts: 13
Quote:
Originally Posted by destinedjagold View Post
Try giving every NPC in there the [No Movement] movement with A-Map and see what happens.
This worked!! Thank you a bunch :D
  #2593   Link to this post, but load the entire thread.  
Old March 26th, 2016 (4:00 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Quote:
Originally Posted by CapnCrunch View Post
This worked!! Thank you a bunch :D
We can probably safely assume that one of the NPCs in the map had the [Look Down] movement before, which causes the crash. To prevent this from happening again, you should avoid using the [Look Down] movement that's right above the [Hidden] movement.
__________________

  #2594   Link to this post, but load the entire thread.  
Old March 26th, 2016 (4:14 PM).
CapnCrunch's Avatar
CapnCrunch CapnCrunch is offline
Captain
 
Join Date: Mar 2012
Location: Missouri
Age: 27
Gender: Male
Nature: Calm
Posts: 13
Quote:
Originally Posted by destinedjagold View Post
We can probably safely assume that one of the NPCs in the map had the [Look Down] movement before, which causes the crash. To prevent this from happening again, you should avoid using the [Look Down] movement that's right above the [Hidden] movement.
How does this cause the crash exactly? Plenty of default trainers in fire red and even items have the look down movement. Is it because i removed a person event (Cut tree)?
  #2595   Link to this post, but load the entire thread.  
Old March 26th, 2016 (4:33 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by CapnCrunch View Post
How does this cause the crash exactly? Plenty of default trainers in fire red and even items have the look down movement. Is it because i removed a person event (Cut tree)?
I'm not entirely certain why it causes the crash, However, that specific "Look Down" is broken. The other one is not.
Spherical Ice made a new ini for the A-Map Sprite Behaviours, But there isn't an explanation on why it's broken, just that it is.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
  #2596   Link to this post, but load the entire thread.  
Old March 26th, 2016 (5:07 PM).
CapnCrunch's Avatar
CapnCrunch CapnCrunch is offline
Captain
 
Join Date: Mar 2012
Location: Missouri
Age: 27
Gender: Male
Nature: Calm
Posts: 13
Quote:
Originally Posted by Vendily View Post
I'm not entirely certain why it causes the crash, However, that specific "Look Down" is broken. The other one is not.
Spherical Ice made a new ini for the A-Map Sprite Behaviours, But there isn't an explanation on why it's broken, just that it is.
okay i understand, thank you again
  #2597   Link to this post, but load the entire thread.  
Old March 26th, 2016 (8:37 PM).
CapnCrunch's Avatar
CapnCrunch CapnCrunch is offline
Captain
 
Join Date: Mar 2012
Location: Missouri
Age: 27
Gender: Male
Nature: Calm
Posts: 13
Another question:
I made an area where you could find jirachi. I used PKSV ui's script generator to make a script and i added it using the correct flag in A-Map. The battle works perfectly, and if you kill it or run away, the sprite disapears like it should. But if you catch the jirachi, it will let you battle again and again. Any ideas what i can add to the script or change? Im fairly new to scripting although i understand what most of it means.

Spoiler:

#dyn 0x740000
#org @start
special 0x187
compare LASTRESULT 2
if == jump 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry JIRACHI 2
waitcry
pause 0x14
playsound 0x156 0x0
battle JIRACHI 50 RARECANDY
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
special2 0x800D 0xB4
compare LASTRESULT 1
if == jump 0x8162558
compare LASTRESULT 4
if == jump 0x8162561
compare LASTRESULT 5
if == jump 0x8162561
setflag 0x430
release
end
  #2598   Link to this post, but load the entire thread.  
Old March 26th, 2016 (8:48 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by CapnCrunch View Post
Another question:
I made an area where you could find jirachi. I used PKSV ui's script generator to make a script and i added it using the correct flag in A-Map. The battle works perfectly, and if you kill it or run away, the sprite disapears like it should. But if you catch the jirachi, it will let you battle again and again. Any ideas what i can add to the script or change? Im fairly new to scripting although i understand what most of it means.

Spoiler:

#dyn 0x740000
#org @start
special 0x187
compare LASTRESULT 2
if == jump 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry JIRACHI 2
waitcry
pause 0x14
playsound 0x156 0x0
battle JIRACHI 50 RARECANDY
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
special2 0x800D 0xB4
compare LASTRESULT 1
if == jump 0x8162558
compare LASTRESULT 4
if == jump 0x8162561
compare LASTRESULT 5
if == jump 0x8162561
setflag 0x430
release
end
According to this, Special 0xB4 returns 0x7 if the pokemon is caught, so replace that 5 with 0x7.
But there is a more efficient way of doing this.
Quote:
compare LASTRESULT 4
if == jump 0x8162561
compare LASTRESULT 5
if == jump 0x8162561
These two jump to the same location. You could make a if > jump 0x8162561 (I'm not sure of the syntax for PKSV though, so check) and it will catch the two results and put them to the same spot.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
  #2599   Link to this post, but load the entire thread.  
Old March 26th, 2016 (9:24 PM).
CapnCrunch's Avatar
CapnCrunch CapnCrunch is offline
Captain
 
Join Date: Mar 2012
Location: Missouri
Age: 27
Gender: Male
Nature: Calm
Posts: 13
Quote:
Originally Posted by Vendily View Post
Special 0xB4 returns 0x7 if the pokemon is caught, so replace that 5 with 0x7.
Im sorry, but replace what 5? The compare LASTRESULT 5?

EDIT: This worked! Only issue is after you catch it, it says "the wild mewtwo fled..." lol Not the biggest issue in the world but it works
  #2600   Link to this post, but load the entire thread.  
Old March 26th, 2016 (9:29 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by CapnCrunch View Post
Im sorry, but replace what 5? The compare LASTRESULT 5?
Yes, you would replace that 5. Sorry, I should have made that more clear.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Closed Thread

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 -8. The time now is 9:24 AM.