The PokéCommunity Forums Fan Games ROM Hacking
[ARCHIVE] Simple Questions (SEARCH BEFORE ASKING A QUESTION)

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


Closed Thread
 
Thread Tools
  #25276    
Old June 7th, 2013 (4:40 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 Ksiazek Bartlomiej View Post
    I have one question. How change wild Pokemon Battle theme in Pokemon Ruby? I want add to my expansion patch an JOHTO region isnide. And my question is about to change music to JOHTO WILD POKEMON THEME <Which I paste in header of TEST LITTLEROOT THEME> When you in Johto.
    You would have to branch the music loading routine to check which region you are in and play different music based on it.
    __________________

    Paired with Simba

    Relevant Advertising!

      #25277    
    Old June 7th, 2013 (5:16 AM).
    AtecainCorp.'s Avatar
    AtecainCorp. AtecainCorp. is offline
    Rejishan awake...
       
      Join Date: Jun 2008
      Location: Takoabe Town (Region Thonsu)
      Age: 25
      Gender: Male
      Nature: Hardy
      Posts: 1,283
      But can you told me where is that ROUTINE and how I would change it?
      __________________
      - My new Project comming Soon
        #25278    
      Old June 7th, 2013 (5:23 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 Ksiazek Bartlomiej View Post
        But can you told me where is that ROUTINE and how I would change it?
        Nope. You need to find that. Why? Becuase I would have to find it to tell you. Learn ASM and eventually you will be able to figure it out.
        __________________

        Paired with Simba
          #25279    
        Old June 7th, 2013 (5:39 AM).
        AtecainCorp.'s Avatar
        AtecainCorp. AtecainCorp. is offline
        Rejishan awake...
           
          Join Date: Jun 2008
          Location: Takoabe Town (Region Thonsu)
          Age: 25
          Gender: Male
          Nature: Hardy
          Posts: 1,283
          This is Helpless answer...
          __________________
          - My new Project comming Soon
            #25280    
          Old June 7th, 2013 (6:28 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 Ksiazek Bartlomiej View Post
            This is Helpless answer...
            I'm not going to do any of this for you. I told you what you need to do. I spent 20+ hours hacking every single pokemon sprite loading routine to do a similar thing as to what hacking the music routine would do. I found all of these by myself using extremely simple ASM and basic math (literally basic, like just adding and subtracting). To find one music routine will take no time at all, but I refuse to do anything for you.
            __________________

            Paired with Simba
              #25281    
            Old June 7th, 2013 (2:55 PM).
            GoGoJJTech's Avatar
            GoGoJJTech GoGoJJTech is offline
            (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
             
            Join Date: Nov 2012
            Location: Earth
            Age: 19
            Gender: Female
            Nature: Jolly
            Posts: 2,475
            I know I'm one of the music wizards but something has been a bug in my side. I inserted the pokemart song over jigglypuff's song. It sounds good and stuff, but if I press any button the music stops. Also if I bump into something and it does the "thud" sound, the music stops. When I reenter the map, it plays again and the same thing happens. This is for all pokemarts and even the playsong command. Any help?
            __________________
            I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
            The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
            Romhack.me Profile - Pokecommunity Profile - Youtube Channel

            Support me at my site!
            Pokémon Platinum Red and Blue
              #25282    
            Old June 7th, 2013 (7:41 PM). Edited June 7th, 2013 by kearnseyboy6.
            kearnseyboy6's Avatar
            kearnseyboy6 kearnseyboy6 is offline
            Aussie's Toughest Mudder
               
              Join Date: Dec 2008
              Posts: 300
              Quote:
              Originally Posted by gogojjtech View Post
              I know I'm one of the music wizards but something has been a bug in my side. I inserted the pokemart song over jigglypuff's song. It sounds good and stuff, but if I press any button the music stops. Also if I bump into something and it does the "thud" sound, the music stops. When I reenter the map, it plays again and the same thing happens. This is for all pokemarts and even the playsong command. Any help?
              Since I learned music hacking off you I don't know as much as you do. I know when I put a song that's longer than the original track it stops randomly sometimes after the originals length. Even if I repoint.
                #25283    
              Old June 7th, 2013 (9:09 PM).
              Zemekis's Avatar
              Zemekis Zemekis is offline
              The Booze Cruise
                 
                Join Date: Feb 2013
                Location: 'Murica
                Gender: Male
                Posts: 22
                Hey there,
                Does anybody know how to change these sprites (see attachment) for a Pokemon? I've inserted a few custom fakemon into my game and I don't want these still showing up as what Pokemon they used to be.

                I seem to recall a tutorial with instructions on how to do this, but I can't find it again.

                Thanks
                Attached Images
                File Type: png Pokemon Fire Red_Aug23 2_38_47.png‎ (78.9 KB, 10 views) (Save to Dropbox)
                  #25284    
                Old June 7th, 2013 (9:30 PM).
                DrFuji's Avatar
                DrFuji DrFuji is online now
                Heiki Hecchara‌‌
                 
                Join Date: Sep 2009
                Location: Aussie
                Age: 25
                Gender: Male
                Nature: Jolly
                Posts: 1,399
                Quote:
                Originally Posted by Zemekis View Post
                Hey there,
                Does anybody know how to change these sprites (see attachment) for a Pokemon? I've inserted a few custom fakemon into my game and I don't want these still showing up as what Pokemon they used to be.

                I seem to recall a tutorial with instructions on how to do this, but I can't find it again.

                Thanks
                Wichu's Icon Editor is the best tool to use when it comes to editing the party sprites.
                __________________
                  #25285    
                Old June 8th, 2013 (7:32 AM). Edited June 8th, 2013 by GoGoJJTech.
                GoGoJJTech's Avatar
                GoGoJJTech GoGoJJTech is offline
                (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
                 
                Join Date: Nov 2012
                Location: Earth
                Age: 19
                Gender: Female
                Nature: Jolly
                Posts: 2,475
                Quote:
                Originally Posted by kearnseyboy6 View Post
                Since I learned music hacking off you I don't know as much as you do. I know when I put a song that's longer than the original track it stops randomly sometimes after the originals length. Even if I repoint.
                I think the problem may be that jigglypuff's theme is a fanfare. I will change the bytes that define it as a fanfare to a normal song...

                And Kearnseyboy6
                to solve your problem, after you assemble your song theres a popup. Click yes and it fixes the length issue.
                __________________
                I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
                The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
                Romhack.me Profile - Pokecommunity Profile - Youtube Channel

                Support me at my site!
                Pokémon Platinum Red and Blue
                  #25286    
                Old June 8th, 2013 (10:53 AM).
                dunning2012 dunning2012 is offline
                Sparky
                   
                  Join Date: Oct 2012
                  Gender: Male
                  Nature: Quirky
                  Posts: 8
                  Hi does anyone know a way to increase the amount of items you can have. For example making a new table and having an extra 100 items more than there are already?

                  Also is there a way to change the amount of slots you can have in your bag? I've tried looking but can't find any info on either?

                  Any help would be appreciated thanks.
                    #25287    
                  Old June 8th, 2013 (11:55 AM).
                  Zemekis's Avatar
                  Zemekis Zemekis is offline
                  The Booze Cruise
                     
                    Join Date: Feb 2013
                    Location: 'Murica
                    Gender: Male
                    Posts: 22
                    Quote:
                    Originally Posted by DrFuji View Post
                    Wichu's Icon Editor is the best tool to use when it comes to editing the party sprites.
                    Thanks again DrFuji! I'll give that a shot
                      #25288    
                    Old June 8th, 2013 (12:09 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 dunning2012 View Post
                      Hi does anyone know a way to increase the amount of items you can have. For example making a new table and having an extra 100 items more than there are already?

                      Also is there a way to change the amount of slots you can have in your bag? I've tried looking but can't find any info on either?

                      Any help would be appreciated thanks.
                      1) There are like 100 extra slots for items.

                      2) Requires ASM and repointing the ram save space used by the bag. I have done it, but it isn't an easy thing to do. Learn ASM and how to use JPAN's Save Block Recycler and then you may be able to do it. And no, I won't do it for you.
                      __________________

                      Paired with Simba
                        #25289    
                      Old June 8th, 2013 (12:19 PM).
                      dunning2012 dunning2012 is offline
                      Sparky
                         
                        Join Date: Oct 2012
                        Gender: Male
                        Nature: Quirky
                        Posts: 8
                        Yeh I've used all of the extra slots but I want to make a new table cause i need 600 items in total. Just can't find the offset for the items. Managed to increase the ow sprites and attacks but stumped on this one.

                        Will have a look for JPAN's tutorial about the bags and I'm fine with ASM. Cheers
                          #25290    
                        Old June 8th, 2013 (12:43 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 dunning2012 View Post
                          Yeh I've used all of the extra slots but I want to make a new table cause i need 600 items in total. Just can't find the offset for the items. Managed to increase the ow sprites and attacks but stumped on this one.

                          Will have a look for JPAN's tutorial about the bags and I'm fine with ASM. Cheers
                          JPAN has a tutorial about bags???0.o. No, the save block recycler hacks the save routine so that more ram gets saved so that you can repoint stuff to it like the bag or excess pokdex data and such.

                          Umm, you should be able to get up to 600 items since there are already more than 256. The only problems you might be having deal with limiter bytes on the loading routines.
                          __________________

                          Paired with Simba
                            #25291    
                          Old June 8th, 2013 (3:36 PM).
                          BlackWhiteRobin's Avatar
                          BlackWhiteRobin BlackWhiteRobin is online now
                             
                            Join Date: Sep 2012
                            Age: 20
                            Gender: Male
                            Nature: Quirky
                            Posts: 543
                            Hey guys! One question!

                            Can I give the player a Pokemon in these conditions?

                            -Player's Party contains only 5 or less Pokemon
                            -I give him a Pokemon in the PC Storage Box without him knowing
                              #25292    
                            Old June 8th, 2013 (3:43 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 robin22gongon View Post
                              Hey guys! One question!

                              Can I give the player a Pokemon in these conditions?

                              -Player's Party contains only 5 or less Pokemon
                              -I give him a Pokemon in the PC Storage Box without him knowing
                              1) Yes. Use the countpokemon command.

                              2) Sort of. As far as I know, this happens when the party is full and no countpokemon command is used to make sure it isn't full. So, be creative.

                              (I actually don't know the name of the command off the top of my head. It is either countpokemon, checkparty, or something else. Hit F1 in XSE and scroll through until you see it)
                              __________________

                              Paired with Simba
                                #25293    
                              Old June 8th, 2013 (3:52 PM). Edited June 8th, 2013 by BlackWhiteRobin.
                              BlackWhiteRobin's Avatar
                              BlackWhiteRobin BlackWhiteRobin is online now
                                 
                                Join Date: Sep 2012
                                Age: 20
                                Gender: Male
                                Nature: Quirky
                                Posts: 543
                                Quote:
                                Originally Posted by karatekid552 View Post
                                1) Yes. Use the countpokemon command.

                                2) Sort of. As far as I know, this happens when the party is full and no countpokemon command is used to make sure it isn't full. So, be creative.

                                (I actually don't know the name of the command off the top of my head. It is either countpokemon, checkparty, or something else. Hit F1 in XSE and scroll through until you see it)
                                Nononononoo.... What I meant was those two in a single event.

                                When there are 5 or less Pokemon in the Party, it will ignore those and give the Player a Pokemon in Storage Box 1, thus perfectly ignoring the Player's Party count and gives the Player a Pokemon in the PC no matter how many Pokemon he has in his Party.

                                EDIT: Reworded for more "sense".
                                  #25294    
                                Old June 8th, 2013 (6:52 PM).
                                miksy91's Avatar
                                miksy91 miksy91 is offline
                                Dark Energy is back in action! ;)
                                   
                                  Join Date: Oct 2008
                                  Location: Finland
                                  Gender: Male
                                  Posts: 1,445
                                  Quote:
                                  Originally Posted by robin22gongon View Post
                                  Nononononoo.... What I meant was those two in a single event.

                                  When there are 5 or less Pokemon in the Party, it will ignore those and give the Player a Pokemon in Storage Box 1, thus perfectly ignoring the Player's Party count and gives the Player a Pokemon in the PC no matter how many Pokemon he has in his Party.

                                  EDIT: Reworded for more "sense".
                                  You simply have to store the variable in address of "current party count" somewhere else in ram, change the value in "current party count" to 06 (or whatever the format is, 06 00 ??), give the pokemon, and load the variable (= "real party count") back to the address where "current party count" is located.

                                  I don't know how well the ram structure is commented about FR, but at least somebody should know where the party pokemon data (and especially, party count) is stored.
                                  If for some odd reason nobody knows, debugging process would be a good way to go for it (which won't be that easy though).
                                  __________________
                                  Pokémon Dark Energy
                                  Some of my ROM hacking related stuff
                                    #25295    
                                  Old June 8th, 2013 (8:18 PM).
                                  DrFuji's Avatar
                                  DrFuji DrFuji is online now
                                  Heiki Hecchara‌‌
                                   
                                  Join Date: Sep 2009
                                  Location: Aussie
                                  Age: 25
                                  Gender: Male
                                  Nature: Jolly
                                  Posts: 1,399
                                  Quote:
                                  Originally Posted by robin22gongon View Post
                                  Nononononoo.... What I meant was those two in a single event.

                                  When there are 5 or less Pokemon in the Party, it will ignore those and give the Player a Pokemon in Storage Box 1, thus perfectly ignoring the Player's Party count and gives the Player a Pokemon in the PC no matter how many Pokemon he has in his Party.

                                  EDIT: Reworded for more "sense".
                                  As far as I know there is no way to simple way to deposit a Pokemon directly into the PC so you will have to be creative to get this effect. I was able to achieve this by continuously giving the player a Pokemon until their party is full, give them the desired Pokemon and then remove the extra 'party filler' Pokemon using HackMew's takepokemon routine.

                                  This is what I came up with:

                                  Code:
                                  #dynamic 0x800000
                                  
                                  #org @start // Counting the number of party members and assigning the value to 2 variables
                                  countpokemon
                                  copyvar 0x8004 0x800D
                                  copyvar 0x8005 0x8004
                                  goto @Loop1
                                  
                                  #org @Loop1 // This segment will keep looping until the player's party is full and then adds one more Pokemon (which will be transferred to the PC)
                                  givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
                                  addvar 0x8005 0x1
                                  compare 0x8005 0x7
                                  if 0x1 goto @Continue
                                  goto @Loop1
                                  
                                  #org @Continue // Setting up for the next loop or skipping it entirely if you initially had six Pokemon in your party
                                  copyvar 0x8005 0x8004
                                  setvar 0x8005 0x6
                                  comparevars 0x8005 0x8004
                                  if 0x1 goto @Finish
                                  goto @Loop2
                                  
                                  #org @Loop2 // This is subtracting a number based on your starting party size to be compared in the next loop
                                  subvar 0x8005 0x1
                                  comparevars 0x8005 0x8004
                                  if 0x0 goto @8004Set
                                  goto @Loop2
                                  
                                  #org @8004Set // Setting 0x8004 to be used in the next loop
                                  setvar 0x8004 0x5
                                  goto @Loop3
                                  
                                  #org @Loop3 // This loop takes away all of the extra Pokemon given to the player
                                  callasm 0x810001 // This is where I inserted HackMew's routine in my ROM
                                  subvar 0x8004 0x1
                                  comparevars 0x8005 0x8004
                                  if 0x1 goto @Finish
                                  goto @Loop3
                                  
                                  #org @Finish
                                  msgbox @Goodbye 0x2
                                  release
                                  end
                                  
                                  #org @Goodbye
                                  = I hope you like your Pikachu!\nIt is in your PC!
                                  It doesn't work correctly if you don't have any Pokemon in your party, but it does put a single Pokemon in your PC in all other cases. I tried to condense it as much as I could (otherwise it would be pretty huge) so sorry for all the loops if they get a bit confusing :P
                                  __________________
                                    #25296    
                                  Old June 8th, 2013 (8:30 PM).
                                  BlackWhiteRobin's Avatar
                                  BlackWhiteRobin BlackWhiteRobin is online now
                                     
                                    Join Date: Sep 2012
                                    Age: 20
                                    Gender: Male
                                    Nature: Quirky
                                    Posts: 543
                                    Quote:
                                    Originally Posted by DrFuji View Post
                                    As far as I know there is no way to simple way to deposit a Pokemon directly into the PC so you will have to be creative to get this effect. I was able to achieve this by continuously giving the player a Pokemon until their party is full, give them the desired Pokemon and then remove the extra 'party filler' Pokemon using HackMew's takepokemon routine.

                                    This is what I came up with:

                                    Code:
                                    #dynamic 0x800000
                                    
                                    #org @start // Counting the number of party members and assigning the value to 2 variables
                                    countpokemon
                                    copyvar 0x8004 0x800D
                                    copyvar 0x8005 0x8004
                                    goto @Loop1
                                    
                                    #org @Loop1 // This segment will keep looping until the player's party is full and then adds one more Pokemon (which will be transferred to the PC)
                                    givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
                                    addvar 0x8005 0x1
                                    compare 0x8005 0x7
                                    if 0x1 goto @Continue
                                    goto @Loop1
                                    
                                    #org @Continue // Setting up for the next loop or skipping it entirely if you initially had six Pokemon in your party
                                    copyvar 0x8005 0x8004
                                    setvar 0x8005 0x6
                                    comparevars 0x8005 0x8004
                                    if 0x1 goto @Finish
                                    goto @Loop2
                                    
                                    #org @Loop2 // This is subtracting a number based on your starting party size to be compared in the next loop
                                    subvar 0x8005 0x1
                                    comparevars 0x8005 0x8004
                                    if 0x0 goto @8004Set
                                    goto @Loop2
                                    
                                    #org @8004Set // Setting 0x8004 to be used in the next loop
                                    setvar 0x8004 0x5
                                    goto @Loop3
                                    
                                    #org @Loop3 // This loop takes away all of the extra Pokemon given to the player
                                    callasm 0x810001 // This is where I inserted HackMew's routine in my ROM
                                    subvar 0x8004 0x1
                                    comparevars 0x8005 0x8004
                                    if 0x1 goto @Finish
                                    goto @Loop3
                                    
                                    #org @Finish
                                    msgbox @Goodbye 0x2
                                    release
                                    end
                                    
                                    #org @Goodbye
                                    = I hope you like your Pikachu!\nIt is in your PC!
                                    It doesn't work correctly if you don't have any Pokemon in your party, but it does put a single Pokemon in your PC in all other cases. I tried to condense it as much as I could (otherwise it would be pretty huge) so sorry for all the loops if they get a bit confusing :P
                                    Thanks for that!

                                    So if I understand right, when a Pokemon is given to the Player with 6 Pokemon in his/her party, it will automatically get transferred to the PC?

                                    I didn't knew that! All the time I was playing Pokemon games and when someone would give you Pokemon, they'd ask you to empty a slot first. Thanks again!
                                      #25297    
                                    Old June 8th, 2013 (9:00 PM).
                                    kearnseyboy6's Avatar
                                    kearnseyboy6 kearnseyboy6 is offline
                                    Aussie's Toughest Mudder
                                       
                                      Join Date: Dec 2008
                                      Posts: 300
                                      Quote:
                                      Originally Posted by gogojjtech View Post
                                      I think the problem may be that jigglypuff's theme is a fanfare. I will change the bytes that define it as a fanfare to a normal song...

                                      And Kearnseyboy6
                                      to solve your problem, after you assemble your song theres a popup. Click yes and it fixes the length issue.
                                      True, "You failed it again" must be a fanfare too which is why mine failed it as well.

                                      If you want to add more, I have read a tut by LAZ which expands song tables but I have no need for it yet.

                                      Your tuts awesome btw!
                                        #25298    
                                      Old June 8th, 2013 (10:44 PM).
                                      Akiba's Avatar
                                      Akiba Akiba is offline
                                       
                                      Join Date: Mar 2011
                                      Location: in a gap
                                      Age: 18
                                      Gender: Female
                                      Nature: Brave
                                      Posts: 4,263
                                      Quote:
                                      Originally Posted by robin22gongon View Post
                                      Hey guys! One question!

                                      Can I give the player a Pokemon in these conditions?

                                      -Player's Party contains only 5 or less Pokemon
                                      -I give him a Pokemon in the PC Storage Box without him knowing
                                      In PKSV, there is a giveitemtopc command. XSE likely has it too. You could copy and rewrite it a bit into a 'givepokemontopc' command. Then it would always be accessible through a script editor.
                                      __________________
                                        #25299    
                                      Old June 8th, 2013 (10:48 PM).
                                      Zemekis's Avatar
                                      Zemekis Zemekis is offline
                                      The Booze Cruise
                                         
                                        Join Date: Feb 2013
                                        Location: 'Murica
                                        Gender: Male
                                        Posts: 22
                                        Quick question!

                                        Can i change what the badges look like? Will I be able to find/change their sprites in unLZ?
                                          #25300    
                                        Old June 8th, 2013 (10:58 PM).
                                        Akiba's Avatar
                                        Akiba Akiba is offline
                                         
                                        Join Date: Mar 2011
                                        Location: in a gap
                                        Age: 18
                                        Gender: Female
                                        Nature: Brave
                                        Posts: 4,263
                                        Quote:
                                        Originally Posted by Zemekis View Post
                                        Quick question!

                                        Can i change what the badges look like? Will I be able to find/change their sprites in unLZ?
                                        Of course, you can check it in an UnLZ index. If you tell me your codebase, I could look it up for you.

                                        FR: 149
                                        EM: 2525
                                        RS: I couldn't fit it yet.
                                        __________________
                                        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 8:01 PM.