Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub > Beginner’s Lounge
Reload this Page [ARCHIVE] Simple Questions (SEARCH BEFORE ASKING A QUESTION)

Notices
For all updates, view the main page.

Beginner’s Lounge Where all good (and bad) ideas start. This is the Beginner’s Lounge, where if you need a helping hand or want to develop your small ideas, you bring it here. We won't bite.



Closed Thread
 
Thread Tools
  #19676    
Old September 24th, 2011 (08:59 PM).
DavidJCobb DavidJCobb is offline
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Posts: 275
Quote originally posted by Nitrus015:
True. Oh well... I was thinking of playing around with Rare Candies, but might as well push myself to learn ASM... I've prolonged not learning it for a while now... :\
ASM's a good thing to learn. It'll make it so much easier to understand FireRed and do more advanced things than scripts can provide.

Word of advice 1: Start by just trying to read and understand ASM. Put off writing your own routines until you've a good grasp of the language.

Word of advice 2: If you already know your own programming languages, you may find translation to be an easier way to understand the game's ASM. For example, when I read ASM, I literally do a line-by-line translation into something that resembles JavaScript more than it does ASM. Makes it more readable, IMO.
__________________
  #19677    
Old September 24th, 2011 (10:13 PM).
Thrasher24's Avatar
Thrasher24 Thrasher24 is offline
~Legendary Master~
 
Join Date: Mar 2011
Location: Outside of Pallet Town, Kanto
Gender: Male
Nature: Adamant
Posts: 55
RE: NATDEX WORKS

Nvm, it worked once but now it doesnt. I open XSE and the script offset, and it has the nat dex info but i still only get the old dex. How do i fix this?
  #19678    
Old September 24th, 2011 (11:33 PM).
DavidJCobb DavidJCobb is offline
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Posts: 275
Quote originally posted by Thrasher24:
RE: NATDEX WORKS

Nvm, it worked once but now it doesnt. I open XSE and the script offset, and it has the nat dex info but i still only get the old dex. How do i fix this?
Uh... Could you perhaps post the script (in a spoiler tag, please) for us to look at, so we can see if there are errors in it? And which game are you working with? FireRed, right?
__________________
  #19679    
Old September 25th, 2011 (05:53 AM).
PunkRock PunkRock is offline
 
Join Date: Sep 2011
Posts: 5
Hey I have a question is it possible to replace a pokemons moves? Like for example I want to change quick attack to " Roar of time " Is it possible to import it like importing a new sprite?
  #19680    
Old September 25th, 2011 (08:03 AM).
SwirlyBirds's Avatar
SwirlyBirds SwirlyBirds is offline
apparently not quite dead
Gold Tier
 
Join Date: May 2010
Nature: Lonely
Posts: 813
Quote originally posted by PunkRock:
Hey I have a question is it possible to replace a pokemons moves? Like for example I want to change quick attack to " Roar of time " Is it possible to import it like importing a new sprite?
No, don't get rid of quick attack, do you want a bunch of Rattata that know Roar of Time?

The move animations can be edited in uNLZ, the effects and stats, in A-Tack. I'm not sure how to change the name of the moves themselves, but I know there is a way.
__________________
this is not a signature
  #19681    
Old September 25th, 2011 (10:12 AM).
EdensElite's Avatar
EdensElite EdensElite is offline
No0b, but getting there.
 
Join Date: Jun 2011
Location: UK
Gender: Male
Nature: Bold
Posts: 190
Does anybody know the flag for recieving a pokemon
__________________

ROM Hacking was getting frustrating for me. I've now stopped productions and writing the game from scratch in HTML 5.

That means it will be playable in the browser, and across multiple devices such as the iPod touch.
  #19682    
Old September 25th, 2011 (10:21 AM).
SwirlyBirds's Avatar
SwirlyBirds SwirlyBirds is offline
apparently not quite dead
Gold Tier
 
Join Date: May 2010
Nature: Lonely
Posts: 813
Quote originally posted by EdensElite:
Does anybody know the flag for recieving a pokemon
There's no flag, it's a givepokemon script. Flags are for stuff like Pokedex, Running Shoes, etc.
__________________
this is not a signature
  #19683    
