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
  #2526   Link to this post, but load the entire thread.  
Old March 14th, 2016 (7:23 PM).
Pokeeng Pokeeng is offline
 
Join Date: Nov 2015
Gender: Male
Posts: 73
Hi! I'm working on a Silver hack and I can't seem to figure out how to change the in-battle sprites for trainers.

i.e. When challenging Falkner, I want Sabrina's sprite to appear in the battle screen

Any help would be much appreciated!
  #2527   Link to this post, but load the entire thread.  
Old March 15th, 2016 (9:01 AM).
Natzen's Avatar
Natzen Natzen is offline
Creator of Pokémon: Sanguine
 
Join Date: Sep 2015
Location: Gruphasm, Darkan
Gender: Male
Nature: Adamant
Posts: 49
To bypass the filter that is not letting me post a link to my picture, I've put it in my signature, at the bottom.

Basically, I spent a fair amount of time editing my first map(Pallet town) - I followed the tutorials to the letter, but when I leave my house - it puts me in the water with a bunch of rock tiles around me so I cannot move.

What Did I do Wrong?
How Can I fix this?
Can it be fixed without 100% remaking the map AGAIN(For a third time).
  #2528   Link to this post, but load the entire thread.  
Old March 15th, 2016 (10:23 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
I get the comlog or cmdlog prompt, but I also get that with a couple of other tools I have that I haven't gotten around to needing enough yet to correct. I'm sure I can find a way to make the application work by getting the missing files with a little google-fu. Thanks!
My advice: don't use A-trainer. Use either Kurapika's GEN3Tools or Hopeless Trainer Editor. A-trainer is very outdated.
  #2529   Link to this post, but load the entire thread.  
Old March 15th, 2016 (11:48 AM).
Gintoki-Sama's Avatar
Gintoki-Sama Gintoki-Sama is offline
 
Join Date: Jan 2016
Location: Edo
Gender: Male
Nature: Gentle
Posts: 23
Quote:
Originally Posted by FBI View Post
Sorry, didn't bother to read the script. I just saw your comment which said that it worked perfectly without the special, then came to the conclusion that you forgot the waitstate.

After a quick look, it's become apparent to me that special 0x3B is not doing anything in your script in general. Special 0x38 seems to me like what you're looking for.
Ok so would the script be set up as:
special 0x38
playsong 0x129 0x0
trainerbattle 0x1 0x5 0x0 0x872CC3D 0x872CC59 0x872CC6D
waitstate

or

special 0x38
waitstate
playsong 0x129 0x0
trainerbattle 0x1 0x5 0x0 0x872CC3D 0x872CC59 0x872CC6D

Cause when i do it like both of these, the playsong doesnt stay during the battle, replacing the battle theme.
  #2530   Link to this post, but load the entire thread.  
Old March 15th, 2016 (2:02 PM).
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 Gintoki-Sama View Post
Ok so would the script be set up as:
special 0x38
playsong 0x129 0x0
trainerbattle 0x1 0x5 0x0 0x872CC3D 0x872CC59 0x872CC6D
waitstate

or

special 0x38
waitstate
playsong 0x129 0x0
trainerbattle 0x1 0x5 0x0 0x872CC3D 0x872CC59 0x872CC6D

Cause when i do it like both of these, the playsong doesnt stay during the battle, replacing the battle theme.
Oh, I see what you're trying to do now. You're trying to have the playsong as the battle song. About that, I don't believe you can do it purely from scripting. Maybe you can with a specific type of trainer battle, but the way I'd do it is to just use a hook to play the music I want when facing this specific trainer. For details you can ask in the ASM help thread, I'd be able to guide you there.
__________________
...
  #2531   Link to this post, but load the entire thread.  
Old March 15th, 2016 (3:14 PM).
FSBS's Avatar
FSBS FSBS is offline
Defunct
 
Join Date: May 2015
Gender: Male
Posts: 147
Quote:
Originally Posted by DizzyEgg View Post
My advice: don't use A-trainer. Use either Kurapika's GEN3Tools or Hopeless Trainer Editor. A-trainer is very outdated.
It's funny you mention G3Tools, since I had gone through every pokemon editor I had and searched for two hours online for a way to edit pokemon using MrDollsteak's base and it appears that G3Tools is compatible where I couldn't get YAPE, PGE, or Gen 3 Suite working-which means I can now use Mareep, Larvitar, and Spheal as starters (trust me, you can't just put those in without moving their learnset around a little.)
Aside that, in what way is A-Trainer outdated? I glanced at the G3T trainer editor and it seems to be almost identical to Lostelle's editor and the main difference between A-Trainer and the two are formatting, native repointing and A-Trainer lacking EV editing (which I'm not sure I understand well enough to bother with yet.)
Thanks again for your help, DizzyEgg.
  #2532   Link to this post, but load the entire thread.  
