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.

TrollandToad.com
Closed Thread
 
Thread Tools
  #1    
Old September 6th, 2013 (4:20 PM). Edited September 11th, 2013 by Alexandre.
Alexandre's Avatar
Alexandre Alexandre is offline
     
    Join Date: Mar 2005
    Age: 22
    Nature: Lonely
    Posts: 401
    Hey everyone, some of you might remember a few years ago my project Pokemon Essentials: Online which combined Netplay and Essentials to allow people to make an MMORPG. The kit was buggy and hard to implement into existing projects. I decided to complete the project but in terms of plug and play scripts which add only necessary online functions such as trading and battling. The scripts included have the following basic features implemented:
    • Register
    • Login
    • Trade
    • Battle

    These scripts are beta, bugs are to be expected, if you encounter one, please report it

    Download
    Beta 2
    Beta 1

    Known Issues:
    • Certain items used in battle do not sync their animations, such as the throwing of pokeballs

    Future Plans
    • Get some better graphics for the trade screen, they're very ugly. I'm no graphics designer, anyone want to do some?
    • Add wait message in battle system when waiting for other player to choose
    • Add a proper request system when requesting trade and battle, the current one is a very poor implementation although it works
    • Optimise and streamline trade, battle and server code
    • Add debugging to server, was present in original RMX-OS code but didn't add it when I rewrote the server line by line

    Thanks
    • Blizzard - big thanks to him for all his work on RMX-OS, without it, none of this would have been possible. Server based off his code.
    • Maruno - advice on how I can implement the battle system
    • Luka S.J - inspiration

    Misc

    By the way, I recommend using the script found here: http://www.pokecommunity.com/showthread.php?t=307989. It will allow you to run two clients at the same time which will make testing a lot easier.

    And another heads up. The battle system has 0 modifications to the actual scene so if I'm playing my cards right, your game's battle graphics will be used even in the online scene.

    Hit me up for feature requests and I'll see what I can do.

    Bugs fixed in the next version
    • None so far

    Donations
    I don't accept donations but if you wish to support me then please send some money towards the Children of Syria appeal here: http://www.warchild.org.uk/donate.

    I come from Lebanon and the country is deteriorating under the huge pressure of 800,000 Syrian refugees. If you do choose to donate, PM me here with a screenshot of your donation, it will really make my day.

    Relevant Advertising!

      #2    
    Old September 7th, 2013 (8:11 AM).
    venom12's Avatar
    venom12 venom12 is offline
    Pokemon Crystal Rain Relased
       
      Join Date: Sep 2006
      Age: 26
      Gender: Male
      Nature: Adamant
      Posts: 529
      Great you back with online project, and those features man, it is so great. I hope it will be bigger :D
        #3    
      Old September 7th, 2013 (4:28 PM).
      Peaverin's Avatar
      Peaverin Peaverin is offline
         
        Join Date: Sep 2013
        Gender: Male
        Posts: 50
        Excellent Script, Alexandre! I've tested it and I've got a bug and a suggestion:
        -(bug) You can connect the same account with two different clients.
        -(suggestion) I think that instead asking for trading and battling and then for a name, there should be a list of all players and you can select a player and choose between battling or trading. Then a message will appear in the selected player asking for the trade or the battle.

        Anyways the system looks very good, I would like a lot to use this feature into my game.
        Thanks
        __________________
        Click Here to enter my project's Webpage!
        Hey guys, Im a Spanish boy. It's hard for me to speak completely good in english, but I'll do my best. Please, don't be too bad with me
          #4    
        Old September 8th, 2013 (1:14 AM). Edited September 8th, 2013 by Alexandre.
        Alexandre's Avatar
        Alexandre Alexandre is offline
           
          Join Date: Mar 2005
          Age: 22
          Nature: Lonely
          Posts: 401
          Quote:
          Originally Posted by Peaverin View Post
          Excellent Script, Alexandre! I've tested it and I've got a bug and a suggestion:
          -(bug) You can connect the same account with two different clients.
          -(suggestion) I think that instead asking for trading and battling and then for a name, there should be a list of all players and you can select a player and choose between battling or trading. Then a message will appear in the selected player asking for the trade or the battle.

          Anyways the system looks very good, I would like a lot to use this feature into my game.
          Thanks
          The bug is something I thought I fixed. I'll have a look at it again.

          Your suggestion is exactly what I want to implement, my only problem is I'm not sure yet how to handle the receiving of requests. Do I put them in a list and you can choose which request you respond to? How do I handle requests that have died, how do I notify the player that they have received a new request? All these things are what made me implement requests as they are now.

          And please feel free to use it in your game, remember to credit Blizzard

          Edit:
          So I looked at that bug and for some reason the fix isn't there. I must have modified one of my backups instead of my working directory by accident, it will be fixed in the next version, cheers!
            #5    
          Old September 8th, 2013 (4:14 AM).
          Peaverin's Avatar
          Peaverin Peaverin is offline
             
            Join Date: Sep 2013
            Gender: Male
            Posts: 50
            -I think that first you have to show the options battle or trade, and create two separate lists for those who want to battle and for those who want to trade. Then, when someone requests for battle/trade other player, it appears the message on the other screen player, and he/she has 20 seconds to answer. A player cannot be requested by other players if he is already being requested.

            -Other option is create the 2 separate lists, and if a player requests other player, its name appears in blue color in the other player list, so you'll se blue the name of those who sent you a request. Then if you select some of those with blue name, the battle/trade will automatically start.

            I don't know what will be easier to you for do, I'm just giving some ideas.
            __________________
            Click Here to enter my project's Webpage!
            Hey guys, Im a Spanish boy. It's hard for me to speak completely good in english, but I'll do my best. Please, don't be too bad with me
              #6    
            Old September 10th, 2013 (6:00 PM).
            Alexandre's Avatar
            Alexandre Alexandre is offline
               
              Join Date: Mar 2005
              Age: 22
              Nature: Lonely
              Posts: 401
              I really thought this would generate more interest...

              Anyway an update for you guys who are following. Tomorrow I will be releasing beta 2 which fixes some bugs and includes account management such as changing password, forgot password etc.

              Along with this I will be offering a service to people who want to implement PE:O in their games but don't want to have their computer running all the time for the server. I have the server running on a webhost online and it works perfectly. Please PM if you would like me to run a server instance for your game and we can organise something. I will be working on an administration panel for you to be able to manage your server.

              Cheers.
                #7    
              Old September 11th, 2013 (2:56 PM).
              th3shark's Avatar
              th3shark th3shark is offline
              Develops in AS3/C++
                 
                Join Date: Jul 2013
                Location: Connecticut
                Gender: Male
                Nature: Calm
                Posts: 79
                Well I think it's a pretty cool feature! Here's hoping the beta 2 release goes well.
                __________________
                  #8    
                Old September 11th, 2013 (4:45 PM).
                Alexandre's Avatar
                Alexandre Alexandre is offline
                   
                  Join Date: Mar 2005
                  Age: 22
                  Nature: Lonely
                  Posts: 401
                  Beta 2 released! Contains bug fixes and account management features.

                  Beta 3 planned features:
                  -Admin control panel to do things such as restart server, ban users etc
                  -Mystery gift implementation - place a file on the server which it will load, probably just to set a switch/variable on the client
                    #9    
                  Old September 11th, 2013 (7:04 PM).
                  tylerab01's Avatar
                  tylerab01 tylerab01 is offline
                  Pokemon AquaHarmony
                     
                    Join Date: Apr 2009
                    Location: France
                    Gender: Male
                    Nature: Bold
                    Posts: 165
                    Nice seeing you back Alexandre, I am glad to see that you are working on this project again and I will be keeping an eye on this for sure!
                    __________________

                      #10    
                    Old September 12th, 2013 (10:07 AM).
                    Tayuya of the Sound Four's Avatar
                    Tayuya of the Sound Four Tayuya of the Sound Four is offline
                       
                      Join Date: Jan 2013
                      Gender: Female
                      Posts: 31
                      Oh My Gosh you have no idea how wonderful this is to me. I've spent countless days trying to take apart old Pokemon Essentials Online to adapt it with my game and now my hours off work...don't really pay off but they're over at least! o u o. Anyway the real point of this post was to point out a few bugs I noticed while testing:
                      1. After a trade you are sent back to the login page as opposed to the Battle/Trade/Account page, which isn't bad in and of itself but you can't log back in once your sent to the login page. Nothing major, it can be fixed by leaving the login and then reconnecting to the server.
                      2. After a trade the game doesn't force a save (I'm going to look in to the code and see if I can't add that in myself) So if one person saves and the other person doesn't the pokemon is cloned and not traded. Again nothing big just pointing it out.
                        #11    
                      Old September 19th, 2013 (5:55 AM).
                      orcywoo6 orcywoo6 is offline
                         
                        Join Date: Oct 2007
                        Gender:
                        Posts: 4
                        I must say great work on your system, unfortunately I can't seem to get the mysql server working though. I get an error along the lines of 'Table storage engine for '' doesn't have this option' and if I try to run main.rb it appears and disappears in a split second.
                          #12    
                        Old September 19th, 2013 (6:19 AM).
                        Alexandre's Avatar
                        Alexandre Alexandre is offline
                           
                          Join Date: Mar 2005
                          Age: 22
                          Nature: Lonely
                          Posts: 401
                          Quote:
                          Originally Posted by orcywoo6 View Post
                          I must say great work on your system, unfortunately I can't seem to get the mysql server working though. I get an error along the lines of 'Table storage engine for '' doesn't have this option' and if I try to run main.rb it appears and disappears in a split second.
                          That error is normal when importing the database, not quite sure what causes it. Are you sure you entered the correct details for the MySQL server in main.rb?
                            #13    
                          Old September 19th, 2013 (6:37 AM).
                          orcywoo6 orcywoo6 is offline
                             
                            Join Date: Oct 2007
                            Gender:
                            Posts: 4
                            Hmm, positive the details are correct, followed the guide to the letter.
                              #14    
                            Old September 19th, 2013 (6:39 AM).
                            Alexandre's Avatar
                            Alexandre Alexandre is offline
                               
                              Join Date: Mar 2005
                              Age: 22
                              Nature: Lonely
                              Posts: 401
                              Quote:
                              Originally Posted by orcywoo6 View Post
                              Hmm, positive the details are correct, followed the guide to the letter.
                              And you're perfectly able to connect with HeidiSQL or another database manager?
                                #15    
                              Old September 19th, 2013 (6:42 AM).
                              orcywoo6 orcywoo6 is offline
                                 
                                Join Date: Oct 2007
                                Gender:
                                Posts: 4
                                Yeah it lets me put the details in and execute the database and etc.
                                  #16    
                                Old September 25th, 2013 (6:40 PM).
                                Alexandre's Avatar
                                Alexandre Alexandre is offline
                                   
                                  Join Date: Mar 2005
                                  Age: 22
                                  Nature: Lonely
                                  Posts: 401
                                  For the few people following this, I'm sorry for the lack of updates recently. I just started university again and I'm busy with some other commitments. I don't have anything to release apart from some bug fixes which don't warrant a new beta. Please do keep submitting feature requests and bug reports, I will get to them eventually.
                                    #17    
                                  Old September 26th, 2013 (8:43 AM).
                                  zingzags's Avatar
                                  zingzags zingzags is offline
                                  PokemonGDX creator
                                     
                                    Join Date: Jan 2009
                                    Location: Boston
                                    Age: 23
                                    Nature: Adamant
                                    Posts: 562
                                    Quote:
                                    Originally Posted by Alexandre View Post
                                    For the few people following this, I'm sorry for the lack of updates recently. I just started university again and I'm busy with some other commitments. I don't have anything to release apart from some bug fixes which don't warrant a new beta. Please do keep submitting feature requests and bug reports, I will get to them eventually.
                                    I feel you, I am working on a MapleStory project in a different forum and I cannot update as quick as I want to because of school.
                                    __________________
                                    Check out the Pokemon Game Engine I am working on:
                                    https://github.com/sjosegarcia/Pokemon
                                      #18    
                                    Old September 27th, 2013 (1:30 AM).
                                    khkramer's Avatar
                                    khkramer khkramer is offline
                                       
                                      Join Date: Apr 2010
                                      Gender: Male
                                      Posts: 311
                                      Are savegames stored in the mysql database like rmx-os or are they stored locally?
                                      __________________


                                      New Region. Freedom. MMO. Stay tuned.
                                        #19    
                                      Old September 27th, 2013 (3:24 AM).
                                      Alexandre's Avatar
                                      Alexandre Alexandre is offline
                                         
                                        Join Date: Mar 2005
                                        Age: 22
                                        Nature: Lonely
                                        Posts: 401
                                        Quote:
                                        Originally Posted by khkramer View Post
                                        Are savegames stored in the mysql database like rmx-os or are they stored locally?
                                        Locally stored. I was thinking of storing them on the server but that would force people to be connected to the internet to play. I guess I could have it so you can upload and download your save to the server.
                                          #20    
                                        Old September 27th, 2013 (10:47 AM).
                                        ShadowFiendZX's Avatar
                                        ShadowFiendZX ShadowFiendZX is offline
                                        Gym Leader
                                           
                                          Join Date: Jan 2013
                                          Location: Hamden Connecticut
                                          Age: 20
                                          Gender: Male
                                          Nature: Serious
                                          Posts: 59
                                          Would there be a way to have all these files off a website so I wouldn't need to use my computer? There's several reasons why I can't use my computer, My dad wouldn't even consider letting me port forward, he frequently shuts off the wifi, executing the SQL in HeidiSQL gave several errors, and after running Main.rb it crashed in like 5 seconds.

                                          I followed the instructions word for word.
                                          __________________
                                          BEHOLD THE FLOPPY MAGIKARP IN ALL ITS GLORY AND WISDOM

                                            #21    
                                          Old September 27th, 2013 (1:34 PM).
                                          Alexandre's Avatar
                                          Alexandre Alexandre is offline
                                             
                                            Join Date: Mar 2005
                                            Age: 22
                                            Nature: Lonely
                                            Posts: 401
                                            Quote:
                                            Originally Posted by ShadowFiendZX View Post
                                            Would there be a way to have all these files off a website so I wouldn't need to use my computer? There's several reasons why I can't use my computer, My dad wouldn't even consider letting me port forward, he frequently shuts off the wifi, executing the SQL in HeidiSQL gave several errors, and after running Main.rb it crashed in like 5 seconds.

                                            I followed the instructions word for word.
                                            Please let me know which errors appeared so I can help you.
                                              #22    
                                            Old September 27th, 2013 (1:58 PM).
                                            ShadowFiendZX's Avatar
                                            ShadowFiendZX ShadowFiendZX is offline
                                            Gym Leader
                                               
                                              Join Date: Jan 2013
                                              Location: Hamden Connecticut
                                              Age: 20
                                              Gender: Male
                                              Nature: Serious
                                              Posts: 59
                                              It does this every time I press the blue play button.
                                              Click image for larger version

