[ARCHIVE] Simple Questions (SEARCH BEFORE ASKING A QUESTION) Page 781

Started by Prof. 9 January 31st, 2007 7:25 AM
  • 1958403 views
  • 27748 replies

Truality

Left for good

Male
Seen May 17th, 2013
Posted December 4th, 2012
1,006 posts
11.7 Years
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.
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 . . .

Flowerchild

> aaaaaaaaa

Age 24
She/Her
Hyperspace
Seen 5 Days Ago
Posted July 7th, 2022
8,699 posts
13 Years
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 Bunny. Copy And Paste Bunny Into
Your Signature To Help Him Gain World Domination!!!!
PairFamilyPalArt

EdensElite

No0b, but getting there.

Male
UK
Seen July 4th, 2014
Posted August 11th, 2013
190 posts
11.9 Years
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.
Seen September 26th, 2011
Posted September 25th, 2011
5 posts
11.7 Years
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...
Seen October 9th, 2019
Posted August 6th, 2012
275 posts
12.9 Years
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).

I can't be bothered to go through 788 pages of ROM hacking,
You don't need to.

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.)
Male
Seen November 6th, 2014
Posted September 25th, 2011
4 posts
11.7 Years
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 :) ).
Seen October 9th, 2019
Posted August 6th, 2012
275 posts
12.9 Years
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.

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).
Male
Seen November 6th, 2014
Posted September 25th, 2011
4 posts
11.7 Years
Thank you again for all the helpful info. I'm not that efficient with ASM yet, but I'm getting there..

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.
Seen December 26th, 2013
Posted December 6th, 2013
1 posts
16.1 Years
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

Darthatron

巨大なトロール。

Age 31
Male
Melbourne, Australia
Seen February 2nd, 2015
Posted October 28th, 2014
1,152 posts
17.4 Years
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
あなた は しきしゃ です
わたし は ばか です

Thrasher24

~Legendary Master~

Male
Outside of Pallet Town, Kanto
Seen June 16th, 2015
Posted January 22nd, 2014
55 posts
12.2 Years
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

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
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.

Anime List | PSN Trophy List
Seen October 9th, 2019
Posted August 6th, 2012
275 posts
12.9 Years
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:
#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. :\
Male
Seen October 9th, 2011
Posted September 27th, 2011
2 posts
11.7 Years
I am making my own hack but have a huge problem with it, it works fine, i have edited the maps, the sprites, the text (marts, pokémons, starters, gymleaders and much much more) ... when im testing the game, playing it on my emulator, it works fine! But through half of the game, at route 8 when entering a house and then going back to route 8 the game suddenly becomes black and you can't see a thing! Anyone want to help me out? explaining what to do ? or maybe fix it for me (i'll send romfile and save file )...
Seen October 9th, 2019
Posted August 6th, 2012
275 posts
12.9 Years
I am making my own hack but have a huge problem with it, it works fine, i have edited the maps, the sprites, the text (marts, pokémons, starters, gymleaders and much much more) ... when im testing the game, playing it on my emulator, it works fine! But through half of the game, at route 8 when entering a house and then going back to route 8 the game suddenly becomes black and you can't see a thing! Anyone want to help me out? explaining what to do ? or maybe fix it for me (i'll send romfile and save file )...
Distributing ROMs is against the rules here, though patches are allowed.

When you say "through half of the game", what do you mean? What does the player specifically have to do before the glitch can occur?
Seen March 26th, 2023
Posted March 3rd, 2023
115 posts
14.2 Years
hi guys i have been having a lot of trouble with thunder bolt as i cant seem to edit its attack animation in pokemon leaf green. I found thunderbolt's electric sphere graphics in unlz.gba (there are 2, 489 and 440) Iedited all the graphics and reinsterted them but when i got to see the results they have not changed in the game, even when i reopen the game in unlz.gba it shows the graphics have changed but the game itself is showing the old graphics. Why is thunderbolt the only attack animation i am having trouble with?

Flowerchild

> it’s a new world

Age 24
She/Her
Hyperspace
Seen 5 Days Ago
Posted July 7th, 2022
8,699 posts
13 Years
hi guys i have been having a lot of trouble with thunder bolt as i cant seem to edit its attack animation in pokemon leaf green. I found thunderbolt's electric sphere graphics in unlz.gba (there are 2, 489 and 440) Iedited all the graphics and reinsterted them but when i got to see the results they have not changed in the game, even when i reopen the game in unlz.gba it shows the graphics have changed but the game itself is showing the old graphics. Why is thunderbolt the only attack animation i am having trouble with?
A lot of things could have happened. First of all, did you click Write to ROM after you imported? Write to ROM is pretty much uNLZ's save button. Otherwise, you may have accidentally edited a move other than Thunderbolt. If it's neither of those, you probably just have a bad ROM.
(\__/)
(='.'=)
('')_('')
This Is Bunny. Copy And Paste Bunny Into
Your Signature To Help Him Gain World Domination!!!!
PairFamilyPalArt
Seen March 26th, 2023
Posted March 3rd, 2023
115 posts
14.2 Years
i did click write to rom and how can it be i have a bad rom? I have been hacking this rom for months now and have sucessfully edited attack animations before so i dont think this rom is bad. Does thunderbolt have a different rom address then the one unlz is reading?

UPDATE: I re-downloaded a fire red rom and tried the same thing and still the new graphics wont show on the game. My guess is unlz gba really is reading a wrong address because this fire red rom is clean

Tsukimaru

Double battles veteran

Male
Nicaragua
Seen December 16th, 2018
Posted November 2nd, 2013
93 posts
14.9 Years
I am looking forward to make a B/W recolor of the pokemon. since dont like some shiny pokemons` colors, I decided to re-color some pokemon.

However, i wasn`t expecting that B/W version had such a few tools, and many of them useless for my purpose :/

If someone could send me a link, tutorial, or anything that can help my cause, I would thnk a lot.

-----this is an example of what I am attempting to do----
http://imageshack.us/photo/my-images/38/shinyscizor.png/

/showthread.php?t=188702

Diamond FC:1719-2198-5393.
Platinum FC:3395-0270-3626
HeartGold FC: 4297-5796-7530

Check out my battles and comment please xP:
http://www.youtube.com/watch?v=r9P1Zd4exY4
Female
Seen September 30th, 2011
Posted September 28th, 2011
1 posts
12.6 Years
Hello everyone,

I have a rather minor problem, but one that keeps bugging me nonetheless. (And it has probably been answered a thousand times over already, though my search didn't give me any results of the like.)
When I insert a new OW in a map, say Alabastia, using AM and then load the game in VBA the OW is nowhere to be found. He is still on the map in AM, but ingame he is just gone. Any ideas why that is? Someone in another forum suggested deleting all the map scripts in the header, but the problem is still there. I am at a bit of a loss here.