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

Started by Prof. 9 January 31st, 2007 7:25 AM
  • 1958403 views
  • 27748 replies
Male
Seen April 4th, 2016
Posted April 3rd, 2016
351 posts
15.6 Years
So I'm kinda new to scripting. And by "kinda new", I mean completely new. I have the concepts down, and I'm working on a storyline before I even begin to start writing script.

Two questions. Both related to event scripting. I searched for both, and neither were answered very well.

1. So, you know the "grayscale" palette that's used during the flashbacks of what you did before your last save? Well, is there any way to use that while events are going on? Such as, to show a flashback sequence? I'd like to know if it's possible and how difficult it would be, so I can alter my storyline a bit as to not include that part.


Any tips would be appreciated. :)
This is actually quite simple, if you look at this thread.
http://wahackforo.com/t-Hacer-el-efecto-Gris-para-un-FlashBack
I laugh looking at this.

But sometimes I want to come back to it...

Male
Eastern Europe
Seen May 31st, 2013
Posted March 22nd, 2012
137 posts
13.1 Years
I'm having trouble finding this information anywhere: what is the maximum selectable area for the World Map in FireRed? I know the map itself can be up to 208x144 pixels, but what area of that can actually be accessed with the cursor during the game?

Thanks!
Claimed:
Male
Seen March 26th, 2016
Posted March 10th, 2012
3 posts
11.3 Years
Okay, I tried taking a look around and I don't think there were any answers to this but here goes.

Are there any basic hacking tools for Heartgold/Soulsilver? Nothing major like changing entire maps, I'm mostly only interested in editing pokemon, wild encounters (and their levels), trainers and optionally moves but the ONE tool I've seen so far is an editor that only works for gym leaders... on the japanese versions.

So yeah, is HG&SS just programmed so differently it makes it impossible to work with or has nobody just had an interest in doing tools or something? :>
Male
Canada B.C.
Seen June 9th, 2012
Posted June 9th, 2012
273 posts
11.3 Years
I was playing with maps in firered. I implnated a new map in the game, and every time I select it it says "canvas cannot be drawn on" or something like that. The menus can be a bit...stubborn....in the map, but otherwise I can still edit it, but I'm curious what this means.





Spherical Ice

Age 25
Leicester, UK
Seen 16 Hours Ago
Posted February 20th, 2022
5,251 posts
15.5 Years
How can you change the name of the maps in the map bank? For example, I apparently changed VIRIDIAN FOREST (1.0) in PALLET TOWN (1.0). How do I change this?
Go to the map in Advance Map, go to the Header tab, click on the first dropdown box, select Pallet Town, then click Change Name. Save the ROM, close A-Map, reopen and you should see your change has taken place :D

DrFuji

Heiki Hecchara‌‌

Age 30
Male
Aussie
Seen 4 Days Ago
Posted February 12th, 2021
1,693 posts
13.7 Years
I'm having trouble finding this information anywhere: what is the maximum selectable area for the World Map in FireRed? I know the map itself can be up to 208x144 pixels, but what area of that can actually be accessed with the cursor during the game?

Thanks!
The total area that your cursor can access in the Town Map is 22 x 14 8x8 tiles. Basically this area is 176 x 112 pixels in size.

Thank you!
Next question: All of a sudden I can't get my outside-map tiles to be black. It works perfectly on all my other maps, but this one doesn't seem to get it.


The blue thing should be black. How do I solve thís?
That's because you're using the wrong type of block when making that tile. In FR's tileset 0 the top left tile looks to be entirely black, when in fact it is not. This is because the black that makes up the tile is being used as Palette 0's transparent colour. As such, when you apply nothing but that transparent 8x8 block when making the tile you are seeing 'beyond the tile'. If you wish to have a completely black tile that shows up in tileset 0, you are going to have to change one of the palettes associate with the tileset so that it has a (non-transparent) colour that is perfectly black.

