• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Development: Transparent Textboxes

PokemonMasters

Always Remember Forever&After
389
Posts
11
Years
Hey Guys. Want to do Tranparent Textboxes but they look so hard to do? You can do it with the WBTO (Write by Offset) command in XSE. Here is a simple script on how to make Transparent Textboxes. (For Ruby |AXVE| Only)

Here is what you need to add to the script

writebytetooffset 0x3F 0x4000048
writebytetooffset 0x1F 0x4000049
writebytetooffset 0x41 0x4000050
writebytetooffset 0x3F 0x4000051
writebytetooffset 0xF 0x4000052
writebytetooffset 0xA 0x4000053
writebytetooffset 0xFF 0x202F0AA
writebytetooffset 0xFF 0x202F0AB
writebytetooffset 0x0 0x202F0B8
writebytetooffset 0x0 0x202F0B9
writebytetooffset 0x0 0x202F0AC
writebytetooffset 0x0 0x202F0AD
writebytetooffset 0x0 0x202F0BE
writebytetooffset 0x0 0x202F0BF
writebytetooffset 0x0 0x202F0C0
writebytetooffset 0x0 0x202F0C1
writebytetooffset 0x0 0x202F0C2
writebytetooffset 0x0 0x202F0C3
writebytetooffset 0x0 0x202F0C4
writebytetooffset 0x0 0x202F0C5
writebytetooffset 0x0 0x202F0C6
writebytetooffset 0x0 0x202F0C7
writebytetooffset 0x0 0x202F0C8
writebytetooffset 0x0 0x202F0C9


Test:
PokemonRuby.png


Notes:
- You must do this in Every Script you want Transparent.
- There are some bugs in doing this. Using this script will activate them.

Thanks for reading :D

Credit the following people if used:
- ~Andrea
 

kebbles

Rom Hacker.
616
Posts
16
Years
Hey Guys. Want to do Tranparent Textboxes but they look so hard to do? You can do it with the WBTO (Write by Offset) command in XSE. Here is a simple script on how to make Transparent Textboxes. (For Ruby |AXVE| Only)

Here is what you need to add to the script

writebytetooffset 0x3F 0x4000048
writebytetooffset 0x1F 0x4000049
writebytetooffset 0x41 0x4000050
writebytetooffset 0x3F 0x4000051
writebytetooffset 0xF 0x4000052
writebytetooffset 0xA 0x4000053
writebytetooffset 0xFF 0x202F0AA
writebytetooffset 0xFF 0x202F0AB
writebytetooffset 0x0 0x202F0B8
writebytetooffset 0x0 0x202F0B9
writebytetooffset 0x0 0x202F0AC
writebytetooffset 0x0 0x202F0AD
writebytetooffset 0x0 0x202F0BE
writebytetooffset 0x0 0x202F0BF
writebytetooffset 0x0 0x202F0C0
writebytetooffset 0x0 0x202F0C1
writebytetooffset 0x0 0x202F0C2
writebytetooffset 0x0 0x202F0C3
writebytetooffset 0x0 0x202F0C4
writebytetooffset 0x0 0x202F0C5
writebytetooffset 0x0 0x202F0C6
writebytetooffset 0x0 0x202F0C7
writebytetooffset 0x0 0x202F0C8
writebytetooffset 0x0 0x202F0C9


Test:
PokemonRuby.png


Notes:
- You must do this in Every Script you want Transparent.
- There are some bugs in doing this. Using this script will activate them.

Thanks for reading :D

Credit the following people if used:
- ~Andrea

Wow this is incrediable, i cant believe i only just found this!
What are the bugs before I use this?
 

itman

Back to ROM hacking. :D
98
Posts
16
Years
  • Age 30
  • Seen Feb 5, 2014
This is amazing, but it takes up so much room to use in EVERY script.

So what everyone should do is make that a separate script, and then at the beginning of every script, call it, so this way you can save lots of room.

Example:

Script to be called:
Spoiler:


Then if a script wants to use transparent text boxes, it would just call that one, and then it will automatically return to the script afterward due to the return command.

Spoiler:


Space saving ftw! I know this isn't a complex technique in anyway; I was just over explaning for newer hackers out there. :)
 

shinyabsol1

Pokemon DarkJasper!?
333
Posts
13
Years
  • Seen Nov 23, 2022
Interesting. I thought you needed ASM to do this. Great work figuring this out!

