The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Elite Battle 2015: Gen 5 battle skin

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Closed Thread
 
Thread Tools
  #101    
Old April 23rd, 2015 (11:03 AM).
Luka S.J.'s Avatar
Luka S.J. Luka S.J. is offline
Jealous Croatian
     
    Join Date: Dec 2008
    Location: Croatia
    Age: 25
    Gender: Male
    Nature: Adamant
    Posts: 1,114
    Quote:
    Originally Posted by mustafa505 View Post
    Is there anyway to only keep trainer sprites x0.5 zoomed, since they appear big when using elite battle system?
    Pokemon and Trainer sprites should be in 1*1 pixel resolution, instead of the regular 200% upscaled ones that Essentials uses. The system is designed to be used like that.

    But sure, I don't want to keep seeing the same question over and over again, so I changed a few things in Sprite and BitmapWrapper. Look for TRAINERSPRITESCALE and change it to your liking.

    [EDIT]
    I've done some further modifications to Scene, AnimationPlayer and Sprite to add aditional visual effects and animations to the Safari Zone battles.
      #102    
    Old April 23rd, 2015 (2:58 PM).
    gr3ygho$t28's Avatar
    gr3ygho$t28 gr3ygho$t28 is offline
    Veteran Gamer
       
      Join Date: Sep 2012
      Age: 30
      Gender: Male
      Nature: Calm
      Posts: 61
      Quote:
      Originally Posted by Luka S.J. View Post
      Pokemon and Trainer sprites should be in 1*1 pixel resolution, instead of the regular 200% upscaled ones that Essentials uses. The system is designed to be used like that.

      But sure, I don't want to keep seeing the same question over and over again, so I changed a few things in Sprite and BitmapWrapper. Look for TRAINERSPRITESCALE and change it to your liking.

      [EDIT]
      I've done some further modifications to Scene, AnimationPlayer and Sprite to add aditional visual effects and animations to the Safari Zone battles.
      For your new updates, Just replace the old scripts with your new modified ones, yes?

      Also question: Does your system support mega evolutions? I didn't see it in the video for the battle system, so I wasn't sure. I won't be able to find out until tomorrow unless you respond today.
        #103    
      Old April 24th, 2015 (1:22 AM). Edited April 24th, 2015 by Luka S.J..
      Luka S.J.'s Avatar
      Luka S.J. Luka S.J. is offline
      Jealous Croatian
         
        Join Date: Dec 2008
        Location: Croatia
        Age: 25
        Gender: Male
        Nature: Adamant
        Posts: 1,114
        Quote:
        Originally Posted by gr3ygho$t28 View Post
        Also question: Does your system support mega evolutions? I didn't see it in the video for the battle system, so I wasn't sure. I won't be able to find out until tomorrow unless you respond today.
        It's just a visual overhaul. All the functionality of Essentials is retained. So yes. There is megalution.

        [EDIT]
        Even more edits done to Scene, AnimationPlayer and UI portions of the script to add Dynamic weather animations.
        (This feature is only available if you use the new UI)
          #104    
        Old April 24th, 2015 (7:36 AM).
        Lusus's Avatar
        Lusus Lusus is offline
           
          Join Date: Jan 2013
          Location: Ljubljana
          Age: 19
          Gender: Other
          Nature: Lonely
          Posts: 1,405
          Is there any way to remove the animation when player throws out the pokemon at the start of a battle?

          Otherwise awesome script!
            #105    
          Old April 24th, 2015 (8:26 AM).
          Radical Raptr's Avatar
          Radical Raptr Radical Raptr is offline
          #BAMFPokemonNerd
             
            Join Date: Mar 2011
            Location: everywhere
            Age: 23
            Gender: Male
            Nature: Sassy
            Posts: 1,118
            Quote:
            Originally Posted by Quilva View Post
            Is there any way to remove the animation when player throws out the pokemon at the start of a battle?

            Otherwise awesome script!
            Are you talking about the trainerback sprite? if you don't want it, don't use it it's as simple as that.
            __________________

            ~My Deviantart - Litharreon Wiki - Litharreon Game Download~

              #106    
            Old April 24th, 2015 (8:27 AM).
            Luka S.J.'s Avatar
            Luka S.J. Luka S.J. is offline
            Jealous Croatian
               
              Join Date: Dec 2008
              Location: Croatia
              Age: 25
              Gender: Male
              Nature: Adamant
              Posts: 1,114
              Quote:
              Originally Posted by Quilva View Post
              Is there any way to remove the animation when player throws out the pokemon at the start of a battle?
              Why on earth would you want to do that? Yeah, look at pbSendOut and delete what you want to delete.
                #107    
              Old April 24th, 2015 (8:31 AM).
              Lusus's Avatar
              Lusus Lusus is offline
                 
                Join Date: Jan 2013
                Location: Ljubljana
                Age: 19
                Gender: Other
                Nature: Lonely
                Posts: 1,405
                Quote:
                Originally Posted by Luka S.J. View Post
                Why on earth would you want to do that? Yeah, look at pbSendOut and delete what you want to delete.
                I'm making a Pokemon-only game, technically PMD with the normal battle system.

                Thanks!
                  #108    
                Old April 25th, 2015 (10:35 AM). Edited April 25th, 2015 by KidVegito9001.
                KidVegito9001's Avatar
                KidVegito9001 KidVegito9001 is offline
                   
                  Join Date: Dec 2014
                  Location: Rhode Island
                  Gender: Female
                  Nature: Jolly
                  Posts: 2
                  How do you make it so the back sprites are not doubled in size. Because i want to use XY ORAS sprites but the back sprites are too big.
                    #109    
                  Old April 25th, 2015 (11:29 AM). Edited April 25th, 2015 by Radical Raptr.
                  Radical Raptr's Avatar
                  Radical Raptr Radical Raptr is offline
                  #BAMFPokemonNerd
                     
                    Join Date: Mar 2011
                    Location: everywhere
                    Age: 23
                    Gender: Male
                    Nature: Sassy
                    Posts: 1,118
                    Quote:
                    Originally Posted by KidVegito9001 View Post
                    How do you make it so the back sprites are not doubled in size. Because i want to use XY ORAS sprites but the back sprites are too big.
                    You read the previous posts that have asked this exact thing before
                    [this post specifically]
                    __________________

                    ~My Deviantart - Litharreon Wiki - Litharreon Game Download~

                      #110    
                    Old April 25th, 2015 (11:36 AM). Edited April 25th, 2015 by Luka S.J..
                    Luka S.J.'s Avatar
                    Luka S.J. Luka S.J. is offline
                    Jealous Croatian
                       
                      Join Date: Dec 2008
                      Location: Croatia
                      Age: 25
                      Gender: Male
                      Nature: Adamant
                      Posts: 1,114
                      You guys need to understand something very important about these sprites that you're using. And I don't know how it doesn't bother you, but it bothers me a lot. The whole system is designed to give off a sense of perspective. Backsprites are closer to the player, hence closer to the actual "screen", so in order to give off a sense of perspective they have to be larger than the front sprites (objects closer to your eye appear larger than objects in the distance). So shrinking the backsprites, and using them in the same ratio as the frontsprites is absolutely stupid and looks ugly as hell. You completely destroy the sense of perspective that I've been aiming to achieve. Gen 6 Pokemon models were not designed to be used as sprites in a 2D battle scene.
                      On top of all the issues of the perspective, there is a glaring issue of direction. The gen 6 Pokemon models weren't ripped and compiled with the appropriate "tilt" to be used in a gen 5 environment. The gen 5 sprites were drawn to be facing a certain direction, and hence further emphasize the ongoing sense of perspective.

                      Conclusion: Those gen 6 "sprites" look bad in Essentials overall. Due to their design, scaling and orientation.
                      mega Scizor by Falgaia
                      P.S. You also need a bigger screen size to accommodate those bigger gen 6 "sprites".
                        #111    
                      Old April 25th, 2015 (11:59 AM).
                      KillerMapper's Avatar
                      KillerMapper KillerMapper is offline
                      Helix Follower
                         
                        Join Date: Sep 2014
                        Location: Paris
                        Gender: Male
                        Posts: 200
                        Yes, I never liked that gen 6 pack, colors are sometimes ugly (Bulbasaur looks so white compared to it's gen 5 sprite for ex) and the orientation is, like you said, incorrect.

                        Better use Smogon's gen 6 sprites, even if they're not fully animated: (don't forget credits!)

                        (More infos here)
                        __________________
                        Praise Helix.
                          #112    
                        Old April 25th, 2015 (12:39 PM).
                        rigbycwts's Avatar
                        rigbycwts rigbycwts is offline
                        Hmm, hmm.
                           
                          Join Date: Mar 2013
                          Gender: Male
                          Nature: Timid
                          Posts: 98
                          Got a bug and a couple of errors here after updating the scripts.
                          First is this, when throwing a rock in the Safari Zone.
                          Spoiler:

                          Exception: NoMethodError
                          Message: undefined method `setPictureSpriteEB' for #<PokeBattle_Scene:0x97be418>
                          PokeBattle_DynamicScene:1893:in `pbThrowRock'
                          PokeBattle_DynamicScene:1882:in `loop'
                          PokeBattle_DynamicScene:1899:in `pbThrowRock'
                          PokeBattle_SafariZone:149:in `pbStartBattle'
                          PBattle_Safari:114:in `pbSafariBattle'
                          PBattle_Safari:113:in `pbSceneStandby'
                          PBattle_Safari:115:in `pbSafariBattle'
                          PBattle_Safari:112:in `pbBattleAnimation'
                          PBattle_Safari:112:in `pbSafariBattle'
                          PBattle_Safari:102

                          Second, when using the "weather-changing man" to change the weather on the test map and triggering a wild battle:
                          Spoiler:

                          Exception: NoMethodError
                          Message: undefined method `[]' for nil:NilClass
                          PField_FieldWeather:171:in `type='
                          PokeBattle_DynamicAnimation:38:in `animateBattleSprites'
                          PokeBattle_DynamicScene:309:in `pbStartBattle'
                          PokeBattle_DynamicBattle:44:in `pbStartBattleCore'
                          PokeBattle_Battle:2602:in `pbStartBattle'
                          PField_Field:1015:in `pbWildBattle'
                          PField_Field:1014:in `pbSceneStandby'
                          PField_Field:1016:in `pbWildBattle'
                          PField_Field:1013:in `pbBattleAnimation'
                          PField_Field:1013:in `pbWildBattle'


                          Also, when capturing a Pokemon during the safari game, this happens when the Pokedex is brought up:
                          Spoiler:



                          __________________
                          Coming soon: Pokemon Collective and Mercantile Versions.

                          My college-life-advice blog.
                            #113    
                          Old April 25th, 2015 (12:49 PM). Edited April 25th, 2015 by Luka S.J..
                          Luka S.J.'s Avatar
                          Luka S.J. Luka S.J. is offline
                          Jealous Croatian
                             
                            Join Date: Dec 2008
                            Location: Croatia
                            Age: 25
                            Gender: Male
                            Nature: Adamant
                            Posts: 1,114
                            Quote:
                            Originally Posted by rigbycwts View Post
                            Got a bug and a couple of errors here after updating the scripts.
                            First is this, when throwing a rock in the Safari Zone.

                            Second, when using the "weather-changing man" to change the weather on the test map and triggering a wild battle:

                            Also, when capturing a Pokemon during the safari game, this happens when the Pokedex is brought up:
                            Your first two errors occour because you haven't updated all the scripts required. The Dynamic Weather script came after the Safari Zone fix, so you need to get all the scripts mentioned in both the posts. I need to think about the last part. Apparently the UI's viewport has a higher priority than that of the dex scene. So I need to figure out what I'll do with that.

                            [EDIT] Updated the Scene script to fix the battle box thing.
                              #114    
                            Old April 26th, 2015 (6:08 AM).
                            rigbycwts's Avatar
                            rigbycwts rigbycwts is offline
                            Hmm, hmm.
                               
                              Join Date: Mar 2013
                              Gender: Male
                              Nature: Timid
                              Posts: 98
                              When prompted to switch to a different Pokemon before the opposing Trainer sends out the next Pokemon, the yes/no choices are covered by the healthbox:
                              Spoiler:



                              __________________
                              Coming soon: Pokemon Collective and Mercantile Versions.

                              My college-life-advice blog.
                                #115    
                              Old April 26th, 2015 (9:17 AM). Edited April 26th, 2015 by Luka S.J..
                              Luka S.J.'s Avatar
                              Luka S.J. Luka S.J. is offline
                              Jealous Croatian
                                 
                                Join Date: Dec 2008
                                Location: Croatia
                                Age: 25
                                Gender: Male
                                Nature: Adamant
                                Posts: 1,114
                                Update!

                                I've re-written and updated all 6 scripts, either to add new functionality, fix bugs or just simply organize and tidy up things. The biggest part of this update is that the system is fully compatible with the Gen 6 Project. I plan to update the system on a regular basis, to make sure that the compatibility is there for any future updates to the Gen 6 Project. I feel that with the way I've set the system up, it is easier for me to fix any potential bugs, than Mej having to reupload the whole kit for the fixes.

                                All settings for the battle system are now handled in the DynamicBattle section.
                                  #116    
                                Old April 26th, 2015 (10:05 AM).
                                Lusus's Avatar
                                Lusus Lusus is offline
                                   
                                  Join Date: Jan 2013
                                  Location: Ljubljana
                                  Age: 19
                                  Gender: Other
                                  Nature: Lonely
                                  Posts: 1,405
                                  Anybody know how to make this Illusion script compatible with EB? Only graphic, shadow , cry and sent out messages need to be changed.
                                    #117    
                                  Old April 26th, 2015 (10:15 AM). Edited April 26th, 2015 by Luka S.J..
                                  Luka S.J.'s Avatar
                                  Luka S.J. Luka S.J. is offline
                                  Jealous Croatian
                                     
                                    Join Date: Dec 2008
                                    Location: Croatia
                                    Age: 25
                                    Gender: Male
                                    Nature: Adamant
                                    Posts: 1,114
                                    Quote:
                                    Originally Posted by Quilva View Post
                                    Anybody know how to make this Illusion script compatible with EB? Only graphic, shadow , cry and sent out messages need to be changed.
                                    Dude...I just posted the compatibility...
                                    Like...one post above yours...

                                    All you have to do is define the move effect, or use the gen 6 project.

                                    Scratch that, it's not working properly.

                                    Actually, it does work. If you implement it like it says in the instructions, my system will change the other required messages and sprites.
                                      #118    
                                    Old April 26th, 2015 (12:22 PM).
                                    Lusus's Avatar
                                    Lusus Lusus is offline
                                       
                                      Join Date: Jan 2013
                                      Location: Ljubljana
                                      Age: 19
                                      Gender: Other
                                      Nature: Lonely
                                      Posts: 1,405
                                      Tried doing it again, it works fine now. Guess i just did something wrong the first time then.

                                      Double battles give me this error though
                                      Spoiler:
                                      ---------------------------
                                      Pokemon Essentials
                                      ---------------------------
                                      Exception: TypeError

                                      Message: no implicit conversion from nil to integer

                                      PokeBattle_DynamicBattle:140:in `[]'

                                      PokeBattle_DynamicBattle:140:in `pbStartBattleCore'

                                      PokeBattle_Battle:2166:in `pbStartBattle'

                                      PField_Field:1058:in `pbDoubleWildBattle'

                                      PField_Field:1057:in `pbSceneStandby'

                                      PField_Field:1059:in `pbDoubleWildBattle'

                                      PField_Field:1056:in `pbBattleAnimation'

                                      PField_Field:1056:in `pbDoubleWildBattle'

                                      PField_Field:1435:in `pbBattleOnStepTaken'

                                      PField_Field:1461:in `pbOnStepTaken'



                                      This exception was logged in

                                      C:\Users\HP\Saved Games/Pokemon Essentials/errorlog.txt.

                                      Press Ctrl+C to copy this message to the clipboard.
                                      ---------------------------
                                      V redu
                                      ---------------------------
                                        #119    
                                      Old April 26th, 2015 (1:18 PM). Edited April 26th, 2015 by Luka S.J..
                                      Luka S.J.'s Avatar
                                      Luka S.J. Luka S.J. is offline
                                      Jealous Croatian
                                         
                                        Join Date: Dec 2008
                                        Location: Croatia
                                        Age: 25
                                        Gender: Male
                                        Nature: Adamant
                                        Posts: 1,114
                                        Quote:
                                        Originally Posted by Quilva View Post
                                        Double battles give me this error though
                                        Yeah, that happens because I'm stupid. Updated the Battle script to fix the issue.

                                        In other news. I've done some further tweaking to Scene. The major thing is that the Gen 6 Project ability messages have been edited (design wise) to look better with the overall UI of the system. If you have the Gen 6 Project, ability messages will pop up. If not, they won't. But not having the Gen 6 Project, will not break the battle system. The following image is required for the new ability messages.

                                        Download it to your Graphics/Pictures/abilityMessages.png path.
                                        Spoiler:
                                          #120    
                                        Old April 26th, 2015 (4:34 PM).
                                        neoblue107 neoblue107 is offline
                                           
                                          Join Date: Jul 2011
                                          Gender: Male
                                          Posts: 9
                                          Whenever I catch a Shadow Pokemon in a double battle, I get this error.

                                          Spoiler:
                                          ---------------------------
                                          Pokemon Essentials
                                          ---------------------------
                                          Exception: NoMethodError

                                          Message: undefined method `pokemonIndex=' for #<PokeBattle_Battler:0x8730700>

                                          PokeBattle_Battle:748:in `pbRemoveFromParty'

                                          PokeBattle_Battle:745:in `each'

                                          PokeBattle_Battle:745:in `pbRemoveFromParty'

                                          PokeBattle_Battle:744:in `each'

                                          PokeBattle_Battle:744:in `pbRemoveFromParty'

                                          PokeBattle_Battle:193:in `pbThrowPokeBall'

                                          PItem_ItemEffects:1650

                                          PItem_ItemEffects:1649:in `call'

                                          Event:150:in `trigger'

                                          PItem_Items:231:in `triggerUseInBattle'


                                          Catching a Shadow Pokemon brings up this error, but the battle continues afterwards. However, the Pokemon does not appear to actually be caught. (It doesn't get sent to the PC or to the player's party)
                                          Any ideas?
                                            #121    
                                          Old April 27th, 2015 (3:17 AM).
                                          Luka S.J.'s Avatar
                                          Luka S.J. Luka S.J. is offline
                                          Jealous Croatian
                                             
                                            Join Date: Dec 2008
                                            Location: Croatia
                                            Age: 25
                                            Gender: Male
                                            Nature: Adamant
                                            Posts: 1,114
                                            Quote:
                                            Originally Posted by neoblue107 View Post
                                            Whenever I catch a Shadow Pokemon in a double battle, I get this error.
                                            I just tested out catching shadow Pokemon in single and double battles, in both my battle sys and the stock Essentials one. That error never appears.
                                              #122    
                                            Old April 27th, 2015 (11:12 AM).
                                            Erassus's Avatar
                                            Erassus Erassus is offline
                                            Hunter
                                               
                                              Join Date: Jan 2015
                                              Location: Chile
                                              Age: 27
                                              Gender: Male
                                              Nature: Relaxed
                                              Posts: 50
                                              Luka, is there a way to only zoom Opponent battle sprites? it would be nice.
                                                #123    
                                              Old April 27th, 2015 (1:09 PM). Edited April 27th, 2015 by Luka S.J..
                                              Luka S.J.'s Avatar
                                              Luka S.J. Luka S.J. is offline
                                              Jealous Croatian
                                                 
                                                Join Date: Dec 2008
                                                Location: Croatia
                                                Age: 25
                                                Gender: Male
                                                Nature: Adamant
                                                Posts: 1,114
                                                Update!

                                                I've updated the script sections again, as I'm slowly expanding the general UI of the system. In order to use these new scripts, you'll also need to extract these resources to Graphics/Pictures/


                                                Custom Pokemon Selection screen to come at a later date.
                                                __________________

                                                  #124    
                                                Old April 27th, 2015 (7:05 PM). Edited April 27th, 2015 by Dylanrockin.
                                                Dylanrockin's Avatar
                                                Dylanrockin Dylanrockin is offline
                                                That guy
                                                   
                                                  Join Date: May 2011
                                                  Age: 23
                                                  Gender: Male
                                                  Nature: Timid
                                                  Posts: 276
                                                  Upon updating, and entering a battle, I am presented with this error.

                                                  Spoiler:
                                                  ---------------------------
                                                  Pokemon Essentials
                                                  ---------------------------
                                                  Exception: NoMethodError

                                                  Message: undefined method `tone' for nil:NilClass

                                                  PField_FieldWeather:225:in `update'

                                                  PokeBattle_DynamicAnimation:43:in `animateBattleSprites'

                                                  PokeBattle_DynamicScene:282:in `pbStartBattle'

                                                  PokeBattle_DynamicBattle:54:in `pbStartBattleCore'

                                                  PokeBattle_Battle:2603:in `pbStartBattle'

                                                  PField_Field:996:in `pbWildBattle'

                                                  PField_Field:995:in `pbSceneStandby'

                                                  PField_Field:997:in `pbWildBattle'

                                                  PField_Field:994:in `pbBattleAnimation'

                                                  PField_Field:994:in `pbWildBattle'



                                                  This exception was logged in

                                                  C:\Users\Dylan\Saved Games/Pokemon Essentials/errorlog.txt.

                                                  Press Ctrl+C to copy this message to the clipboard.
                                                  ---------------------------
                                                  OK
                                                  ---------------------------


                                                  Also, upon starting up the game I get this error:

                                                  Spoiler:
                                                  ---------------------------
                                                  Pokemon Essentials
                                                  ---------------------------
                                                  Script 'PokeBattle_DynamicBitmapWrapper' line 157: NameError occurred.

                                                  undefined method `pbLoadPokemonBitmap' for class `Object'
                                                  ---------------------------
                                                  OK
                                                  ---------------------------
                                                    #125    
                                                  Old April 28th, 2015 (2:28 AM).
                                                  Luka S.J.'s Avatar
                                                  Luka S.J. Luka S.J. is offline
                                                  Jealous Croatian
                                                     
                                                    Join Date: Dec 2008
                                                    Location: Croatia
                                                    Age: 25
                                                    Gender: Male
                                                    Nature: Adamant
                                                    Posts: 1,114
                                                    Quote:
                                                    Originally Posted by Dylanrockin View Post
                                                    Upon updating, and entering a battle, I am presented with this error.
                                                    Yup, and apparently copy-pasting according to instructions is still a very difficult taks.
                                                    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
                                                    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 1:35 AM.