The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Pokemon Contests Script 1.5

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.


Reply
 
Thread Tools
  #26    
Old August 17th, 2014 (10:03 PM).
mej71's Avatar
mej71 mej71 is offline
     
    Join Date: Mar 2014
    Location: Omnipresence
    Gender: Male
    Posts: 1,226
    Quote:
    Originally Posted by bbwong91900 View Post
    Im getting this error when I'm trying to call up the script:

    Code:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError
    
    Message: Script error within event 5, map 2 (Ingori Town):
    
    Exception: TypeError
    
    Message: Section160:62:in `[]'cannot convert PokeBattle_Pokemon into Integer
    
    ***Full script:
    
    pbContest(50,PBSpecies::CHARIZARD,20,PBSpecies::SQUIRTLE,20,PBSpecies::HITMONTOP,20)
    
    
    Interpreter:243:in `pbExecuteScript'
    
    Contests:62:in `pbStartContest'
    
    Contests:2180:in `pbStartContest'
    
    Contests:2190:in `pbContest'
    
    (eval):1:in `pbExecuteScript'
    
    Interpreter:1600:in `eval'
    
    Interpreter:243:in `pbExecuteScript'
    
    Interpreter:1600:in `command_355'
    
    Interpreter:494:in `execute_command'
    
    Interpreter:193:in `update'
    
    
    
    Interpreter:276:in `pbExecuteScript'
    
    Interpreter:1600:in `command_355'
    
    Interpreter:494:in `execute_command'
    
    Interpreter:193:in `update'
    
    Interpreter:106:in `loop'
    
    Interpreter:198:in `update'
    
    Scene_Map:103:in `update'
    
    Scene_Map:101:in `loop'
    
    Scene_Map:114:in `update'
    
    Scene_Map:68:in `main'
    
    
    
    This exception was logged in 
    
    C:\Users\Wong\Saved Games/Pokemon Essentials/errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------
    Have tested it on the clean version and it works fine. Can't seem to figure what's causing this error.
    It uses game variables 35 and 36 for this script. You have something else stored in 36. Either change that or just change all instances of $game_variables[36] in this script to whatever number. There's 12 instances. If you're using variable 35 for anything, do the same for it.
    Reply With Quote

    Relevant Advertising!

      #27    
    Old September 16th, 2014 (1:02 PM).
    AlexTCGPro's Avatar
    AlexTCGPro AlexTCGPro is offline
       
      Join Date: Oct 2013
      Gender: Male
      Nature: Timid
      Posts: 51
      Can someone please upload a picture or a video showing this script working?
      Reply With Quote
        #28    
      Old September 23rd, 2014 (6:57 AM). Edited September 23rd, 2014 by mej71.
      mej71's Avatar
      mej71 mej71 is offline
         
        Join Date: Mar 2014
        Location: Omnipresence
        Gender: Male
        Posts: 1,226
        Quote:
        Originally Posted by AlexTCGPro View Post
        Can someone please upload a picture or a video showing this script working?
        Are you having problems with it?
        Screenshot 1,Screenshot 2, Screenshot 3.

        And still working on it, next release should be out soon.
        Berry Mixer: Done
        Implementing all the pokeblock's effects: 1/2 done
        Preliminary judging: done. I can only find vague information about the exact scoring of this round, but I did the best I could. Also give extra points to shiny pokemon. Not sure if it does it in the real games, but it should have IMO.
        Fixing the order changer so that it adjust the order between rounds based on total hearts: done
        Results scene: Done. It's not super impressive, but it gets it's point across. PM me if you have or want to help make graphics for it and any other features in this tutorial.
        Add debug feature to skip contest and win: Done. You can also do one round and skip the rest
        Bug Fixing: Bug where it messes up the order (sometimes with duplicate pokemon) when there's a speed tie in the first round.
        Couple minor (graphical)things. Fixed Berry Mixer graphics. Fixed Berry Mixer letting you mix two of a berry when you only have one. Added Page Up/Down support for the berry mixer, since you can have a lot of berries and it's a pain one by one. Added Super Dendenne's fix/feature for the ribbon page of the summary.


        If there's any other things people might want, let me know soon.


        So, last things to do now are finishing inserting the Pokeblocks, possibly finding the graphics for pokeblocks, and sprucing up the actual events in the contest hall.
        Reply With Quote
          #29    
        Old September 24th, 2014 (3:10 PM).
        mej71's Avatar
        mej71 mej71 is offline
           
          Join Date: Mar 2014
          Location: Omnipresence
          Gender: Male
          Posts: 1,226
          Version 1.5 is now up on the main post.
          Reply With Quote
            #30    
          Old September 25th, 2014 (4:09 PM).
          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,120
            Dude this is so intense, I'm trying it out right now, and I'll let you know of what you think!
            __________________

            ~My Deviantart - Litharreon Wiki - Litharreon Game Download~

            Reply With Quote
              #31    
            Old September 26th, 2014 (2:34 AM).
            Nickalooose Nickalooose is offline
            --------------------
               
              Join Date: Mar 2008
              Gender: Female
              Posts: 1,309
              I must admit, this is looking good and if that was your last update, let's hope it does what it's supposed to do... On a side note, the reason the final hearts linger sometimes, is because you have many pictures on screen and the game will remove the sprites as quickly as it can, but in some cases, will be too slow before the next scene will start... My advice is, blend some pictures together if you can and/or remove them yourself at the end of the script, one by one. (give them some nice looking screen slides or something). This is what I think anyway.
              Reply With Quote
                #32    
              Old September 26th, 2014 (6:00 AM).
              mej71's Avatar
              mej71 mej71 is offline
                 
                Join Date: Mar 2014
                Location: Omnipresence
                Gender: Male
                Posts: 1,226
                Quote:
                Originally Posted by Nickalooose View Post
                I must admit, this is looking good and if that was your last update, let's hope it does what it's supposed to do... On a side note, the reason the final hearts linger sometimes, is because you have many pictures on screen and the game will remove the sprites as quickly as it can, but in some cases, will be too slow before the next scene will start... My advice is, blend some pictures together if you can and/or remove them yourself at the end of the script, one by one. (give them some nice looking screen slides or something). This is what I think anyway.
                I might do a small update or two, fixing any bugs that may arise and such. At the very least I changed the berry mixer so you don't have to put it in a conditional branch.

                As for the hearts, I actually am removing them manually, which is why I'm confused as to why it lingers. A second or two later it disappears. I might make it do the fade out and hide thing, so it can take as long as it needs to to actually remove them.
                Reply With Quote
                  #33    
                Old September 26th, 2014 (9:24 AM).
                Derxwna Kapsyla's Avatar
                Derxwna Kapsyla Derxwna Kapsyla is offline
                Derxwna "The Badman" Kapsyla
                   
                  Join Date: Jun 2011
                  Location: Margate, FL
                  Age: 24
                  Gender: Male
                  Nature: Lax
                  Posts: 404
                  From what I read in the intro post, the way you define the Pokemon that appear is within the individual event. That seems very.. static, in comparison with how it's handled in Pokemon. If I could code, I'd probably have made an array somewhere in the scripts (or a text file for external editing) that defines certain species and what rank they would appear in Like, for example:
                  Code:
                  [NORMAL]
                  CHARIZARD,ribbon item,ai,move 1,move 2,move 3,move 4,contest type,nickname
                  Unless I'm misinterpreting the intro post wrong and this is how stuff works. If not, I'm not saying that you should recode the entire system to make this work (since that'd be unfair to you since you've spent all this time making it work splendidly as it is), just providing a potential idea for future inspiration or additional insight.
                  I'll probably not be adding this to my game just yet, since contests won't be a thing for a while, but when I do add it I'll be sure to leave a proper review on my thoughts on it.
                  __________________
                  Development Blog:
                  For more information future news and updates to any projects, the following blogs are where I post information. You can usually hit me with a message there when it comes to bug reports or feedback, or general conversation about something.
                  Game Projects:
                  In Progress:
                  Reply With Quote
                    #34    
                  Old September 26th, 2014 (9:59 AM).
                  mej71's Avatar
                  mej71 mej71 is offline
                     
                    Join Date: Mar 2014
                    Location: Omnipresence
                    Gender: Male
                    Posts: 1,226
                    Quote:
                    Originally Posted by Derxwna Kapsyla View Post
                    From what I read in the intro post, the way you define the Pokemon that appear is within the individual event. That seems very.. static, in comparison with how it's handled in Pokemon. If I could code, I'd probably have made an array somewhere in the scripts (or a text file for external editing) that defines certain species and what rank they would appear in Like, for example:
                    Code:
                    [NORMAL]
                    CHARIZARD,ribbon item,ai,move 1,move 2,move 3,move 4,contest type,nickname
                    Unless I'm misinterpreting the intro post wrong and this is how stuff works. If not, I'm not saying that you should recode the entire system to make this work (since that'd be unfair to you since you've spent all this time making it work splendidly as it is), just providing a potential idea for future inspiration or additional insight.
                    I'll probably not be adding this to my game just yet, since contests won't be a thing for a while, but when I do add it I'll be sure to leave a proper review on my thoughts on it.
                    It is quite different than how other things in essentials are handled, but I like it this way better, much less complex on my end. As I said in the post, all of these things can be specified by the user, by using a couple small scripts instead of a text file. Even it did, it would follow the same process but be less efficient because it has to read the data file. With as easy as the scripts are to call, I think it's just as user friendly as editing a text file.

                    The only advantage I see is that the compiler will find if you made any typos in the text file, whereas for this you'd have to do a quick test of each contest call. If I eventually feel like doing stuff in the compiler again (which I was only able to do the first time successfully with Maruno's help), I might reprogram it to work like that.
                    Reply With Quote
                      #35    
                    Old October 8th, 2014 (9:55 AM). Edited October 8th, 2014 by Zeak6464.
                    Zeak6464's Avatar
                    Zeak6464 Zeak6464 is offline
                    The Cold Guy
                       
                      Join Date: Mar 2013
                      Location: USA
                      Age: 25
                      Gender: Male
                      Nature: Calm
                      Posts: 581
                      Quote:
                      Originally Posted by mej71 View Post
                      Pokemon Contest 1.5
                      Here is a video for you


                      got Error after round 4 xD

                      Exception: RuntimeError
                      Message: Script error within event 21, map 343 (Contest Hall):
                      Exception: TypeError
                      Message: Section046:33:in `pos='cannot convert String into Integer
                      ***Full script:
                      Kernel.pbMessage(_INTL("First up is Gary's Butterscortch!"))
                      showSpeciesIntro(PBSpecies::CHARIZARD,"","Butterscortch")
                      pbAddContestMove(2,1,2,3,7)
                      pbChangeContestName(2,"Butterscortch")
                      pbContest(50,PBSpecies::CHARIZARD,20,PBSpecies::SQUIRTLE,20,PBSpecies::HITMONTOP,20,1)

                      Interpreter:243:in `pbExecuteScript'
                      PBContestMove:33:in `initialize'
                      Contest:1773:in `new'
                      Contest:1773:in `pbMoveButtons'
                      Contest:1750:in `loop'
                      Contest:1840:in `pbMoveButtons'
                      Contest:185:in `pbTurn'
                      Contest:124:in `pbStartContest'
                      Contest:2460:in `pbStartContest'
                      Contest:2470:in `pbContest'

                      Interpreter:276:in `pbExecuteScript'
                      Interpreter:1600:in `command_355'
                      Interpreter:494:in `execute_command'
                      Interpreter:193:in `update'
                      Interpreter:106:in `loop'
                      Interpreter:198:in `update'
                      Scene_Map:103:in `update'
                      Scene_Map:101:in `loop'
                      Scene_Map:114:in `update'
                      Scene_Map:68:in `main'
                      __________________
                      Reply With Quote
                        #36    
                      Old October 8th, 2014 (11:49 AM).
                      mej71's Avatar
                      mej71 mej71 is offline
                         
                        Join Date: Mar 2014
                        Location: Omnipresence
                        Gender: Male
                        Posts: 1,226
                        You seem to have an older version that what was posted, so I'm not exactly sure where your error occurred. However, I think I fixed what might have been causing it. due to my ignorance, I didn't realize I was allowing you to select moves you don't have, which I believe is what would cause this error. This error could also be caused by inserting in new moves to the moves.txt file, but not adding them to contestmoves.txt

                        Fixed in the main post. I also fixed something else that would cause a crash at the very end sometimes.
                        Reply With Quote
                          #37    
                        Old November 5th, 2014 (3:25 AM).
                        TheGuyver TheGuyver is offline
                           
                          Join Date: Jun 2014
                          Gender: Male
                          Nature: Adamant
                          Posts: 23
                          Would this work with the RMX-OS platform?
                          Reply With Quote
                            #38    
                          Old November 5th, 2014 (8:19 AM).
                          mej71's Avatar
                          mej71 mej71 is offline
                             
                            Join Date: Mar 2014
                            Location: Omnipresence
                            Gender: Male
                            Posts: 1,226
                            Quote:
                            Originally Posted by TheGuyver View Post
                            Would this work with the RMX-OS platform?
                            I honestly don't know, I've never used that. It might, but then again it might not.
                            Reply With Quote
                              #39    
                            Old November 5th, 2014 (8:50 AM). Edited November 5th, 2014 by mej71.
                            mej71's Avatar
                            mej71 mej71 is offline
                               
                              Join Date: Mar 2014
                              Location: Omnipresence
                              Gender: Male
                              Posts: 1,226
                              Fixed a problem with the Berry Mixer script in the main post. Probably not noticeable, but it would sometimes not give the correct block rewards
                              Reply With Quote
                                #40    
                              Old November 5th, 2014 (8:58 AM).
                              Zeak6464's Avatar
                              Zeak6464 Zeak6464 is offline
                              The Cold Guy
                                 
                                Join Date: Mar 2013
                                Location: USA
                                Age: 25
                                Gender: Male
                                Nature: Calm
                                Posts: 581
                                Quote:
                                Originally Posted by TheGuyver View Post
                                Would this work with the RMX-OS platform?
                                Yes & No , Single Player Contest work but Multiplayer Contest would need to be writen into the coding , and don't ask others to just give it to you. Try coding it 1st , then ask if your still getting errors to see what you should changed or to see what you messed up.
                                Lots of Luck ! If you do get this working for Multiplayer please feel free to message me , becouse I my self have issues trying to get this work for Multiplayer.
                                __________________
                                Reply With Quote
                                  #41    
                                Old November 7th, 2014 (6:27 PM).
                                TheGuyver TheGuyver is offline
                                   
                                  Join Date: Jun 2014
                                  Gender: Male
                                  Nature: Adamant
                                  Posts: 23
                                  Quote:
                                  Originally Posted by mej71 View Post
                                  I honestly don't know, I've never used that. It might, but then again it might not.
                                  Quote:
                                  Originally Posted by Zeak6464 View Post
                                  Yes & No , Single Player Contest work but Multiplayer Contest would need to be writen into the coding , and don't ask others to just give it to you. Try coding it 1st , then ask if your still getting errors to see what you should changed or to see what you messed up.
                                  Lots of Luck ! If you do get this working for Multiplayer please feel free to message me , becouse I my self have issues trying to get this work for Multiplayer.
                                  The main reason I was asking is because I don't have the time to test it since the guy that was doing the bulk of the scripting for my mmo bailed on me to no life destiny. I'll get around to tinkering with it though, since I do everything myself anyway xD
                                  Reply With Quote
                                    #42    
                                  Old December 9th, 2014 (12:40 PM).
                                  p.claydon p.claydon is offline
                                     
                                    Join Date: Jan 2011
                                    Gender:
                                    Posts: 386
                                    has anyone got this working on pokemon essentials 14?
                                    __________________
                                    Still learning how to sprite but if you want to look at my progress then here you go
                                    http://pclaydon.deviantart.com/gallery/
                                    Reply With Quote
                                      #43    
                                    Old December 9th, 2014 (1:40 PM).
                                    mej71's Avatar
                                    mej71 mej71 is offline
                                       
                                      Join Date: Mar 2014
                                      Location: Omnipresence
                                      Gender: Male
                                      Posts: 1,226
                                      Quote:
                                      Originally Posted by p.claydon View Post
                                      has anyone got this working on pokemon essentials 14?
                                      Have you tried and it's not working? Or you just haven't tried yet? I have not updated it, but I don't know of any compatibility problems their might be.
                                      Reply With Quote
                                        #44    
                                      Old December 9th, 2014 (2:06 PM).
                                      kcgcrazy kcgcrazy is offline
                                         
                                        Join Date: Nov 2013
                                        Location: Canada
                                        Gender: Male
                                        Posts: 119
                                        Quote:
                                        Originally Posted by mej71 View Post
                                        Have you tried and it's not working? Or you just haven't tried yet? I have not updated it, but I don't know of any compatibility problems their might be.
                                        i can verify that this does work on v14 as i have it working 100%
                                        Reply With Quote
                                          #45    
                                        Old December 9th, 2014 (2:46 PM).
                                        p.claydon p.claydon is offline
                                           
                                          Join Date: Jan 2011
                                          Gender:
                                          Posts: 386
                                          i cant get it working crashes when on summary screen for contest moves and when getting the move list in a contest
                                          __________________
                                          Still learning how to sprite but if you want to look at my progress then here you go
                                          http://pclaydon.deviantart.com/gallery/
                                          Reply With Quote
                                            #46    
                                          Old December 9th, 2014 (2:51 PM).
                                          mej71's Avatar
                                          mej71 mej71 is offline
                                             
                                            Join Date: Mar 2014
                                            Location: Omnipresence
                                            Gender: Male
                                            Posts: 1,226
                                            Quote:
                                            Originally Posted by p.claydon View Post
                                            i cant get it working crashes when on summary screen for contest moves and when getting the move list in a contest
                                            Can I get an error report? And is your game compiled?
                                            Reply With Quote
                                              #47    
                                            Old December 9th, 2014 (3:06 PM).
                                            p.claydon p.claydon is offline
                                               
                                              Join Date: Jan 2011
                                              Gender:
                                              Posts: 386
                                              yh and i'll send error report now ok so i think ive attached an error log to this post
                                              Attached Files
                                              File Type: txt errorlog.txt‎ (1.6 KB, 2 views) (Save to Dropbox)
                                              Reply With Quote
                                                #48    
                                              Old December 9th, 2014 (3:14 PM).
                                              mej71's Avatar
                                              mej71 mej71 is offline
                                                 
                                                Join Date: Mar 2014
                                                Location: Omnipresence
                                                Gender: Male
                                                Posts: 1,226
                                                Quote:
                                                Originally Posted by p.claydon View Post
                                                yh and i'll send error report now ok so i think ive attached an error log to this post
                                                Did you compile the contestmoves.txt file?
                                                Reply With Quote
                                                  #49    
                                                Old December 9th, 2014 (3:15 PM).
                                                p.claydon p.claydon is offline
                                                   
                                                  Join Date: Jan 2011
                                                  Gender:
                                                  Posts: 386
                                                  theres a contestmove.dat file in my data folder
                                                  __________________
                                                  Still learning how to sprite but if you want to look at my progress then here you go
                                                  http://pclaydon.deviantart.com/gallery/
                                                  Reply With Quote
                                                    #50    
                                                  Old December 9th, 2014 (3:18 PM).
                                                  mej71's Avatar
                                                  mej71 mej71 is offline
                                                     
                                                    Join Date: Mar 2014
                                                    Location: Omnipresence
                                                    Gender: Male
                                                    Posts: 1,226
                                                    Quote:
                                                    Originally Posted by p.claydon View Post
                                                    theres a contestmove.dat file in my data folder
                                                    Try forcing it to compile? It's not finding PBContestMoves, which is added to the scripts when compiled, so I don't see another reason why it wouldn't show up.
                                                    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:46 AM.