Since its just a bunch of WBTO, couldn't this work for FR too? We just need to find the equivalents in FR and change those. What exactly do allthose WBTOs do?
 

PokemonMasters

Always Remember Forever&After
389
Posts
11
Years
This is amazing, but it takes up so much room to use in EVERY script.

So what everyone should do is make that a separate script, and then at the beginning of every script, call it, so this way you can save lots of room.

Example:

Script to be called:
Spoiler:


Then if a script wants to use transparent text boxes, it would just call that one, and then it will automatically return to the script afterward due to the return command.

Spoiler:


Space saving ftw! I know this isn't a complex technique in anyway; I was just over explaning for newer hackers out there. :)
lol, I'll update the thread later on to add the "Space Saving" xD
 

socko

[i]VERY ANGER!!![/i]
361
Posts
11
Years
  • Age 25
  • Seen May 18, 2020
Cool, PokemonMasters! :D you put it up. Is there a more in-depth tutorial for newbs? :P
 

Shiny Quagsire

I'm Still Alive, Elsewhere
697
Posts
14
Years
It wouldn't be that hard to write an ASM routine to set those bytes, and attach it to a special, or even hack in a call to that function every time a textbox is loaded.
 

PokemonMasters

Always Remember Forever&After
389
Posts
11
Years
Wow this is incrediable, i cant believe i only just found this!
What are the bugs before I use this?
The bugs are:
-if you open the menu the textxbox of menu disapeared
-you don't change the color of the test because the wbto with you create semi-trasparent textbox makes the textbox and the text semi-trasparnet because are you found in BG0 (the screen are divided into Bg0,Bg1,Bg2,Bg3,Bg4,Bg5 and Bg6) and makes textbox and text semitrasparnet...
-The effect of textbox finish when you doing warp
that's why it is best to use asm..
Cool, PokemonMasters! :D you put it up. Is there a more in-depth tutorial for newbs? :P
its already. You just put that in the script. How more in-depth do you want? xD
I'm sure you can make an asm function to do the same thing. I'm pretty sure all you're doing is setting registers and stuff to use the hardware windowing.

http://www.coranac.com/tonc/text/gfx.htm#sec-win

It wouldn't be that hard to write an ASM routine to set those bytes, and attach it to a special, or even hack in a call to that function every time a textbox is loaded.
It for newbies or people who barely or don't know anything about ASM :D
 

pikakitten

You met with a terrible fate
905
Posts
13
Years
So what are the bugs involved in doing this? Are they serious? Are they permanent as in use it once and the bug is forever there or... you know.
Thanks!

~Sincerely
PikakittenX, devout member of the Pokecommunity
 
248
Posts
11
Years
  • Seen today
With this you will have the semi-trasparent textbox but there will also annoying bugs that is why using the asm which he said shiny Guaiser is always active ...
The bug in question are:
-If you open the menu, there will be the old textbox semi-transparent white color ...
-With these wbto you can not become colored text
-With these wbto you can not become a white-transparent textbox
-the names of the cities and routes will be like the old textbox but the color white as the transparent menu
-the effect ends when you use a warp
So I say to you that if you do not know asm put the tetxbox normal ...
 

socko

[i]VERY ANGER!!![/i]
361
Posts
11
Years
  • Age 25
  • Seen May 18, 2020
I think it is too troublesome, doing ASM is better of course but there doesn't seem to be any tutorial about ASM around here...
 

tajaros

Hi I'm dawg
855
Posts
11
Years
I think it is too troublesome, doing ASM is better of course but there doesn't seem to be any tutorial about ASM around here...

Huh?

I think there are about 4 ASM TUT's here in PC search in the tutorial section look in the pages... Hackmew, FullMetal, Shiny Quagsire, and knizz made ASM tut's. :P
 

Gamer2020

Accept no Imitations!
1,062
Posts
15
Years
Why don't you set the values back to what they were after you use the text box? That way the start menu won't be buggy.
 
94
Posts
13
Years
  • Seen Nov 2, 2016
Yo PokemonMansters, I was wondering... Could you explain how you figured out how to do this hack, and why it works?
 

tajaros

Hi I'm dawg
855
Posts
11
Years
Yo PokemonMansters, I was wondering... Could you explain how you figured out how to do this hack, and why it works?

He didn't figured this out, ~Andrea did Pokemonmasters just shared this info with and practically doesn't know how this works... :)
 
Back
Top