Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!

Reply
 
Thread Tools
  #1    
Old November 9th, 2012 (12:41 AM).
PokemonMasters's Avatar
PokemonMasters PokemonMasters is offline
Always Remember Forever&After
     
    Join Date: Jun 2012
    Location: Nuvema Town, Unova
    Gender: Male
    Nature: Calm
    Posts: 403

    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:

    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

    __________________

    +ForeverDash on PC's Battle Server | Pair | VM/PM |Partner In Crime
    Reply With Quote

    Relevant Advertising!

      #2    
    Old November 17th, 2012 (7:42 AM).
    kebbles's Avatar
    kebbles kebbles is offline
    Rom Hacker.
       
      Join Date: Jul 2007
      Location: Victoria, Australia!
      Gender: Male
      Nature: Brave
      Posts: 624

      Quote:
      Originally Posted by PokemonMasters View Post
      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:

      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?

      __________________
      Pokémon Ice Version

      When the world is in its final moments..
      Where will you be?
      Reply With Quote
        #3    
      Old November 17th, 2012 (9:18 AM).
      Hacker Bisharp's Avatar
      Hacker Bisharp Hacker Bisharp is offline
      Bug reporter
         
        Join Date: Dec 2011
        Gender: Male
        Nature: Gentle
        Posts: 334

        Oh god.. This is very awesome! Keep it up

        __________________
        Hacks I support:

        And i'm a good bug reporter. Contact me if you want :D

        Reply With Quote
          #4    
        Old November 17th, 2012 (12:32 PM).
        itman itman is offline
        Back to ROM hacking. :D
           
          Join Date: May 2007
          Age: 23
          Nature: Adamant
          Posts: 100

          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:

          #org @begin
          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
          return

          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:

          #org @begin
          call 0x(whateveroffsetit'sat!)
          lock
          faceplayer
          msgbox @hi 0x6
          release
          end

          #org @hi
          = Hi.

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

          Reply With Quote
            #5    
          Old November 17th, 2012 (2:20 PM).
          shinyabsol1's Avatar
          shinyabsol1 shinyabsol1 is offline
          Pokemon DarkJasper!?
             
            Join Date: Aug 2010
            Gender: Male
            Nature: Calm
            Posts: 330

            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?

            Reply With Quote
              #6    
            Old November 17th, 2012 (2:23 PM).
            PokemonMasters's Avatar
            PokemonMasters PokemonMasters is offline
            Always Remember Forever&After
               
              Join Date: Jun 2012
              Location: Nuvema Town, Unova
              Gender: Male
              Nature: Calm
              Posts: 403

              Quote:
              Originally Posted by itman View Post
              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:

              #org @begin
              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
              return

              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:

              #org @begin
              call 0x(whateveroffsetit'sat!)
              lock
              faceplayer
              msgbox @hi 0x6
              release
              end

              #org @hi
              = Hi.

              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

              __________________

              +ForeverDash on PC's Battle Server | Pair | VM/PM |Partner In Crime
              Reply With Quote
                #7    
              Old November 19th, 2012 (2:12 AM).
              Pinkish Purple's Avatar
              Pinkish Purple Pinkish Purple is offline
              五代目水影
              • Silver Tier
               
              Join Date: Aug 2012
              Location: Kirigakure
              Age: 18
              Gender: Female
              Nature: Naughty
              Posts: 368

              Cool, PokemonMasters! :D you put it up. Is there a more in-depth tutorial for newbs?

              __________________
              Reply With Quote
                #8    
              Old November 19th, 2012 (9:42 AM).
              Gamer2020's Avatar
              Gamer2020 Gamer2020 is offline
              Accept no Imitations!
                 
                Join Date: Jun 2008
                Location: Distant Land
                Gender: Male
                Nature: Bold
                Posts: 903

                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

                __________________

                Reply With Quote
                  #9    
                Old November 19th, 2012 (2:51 PM).
                Shiny Quagsire's Avatar
                Shiny Quagsire Shiny Quagsire is offline
                I'm Still Alive, Elsewhere
                   
                  Join Date: May 2009
                  Location: Hoenn Safari Zone
                  Age: 19
                  Gender: Male
                  Nature: Jolly
                  Posts: 700

                  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.

                  __________________



                  Reply With Quote
                    #10    
                  Old November 19th, 2012 (10:01 PM).
                  Darkrai Lv.1000's Avatar
                  Darkrai Lv.1000 Darkrai Lv.1000 is offline
                  Has a tendency to figure things out
                     
                    Join Date: Jul 2007
                    Location: On an island with Hakaze
                    Age: 22
                    Gender: Male
                    Nature: Quirky
                    Posts: 671

                    How have I not seen this yet?
                    This is awesome, I'll definitely try this out, and maybe have it in my project.

                    Looks good for things like signs and "stage directions" and stuff like that.

                    __________________
                    Reply With Quote
                      #11    
                    Old November 19th, 2012 (10:56 PM).
                    PokemonMasters's Avatar
                    PokemonMasters PokemonMasters is offline
                    Always Remember Forever&After
                       
                      Join Date: Jun 2012
                      Location: Nuvema Town, Unova
                      Gender: Male
                      Nature: Calm
                      Posts: 403

                      Quote:
                      Originally Posted by kebbles View Post
                      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..
                      Quote:
                      Originally Posted by Pinkish Purple View Post
                      Cool, PokemonMasters! :D you put it up. Is there a more in-depth tutorial for newbs?
                      its already. You just put that in the script. How more in-depth do you want? xD
                      Quote:
                      Originally Posted by Gamer2020 View Post
                      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

                      Quote:
                      Originally Posted by shiny quagsire View Post
                      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

                      __________________

                      +ForeverDash on PC's Battle Server | Pair | VM/PM |Partner In Crime
                      Reply With Quote
                        #12    
                      Old November 19th, 2012 (11:02 PM).
                      pikakitten's Avatar
                      pikakitten pikakitten is offline
                      You met with a terrible fate
                         
                        Join Date: Jan 2011
                        Location: Termina, Clock Tower
                        Age: 19
                        Gender: Male
                        Nature: Naughty
                        Posts: 909

                        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

                        __________________
                        Credit |Kitty Pair | VM/PM | Photobucket | Theme
                        Reply With Quote
                          #13    
                        Old November 20th, 2012 (2:30 AM).
                        tajaros's Avatar
                        tajaros tajaros is offline
                        Hi I'm dawg
                           
                          Join Date: Apr 2012
                          Location: Philippines
                          Age: 18
                          Gender: Male
                          Nature: Timid
                          Posts: 857

                          Quote:
                          Originally Posted by PokemonMasters View Post
                          It for newbies or people who barely or don't know anything about ASM :D

                          So what?

                          They are trying to make routines for it so that it will work with FireRed as well and to fix those bugs that you mentioned.

                          __________________
                          Reply With Quote
                            #14    
                          Old November 22nd, 2012 (7:34 AM).
                          ~Andrea's Avatar
                          ~Andrea ~Andrea is offline
                             
                            Join Date: Oct 2012
                            Gender: Male
                            Posts: 172

                            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 ...

                            __________________
                            Reply With Quote
                              #15    
                            Old November 22nd, 2012 (9:06 AM).
                            Incineroar's Avatar
                            Incineroar Incineroar is offline

                            the spirit of the fighter

                            • Moderator
                            • Platinum Tier
                            • Developer
                             
                            Join Date: May 2009
                            Location: Iki Town
                            Age: 22
                            Gender: Male
                            Nature: Brave
                            Posts: 13,485

                            Quote:
                            Originally Posted by ~Andrea View Post
                            -the effect ends when you use a warp

                            If this is the case, why not just call it again after you warp?

                            __________________
                            Reply With Quote
                              #16    
                            Old November 22nd, 2012 (10:00 PM).
                            Pinkish Purple's Avatar
                            Pinkish Purple Pinkish Purple is offline
                            五代目水影
                            • Silver Tier
                             
                            Join Date: Aug 2012
                            Location: Kirigakure
                            Age: 18
                            Gender: Female
                            Nature: Naughty
                            Posts: 368

                            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...

                            __________________
                            Reply With Quote
                              #17    
                            Old November 23rd, 2012 (12:08 AM).
                            tajaros's Avatar
                            tajaros tajaros is offline
                            Hi I'm dawg
                               
                              Join Date: Apr 2012
                              Location: Philippines
                              Age: 18
                              Gender: Male
                              Nature: Timid
                              Posts: 857

                              Quote:
                              Originally Posted by Pinkish Purple View Post
                              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.

                              __________________
                              Reply With Quote
                                #18    
                              Old November 24th, 2012 (11:17 AM).
                              Gamer2020's Avatar
                              Gamer2020 Gamer2020 is offline
                              Accept no Imitations!
                                 
                                Join Date: Jun 2008
                                Location: Distant Land
                                Gender: Male
                                Nature: Bold
                                Posts: 903

                                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.

                                __________________

                                Reply With Quote
                                  #19    
                                Old December 7th, 2012 (4:04 PM).
                                Shiny Quagsire's Avatar
                                Shiny Quagsire Shiny Quagsire is offline
                                I'm Still Alive, Elsewhere
                                   
                                  Join Date: May 2009
                                  Location: Hoenn Safari Zone
                                  Age: 19
                                  Gender: Male
                                  Nature: Jolly
                                  Posts: 700

                                  Quote:
                                  Originally Posted by PokemonMasters View Post
                                  It for newbies or people who barely or don't know anything about ASM :D
                                  Patchers and programs that patch could be a viable solution to apply an ASM routine and link it to a special or force transparency as the default.

                                  __________________



                                  Reply With Quote
                                    #20    
                                  Old December 8th, 2012 (3:41 PM).
                                  NintendoBoyDX NintendoBoyDX is offline
                                     
                                    Join Date: Jul 2010
                                    Gender: Male
                                    Posts: 94

                                    Yo PokemonMansters, I was wondering... Could you explain how you figured out how to do this hack, and why it works?

                                    Reply With Quote
                                      #21    
                                    Old December 8th, 2012 (6:56 PM).
                                    tajaros's Avatar
                                    tajaros tajaros is offline
                                    Hi I'm dawg
                                       
                                      Join Date: Apr 2012
                                      Location: Philippines
                                      Age: 18
                                      Gender: Male
                                      Nature: Timid
                                      Posts: 857

                                      Quote:
                                      Originally Posted by NintendoBoyDX View Post
                                      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... :)

                                      __________________
                                      Reply With Quote
                                        #22    
                                      Old December 8th, 2012 (10:17 PM).
                                      PokemonMasters's Avatar
                                      PokemonMasters PokemonMasters is offline
                                      Always Remember Forever&After
                                         
                                        Join Date: Jun 2012
                                        Location: Nuvema Town, Unova
                                        Gender: Male
                                        Nature: Calm
                                        Posts: 403

                                        Thanks Val. .-.
                                        So , did anybody find a way to port this over to BPRE?

                                        __________________

                                        +ForeverDash on PC's Battle Server | Pair | VM/PM |Partner In Crime
                                        Reply With Quote
                                          #23    
                                        Old December 8th, 2012 (11:13 PM).
                                        tajaros's Avatar
                                        tajaros tajaros is offline
                                        Hi I'm dawg
                                           
                                          Join Date: Apr 2012
                                          Location: Philippines
                                          Age: 18
                                          Gender: Male
                                          Nature: Timid
                                          Posts: 857

                                          Quote:
                                          Originally Posted by PokemonMasters View Post
                                          Thanks Val. .-.
                                          So , did anybody find a way to port this over to BPRE?

                                          ~Andrea said that he knows it but forgot how to do it...

                                          And Lucas said that coolcolstyles has a code for he ransparent textbox in BPRE but hasn't release the code yet.

                                          __________________
                                          Reply With Quote
                                            #24    
                                          Old December 10th, 2012 (3:53 AM).
                                          xWhyNotx's Avatar
                                          xWhyNotx xWhyNotx is offline
                                          Scripting Master
                                             
                                            Join Date: Jun 2012
                                            Location: Kuna Region
                                            Gender: Male
                                            Nature: Jolly
                                            Posts: 78

                                            This is amazing I will totally use this in my hack! ^-^ thanks for posting!

                                            __________________
                                            This signature has been disabled.
                                            If a scroll bar appears that means it\'s too tall!
                                            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.
                                            Reply With Quote
                                              #25    
                                            Old December 10th, 2012 (5:52 AM).
                                            阴魂君's Avatar
                                            阴魂君 阴魂君 is offline
                                            _(:зゝ∠)_ so busy i am…
                                               
                                              Join Date: Nov 2012
                                              Location: China
                                              Age: 21
                                              Gender: Male
                                              Nature: Brave
                                              Posts: 22

                                              Quote:
                                              Originally Posted by tajaros View Post
                                              ~Andrea said that he knows it but forgot how to do it...

                                              And Lucas said that coolcolstyles has a code for he ransparent textbox in BPRE but hasn't release the code yet.

                                              how about Emerald?
                                              I think those offset are different,too..╯﹏╰

                                              Reply With Quote
                                              Reply
                                              Quick Reply

                                              Sponsored Links
                                              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 GMT -8. The time now is 9:57 AM.