Name:	Error.png
Views:	110
Size:	8.6 KB
ID:	69729

                                              I'm not sure if that's supposed to happen, or if anything happens after that, but I press Ok, and nothing happens, and pressing the blue button again ends with the same result.

                                              Not knowing if the above was supposed to happen, I tried Main.rb and it shows this, then closes after a few seconds.
                                              Click image for larger version

Name:	CMD.png
Views:	109
Size:	5.8 KB
ID:	69730
                                                #23    
                                              Old September 27th, 2013 (4:14 PM).
                                              Alexandre's Avatar
                                              Alexandre Alexandre is offline
                                                 
                                                Join Date: Mar 2005
                                                Age: 22
                                                Nature: Lonely
                                                Posts: 401
                                                Those warnings are normal, not sure what is causing them.

                                                The server isnt starting because it can't connect to the SMTP server. Make sure your SMTP settings are correct.

                                                And with regard to hosting the server online, it is very possible to do. I can host one for you if you like and give you the IP and port for you to put in your client. I can't do that now though, I'm very busy.
                                                  #24    
                                                Old September 28th, 2013 (11:08 AM). Edited September 28th, 2013 by ShadowFiendZX.
                                                ShadowFiendZX's Avatar
                                                ShadowFiendZX ShadowFiendZX is offline
                                                Gym Leader
                                                   
                                                  Join Date: Jan 2013
                                                  Location: Hamden Connecticut
                                                  Age: 20
                                                  Gender: Male
                                                  Nature: Serious
                                                  Posts: 59
                                                  I opened Main.rb again, and realized I typed my password wrong. lol sorry. I'm about to test it now on my game, although if you could still tell me how to host it on my website, that'd be great. Also, if it is possible to host this on a website, would it be possible for some sort of GTS, where you "upload" your pokemon for everyone to see, and you choose what you'd like in return for that pokemon? Thanks

                                                  I just battled myself by using 2 windows, and the two windows had 2 different things happening, I won on both screens...
                                                  Click image for larger version