Old March 16th, 2016 (5:39 AM). Edited March 16th, 2016 by Spherical Ice.
INDIAN MEW(ARAZI)'s Avatar
INDIAN MEW(ARAZI) INDIAN MEW(ARAZI) is offline
THE WORLDS MOST DUMB MAN
 
Join Date: Mar 2015
Location: Sleeping in clouds.
Gender: Male
Nature: Relaxed
Posts: 399
where can I get bw or bw2 midi(music in all region)or how can I rip it.and where to get mid2agb please dont give hackrom tools altervista.
__________________
MY DEVIANT ART
http://arazitheman.deviantart.com
RUMOUR RED(FIRE RED BASE)
https://www.pokecommunity.com/showthread.php?t=396639
A2z GUIDE
http://www.pokemonhackersonline.com/showthread.php?t=15772-A2z-PokeRED-a-guide-for-fire-red
START LEARNING C,C++ OR PYTHON FOR FREE
https://www.sololearn.com

  #2533   Link to this post, but load the entire thread.  
Old March 16th, 2016 (1:47 PM).
Lord Comquat's Avatar
Lord Comquat Lord Comquat is offline
 
Join Date: Nov 2015
Location: Not gonna tell you.
Gender: Male
Nature: Quiet
Posts: 79
Is there a way I can get icon sets for Gen IV/V Pokemon? (More or less in a way so each set is insertable into programs from the get go)
  #2534   Link to this post, but load the entire thread.  
Old March 16th, 2016 (2:29 PM).
ganonrai's Avatar
ganonrai ganonrai is offline
 
Join Date: Apr 2008
Gender:
Posts: 21
I'm working on changing ROM bases from Fire Red to Emerald for my hack right now. I've moved the warp location from the truck to a building instead of Littleroot, and for some reason, now I'm not seeing the little popup in the top left-hand corner that says the city, town or route name. Is there some flag or something in the script in the beginning at littleroot that activates this or something?
  #2535   Link to this post, but load the entire thread.  
Old March 16th, 2016 (2:43 PM).
Nakasu Nakasu is offline
 
Join Date: Mar 2012
Posts: 533
Let's say I have a Script going on, and from that script i want it to be warped to another location where another script is happening, but without the player being there.

Basically a cutscene without the player.

how do I go about doing a script like that?
  #2536   Link to this post, but load the entire thread.  
Old March 16th, 2016 (2:55 PM).
Marugi's Avatar
Marugi Marugi is offline
 
Join Date: Oct 2015
Location: Cerulean Cave
Gender: Male
Nature: Hardy
Posts: 96
Quote:
Originally Posted by Nakasu View Post
Let's say I have a Script going on, and from that script i want it to be warped to another location where another script is happening, but without the player being there.

Basically a cutscene without the player.

how do I go about doing a script like that?
You could have the player moved behind a tree or a building and then move them back after the cutscene finishes.
  #2537   Link to this post, but load the entire thread.  
Old March 16th, 2016 (2:57 PM).
Nakasu Nakasu is offline
 
Join Date: Mar 2012
Posts: 533
Alright but how do I get the script to continue after the warp?
  #2538   Link to this post, but load the entire thread.  
Old March 16th, 2016 (3:09 PM).
Christos's Avatar
Christos Christos is offline
 
Join Date: Feb 2006
Gender: Male
Nature: Serious
Posts: 6,355
Quote:
Originally Posted by Nakasu View Post
Alright but how do I get the script to continue after the warp?
The script can't continue, but you can add a level script to the map the warp goes to.
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
  #2539   Link to this post, but load the entire thread.  
Old March 16th, 2016 (8:16 PM). Edited March 16th, 2016 by Spherical Ice.
Delta Nite's Avatar
Delta Nite Delta Nite is offline
 