Old September 25th, 2011 (11:07 AM).
PunkRock PunkRock is offline
 
Join Date: Sep 2011
Posts: 5
Quote originally posted by HackDeoxys:
No, don't get rid of quick attack, do you want a bunch of Rattata that know Roar of Time?

The move animations can be edited in uNLZ, the effects and stats, in A-Tack. I'm not sure how to change the name of the moves themselves, but I know there is a way.
Haha nah i wasn't it was just an example, and do you mind linking me to " A-tack ". Much appreciated man.
  #19684    
Old September 25th, 2011 (11:42 AM).
Truality Truality is offline
Left for good
 
Join Date: Aug 2011
Gender: Male
Posts: 1,007
Send a message via Windows Live Messenger to Truality Send a message via Skype™ to Truality
Quote originally posted by EdensElite:
Does anybody know the flag for recieving a pokemon
Quote originally posted by HackDeoxys:
There's no flag, it's a givepokemon script. Flags are for stuff like Pokedex, Running Shoes, etc.
He probably meant the flag that enables the pokemon menu. You can't get ahold of your pokemon if you don't enable it. It's the flag 0x820.
__________________
This is my December . . .
  #19685    
Old September 25th, 2011 (12:32 PM).
SwirlyBirds's Avatar
SwirlyBirds SwirlyBirds is offline
apparently not quite dead
Gold Tier
 
Join Date: May 2010
Nature: Lonely
Posts: 813
Quote originally posted by PunkRock:
Haha nah i wasn't it was just an example, and do you mind linking me to " A-tack ". Much appreciated man.
Sorry, you're not allowed to post links to other forums, but you can look for it on Whack A Hack.
__________________
this is not a signature
  #19686    
Old September 25th, 2011 (01:09 PM).
EdensElite's Avatar
EdensElite EdensElite is offline
No0b, but getting there.
 
Join Date: Jun 2011
Location: UK
Gender: Male
Nature: Bold
Posts: 190
Sorry, I wasn't clear enough, what I meant was, the flag that checks you have a pokemon, for the starters etc.

Also, What the easiest way of replacing a pokemon's cry?
__________________

ROM Hacking was getting frustrating for me. I've now stopped productions and writing the game from scratch in HTML 5.

That means it will be playable in the browser, and across multiple devices such as the iPod touch.
  #19687    
Old September 25th, 2011 (02:01 PM).
ThundahCakes ThundahCakes is offline
 
Join Date: Sep 2011
Gender: Male
Posts: 1
I can't be bothered to go through 788 pages of ROM hacking, so can someone please tell me (or give me a program/tutorial) how to put sprites from a Gen. IV/V 'mon into a Gen. III game?
  #19688    
Old September 25th, 2011 (03:45 PM).
PunkRock PunkRock is offline
 
Join Date: Sep 2011
Posts: 5
Quote originally posted by ThundahCakes:
I can't be bothered to go through 788 pages of ROM hacking, so can someone please tell me (or give me a program/tutorial) how to put sprites from a Gen. IV/V 'mon into a Gen. III game?
At least check the forum before asking a question... if your looking for a tutorial its kind of obvious that it would be in the TUTORIAL Section...
  #19689    
Old September 25th, 2011 (03:50 PM). Edited September 25th, 2011 by DavidJCobb.
DavidJCobb DavidJCobb is offline
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Posts: 275
Quote originally posted by EdensElite:
Sorry, I wasn't clear enough, what I meant was, the flag that checks you have a pokemon, for the starters etc.
Flags don't check for anything, but they can be set or unset by other things that check things.

