Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old October 23rd, 2016 (6:50 AM). Edited August 10th, 2017 by Spherical Ice.
Chacha Dinosaur's Avatar
Chacha Dinosaur Chacha Dinosaur is offline
Adamant and adaptive dinosaur.
     
    Join Date: Jul 2013
    Age: 23
    Gender: Male
    Posts: 454


    It's me again guise guys.

    As the title says, an easy way to expand Items, TMs and Tutor Moves. If you're familiar with how I do stuff, you'll probably know that I use python scripts and C/asm code. This time is no different. You set the parameters you want and run a python script that does everything.

    Link -> https://github.com/DizzyEggg/ItemTmTutorExpansion

    How to use it?
    Spoiler:

    - Download the repository by clicking on 'clone or download' then 'download' zip.
    - Unpack it somewhere, open the file items.py in the scripts folder. There's a bunch of lines to be edited with a short description provided, so I think it's pretty clear.
    One thing about the EXPANDED_BAG_OFFSET label.
    Spoiler:

    It's a memory address to be used for additional bag space if you expanded TMs or a pocket's size. The provided address is what I believe the starting point of unused RAM space. If you have no idea about RAM and all that stuff, keep it, but also keep in mind that:

    - you need to expand the saveblocks, you can use my method in the poke expansion thread, JPAN's hack or whatever you want

    - if you used my pokemon expansion script, the value for dex flags is the same as here, so that needs to be changed.
    Add X to that address, where X is the:
    (DexPokes / 8)(rounded up) + (DexPokes / 8)(rounded up)
    That is, so the space for new pocket items and dex flags do not overlap

    - Expanding pockets size means the space that was used previously for it is now freed and can be used for whatever purposes you want.

    If you're not sure what to do, feel free to ask.

    - After you're done editing, put your rom in the master directory, rename it to 'rom.gba', open the cmd, type "python scripts//items.py" and the script will run.
    - A new rom 'test.gba' will appear and 'offsets.ini' and 'functionoffsets.ini files will get updated.


    Screen of expanded items in the Kurapika's Gen 3 Item Editor:
    Spoiler:


    Reply With Quote

    Relevant Advertising!

      #2    
    Old October 23rd, 2016 (6:59 AM).
    Tetra's Avatar
    Tetra Tetra is offline
    Fumes Of Fury
    • Crystal Tier
     
    Join Date: Sep 2009
    Gender: Male
    Nature: Lax
    Posts: 1,091
    sweet m8!
    glad you're doing a ton of emerald stuff :D
    Reply With Quote
      #3    
    Old October 23rd, 2016 (9:31 AM).
    Megax Rocker's Avatar
    Megax Rocker Megax Rocker is offline
       
      Join Date: Jan 2016
      Posts: 98
      At this point emerald seems to be the best rom to hack, great job.
      Reply With Quote
        #4    
      Old October 31st, 2016 (5:46 AM).
      pokefreak890's Avatar
      pokefreak890 pokefreak890 is offline
      The One that will make everything great
         
        Join Date: Nov 2014
        Gender: Male
        Posts: 818
        So after I apply this how would I be able to change the names of the TMs for 51 and downward?
        __________________
        3DS FREIND CODE : 2724-3540-0898
        Reply With Quote
          #5    
        Old October 31st, 2016 (7:20 AM).
        Marky Vigoroth's Avatar
        Marky Vigoroth Marky Vigoroth is offline
        ...I just liked the Scyther icon.
           
          Join Date: Aug 2015
          Location: Puerto Rico
          Gender: Male
          Nature: Naive
          Posts: 78
          Will this also work with HMs?
          __________________
          Hack-player; hack-maker.
          Reply With Quote
            #6    
          Old October 31st, 2016 (7:24 AM).
          DizzyEgg's Avatar
          DizzyEgg DizzyEgg is offline
             
            Join Date: Feb 2014
            Location: Poland
            Age: 20
            Gender: Male
            Nature: Quiet
            Posts: 715
            Quote:
            Originally Posted by pokefreak890 View Post
            So after I apply this how would I be able to change the names of the TMs for 51 and downward?
            You mean the Item names? Those can be changed in any item editor.
            As for the moves that TMs hold, they're in the TM_move_table.

            Quote:
            Originally Posted by Marky Vigoroth View Post
            Will this also work with HMs?
            Yes, it can expand HMs too.
            __________________
            Support Pokeruby!

            My works:
            Battle Engine Upgrade
            Pokemon Expansion
            Items/TMs/Tutors Expansion
            Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

            Emerald Features:
            Form Changes (KDS)
            Reply With Quote
              #7    
            Old December 2nd, 2016 (6:07 PM).
            Froddy Froddy is offline
               
              Join Date: Jun 2013
              Gender: Male
              Posts: 7
              I didn't understand that "One thing about the EXPANDED_BAG_OFFSET label" part. I used your pokemon expansion to insert 801 dex entries. So what i have to change in this script?
              Reply With Quote
                #8    
              Old December 3rd, 2016 (1:07 AM).
              DizzyEgg's Avatar
              DizzyEgg DizzyEgg is offline
                 
                Join Date: Feb 2014
                Location: Poland
                Age: 20
                Gender: Male
                Nature: Quiet
                Posts: 715
                Quote:
                Originally Posted by Froddy View Post
                I didn't understand that "One thing about the EXPANDED_BAG_OFFSET label" part. I used your pokemon expansion to insert 801 dex entries. So what i have to change in this script?
                Take the offset in pokemon expansion. Divide your dex entries by 8 and add 1 to it. Add the result to the offset you took. Make sure it ends with 0, 4, 8 or C(if it doesn't just add 1 till it does). This is your expanded_bag_offset.
                __________________
                Support Pokeruby!

                My works:
                Battle Engine Upgrade
                Pokemon Expansion
                Items/TMs/Tutors Expansion
                Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

                Emerald Features:
                Form Changes (KDS)
                Reply With Quote
                  #9    
                Old December 10th, 2016 (7:31 AM).
                VeryBestRogue's Avatar
                VeryBestRogue VeryBestRogue is offline
                Night Shade
                   
                  Join Date: Oct 2016
                  Location: Ya Guess
                  Gender: Male
                  Nature: Bold
                  Posts: 22
                  Quote:
                  Take the offset in pokemon expansion. Divide your dex entries by 8 and add 1 to it. Add the result to the offset you took. Make sure it ends with 0, 4, 8 or C(if it doesn't just add 1 till it does). This is your expanded_bag_offset.
                  Please can you tell me which offset you are talking about... Is it the dex table on or another one? Please answer me...
                  __________________
                  An supporter of :

                  Reply With Quote
                    #10    
                  Old December 10th, 2016 (8:33 AM).
                  DizzyEgg's Avatar
                  DizzyEgg DizzyEgg is offline
                     
                    Join Date: Feb 2014
                    Location: Poland
                    Age: 20
                    Gender: Male
                    Nature: Quiet
                    Posts: 715
                    Quote:
                    Originally Posted by VeryBestRogue View Post
                    Please can you tell me which offset you are talking about... Is it the dex table on or another one? Please answer me...
                    I was talking about this offset in the BPEE.ld in poke expansion
                    new_saveblock = 0x0203CF64;

                    Sorry if it wasn't clear enough,
                    __________________
                    Support Pokeruby!

                    My works:
                    Battle Engine Upgrade
                    Pokemon Expansion
                    Items/TMs/Tutors Expansion
                    Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

                    Emerald Features:
                    Form Changes (KDS)
                    Reply With Quote
                      #11    
                    Old December 11th, 2016 (6:43 PM).
                    Volcacross802 Volcacross802 is offline
                       
                      Join Date: Dec 2016
                      Location: California
                      Gender: Male
                      Nature: Hasty
                      Posts: 29
                      For some reason when i type "python scripts//items.py" into CMD, it says:
                      python: can't open file 'python scripts//items.py': [Errno 2] No such file or dictionary

                      What do i do about this? also right when i open python, it immediately closes, what do i do?
                      Reply With Quote
                        #12    
                      Old December 19th, 2016 (6:26 PM).
                      Volcacross802 Volcacross802 is offline
                         
                        Join Date: Dec 2016
                        Location: California
                        Gender: Male
                        Nature: Hasty
                        Posts: 29
                        I have a question, how do you put on multiple scripts? I want to figure that out.
                        Reply With Quote
                          #13    
                        Old December 20th, 2016 (10:20 AM).
                        DizzyEgg's Avatar
                        DizzyEgg DizzyEgg is offline
                           
                          Join Date: Feb 2014
                          Location: Poland
                          Age: 20
                          Gender: Male
                          Nature: Quiet
                          Posts: 715
                          Quote:
                          Originally Posted by Volcacross802 View Post
                          I have a question, how do you put on multiple scripts? I want to figure that out.
                          I'm sorry I don't understand the question. What do you mean?
                          __________________
                          Support Pokeruby!

                          My works:
                          Battle Engine Upgrade
                          Pokemon Expansion
                          Items/TMs/Tutors Expansion
                          Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

                          Emerald Features:
                          Form Changes (KDS)
                          Reply With Quote
                            #14    
                          Old December 20th, 2016 (12:35 PM).
                          Volcacross802 Volcacross802 is offline
                             
                            Join Date: Dec 2016
                            Location: California
                            Gender: Male
                            Nature: Hasty
                            Posts: 29
                            Quote:
                            Originally Posted by DizzyEgg View Post
                            I'm sorry I don't understand the question. What do you mean?
                            Well, I found out how to get your Battle engine upgrade working, how do i get this to work as well?
                            Reply With Quote
                              #15    
                            Old December 20th, 2016 (12:42 PM).
                            DizzyEgg's Avatar
                            DizzyEgg DizzyEgg is offline
                               
                              Join Date: Feb 2014
                              Location: Poland
                              Age: 20
                              Gender: Male
                              Nature: Quiet
                              Posts: 715
                              Quote:
                              Originally Posted by Volcacross802 View Post
                              Well, I found out how to get your Battle engine upgrade working, how do i get this to work as well?
                              The process is pretty much the same, except here you config the script file as said in the first post.
                              __________________
                              Support Pokeruby!

                              My works:
                              Battle Engine Upgrade
                              Pokemon Expansion
                              Items/TMs/Tutors Expansion
                              Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

                              Emerald Features:
                              Form Changes (KDS)
                              Reply With Quote
                                #16    
                              Old December 20th, 2016 (1:23 PM).
                              Volcacross802 Volcacross802 is offline
                                 
                                Join Date: Dec 2016
                                Location: California
                                Gender: Male
                                Nature: Hasty
                                Posts: 29
                                Quote:
                                Originally Posted by DizzyEgg View Post
                                The process is pretty much the same, except here you config the script file as said in the first post.
                                What does "Number of TMs can not exceed number of new items" mean?
                                Reply With Quote
                                  #17    
                                Old December 20th, 2016 (1:49 PM).
                                DizzyEgg's Avatar
                                DizzyEgg DizzyEgg is offline
                                   
                                  Join Date: Feb 2014
                                  Location: Poland
                                  Age: 20
                                  Gender: Male
                                  Nature: Quiet
                                  Posts: 715
                                  Quote:
                                  Originally Posted by Volcacross802 View Post
                                  What does "Number of TMs can not exceed number of new items" mean?
                                  It means there's not enough items to hold TMs.
                                  __________________
                                  Support Pokeruby!

                                  My works:
                                  Battle Engine Upgrade
                                  Pokemon Expansion
                                  Items/TMs/Tutors Expansion
                                  Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

                                  Emerald Features:
                                  Form Changes (KDS)
                                  Reply With Quote
                                    #18    
                                  Old December 20th, 2016 (7:31 PM).
                                  Volcacross802 Volcacross802 is offline
                                     
                                    Join Date: Dec 2016
                                    Location: California
                                    Gender: Male
                                    Nature: Hasty
                                    Posts: 29
                                    So, Uh, i got this added in along with the battle engine upgrade, however when i look at the TM list, there's all these random letters instead of empty spots, is it supposed to be like this, or did i do something wrong.
                                    Reply With Quote
                                      #19    
                                    Old December 23rd, 2016 (1:10 AM).
                                    Phenom2122's Avatar
                                    Phenom2122 Phenom2122 is offline
                                       
                                      Join Date: Jun 2014
                                      Gender: Male
                                      Nature: Quiet
                                      Posts: 45
                                      It's been quite a while since I've been active around here (life just doesn't give me the same amount of time for things anymore), just want to say thank you for your amazing tools. I would love to see all these things come together in an editor.

                                      This is probably a very stupid question, it's been a while and I have so much to relearn, I don't even know where to start. If I remember correctly, items of particular usage are in indexes, for example to create a new evolution stone you would need to rearrange things and repoint items in the index. Am I dreaming that this was a thing? In your tool you can specify how many TMs and HMs you want but I see no options for any other items. Are there new methods for adding items that I'm unaware of? Or is it still up to the individual user to expand all the other item types? And if so, where could I come across the information necessary to do this successfully?
                                      Reply With Quote
                                        #20    
                                      Old December 23rd, 2016 (3:30 AM).
                                      DizzyEgg's Avatar
                                      DizzyEgg DizzyEgg is offline
                                         
                                        Join Date: Feb 2014
                                        Location: Poland
                                        Age: 20
                                        Gender: Male
                                        Nature: Quiet
                                        Posts: 715
                                        Quote:
                                        Originally Posted by Phenom2122 View Post
                                        This is probably a very stupid question, it's been a while and I have so much to relearn, I don't even know where to start. If I remember correctly, items of particular usage are in indexes, for example to create a new evolution stone you would need to rearrange things and repoint items in the index. Am I dreaming that this was a thing? In your tool you can specify how many TMs and HMs you want but I see no options for any other items. Are there new methods for adding items that I'm unaware of? Or is it still up to the individual user to expand all the other item types? And if so, where could I come across the information necessary to do this successfully?
                                        This script expands items by creating new slots and adding them at the end of the table. It means that the items themselves have to be added by the user in an item editor. TMs are different, because they require changes to the game code, particularly bag.
                                        I'm also not sure what you mean by 'expanding all the other item types'. Things like Berries or new poke balls would take some work, because they're not ordinary items. But all other items is just a matter of putting values in an item editor.
                                        __________________
                                        Support Pokeruby!

                                        My works:
                                        Battle Engine Upgrade
                                        Pokemon Expansion
                                        Items/TMs/Tutors Expansion
                                        Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

                                        Emerald Features:
                                        Form Changes (KDS)
                                        Reply With Quote
                                          #21    
                                        Old December 23rd, 2016 (3:56 AM). Edited December 23rd, 2016 by Phenom2122.
                                        Phenom2122's Avatar
                                        Phenom2122 Phenom2122 is offline
                                           
                                          Join Date: Jun 2014
                                          Gender: Male
                                          Nature: Quiet
                                          Posts: 45
                                          Quote:
                                          Originally Posted by DizzyEgg View Post
                                          This script expands items by creating new slots and adding them at the end of the table. It means that the items themselves have to be added by the user in an item editor. TMs are different, because they require changes to the game code, particularly bag.
                                          I'm also not sure what you mean by 'expanding all the other item types'. Things like Berries or new poke balls would take some work, because they're not ordinary items. But all other items is just a matter of putting values in an item editor.
                                          Reply With Quote
                                            #22    
                                          Old January 17th, 2017 (4:48 PM).
                                          Thorec_G_A Thorec_G_A is offline
                                             
                                            Join Date: Nov 2016
                                            Gender: Male
                                            Posts: 13
                                            Hi DizzyEgg, some time ago I inserted the Battle engine+Pokemon exp.+Item exp. correctly. Now I'm trying to perform the process again, increasing the number of pokemon this time. The pokemon expansion works fine but the item expansion is giving me problems. I think it's because I don't remember how to calculate the EXPANDED_BAG_OFFSET. If my pokedex has 992 entries, I do the following:

                                            address pokemon exp + X, where X is the:
                                            (DexPokes / 8)(rounded up) + (DexPokes / 8)(rounded up)
                                            (992 / 8)(rounded up) + (992 / 8)(rounded up) -> (992 / 8)+(992 / 8) = 124 + 124 = 248 [F8 in hex]
                                            EXPANDED_BAG_OFFSET = 0203CF64 + F8 = 0x0203D05C

                                            Is this correct?
                                            Reply With Quote
                                              #23    
                                            Old January 18th, 2017 (7:46 AM).
                                            DizzyEgg's Avatar
                                            DizzyEgg DizzyEgg is offline
                                               
                                              Join Date: Feb 2014
                                              Location: Poland
                                              Age: 20
                                              Gender: Male
                                              Nature: Quiet
                                              Posts: 715
                                              Quote:
                                              Originally Posted by Thorec_G_A View Post
                                              Hi DizzyEgg, some time ago I inserted the Battle engine+Pokemon exp.+Item exp. correctly. Now I'm trying to perform the process again, increasing the number of pokemon this time. The pokemon expansion works fine but the item expansion is giving me problems. I think it's because I don't remember how to calculate the EXPANDED_BAG_OFFSET. If my pokedex has 992 entries, I do the following:

                                              address pokemon exp + X, where X is the:
                                              (DexPokes / 8)(rounded up) + (DexPokes / 8)(rounded up)
                                              (992 / 8)(rounded up) + (992 / 8)(rounded up) -> (992 / 8)+(992 / 8) = 124 + 124 = 248 [F8 in hex]
                                              EXPANDED_BAG_OFFSET = 0203CF64 + F8 = 0x0203D05C

                                              Is this correct?
                                              Yeah, it is correct.
                                              __________________
                                              Support Pokeruby!

                                              My works:
                                              Battle Engine Upgrade
                                              Pokemon Expansion
                                              Items/TMs/Tutors Expansion
                                              Various Features(Evo Methods, BW Repel, Levels Above 100, Trainers with EV, Nature Colored Stats)

                                              Emerald Features:
                                              Form Changes (KDS)
                                              Reply With Quote
                                                #24    
                                              Old January 23rd, 2017 (5:57 PM).
                                              Skystrike's Avatar
                                              Skystrike Skystrike is offline
                                              Dark Shadow
                                              • Silver Tier
                                               
                                              Join Date: Sep 2008
                                              Location: internet
                                              Gender: Male
                                              Nature: Quiet
                                              Posts: 1,538
                                              With 100 TMs and 8 HMs (for a total of 108 TMs + HMs), what should I change the line in PGE's ini
                                              Code:
                                              TMHMLenPerPoke=8
                                              to?

                                              It seems like changing it to 16 works, but...
                                              __________________

                                              I lack toast and am tolerant
                                              Reply With Quote
                                                #25    
                                              Old January 23rd, 2017 (7:06 PM).
                                              Gamer2020's Avatar
                                              Gamer2020 Gamer2020 is offline
                                              Accept no Imitations!
                                                 
                                                Join Date: Jun 2008
                                                Location: Distant Land
                                                Gender: Male
                                                Nature: Bold
                                                Posts: 910
                                                Quote:
                                                Originally Posted by ~Suicune~ View Post
                                                With 100 TMs and 8 HMs (for a total of 108 TMs + HMs), what should I change the line in PGE's ini
                                                Code:
                                                TMHMLenPerPoke=8
                                                to?

                                                It seems like changing it to 16 works, but...
                                                Just run this: https://github.com/Gamer2020/PGEiniCreator
                                                __________________

                                                Reply With Quote
                                                Reply

                                                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 3:08 PM.