Join Date: Jun 2009
Gender: Male
Posts: 35
So I managed to open the firered.idb file. If I understand it well, knizz has documented most of the ROM but... are there any tutorials on how to hack using it? On FBI's ASM tutorials he mentions that using it is essencial to make bigger projects, but I haven't found anything on actually doing something using it.
I understand this must be a really noob question, but I'm used to pokered disassembly and this seems completely different.
  #2540   Link to this post, but load the entire thread.  
Old March 17th, 2016 (3:41 AM).
EpicRoflcopter EpicRoflcopter is offline
 
Join Date: Mar 2016
Gender: Male
Posts: 4
Hello,

I am currently playing around with several hacking tools, settings and generally everything to get to know ROM hacking and prepare to start my own hack.
I had lots of trouble though with editing Pokemon data/Evolutions etc. but I finally found Pokemon Gen 3 Hacking Suite which works fine for me, with just one flaw.
The abilities are loaded as \x, meaning I cant find the right ones for the Pokemon.
My ROM is a german Firered and I used a copied ini file to get it to work with G3HS.
Any ideas on how to fix the ability names?

Regards
  #2541   Link to this post, but load the entire thread.  
Old March 17th, 2016 (5:32 AM).
esperance's Avatar
esperance esperance is offline
 
Join Date: Mar 2010
Location: OH
Age: 26
Gender: Male
Nature: Relaxed
Posts: 3,830
Quote:
Originally Posted by EpicRoflcopter View Post
Hello,

I am currently playing around with several hacking tools, settings and generally everything to get to know ROM hacking and prepare to start my own hack.
I had lots of trouble though with editing Pokemon data/Evolutions etc. but I finally found Pokemon Gen 3 Hacking Suite which works fine for me, with just one flaw.
The abilities are loaded as \x, meaning I cant find the right ones for the Pokemon.
My ROM is a german Firered and I used a copied ini file to get it to work with G3HS.
Any ideas on how to fix the ability names?

Regards
If you're saying that all the ability names are listed as "\x" then it sounds like the .ini is pointing to the wrong location for ability names. You need to make sure the .ini has the correct offset, and if it doesn't you should try and find the correct one so that it will list abilities correctly.
__________________
What are you so afraid of?
  #2542   Link to this post, but load the entire thread.  
Old March 17th, 2016 (6:27 AM).
EpicRoflcopter EpicRoflcopter is offline
 
Join Date: Mar 2016
Gender: Male
Posts: 4
Quote:
Originally Posted by Lostelle View Post
If you're saying that all the ability names are listed as "\x" then it sounds like the .ini is pointing to the wrong location for ability names. You need to make sure the .ini has the correct offset, and if it doesn't you should try and find the correct one so that it will list abilities correctly.
Thanks for the kind reply! I already searched the internet for the correct offset, couldnt find anything though :/
Any tips how I can find the correct one by myself?
Currently the ability stuff looks like this in the ini:
abilities = 0x8DDB24
numberofabilities = 0x4E
abiltiesnamelength = 0xD
Dunno if that helps :)

Thanks for helping me!
  #2543   Link to this post, but load the entire thread.  
Old March 17th, 2016 (6:46 AM).
esperance's Avatar
esperance esperance is offline
 
Join Date: Mar 2010
Location: OH
Age: 26
Gender: Male
Nature: Relaxed
Posts: 3,830
Quote:
Originally Posted by EpicRoflcopter View Post
Thanks for the kind reply! I already searched the internet for the correct offset, couldnt find anything though :/
Any tips how I can find the correct one by myself?
Currently the ability stuff looks like this in the ini:
abilities = 0x8DDB24
numberofabilities = 0x4E
abiltiesnamelength = 0xD
Dunno if that helps :)

Thanks for helping me!
If you're familiar with editing text via hex editor, that's usually a good place to start. You can load up your ROM in the hex editor and search for an ability name, which will bring you to the list of abilities. From there it's a simple matter to find the name of the first ability in the list and set that as the offset in the .ini.
__________________
What are you so afraid of?
  #2544   Link to this post, but load the entire thread.  