If you're referring to the "Pokemon" option in the Start Menu, though, then you would need to set flag 0x828 in FireRed. You can find other flags listed in XSE's "std.rbh" (which maps numerical values to textual names, so that you don't need to memorize so much).

Quote originally posted by ThundahCakes:
I can't be bothered to go through 788 pages of ROM hacking,
You don't need to.

Quote originally posted by ThundahCakes:
so can someone please tell me (or give me a program/tutorial) how to put sprites from a Gen. IV/V 'mon into a Gen. III game?
Download any one of several Pokemon-editing programs from the "Toolbox" section. Find the Gen IV sprites you want to insert. Scale them down to 64x64px in an image editor -- and don't use resampling or anti-aliasing. Insert into the ROM using a program from the Toolbox.

If you have palette issues, make sure that the front and back sprites use the exact same sixteen colors. (In Gen IV, the two are allowed to have different palettes. The same is not true for Gen III.)
__________________
  #19690    
Old September 25th, 2011 (06:57 PM).
Nitrus015 Nitrus015 is offline
 
Join Date: Sep 2011
Gender: Male
Posts: 4
Anybody got opcodes for the givepokemon command? (0x79)
Turns out changing the Pokemon level is simple enough, but it's just that number and nothing else.

Adding experience will bug the game out, at numerous factors, because multiple things need to be calculated.
So I thought: If we have the opcodes to the givepokemon command, we could create another custom routine which would enter the level as a word instead of byte, and make it do the level and other necessary calculations on it's own.

Even opcodes on applying Rare Candy would be nice too (we could strip it and make it loop for the necessary number of levels for it to be applied, without all the eyecandy stuff, like the funfare's or animations, just simple leveling up for about 50 times ).
  #19691    
Old September 25th, 2011 (07:16 PM).
DavidJCobb DavidJCobb is offline
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Posts: 275
Quote originally posted by Nitrus015:
Anybody got opcodes for the givepokemon command? (0x79)
Turns out changing the Pokemon level is simple enough, but it's just that number and nothing else.
You're heading in the right direction.

Check the FireRed script command reference in my signature. In its appendix is a brief section on how to find the pointer to any script command's ASM. Find it, and then follow it, and bam! There's your ASM.

Quote originally posted by Nitrus015:
So I thought: If we have the opcodes to the givepokemon command, we could create another custom routine which would enter the level as a word instead of byte, and make it do the level and other necessary calculations on it's own.
Precisely.

You may find this information useful when trying to understand the givepokemon ASM:

The ASM routine at 0x080698F8 extracts a halfword argument from the script currently being read, and stores it in r0.

The ASM routine at 0x0806E568 will check if the value in r0 is a reference to a variable (above 0x3FFF, basically). If so, it extracts that value and stores it in r0. Otherwise, r0 is untouched.

Game Freak uses the above two as follows:

call 0x080698F8
lsl r0, r0, #0x10
lsr r0, r0, #0x10 // this and above line force to halfword. redundant, but hey.
call 0x0806E568
// And now r0 equals the specified word-or-variable argument.

0x0806E6D0 grabs the value of a variable or flag referred to by r0.

And finally, a tip: don't edit givepokemon itself, as that will break compatibility with XSE. Instead, create a copy to be called using "callasm". You will not be able to read in arguments from the script itself, but you could have it work any number of different ways. (For example, have it check the values of pre-specified variables that you would set just prior to the "callasm"; or have it load the values of the four script banks, if you wish to pass in dword arguments...)

EDIT: Oh, one more thing. Givepokemon actually sets certain script variables and possibly flags depending on where the Pokemon ends up. It sets 0x4037 (IIRC) to the PC box a Pokemon is sent to (if the party is full), and it sets LASTRESULT to 0x0 if the Pokemon was stored to the party, 0x1 if to the PC, and 0x2 if both the party and the PC are full (no Pokemon given).
__________________
  #19692    
Old September 25th, 2011 (11:07 PM).
Nitrus015 Nitrus015 is offline
 
Join Date: Sep 2011
Gender: Male
Posts: 4
Thank you again for all the helpful info. I'm not that efficient with ASM yet, but I'm getting there..

Quote:
And finally, a tip: don't edit givepokemon itself, as that will break compatibility with XSE.
Yes, of course, it may mess things up where it's actually used in the game too, not just in scripting... Like when OAK gives you the starter...

I was thinking of making an exact same function, cloning it if you will, and call that in XSE, or PKSV.
  #19693    
Old September 25th, 2011 (11:49 PM).
Riksem Riksem is offline
 
Join Date: May 2007
Nature: Adamant
Posts: 3
My rom patches give me a blank screen ive moved it to flash 128k also its this paych to firered do i need to name it something different? this is the name
Shattered Dreams Alpha.rar i go to lunarips press create choose Pokemon - Fire Red.GBA and then select Shattered Dreams Alpha.rar it creates it then i go to apply and select it to the firered save and i get a white screen what do i do?
ww.pokecommunity.com/showthread.php?t=249368
  #19694    
Old September 26th, 2011 (01:30 AM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
Silver Tier
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Posts: 1,152
Quote originally posted by Riksem:
My rom patches give me a blank screen ive moved it to flash 128k also its this paych to firered do i need to name it something different? this is the name
Shattered Dreams Alpha.rar i go to lunarips press create choose Pokemon - Fire Red.GBA and then select Shattered Dreams Alpha.rar it creates it then i go to apply and select it to the firered save and i get a white screen what do i do?
ww.pokecommunity.com/showthread.php?t=249368
You need to un-rar it. There should be a .IPS file inside the .RAR file.

http://www.rarlab.com/download.htm
__________________
あなた は しきしゃ です
わたし は ばか です
  #19695    
Old September 26th, 2011 (01:59 AM).
Riksem Riksem is offline
 
Join Date: May 2007
Nature: Adamant
Posts: 3
thank you so much dude ive been stuck on this new pc and all so i dont have many programs downloaded thx again :)
  #19696    
Old September 26th, 2011 (05:50 AM).
lestralen lestralen is offline
 
Join Date: Jul 2009
Gender: Male
Posts: 1
I'm running gameboy games like blue red and yellow on my ds but i hate how slow you play and can't be bother with overclocking my ds or finding a speed up app is there a way to increase the speed of the rom?
  #19697    
Old September 26th, 2011 (10:02 AM).
Thrasher24's Avatar
Thrasher24 Thrasher24 is offline
~Legendary Master~
 
Join Date: Mar 2011
Location: Outside of Pallet Town, Kanto
Gender: Male
Nature: Adamant
Posts: 55
Quote originally posted by DavidJCobb:
Uh... Could you perhaps post the script (in a spoiler tag, please) for us to look at, so we can see if there are errors in it? And which game are you working with? FireRed, right?
Emerald. It worked the first time i did it, than it just stopped.

Spoiler:
#org 0x1FA25A
lock
faceplayer
compare 0x40D3 0x5
if 0x1 goto 0x81FA28A
compare 0x40D3 0x2
if 0x1 goto 0x81FA294
special 0x1F3
if 0x0 goto 0x81FA29E
special 0x1F3
if 0x0 goto 0x81FA2D2
goto 0x81FA29E
  #19698    
Old September 26th, 2011 (07:02 PM).
chrunch's Avatar
chrunch chrunch is offline
Silver Tier
 
Join Date: Oct 2009
Gender: Male
Posts: 1,156
Does anyone know where I can get some DPP city tiles for GBA? I'm too lazy to do it myself
__________________
  #19699    
Old September 26th, 2011 (11:53 PM).
Satoshi Ookami's Avatar
Satoshi Ookami Satoshi Ookami is offline
Memento Mori
Gold Tier
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 23
Gender: Male
Nature: Calm
Posts: 13,382
Quote originally posted by EdensElite:
Sorry, I wasn't clear enough, what I meant was, the flag that checks you have a pokemon, for the starters etc.

Also, What the easiest way of replacing a pokemon's cry?
I suppose you want command "checkpokemon".
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #19700    
Old September 27th, 2011 (12:13 AM).
DavidJCobb DavidJCobb is offline
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Posts: 275
Quote originally posted by Thrasher24:
Emerald. It worked the first time i did it, than it just stopped.

Spoiler:
#org 0x1FA25A
lock
faceplayer
compare 0x40D3 0x5
if 0x1 goto 0x81FA28A
compare 0x40D3 0x2
if 0x1 goto 0x81FA294
special 0x1F3
if 0x0 goto 0x81FA29E
special 0x1F3
if 0x0 goto 0x81FA2D2
goto 0x81FA29E
1. Try this.

Spoiler:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
special 0x1F3
releaseall
end


2. Learn scripting. If you want to do a basic hack, then yeah, you can get by with the help of others... But if you want to make anything advanced, or truly different, then you'll need to know how to do things on your own. If you have to wait on people to help you for every little script, your hack'll never get done. :\
__________________
Closed Thread
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

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 UTC -8. The time now is 11:23 AM.