You can see why the tile actually comes out as being black when playing in interior maps because tileset 12's palette 5 has a colour that is both black and not transparent which is used to make up the tile.

droomph

weeb

Age 26
Male
nowhere spectacular
Seen February 1st, 2017
Posted January 3rd, 2017
4,282 posts
11.7 Years
I have a vague understanding of how to use the tools, but where do I get them? I've tried Whack a Hack, and some of the tools won't even open.
Try the "Toolbox" Forums. They have quite a few, and if you want, and you can try the "search" function if you can't easily find it in that Forum.
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


Seen April 13th, 2014
Posted March 1st, 2014
79 posts
15 Years
Of course it's possible I was wrong. The only reason I assumed cmda06 wasn't necessary was because the tutorial for unlocking it in Firered made no mention of it. My assumption of the background bytes not working was because of the same tutorial, which only has a spot for inputting the ashy grass, the grass with ashy background, and the normal grass, and nothing else, but that may be because of the script.

I assume (not like my assumptions seem to ever hold true) that there's a sort of table in the rom, which cmda06 calls. assuming that you could find this, you could write another ASM script which would handle the background tree tiles, and put it in the table in question. The simplest way, in my opinion, would be to add setmaptile scripts to each place underneath the tree, and play the animation involved with the puff of ash. All of these things I believe you can access in a script. setanimation and doanimation can play the puff of dust. (0x7 is the ashgrass dust cloud, but the list I have also says it does a setmaptile part, so 0xA should also work [0xA is the dust cloud when the player jumps off a ledge])

And you explained it perfectly clear, i was just being stupid, so no hard feelings?
So, um, I feel like a real noob for asking this, but how exactly would i find the table that controls the ashy grass and go about changing it so the right half of the tree top would work (basically, just adding one more linked block, similar to the normal ashy grass with nothing in front of it. that always changes to a specific block, and every other block changes to a specific other block.) I havent done any work with ASM before, and advanced scripting still eludes me (I am working on it though.) My areas of expertise, though are definitely in the graphical areas of hacking. If anyone more experienced than I would be so kind as to help out a fledgling hacker, I'd be truly grateful.
And I've tried looking at tutorials, but it just seems to fly right above my head. I tend to learn a lot better with combined examples and hands-on, which makes tutorials sometimes not the best method, oddly)

redriders180

Mastermind of Pokemon Glazed

Male
Path of Victory, Tunod
Seen December 17th, 2016
Posted November 17th, 2015
314 posts
12.9 Years
So, um, I feel like a real noob for asking this, but how exactly would i find the table that controls the ashy grass and go about changing it so the right half of the tree top would work (basically, just adding one more linked block, similar to the normal ashy grass with nothing in front of it. that always changes to a specific block, and every other block changes to a specific other block.) I havent done any work with ASM before, and advanced scripting still eludes me (I am working on it though.) My areas of expertise, though are definitely in the graphical areas of hacking. If anyone more experienced than I would be so kind as to help out a fledgling hacker, I'd be truly grateful.
And I've tried looking at tutorials, but it just seems to fly right above my head. I tend to learn a lot better with combined examples and hands-on, which makes tutorials sometimes not the best method, oddly)
There is a brief overview of cmda6 here and the ASM he used in the video with the color changing stuff here. The ASM he provides is annotated with comments, and most of the stuff is already done...All you'd need to do is change the values of some of the words at the bottom, which is simply the tile number in A-Map. If you still don't understand, I think I'd be able to help you further in VMs/PMs.


I think I'm done with ROM hacking. I'll still pop in and visit, though.


Male
Poland
Seen March 26th, 2023
Posted May 28th, 2019
69 posts
14.9 Years
Hello! I came back, with another simple(?) question!
I replaced Shedinja with Chatot, and edited stats, and other things.
So, I gave it to one trainer, and all my friends that tested my hack told me that Chatot was fainting to every single weakest move. Yeah, even Poison Sting. So, I caught it and checked its stats. And that's where problem is.
Chatot has 1 hp.
I seriously have no idea why. I thought that changing its base HP with YAPE 0.9 will change it. But no, Chatot has 1 HP.

