ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

TrollandToad.com
Closed Thread
 
Thread Tools
  #23676    
Old February 3rd, 2013 (6:00 AM). Edited February 3rd, 2013 by mariosr10.
mariosr10 mariosr10 is offline
     
    Join Date: Jun 2012
    Posts: 5
    I hope i posted this in the right section!
    I have searched for these problems but with no luck! :-/
    I need a little help with pokescript!
    I have two issues
    1)with messages and how they appear in the rom!
    e.g
    Code:
    #org $script
    lock
    faceplayer
    cry 0xA1 410
    #raw 0x33
    pause 0x30
    message $cry
    $cry 1 = De-oxys!
    boxset 6
    wildbattle 410 10 1
    pause 0x70
    fadescreen 1
    removesprite 0x800F
    setflag 0x1211
    pause 0x10
    fadescreen 0
    release
    end
    it should make the text De-oxys! appear and start the battle
    when i import this compiled script via advance map to my rom i get the deoxys event but instead of saying De-oxys! it makes unreadable characters appear and then the event starts with no problems!
    -------------------------------------------------------------------------------------------------------------------
    2)Another problem i come across is that when i run from the battle or catch it or anyways end the battle in every way possible the deoxys stays in its place instead of disappearing!
    P.S. The rom is clean i just named the folder beta 1 because i wanted to create a hack but right now the *.gba file is clean!
    Thanks in advance!

    Relevant Advertising!

      #23677    
    Old February 3rd, 2013 (6:35 AM).
    FBI's Avatar
    FBI FBI is offline
    Free supporter
    • Silver Tier
     
    Join Date: Jan 2013
    Location: Unknown Island
    Gender: Male
    Posts: 1,792
    Quote:
    Originally Posted by mariosr10 View Post
    I hope i posted this in the right section!
    I have searched for these problems but with no luck! :-/
    I need a little help with pokescript!
    I have two issues
    1)with messages and how they appear in the rom!
    e.g
    Code:
    #org $script
    lock
    faceplayer
    cry 0xA1 410
    #raw 0x33
    pause 0x30
    message $cry
    $cry 1 = De-oxys!
    boxset 6
    wildbattle 410 10 1
    pause 0x70
    fadescreen 1
    removesprite 0x800F
    setflag 0x1211
    pause 0x10
    fadescreen 0
    release
    end
    it should make the text De-oxys! appear and start the battle
    when i import this compiled script via advance map to my rom i get the deoxys event but instead of saying De-oxys! it makes unreadable characters appear and then the event starts with no problems!
    -------------------------------------------------------------------------------------------------------------------
    2)Another problem i come across is that when i run from the battle or catch it or anyways end the battle in every way possible the deoxys stays in its place instead of disappearing!
    P.S. The rom is clean i just named the folder beta 1 because i wanted to create a hack but right now the *.gba file is clean!
    Thanks in advance!
    You want to visit the scripting help thread for these kind of problems. Regarding your problem, I don't know what's wrong but I assume you can't do the
    $cry = deo-xys
    Use a simple message box to say deo-xys.

    Also for the disappearing problem remove this part from your script:
    Code:
    fadescreen 1
    removesprite 0x800F
    setflag 0x1211
    pause 0x10
    fadescreen 0
    Another thing that you should do is learn to script in XSE or PKSV. They have more commands registered, are simpler(easier to read and understand the code) and you'll get more help with it. No one uses Pokescript, it's an old program, so no one can help you properly. Try downloading PKSV or XSE. There are many excellent tutorials on how to use both.
    __________________
    ...
      #23678    
    Old February 3rd, 2013 (6:42 AM). Edited February 3rd, 2013 by mariosr10.
    mariosr10 mariosr10 is offline
       
      Join Date: Jun 2012
      Posts: 5
      I have started with pksv but i had another problem whatever wild pokemon encounter i had when i run from a scripted wild battle it said The wild mewtwo flew away and i couldn't find anything for that problem too!
      actually i found some things but they wouldn't work!
      Thanks for your reply though!
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Also i have tried the simple message box with no luck just the same text appears!
      I removed the code compiled it burned it loaded through a-map but still the same just got rid of the fadescreens!
        #23679    
      Old February 3rd, 2013 (6:52 AM).
      FBI's Avatar
      FBI FBI is offline
      Free supporter
      • Silver Tier
       
      Join Date: Jan 2013
      Location: Unknown Island
      Gender: Male
      Posts: 1,792
      Quote:
      Originally Posted by mariosr10 View Post
      I have started with pksv but i had another problem whatever wild pokemon encounter i had when i run it said The wild mewtwo flew away and i couldn't find anything for that problem too!
      actually i found some things but they wouldn't work!
      Thanks for your reply though!
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Also i have tried the simple message box with no luck just the same text appears!
      I removed the code compiled it burned it loaded through a-map but still the same just got rid of the fadescreens!
      http://www.pokecommunity.com/showthread.php?t=195659&highlight=PKSV
      Read this tutorial, it's a little cluttered (as in the comments make the code look kinda confusing), but it's a good tutorial and things are explained well. Learning the basics before attempting something hard is always the way to go.
      __________________
      ...
        #23680    
      Old February 3rd, 2013 (8:05 AM).
      QuartierGenerale QuartierGenerale is offline
         
        Join Date: Oct 2012
        Posts: 53
        Which variables can i use in Ruby (U)?

        Let me explain: of course i can use 0x4049, but it is still used for other Ruby script. And since i don't know for what, i prefer not override this value. If the are free variables, is better.

        Thanks a lot
          #23681    
        Old February 3rd, 2013 (10:30 AM).
        Breyyne's Avatar
        Breyyne Breyyne is offline
           
          Join Date: Oct 2012
          Age: 39
          Gender: Male
          Posts: 22
          Quote:
          Originally Posted by karatekid552 View Post
          If you want to hack, read the tutorial section. If you want to make your own game, go to the game development form to learn about rpg maker, pokemon essentials, etc. DS hacking is tough as there aren't a lot of programs yet for everything, but it gets easier everyday. You can check it out in the toolbox and the tutorial section.

          The best tool for rom hacking of gba games right now is Pokemon Game Editor. It can download most of the other tools you will need as well as having a lot of built in tools that are really good.
          Thanks KarateKid, You pointed me in the right direction, Game Development. But I still have need for hacking Help.

          I looked through the Tuts for [Graphics] and only found Tuts for Inserting and Editing of Sprites and Titles. Any one out there that direct me to a Tut for Exporting/Ripping of the graphics for the DS level games?
          __________________
          75% of Pokemon gamers use cheats and specially made codes to make their Pokemon battle-worthy. If you are one of the 25% percent that level their Pokemon up legally, put this in your signature.
            #23682    
          Old February 3rd, 2013 (11:08 AM).
          mariosr10 mariosr10 is offline
             
            Join Date: Jun 2012
            Posts: 5
            @FBI agent
            Thanks i am going to search for it more and i hope that i find a solution for my 2 problems!
              #23683    
            Old February 3rd, 2013 (11:31 AM). Edited February 3rd, 2013 by karatekid552.
            karatekid552's Avatar
            karatekid552 karatekid552 is offline
            What happens if I push it?....
               
              Join Date: Nov 2012
              Location: Do you really want to know? Really?
              Gender: Male
              Nature: Bold
              Posts: 1,766
              Quote:
              Originally Posted by QuartierGenerale View Post
              Which variables can i use in Ruby (U)?

              Let me explain: of course i can use 0x4049, but it is still used for other Ruby script. And since i don't know for what, i prefer not override this value. If the are free variables, is better.

              Thanks a lot
              Vars in the 5000's are great for scripting. You can also try to find unused 4000's but I like the 5000's.

              Edit: Don't use vars in the 5E00's as they begin to store themselves in the PC box space. Not good.

              Quote:
              Originally Posted by Breyyne View Post
              Thanks KarateKid, You pointed me in the right direction, Game Development. But I still have need for hacking Help.

              I looked through the Tuts for [Graphics] and only found Tuts for Inserting and Editing of Sprites and Titles. Any one out there that direct me to a Tut for Exporting/Ripping of the graphics for the DS level games?
              All sprites can be found online with a quick google search.

              For mapping, look for Spikey's DS map editor. There you will a discussion of mapping in the 4th gen and how to work with it. I don't know much about ripping the tile sets and such, but you may be able to do it with Spikey's map editor.
              __________________

              Paired with Simba
                #23684    
              Old February 3rd, 2013 (12:43 PM).
              Flame999's Avatar
              Flame999 Flame999 is offline
                 
                Join Date: Nov 2008
                Location: Lavaridge Town
                Gender: Male
                Nature: Calm
                Posts: 103
                Quote:
                Originally Posted by FBI agent View Post
                You do trainerbattle 0x3 0xid 0x0 @defeat . The script then continues
                Take notice, the intro message is not used like in: trainerbattle 0x0 0xid 0x0 @intro @defeat.
                I don't want to lose the intro part but i want the trainer i defeat to say the afterward part right away
                  #23685    
                Old February 3rd, 2013 (12:57 PM).
                karatekid552's Avatar
                karatekid552 karatekid552 is offline
                What happens if I push it?....
                   
                  Join Date: Nov 2012
                  Location: Do you really want to know? Really?
                  Gender: Male
                  Nature: Bold
                  Posts: 1,766
                  Quote:
                  Originally Posted by Flame999 View Post
                  I don't want to lose the intro part but i want the trainer i defeat to say the afterward part right away
                  Then just put a message box before and after the trainer battle:


                  Msgbox @intro 0x2
                  Trainerbattle 0x3 0xid 0x0 @defeat
                  Msgbox @afterwards 0x2
                  __________________

                  Paired with Simba
                    #23686    
                  Old February 3rd, 2013 (10:35 PM).
                  Teh Blazer's Avatar
                  Teh Blazer Teh Blazer is offline
                  Divider of Zero
                     
                    Join Date: Feb 2009
                    Location: 'MERICA
                    Age: 22
                    Gender: Male
                    Nature: Relaxed
                    Posts: 772
                    Does anyone know where Jambo explained how he did the form changes? Like a link or something?
                    __________________
                    Being a hero is overrated anyways
                      #23687    
                    Old February 3rd, 2013 (10:40 PM).
                    Jambo51's Avatar
                    Jambo51 Jambo51 is offline
                    Glory To Arstotzka
                       
                      Join Date: Jun 2009
                      Gender: Male
                      Nature: Quiet
                      Posts: 732
                      I didn't. That's because it's made up of about 30-40 small hacks each doing their individual little thing. Honestly, it's simply not feasible to give out the code for it. If you're wanting formes, you'll just need to wait til I've released the 649 Patch.
                      __________________
                      Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                        #23688    
                      Old February 4th, 2013 (2:49 AM).
                      Aryan143's Avatar
                      Aryan143 Aryan143 is offline
                      The Fennekin Fan!
                         
                        Join Date: Jul 2012
                        Location: Delhi, India
                        Age: 17
                        Gender: Male
                        Nature: Modest
                        Posts: 756
                        Hey does anyone knows How can I add new moves to a pokemon's moveset without replacing the old one? For eg. I want to add Giga Drain to Venusaur's moveset without replacing any old move. I tried YAPE and Poke Edit Pro but they can't do that.
                        __________________
                        Check out my gaming company:

                          #23689    
                        Old February 4th, 2013 (2:51 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 Aryan143 View Post
                          Hey does anyone knows How can I add new moves to a pokemon's moveset without replacing the old one? For eg. I want to add Giga Drain to Venusaur's moveset without replacing any old move. I tried YAPE and Poke Edit Pro but they can't do that.
                          You have to delete some moves from other Pokemon so you will have spaces do that to Pokemon you don't plan using on your hack since you only have a limited number of moves to give to all the Pokemon.
                          __________________
                            #23690    
                          Old February 4th, 2013 (3:12 AM).
                          Aryan143's Avatar
                          Aryan143 Aryan143 is offline
                          The Fennekin Fan!
                             
                            Join Date: Jul 2012
                            Location: Delhi, India
                            Age: 17
                            Gender: Male
                            Nature: Modest
                            Posts: 756
                            Quote:
                            Originally Posted by tajaros View Post
                            You have to delete some moves from other Pokemon so you will have spaces do that to Pokemon you don't plan using on your hack since you only have a limited number of moves to give to all the Pokemon.
                            The problem is that my hack is a 386 hack and I plan on improving all the pokemons.
                            __________________
                            Check out my gaming company:

                              #23691    
                            Old February 4th, 2013 (3:35 AM).
                            karatekid552's Avatar
                            karatekid552 karatekid552 is offline
                            What happens if I push it?....
                               
                              Join Date: Nov 2012
                              Location: Do you really want to know? Really?
                              Gender: Male
                              Nature: Bold
                              Posts: 1,766
                              Quote:
                              Originally Posted by Aryan143 View Post
                              The problem is that my hack is a 386 hack and I plan on improving all the pokemons.
                              Them you have to get rid of the moves that come pre-evolution. I know it's a pain but it is the best way without major hex editing.
                              __________________

                              Paired with Simba
                                #23692    
                              Old February 4th, 2013 (3:38 AM).
                              Aryan143's Avatar
                              Aryan143 Aryan143 is offline
                              The Fennekin Fan!
                                 
                                Join Date: Jul 2012
                                Location: Delhi, India
                                Age: 17
                                Gender: Male
                                Nature: Modest
                                Posts: 756
                                Quote:
                                Originally Posted by karatekid552 View Post
                                Them you have to get rid of the moves that come pre-evolution. I know it's a pain but it is the best way without major hex editing.
                                That idea completely skipped my mind. Thanks!
                                __________________
                                Check out my gaming company:

                                  #23693    
                                Old February 4th, 2013 (3:17 PM).
                                Zanny77's Avatar
                                Zanny77 Zanny77 is offline
                                I'm back, baby!
                                   
                                  Join Date: Mar 2009
                                  Location: Maine
                                  Age: 26
                                  Gender: Male
                                  Nature: Jolly
                                  Posts: 259
                                  Hey everyone!
                                  I started scripting 4 years ago(!) when I was working on a hack, but ended up leaving it because of other issues.
                                  I'm back and trying to work on a new hack with my girlfriend, and I'm trying to remember how to script.
                                  Here is my script:
                                  Spoiler:

                                  #dynamic 0x2D538A
                                  #org @start
                                  lock
                                  faceplayer
                                  checkflag 0x888
                                  if 0x1 goto @done
                                  msgbox @1 0x6
                                  release
                                  end

                                  #org @1
                                  = Vivian's House. \p...What's this?
                                  givepokemon 0x25 0x5D 0x0 0x0 0x0 0x0
                                  fanfare 0x13E
                                  msgbox @3 0x4
                                  waitfanfare
                                  closeonkeypress
                                  setflag 0x888
                                  msgbox @4 0x5
                                  compare LASTRESULT 0x1
                                  if 0x1 gosub @name
                                  release
                                  end

                                  #org @name
                                  call 0x1A74EB
                                  return

                                  #org @3
                                  = [blue_fr]IT'S A\nHAUNTER!

                                  #org @4
                                  = [blue_fr]Give this dood\na name?

                                  #org @done
                                  msgbox @2 0x6
                                  release
                                  end

                                  #org @2
                                  = Vivian's House.

                                  and I think it looks good, and I think I compiled it right, but when I go in game I get nothing when I click on the mailbox. I don't know if there was a problem compiling it or putting the offset in AdvanceMap (the dynamic offset in the script and the AdvanceMap script are the same). Can someone help me out? I also am not sure about how to properly compile, I just batch compile each time and it says it gets saved. Help!
                                  __________________

                                  I SUPPORTQUOTECREDITHACK
                                    #23694    
                                  Old February 4th, 2013 (3:29 PM).
                                  FBI's Avatar
                                  FBI FBI is offline
                                  Free supporter
                                  • Silver Tier
                                   
                                  Join Date: Jan 2013
                                  Location: Unknown Island
                                  Gender: Male
                                  Posts: 1,792
                                  Quote:
                                  Originally Posted by Zanny77 View Post
                                  Hey everyone!
                                  I started scripting 4 years ago(!) when I was working on a hack, but ended up leaving it because of other issues.
                                  I'm back and trying to work on a new hack with my girlfriend, and I'm trying to remember how to script.
                                  Here is my script:
                                  Spoiler:

                                  #dynamic 0x2D538A
                                  #org @start
                                  lock
                                  faceplayer
                                  checkflag 0x888
                                  if 0x1 goto @done
                                  msgbox @1 0x6
                                  release
                                  end

                                  #org @1
                                  = Vivian's House. \p...What's this?
                                  givepokemon 0x25 0x5D 0x0 0x0 0x0 0x0
                                  fanfare 0x13E
                                  msgbox @3 0x4
                                  waitfanfare
                                  closeonkeypress
                                  setflag 0x888
                                  msgbox @4 0x5
                                  compare LASTRESULT 0x1
                                  if 0x1 call @name
                                  release
                                  end


                                  #org @name
                                  call 0x1A74EB <- What's this? :O
                                  return

                                  #org @3
                                  = [blue_fr]IT'S A\nHAUNTER!

                                  #org @4
                                  = [blue_fr]Give this dood\na name?

                                  #org @done
                                  msgbox @2 0x6
                                  release
                                  end

                                  #org @2
                                  = Vivian's House.

                                  and I think it looks good, and I think I compiled it right, but when I go in game I get nothing when I click on the mailbox. I don't know if there was a problem compiling it or putting the offset in AdvanceMap (the dynamic offset in the script and the AdvanceMap script are the same). Can someone help me out? I also am not sure about how to properly compile, I just batch compile each time and it says it gets saved. Help!
                                  The part of your script I bolded goes after the green part, and the orange stuff are things that I think is wrong. Red are changes I made. Look at the spoiler in the quote for the script.
                                  __________________
                                  ...
                                    #23695    
                                  Old February 4th, 2013 (3:37 PM).
                                  Zanny77's Avatar
                                  Zanny77 Zanny77 is offline
                                  I'm back, baby!
                                     
                                    Join Date: Mar 2009
                                    Location: Maine
                                    Age: 26
                                    Gender: Male
                                    Nature: Jolly
                                    Posts: 259
                                    Quote:
                                    Originally Posted by FBI agent View Post
                                    The part of your script I bolded goes after the green part, and the orange stuff are things that I think is wrong. Red are changes I made. Look at the spoiler in the quote for the script.
                                    OK, and the call thing opens up the give nickname screen
                                    __________________

                                    I SUPPORTQUOTECREDITHACK
                                      #23696    
                                    Old February 4th, 2013 (3:40 PM).
                                    FBI's Avatar
                                    FBI FBI is offline
                                    Free supporter
                                    • Silver Tier
                                     
                                    Join Date: Jan 2013
                                    Location: Unknown Island
                                    Gender: Male
                                    Posts: 1,792
                                    Quote:
                                    Originally Posted by Zanny77 View Post
                                    OK, and the call thing opens up the give nickname screen
                                    Ohhh, I see what you're doing. Don't you need an "8" before the offset though?
                                    __________________
                                    ...
                                      #23697    
                                    Old February 4th, 2013 (3:44 PM).
                                    Zanny77's Avatar
                                    Zanny77 Zanny77 is offline
                                    I'm back, baby!
                                       
                                      Join Date: Mar 2009
                                      Location: Maine
                                      Age: 26
                                      Gender: Male
                                      Nature: Jolly
                                      Posts: 259
                                      Quote:
                                      Originally Posted by FBI agent View Post
                                      Ohhh, I see what you're doing. Don't you need an "8" before the offset though?
                                      I'm honestly not sure. I just tried to make the script as close I could as the one in diegoisawesome's tutorial.
                                      Also I tried the script and I got a fanfare, but no message popped up and it doesn't say I got the Pokemon.
                                      __________________

                                      I SUPPORTQUOTECREDITHACK
                                        #23698    
                                      Old February 4th, 2013 (3:52 PM).
                                      FBI's Avatar
                                      FBI FBI is offline
                                      Free supporter
                                      • Silver Tier
                                       
                                      Join Date: Jan 2013
                                      Location: Unknown Island
                                      Gender: Male
                                      Posts: 1,792
                                      Try something like this:
                                      Spoiler:

                                      givepokemon 0xID 0x5 0x0 0x0 0x0 0x0
                                      setvar 0x8004 0x0
                                      bufferpokemon 0x0 0xID
                                      fadescreen 0x1
                                      special 0x9E
                                      waitstate
                                      msgbox2 0x8741A24 '"[player] recieved the [buffer1]!"
                                      fanfare 0x101
                                      waitmsgbox
                                      waitfanfare
                                      waitkeypress


                                      I just decompiled and cropped one of my older scripts which was similar. Remember to fill in the orange (and change the pointers).
                                      __________________
                                      ...
                                        #23699    
                                      Old February 4th, 2013 (4:08 PM).
                                      Zanny77's Avatar
                                      Zanny77 Zanny77 is offline
                                      I'm back, baby!
                                         
                                        Join Date: Mar 2009
                                        Location: Maine
                                        Age: 26
                                        Gender: Male
                                        Nature: Jolly
                                        Posts: 259
                                        Ok, so I just went in and did a simple little message script and tried to put it into to see if it's my scripting that's the problem, but this one won't work either. I think the issue is how I put in the script. Here's what I do:
                                        1. Go to FSF and find the next Offset.
                                        2. Go to XSE, and open my ROM
                                        3. Put the offset into the little space that says 'offset' and has a small text box to put it in
                                        4. Script
                                        5. Save script as a .rbc
                                        6. Batch compile the script into the ROM. When it saves, it has each part of the script that starts with "@" and has a different offset for each
                                        7. I go into advancemap, and place the offset next to the @start into the part of advancemap that says script offset
                                        8. Save, patch, run ROM
                                        __________________

                                        I SUPPORTQUOTECREDITHACK
                                          #23700    
                                        Old February 4th, 2013 (4:25 PM).
                                        FBI's Avatar
                                        FBI FBI is offline
                                        Free supporter
                                        • Silver Tier
                                         
                                        Join Date: Jan 2013
                                        Location: Unknown Island
                                        Gender: Male
                                        Posts: 1,792
                                        Quote:
                                        Originally Posted by Zanny77 View Post
                                        Ok, so I just went in and did a simple little message script and tried to put it into to see if it's my scripting that's the problem, but this one won't work either. I think the issue is how I put in the script. Here's what I do:
                                        1. Go to FSF and find the next Offset.
                                        2. Go to XSE, and open my ROM
                                        3. Put the offset into the little space that says 'offset' and has a small text box to put it in
                                        4. Script
                                        5. Save script as a .rbc
                                        6. Batch compile the script into the ROM. When it saves, it has each part of the script that starts with "@" and has a different offset for each
                                        7. I go into advancemap, and place the offset next to the @start into the part of advancemap that says script offset
                                        8. Save, patch, run ROM
                                        Woah, that's ancient lol. Download the new XSE and just use #dynamic 0x800000 instead of doing steps 1-7. You should get something like this:



                                        Take note of the highlighted @start offset. Insert it into advance map (with the "$" before it). If you still can't get it to work, I'm sure there are videos of the same process on youtube or something.
                                        __________________
                                        ...
                                        Closed Thread

                                        Quick Reply

                                        Join the conversation!

                                        Create an account to post a reply in this thread, participate in other discussions, and more!

                                        Create a PokéCommunity Account

                                        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 6:55 AM.