Name:	winwin.png
Views:	140
Size:	33.1 KB
ID:	69746

                                                  Also, clicking "pokemon" opened bag, and clicking "bag" opened pokemon
                                                    #25    
                                                  Old September 28th, 2013 (1:16 PM).
                                                  rescuecp's Avatar
                                                  rescuecp rescuecp is offline
                                                  Redhead :P
                                                     
                                                    Join Date: Jan 2009
                                                    Location: New York State, US
                                                    Gender: Male
                                                    Posts: 34
                                                    My server CMD stops at connecting to SMTP server and yet all my information is correct...Also how do you make it so when you launch your game it goes right away to a login/register window?

                                                    Thanks :D
                                                    __________________
                                                    My Skype Name is: Mystogan.Scarlet15

                                                    Thanks
                                                    Closed Thread

                                                    Quick Reply

                                                    Join the conversation!

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

                                                    Create a PokéCommunity Account

                                                    Sponsored Links
                                                    Thread Tools

                                                    Posting Rules
                                                    You may not post new threads
                                                    You may not post replies
                                                    You may not post attachments
                                                    You may not edit your posts

                                                    BB code is On
                                                    Smilies are On
                                                    [IMG] code is On
                                                    HTML code is Off

                                                    Forum Jump


                                                    All times are GMT -8. The time now is 2:26 AM.