Is Shedinja's HP somewhere deeper in coding? Hex? ASM(God, please, not this)?
I hope you guys help me, I'm counting on you.

And seriously, I hope I didn't ask for something that was never mentioned before(really? no one cares about breeding?) again. It's like 830 pages here!

sonic1

ASM is my life now...

Age 28
Male
Portugal
Seen 2 Weeks Ago
Posted November 30th, 2012
77 posts
15 Years
Hello! I came back, with another simple(?) question!
I replaced Shedinja with Chatot, and edited stats, and other things.
So, I gave it to one trainer, and all my friends that tested my hack told me that Chatot was fainting to every single weakest move. Yeah, even Poison Sting. So, I caught it and checked its stats. And that's where problem is.
Chatot has 1 hp.
I seriously have no idea why. I thought that changing its base HP with YAPE 0.9 will change it. But no, Chatot has 1 HP.

Is Shedinja's HP somewhere deeper in coding? Hex? ASM(God, please, not this)?
I hope you guys help me, I'm counting on you.

And seriously, I hope I didn't ask for something that was never mentioned before(really? no one cares about breeding?) again. It's like 830 pages here!
What version are we talking about?
If FireRed, there are plenty of people who can help you (knizz, Jambo51, Shiny Guagsire etc...).
If Emerald, i can make a quick research about it, even though i'm almost sure i wont find out
If Ruby, then ask ZodiacDaGreat.
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Male
Poland
Seen March 26th, 2023
Posted May 28th, 2019
69 posts
14.9 Years


What version are we talking about?
If FireRed, there are plenty of people who can help you (knizz, Jambo51, Shiny Guagsire etc...).
If Emerald, i can make a quick research about it, even though i'm almost sure i wont find out
If Ruby, then ask ZodiacDaGreat.
I'm talking about Ruby. Well, I thought that Shedinja's coding isn't different in all these versions. I'll ask him then.

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
I presume that you hit the spot...
Since Shedinja has also special evolution and probably to prevent giving Shedinja more HP throughout cheating engine Shedinja might have the coding deeper in game...
There's also way to prevent it by not replacing Shedinja xD
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List

Darthatron

巨大なトロール。

Age 31
Male
Melbourne, Australia
Seen February 2nd, 2015
Posted October 28th, 2014
1,152 posts
17.4 Years
Hello! I came back, with another simple(?) question!
I replaced Shedinja with Chatot, and edited stats, and other things.
So, I gave it to one trainer, and all my friends that tested my hack told me that Chatot was fainting to every single weakest move. Yeah, even Poison Sting. So, I caught it and checked its stats. And that's where problem is.
Chatot has 1 hp.
I seriously have no idea why. I thought that changing its base HP with YAPE 0.9 will change it. But no, Chatot has 1 HP.

Is Shedinja's HP somewhere deeper in coding? Hex? ASM(God, please, not this)?
I hope you guys help me, I'm counting on you.

