ep!c
Banned
- 124
- Posts
- 12
- Years
- Seen Jan 4, 2015
Transparent Textboxes
Introduction
Hello everybody! Yes you read correctly: Today I'm gonna show you how to insert
half-transparent textboxes.. without bugs! You can even use a complete costum textbox
for intro, menu etc. without messing them up. This tutorial just requires basic knowledge of
scripting and hex-editing: maybe also palette understanding.
half-transparent textboxes.. without bugs! You can even use a complete costum textbox
for intro, menu etc. without messing them up. This tutorial just requires basic knowledge of
scripting and hex-editing: maybe also palette understanding.
Let's get started
For this tutorial we need a few tools:
I always provide a compiled and uncompiled version.
Pro arguements for compiled:
In this tutorial we will use the compiled ASM snippets, meaning you must follow the offsets etc.
However, here are the files:
Inserting the ASM codes into your ROM
~ep!c
For this tutorial we need a few tools:
- VisualBoyAdvance
- Hex-Editor (I use HxD)
- NamelessSpriteEditor
- XSE
- AdvanceMap
I always provide a compiled and uncompiled version.
Pro arguements for compiled:
- No need to compile yourself
- Easy if you don't have ASM skills
- Use your own offsets (dont need to always follow the tut)
- Try it out completely on yourself
In this tutorial we will use the compiled ASM snippets, meaning you must follow the offsets etc.
However, here are the files:
- Activation Code
- Deactivation Code
- Activation Code (compiled, for this tut)
- Deactivation Code (compiled, for this tut)
Inserting the ASM codes into your ROM
Open your activate.bin, your deactivate.bin and your ROM-file into a hex-editor (I use HxD)
Mark the whole activate.bin and paste it into your ROM at position 0x750020.
Do the same with deactivate.bin but insert it to 0x750134 this time.
Now you can save your file but do not close your hex-editor, we will need it later!
Now we will write a Script in XSE. It should be the following:
After you have compiled it, copy the offset and insert it at your NPC.
Are you ready for a test in Visual Boy Advance or No$GBA?
Open your ROM in it and speak to the NPC..
Damn, that looks crappy, doesn't it?
The text doesn't even display.. ffs..
Mark the whole activate.bin and paste it into your ROM at position 0x750020.
Spoiler:
![[PokeCommunity.com] [ASM]Transparent Textboxes [PokeCommunity.com] [ASM]Transparent Textboxes](https://dl.dropboxusercontent.com/u/109327839/TUT%20POKEC/1.png)
Do the same with deactivate.bin but insert it to 0x750134 this time.
Spoiler:
![[PokeCommunity.com] [ASM]Transparent Textboxes [PokeCommunity.com] [ASM]Transparent Textboxes](https://dl.dropboxusercontent.com/u/109327839/TUT%20POKEC/2.png)
Now you can save your file but do not close your hex-editor, we will need it later!
Creating a NPC in AdvanceMap + Script
Open AdvanceMap and go to your room. Create a NPC there.
Spoiler:
![[PokeCommunity.com] [ASM]Transparent Textboxes [PokeCommunity.com] [ASM]Transparent Textboxes](https://dl.dropboxusercontent.com/u/109327839/TUT%20POKEC/3.png)
Now we will write a Script in XSE. It should be the following:
Spoiler:
Code:
#dynamic 0x800000
#org @start
callasm 0x750021
msgbox @text
callstd 2
callasm 0x750135
end
#org @text
= This is a test.
Spoiler:
![[PokeCommunity.com] [ASM]Transparent Textboxes [PokeCommunity.com] [ASM]Transparent Textboxes](https://dl.dropboxusercontent.com/u/109327839/TUT%20POKEC/4.png)
After you have compiled it, copy the offset and insert it at your NPC.
Spoiler:
![[PokeCommunity.com] [ASM]Transparent Textboxes [PokeCommunity.com] [ASM]Transparent Textboxes](https://dl.dropboxusercontent.com/u/109327839/TUT%20POKEC/5.png)
Are you ready for a test in Visual Boy Advance or No$GBA?
Open your ROM in it and speak to the NPC..
Damn, that looks crappy, doesn't it?
Spoiler:
The text doesn't even display.. ffs..
Final Step: Inserting the correct palette
Our game previously crashed, because my ASM code reads a palette, that
should be written to 0x750000. But there are only 0xFF bytes for us..
So we're gonna change that! :)
Firstly, open your hex-editor if you closed it before.
Just open your ROM-file.
At 0x750000, insert those bytes:
Smart guys will see, that this is a palette-structure.
Just mark 32 bytes (2 lines) and copy/paste these bytes in the spoiler above.
Save your ROM and open your VBA, testing another time.
(Now i would recommend you to place the NPC OUTSIDE.
In the room there is a black outline-tile, which overlaps with the box.)
Yeah, this **** finally worked!!
I hope you liked this tutorial and successfully inserted this hack.
It's really easy for everyone, just a bit hex-editing, but that's it.
If you use this hack in any way, give me credits.
When you don't do this, this will result in me deleting the tutorial, which would be bad for all.
should be written to 0x750000. But there are only 0xFF bytes for us..
So we're gonna change that! :)
Firstly, open your hex-editor if you closed it before.
Just open your ROM-file.
At 0x750000, insert those bytes:
Spoiler:
Code:
2E530000FF7F0000FF7F0000FF7F0000FF7F0000000000000000000000000000
Smart guys will see, that this is a palette-structure.
Just mark 32 bytes (2 lines) and copy/paste these bytes in the spoiler above.
Spoiler:
![[PokeCommunity.com] [ASM]Transparent Textboxes [PokeCommunity.com] [ASM]Transparent Textboxes](https://dl.dropboxusercontent.com/u/109327839/TUT%20POKEC/7.png)
Save your ROM and open your VBA, testing another time.
(Now i would recommend you to place the NPC OUTSIDE.
In the room there is a black outline-tile, which overlaps with the box.)
Spoiler:
![[PokeCommunity.com] [ASM]Transparent Textboxes [PokeCommunity.com] [ASM]Transparent Textboxes](https://dl.dropboxusercontent.com/u/109327839/TUT%20POKEC/8.png)
Yeah, this **** finally worked!!
I hope you liked this tutorial and successfully inserted this hack.
It's really easy for everyone, just a bit hex-editing, but that's it.
If you use this hack in any way, give me credits.
When you don't do this, this will result in me deleting the tutorial, which would be bad for all.