Old March 17th, 2016 (6:53 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 Delta Nite View Post
So I managed to open the firered.idb file. If I understand it well, knizz has documented most of the ROM but... are there any tutorials on how to hack using it? On FBI's ASM tutorials he mentions that using it is essencial to make bigger projects, but I haven't found anything on actually doing something using it.
I understand this must be a really noob question, but I'm used to pokered disassembly and this seems completely different.
Ah, the IDA with knizz's idb serves as a good reference tool. It's near as useful as commented code, but mainly it's just a database of the functions/data structures in FireRed given names based on functionality. When comparing to raw ASM code, it's easier to understand what's happening. Here are some keyboard shortcuts to make life easier:
x - Pulls up a list of x-references
alt + t - search, supports regular expressions
g - goto address. Include prefix
F5 - attempts to convert ASM to C, as close as possible (sometimes it comes out wrong)

In general, it just makes certain aspects of ASM hacking easier, for example finding things, debugging, and just viewing raw ASM. While I haven't exactly made any tutorials on the subject, I figure it's fairly easy to use once you get started.
__________________
...
  #2545   Link to this post, but load the entire thread.  
Old March 17th, 2016 (12:15 PM). Edited March 17th, 2016 by Spherical Ice.
Substitute Doll's Avatar
Substitute Doll Substitute Doll is offline
An Alolan Exeggutor
 
Join Date: May 2015
Location: Under an alolan exeggutor
Gender: Male
Nature: Bashful
Posts: 115
anyone have a Ruby idb file?
thxs
just using it to port Andrea's DPPT icon hack
__________________
The Chat
  #2546   Link to this post, but load the entire thread.  
Old March 17th, 2016 (1:43 PM).
EpicRoflcopter EpicRoflcopter is offline
 
Join Date: Mar 2016
Gender: Male
Posts: 4
Quote:
Originally Posted by Lostelle View Post
If you're familiar with editing text via hex editor, that's usually a good place to start. You can load up your ROM in the hex editor and search for an ability name, which will bring you to the list of abilities. From there it's a simple matter to find the name of the first ability in the list and set that as the offset in the .ini.
As I could not figure out how to search for an abilities name (tried with normal text, text in hex values, different character sets) I looked in the .ini files of the other programs I used and found the offset for ability names there. I put them in the .ini file of G3HS, still the \x stuff :/
  #2547   Link to this post, but load the entire thread.  
Old March 18th, 2016 (3:18 PM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
How do you add a Pokemon as seen in the Pokedex in Emerad? It's special 0x163 in FireRed but that doesn't work for Emerald.
  #2548   Link to this post, but load the entire thread.  
Old March 19th, 2016 (4:04 AM).
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
Can anyone point me to that tutorial wherein we can add custom scripts to an item? I've been looking for a while but I cannot seem to find it. Thanks~
__________________

  #2549   Link to this post, but load the entire thread.  
Old March 19th, 2016 (5:19 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 C me View Post
How do you add a Pokemon as seen in the Pokedex in Emerad? It's special 0x163 in FireRed but that doesn't work for Emerald.
There probably isn't a special for that in Emerald. A simple callasm does the job anyway.

Code:
.text
.thumb
.thumb_func
.align 2

main:
    push {lr}
    ldr r0, var_8004
    ldrh r0, [r0]
    mov r1, #2 @you can change it to  0 - get if seen
                @                  1 - get if caught
                @                  2 - set seen
                @                  3 - set caught
    ldr r2, get_or_set_pokedex
    bl callviar2
    pop {pc}
    
callviar2:
    bx r2
    
.align 2
var_8004: .word 0x020375E0
get_or_set_pokedex: .word 0x080C0665
Set var 8004 to a national dex number of poke and then call this asm.
  #2550   Link to this post, but load the entire thread.  
Old March 19th, 2016 (5:28 AM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
Quote:
Originally Posted by DizzyEgg View Post
There probably isn't a special for that in Emerald. A simple callasm does the job anyway.

Code:
.text
.thumb
.thumb_func
.align 2

main:
    push {lr}
    ldr r0, var_8004
    ldrh r0, [r0]
    mov r1, #2 @you can change it to  0 - get if seen
                @                  1 - get if caught
                @                  2 - set seen
                @                  3 - set caught
    ldr r2, get_or_set_pokedex
    bl callviar2
    pop {pc}
    
callviar2:
    bx r2
    
.align 2
var_8004: .word 0x020375E0
get_or_set_pokedex: .word 0x080C0665
Set var 8004 to a national dex number of poke and then call this asm.
This deserves a quick R&D post.
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:25 AM.