And seriously, I hope I didn't ask for something that was never mentioned before(really? no one cares about breeding?) again. It's like 830 pages here!
Shedinja is hardcoded to always have 1 HP.
0803E554                 LDR     R0, =0x12F
0803E556                 CMP     R7, R0
0803E558                 BNE     loc_0803E568    @ Routine to calculate HP.
0803E55A                 MOVS    R0, #1
0803E55C                 STR     R0, [SP,#0x60+var_5C]
To fix this change the byte at 0003E559 in a hex editor from D1 to E0.

Offsets are for FireRed.

Credits to NintendoBoy13 for researching stats at level-up. Notes are here: http://codepad.org/b5Rh4dk1
あなた は しきしゃ です
わたし は ばか です

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Does anyone know the offsets for the bytes that store player information like name, gender and trainer ID?
Male
Poland
Seen March 26th, 2023
Posted May 28th, 2019
69 posts
14.9 Years
Shedinja is hardcoded to always have 1 HP.
0803E554                 LDR     R0, =0x12F
0803E556                 CMP     R7, R0
0803E558                 BNE     loc_0803E568    @ Routine to calculate HP.
0803E55A                 MOVS    R0, #1
0803E55C                 STR     R0, [SP,#0x60+var_5C]
To fix this change the byte at 0003E559 in a hex editor from D1 to E0.

Offsets are for FireRed.

Credits to NintendoBoy13 for researching stats at level-up. Notes are here: http://codepad.org/b5Rh4dk1
I'm hacking Ruby. :\
Anyway, just PM'd ZodiacDaGreat, so I'm waiting response from here, still I expect solution here.

miksy91

Dark Energy is back in action! ;)

Male
Finland
Seen September 21st, 2022
Posted September 21st, 2022
1,480 posts
14.6 Years
I'm hacking Ruby. :\
Anyway, just PM'd ZodiacDaGreat, so I'm waiting response from here, still I expect solution here.
Dartharon already did the job for you although he didn't say the straight offset where you should go to change the byte from D1 to E0.
So basically, open Firered rom with a hex editor and see how the rom area at $3E559 is and search for that same code (=same bytes written over there) in a Ruby rom.

Some more tips: The code you want to change is between offsets $3B200 and $3B300.
Pokémon Dark Energy
Some ROM hacking related stuff

sonic1

ASM is my life now...

Age 28
Male
Portugal
Seen 2 Weeks Ago
Posted November 30th, 2012
77 posts
15 Years
Found it for ruby:

0803B290                 LDR     R0, =0x12F    @Shedjinja
0803B292                 CMP     R7, R0
0803B294                 BNE     loc_803B2A4
0803B296                 MOVS    R0, #1
0803B298                 STR     R0, [SP,#0x60+hp]
0803B29A                 LSLS    R6, R7, #3
0803B29C                 B       loc_803B2D2
0803B29C @ ---------------------------------------------------------------------------
0803B29E                 .byte    0
0803B29F                 .byte    0
0803B2A0 dword_803B2A0:  .long 0x12F             @ DATA XREF: sub_803B1B8+D8r
0803B2A4 @ ---------------------------------------------------------------------------
0803B2A4
0803B2A4 loc_803B2A4:                            @ CODE XREF: sub_803B1B8+DCj
0803B2A4                 LDR     R1, =base_stats
....................
Its the equivalent to the firered one!

~Sonic1
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.

tinix

PearlShipper & C Programmer

Age 26
Male
Bratislava, Slovakia
Seen June 19th, 2021
Posted December 31st, 2012
86 posts
13.2 Years
Does anyone know the offsets for the bytes that store player information like name, gender and trainer ID?
If you want to access it at runtime the there are pointers stored at these memory addresses:
FR: 0x0300500C
RS: 0x03005D90
E: 0x02024EA4
Structure:
[Name (8 bytes)]
[Gender (1 byte)]
[??? (1 byte)]
[Trainer ID (2 bytes)]
[Secret ID (2 bytes)]
[Hours of play (2 bytes)]
[Minutes (1 byte)]
[Seconds (1 byte)]
[Frames (1 byte)]
[??? (1 byte)]
[Options (2 bytes)]
Pokémon games I own:
Pokémon Diamond
Pokémon Platinum
Pokémon Ranger: Shadows of Almia
Pokémon HeartGold Version
Male
Poland
Seen March 26th, 2023
Posted May 28th, 2019
69 posts
14.9 Years
Found it. Changed it. Battled it.
Chatot starts battle with one HP, but his max HP is all right(didn't caught it, but wild Chatots have one HP point).
Guess I need to change another one byte, but hey, I started hexing a week ago.
Really.

Hmm...
Maybe...
I'll make Chatot exclusive from givepokemon script, and then put special for healing all Pokemon.
No one will notice...
Heheheh...