The PokéCommunity Forums Fan Games Game Development
Pokemon Online RPG coding help!

Game Development Your number one stop for anything related to creating games (except ROM hacks). You can even make your own!


Reply
 
Thread Tools
  #1    
Old February 14th, 2018 (5:16 AM).
Geomonlover Geomonlover is offline
     
    Join Date: Apr 2017
    Posts: 15
    ok, so I was playing a Pokemon online rpg in school, and my teacher saw it. he loved it and now my final project is to make a online Pokemon rpg.

    Im excited to make One, since ive been wanting to make one, but there is one issue

    I have no clue what to code in for it

    so I need some help with coding! how should I do it and such?

    thank you guys so much!

    also, if anyone is wondering, I'm a high school freshman, and I'm in a special program that specializes in film, animation and coding
    Reply With Quote

    Relevant Advertising!

      #2    
    Old February 14th, 2018 (9:16 AM).
    Adventure's Avatar
    Adventure Adventure is online now
    press start to play_
     
    Join Date: Nov 2007
    Location: T.A.R.D.I.S.
    Nature: Naive
    Posts: 30,066
    Hi, just moving your thread to Game Development as it seems appropriate for what you're after :) Good luck!
    Reply With Quote
      #3    
    Old February 14th, 2018 (9:45 AM).
    khkramer's Avatar
    khkramer khkramer is offline
       
      Join Date: Apr 2010
      Gender: Male
      Posts: 321
      Can you provide some more details?
      What Pokemon game did he see you playing?
      How much time do you have to finish this project?
      __________________


      Lurking for 8 years..
      Reply With Quote
        #4    
      Old February 15th, 2018 (4:53 AM).
      Geomonlover Geomonlover is offline
         
        Join Date: Apr 2017
        Posts: 15
        Yes I can!
        So my teacher saw me playing a game called The Pokemon Kingdom, its an Online Pokemon RPG that I've been playing recently.

        I have 4 months to complete it, it does not have to be fully completed by then though. as long as I have some coding done and its functional, then I'm good to go, but I want to complete as much as I possibly can.

        since Im a high school freshman without a debit or credit card, I want to use Weebly or Wix or any free site making place to have it on, if it is possible. I think its possible to do it on those sites, just it will be more of a challenge

        if you need any more information I can give it to you! :3
        Reply With Quote
          #5    
        Old February 15th, 2018 (4:54 AM).
        Geomonlover Geomonlover is offline
           
          Join Date: Apr 2017
          Posts: 15
          Quote:
          Originally Posted by stars View Post
          Hi, just moving your thread to Game Development as it seems appropriate for what you're after :) Good luck!
          Thank you so much! :3
          Reply With Quote
            #6    
          Old February 15th, 2018 (2:24 PM).
          khkramer's Avatar
          khkramer khkramer is offline
             
            Join Date: Apr 2010
            Gender: Male
            Posts: 321
            Ah those games are usually written in PHP.
            I don't know if it's still the case, but a few years ago there were a few decent free hosting providers available for PHP.
            Weebly or Wix doesn't allow you to host your own server side scripts I believe, for these kinds of games you need a server component.
            __________________


            Lurking for 8 years..
            Reply With Quote
              #7    
            Old February 16th, 2018 (4:38 AM). Edited February 16th, 2018 by Geomonlover.
            Geomonlover Geomonlover is offline
               
              Join Date: Apr 2017
              Posts: 15
              ohhh ok, ill have to look for some

              I do need help with coding though, how would I program random encounters and such?

              EDIT: Silex supports it as far as I see
              Reply With Quote
                #8    
              Old February 17th, 2018 (6:23 AM). Edited February 17th, 2018 by gl4cieR.
              gl4cieR's Avatar
              gl4cieR gl4cieR is offline
              C/C++ Graphics Programmer
                 
                Join Date: Feb 2018
                Nature: Timid
                Posts: 6
                Programming an Online RPG is not an easy task and it solely depends on your skills.
                Which programming languages do you know, C/++, Java ?
                Any experience with Network Protocols like TCP/UDP, Sockets ?
                Did you work with Databases (MySQL,PostgreSQL) ?

                First you would need to program a base game which contains the game loop which iterates over the game's subsystems like the renderer, input processor, networking.

                But that is not everything.
                Do you want to write a Renderer from scratch?
                If yes this will take you months if you never have written Renderers.

                If you know C or C++ I would recommend you:

                *SDL/2 - for Rendering, Input Processing and Audio.
                *C Standard Library / C++ STL - for Socket programming.

                Estimated programming time: 2+ months.

                Note: SDL abstracts a lot of low-level programming but you still have to write your own rendering subsystem, but you do not have to concentrate on optimization.
                __________________
                ~My Personal Game Development/Coding Blog~
                Reply With Quote
                  #9    
                Old February 17th, 2018 (12:31 PM).
                Geomonlover Geomonlover is offline
                   
                  Join Date: Apr 2017
                  Posts: 15
                  Oh then that's perfect if its 2+ months!
                  I know HTML really, and Bbcode, no experience with network protocols or databases

                  So create a game loop, like a map and character sprite?

                  I feel bad for not knowing much codes like Java or C++, but I am willing to learn! I enjoy learning about coding and I want to program games in the future! For online Rpgs, what do you recommend? Java, c or c++?

                  And Network Protocols, what do they do and what do you recommend with those?

                  Databases fall under the question of network protocols.

                  I forgot to mention that I use a Mac, so are these programs for Mac too? And if not, then what do you recommend program wise with those?

                  Although I have 4 months, I could work on it over the summer and work on it for my sophomore year if he likes what he sees, he will probably be interested in only watching me do the programming! Either way, I'm up for the challenge of doing this, since I've been wanting to do one, so please recommend what you think is best!
                  Reply With Quote
                    #10    
                  Old February 17th, 2018 (1:31 PM).
                  mgriffin's Avatar
                  mgriffin mgriffin is online now
                     
                    Join Date: Apr 2014
                    Location: London, United Kingdom
                    Posts: 75
                    Quote:
                    Originally Posted by Geomonlover View Post
                    I have 4 months to complete it, it does not have to be fully completed by then though. as long as I have some coding done and its functional, then I'm good to go, but I want to complete as much as I possibly can.
                    Okay, so let me start by saying that four months is not a very long time when you have to learn everything as you go along. So my #1 piece of advice is to use as many libraries (i.e. code that other people have written) as possible, and to find out what matters most when it comes to getting a good grade so you can focus on those bits.

                    Quote:
                    Originally Posted by Geomonlover View Post
                    I know HTML really, and Bbcode, no experience with network protocols or databases
                    Quote:
                    Originally Posted by Geomonlover View Post
                    since Im a high school freshman without a debit or credit card, I want to use Weebly or Wix or any free site making place to have it on, if it is possible. I think its possible to do it on those sites, just it will be more of a challenge
                    Making online games is much more work than offline ones, so I'd save that part until last. But when you get to that part you could use something like AWS Free Tier to host your server for free.

                    Quote:
                    Originally Posted by Geomonlover View Post
                    I feel bad for not knowing much codes like Java or C++, but I am willing to learn! I enjoy learning about coding and I want to program games in the future! For online Rpgs, what do you recommend? Java, c or c++?
                    I'd strongly recommend none of the above, for a learner I'd try something like JavaScript or Python. JavaScript because there's lots of resources out there, and you can leverage your knowledge of HTML; Python because there's more things built-in, and it's easier to install libraries.
                    But I haven't actually tried, so if anyone else here has some particular libraries in mind you should take their advice instead.

                    Quote:
                    Originally Posted by Geomonlover View Post
                    And Network Protocols, what do they do and what do you recommend with those?

                    Databases fall under the question of network protocols.
                    I'd say these fall into the "worry about it later" group.

                    Quote:
                    Originally Posted by Geomonlover View Post
                    I forgot to mention that I use a Mac, so are these programs for Mac too? And if not, then what do you recommend program wise with those?
                    Yeah, everything should run fine on Mac.
                    Reply With Quote
                      #11    
                    Old February 17th, 2018 (3:49 PM).
                    Geomonlover Geomonlover is offline
                       
                      Join Date: Apr 2017
                      Posts: 15
                      Wow! This is great to know! Thank you so much! All good info!
                      Reply With Quote
                        #12    
                      Old February 18th, 2018 (5:20 AM).
                      khkramer's Avatar
                      khkramer khkramer is offline
                         
                        Join Date: Apr 2010
                        Gender: Male
                        Posts: 321
                        If you have a school e-mail address you might be eligible for free editors from Jetbrains:

                        https://www.jetbrains.com/student/

                        I couldn't recommend them more, they should serve you well.

                        @MrGriffin,

                        I would not recommend javascript either if he has to make an 'online' game.
                        Client-side javascript is easy peasy, but if a beginner has to set up nodejs with a framework to handle the server side logic that would be confusing I believe.

                        I strongly recommend PHP for a project like this, it does everything he needs out of the box.
                        The games he's referring too are usually written in php as well.
                        __________________


                        Lurking for 8 years..
                        Reply With Quote
                          #13    
                        Old February 18th, 2018 (5:29 AM).
                        mgriffin's Avatar
                        mgriffin mgriffin is online now
                           
                          Join Date: Apr 2014
                          Location: London, United Kingdom
                          Posts: 75
                          Quote:
                          Originally Posted by khkramer View Post
                          I would not recommend javascript either if he has to make an 'online' game.
                          Client-side javascript is easy peasy, but if a beginner has to set up nodejs with a framework to handle the server side logic that would be confusing I believe.

                          I strongly recommend PHP for a project like this, it does everything he needs out of the box.
                          The games he's referring too are usually written in php as well.
                          Yeah, PHP for the server-side stuff is easier than messing around with Node.

                          The only concern I have is that it's superficially similar to JavaScript, so it might be confusing to learn them both at the same time (whereas something like Python could be easier to keep separate in your mind). But I guess that's one of those things that's different for each person; FWIW I agree that trying PHP first is a good idea.
                          Reply With Quote
                            #14    
                          Old February 19th, 2018 (5:06 AM).
                          Geomonlover Geomonlover is offline
                             
                            Join Date: Apr 2017
                            Posts: 15
                            I do have a student email address! Ill check into that!
                            And so i should go with PhP code? Ok, will do then! :3
                            Reply With Quote
                              #15    
                            Old February 19th, 2018 (1:13 PM). Edited February 19th, 2018 by gl4cieR.
                            gl4cieR's Avatar
                            gl4cieR gl4cieR is offline
                            C/C++ Graphics Programmer
                               
                              Join Date: Feb 2018
                              Nature: Timid
                              Posts: 6
                              Quote:
                              Originally Posted by Geomonlover View Post
                              Oh then that's perfect if its 2+ months!
                              I know HTML really, and Bbcode, no experience with network protocols or databases

                              So create a game loop, like a map and character sprite?

                              I feel bad for not knowing much codes like Java or C++, but I am willing to learn! I enjoy learning about coding and I want to program games in the future! For online Rpgs, what do you recommend? Java, c or c++?

                              And Network Protocols, what do they do and what do you recommend with those?

                              Databases fall under the question of network protocols.

                              I forgot to mention that I use a Mac, so are these programs for Mac too? And if not, then what do you recommend program wise with those?

                              Although I have 4 months, I could work on it over the summer and work on it for my sophomore year if he likes what he sees, he will probably be interested in only watching me do the programming! Either way, I'm up for the challenge of doing this, since I've been wanting to do one, so please recommend what you think is best!
                              Of course you need to create a game loop otherwise you won't have a game.

                              To be honest if you are not proficient in C/C++ or Java you won't be able to do an Online RPG in 4 months.

                              Network protocols
                              Are like they are called protocols for transfering data between computers (Internet) in form of packets roughly said.
                              Traditionally you implement a Client/Server System whereby your Game Executable acts as a Client which sends it requests to the Server and the server responds to them.
                              In an online game you use it to synchronize the players states, inventory, chat with others and more.

                              Honestly an online rpg is too complex for a beginner with no knowledge of Programming Languages, Network Protocols etc.

                              But if you really are up to it then:

                              It does not matter which Operating System you use.

                              1. Learn Java (You can use Eclipse as an IDE) - faster results but slower code due to bytecode translation and interpreting, but won't matter nowadays.
                              2. Learn about TCP/UDP and Sockets.
                              3. There is a online book called "Game Programming Patterns" which teaches you game programming techniques especially game loop and entity/component architecture.
                              4.Experiment and do not give up if you reach obstacles.

                              If you have more questions feel free to ask.

                              sincerely,
                              gl4cieR
                              Reply With Quote
                                #16    
                              Old February 19th, 2018 (2:20 PM).
                              mgriffin's Avatar
                              mgriffin mgriffin is online now
                                 
                                Join Date: Apr 2014
                                Location: London, United Kingdom
                                Posts: 75
                                Quote:
                                Originally Posted by gl4cieR View Post
                                To be honest if you are not proficient in C/C++ or Java you won't be able to do an Online RPG in 4 months.
                                I'm sorry, I can't agree with this sentiment. Hundreds of games are released every year developed in other languages, and it's quite frankly wrong suggest that C, C++ and Java belong to some special class. If nothing else, why not C# or Go?

                                In general I think that your advice is (as you say yourself) better geared for someone with more experience than Geomonlover, and while I agree that it's really interesting to build all these things yourself from scratch, you can't have real success in four months with that approach.
                                Reply With Quote
                                  #17    
                                Old February 19th, 2018 (2:25 PM). Edited February 19th, 2018 by gl4cieR.
                                gl4cieR's Avatar
                                gl4cieR gl4cieR is offline
                                C/C++ Graphics Programmer
                                   
                                  Join Date: Feb 2018
                                  Nature: Timid
                                  Posts: 6
                                  Quote:
                                  Originally Posted by mgriffin View Post
                                  I'm sorry, I can't agree with this sentiment. Hundreds of games are released every year developed in other languages, and it's quite frankly wrong suggest that C, C++ and Java belong to some special class. If nothing else, why not C# or Go?

                                  In general I think that your advice is (as you say yourself) better geared for someone with more experience than Geomonlover, and while I agree that it's really interesting to build all these things yourself from scratch, you can't have real success in four months with that approach.
                                  That is your interpretation.
                                  I did not say that he can't use C# or Go.

                                  But I am the type of guy who prefers to do things the hard way.
                                  The skills he would gain with programming languages which are closer to the 'metal' will help him more in the future.

                                  If he wants it really easy he can just write the game in PHP and use MySQL/PostgreSQL.

                                  sincerely,
                                  gl4cieR
                                  __________________
                                  ~My Personal Game Development/Coding Blog~
                                  Reply With Quote
                                    #18    
                                  Old February 19th, 2018 (3:24 PM).
                                  mgriffin's Avatar
                                  mgriffin mgriffin is online now
                                     
                                    Join Date: Apr 2014
                                    Location: London, United Kingdom
                                    Posts: 75
                                    Sorry for the mostly tangential nature of this post, it's the last thing I'll say on the matter.

                                    Quote:
                                    Originally Posted by gl4cieR View Post
                                    But I am the type of guy who prefers to do things the hard way.
                                    The skills he would gain with programming languages which are closer to the 'metal' will help him more in the future.

                                    If he wants it really easy he can just write the game in PHP and use MySQL/PostgreSQL.
                                    I think we're in violent agreement. You learn a lot of things by taking the hard route, but it would be nigh-on-impossible to finish in four months. So regardless of what anyone thinks the best way to learn is[0], Geomonlover wants to (or probably has to) have something to show after that time, and so taking the so-called "easy" way is the right decision.

                                    Also it's bizarre that you say PostgreSQL as if it's somehow a bad choice, but that's neither here nor there.

                                    [0] and don't get me wrong, I am in no way a PHP lover; but also I've been there, done that with learning C++ as a first language and I didn't have any success until I started working on an already-existing game, for me there was too many things to explore, and I didn't have the necessary experience to be able to make informed decisions.
                                    Reply With Quote
                                      #19    
                                    Old February 20th, 2018 (5:11 AM).
                                    Geomonlover Geomonlover is offline
                                       
                                      Join Date: Apr 2017
                                      Posts: 15
                                      Ok, I didn't expect this for it to be a full on war between the users. I just came for some help and where to start, not for people to get into a big fight.
                                      Reply With Quote
                                        #20    
                                      Old February 20th, 2018 (7:00 AM).
                                      Turjo12's Avatar
                                      Turjo12 Turjo12 is offline
                                      The King
                                         
                                        Join Date: Nov 2015
                                        Location: South Asia
                                        Gender: Male
                                        Nature: Brave
                                        Posts: 191
                                        Wow.
                                        Your teacher just saw you playing it and, he told you to make a Pokemon MMO?
                                        I wish all the teachers were like that. :)

                                        By the way, good luck with your project.
                                        __________________
                                        Reply With Quote
                                          #21    
                                        Old February 21st, 2018 (4:59 AM).
                                        Geomonlover Geomonlover is offline
                                           
                                          Join Date: Apr 2017
                                          Posts: 15
                                          My teacher said " Thank you Turjo12 " and then he said "because of Turjo12 Enlightening me, I'm retiring "
                                          so now he's gone XDDD
                                          Reply With Quote
                                            #22    
                                          Old February 24th, 2018 (3:12 AM).
                                          Turjo12's Avatar
                                          Turjo12 Turjo12 is offline
                                          The King
                                             
                                            Join Date: Nov 2015
                                            Location: South Asia
                                            Gender: Male
                                            Nature: Brave
                                            Posts: 191
                                            Oh no. That's made me sad.
                                            Anyway, have you made any progress?
                                            __________________
                                            Reply With Quote
                                              #23    
                                            Old February 25th, 2018 (10:43 PM).
                                            GMuser GMuser is offline
                                               
                                              Join Date: Oct 2005
                                              Gender:
                                              Nature: Adamant
                                              Posts: 33
                                              I'd have to say you're in a bit over your head with your marks on the line. Although it's a great project idea for sure, with your current skill set and understanding of the game in question you will either need some very directed guidance (which perhaps your teacher is providing?) or an alternative project idea.

                                              A few of the users in this thread didn't investigate the game in question, so that's why they have misdirected you to c/c++/java with mention of tcp/udp etc. Meanwhile others suggestions of php/javascript were more on point for the project in question.

                                              Let's say for your project, you keep things very very simple-- no user signups/logins, only a single player with no save state. In that case you could do it all in javascript in the web-browser with no server. You could even make it very easy for yourself and make it in unity/gamemaker or similar game engine, and export to the web-gl.

                                              If you want to go the server route (which is what the game you linked to does) allowing for the possibility of multiplayer, then you need to have some basic understanding of what it even means to have a server in the context of a website. From the sounds of it, you understand basic HTML-- in that case you probably think of the server as just providing static resources like the images and html files. A server can be much more than that as others have suggested, using php on a php enabled server will let you upload php files which are basically programs that are executed on the server computer when someone visits that php page. That program could run some logic and display nothing, or the logic in that program can display some html for the visitor to see as a web-page, among other things.

                                              So just to summarise, when you visit a website, typically there are two different kinds of programs that are running: the 'front end' (ie, javascript program that runs in your web-browser) and the 'back end' (ie, the server-side program that runs on the servers computer, eg in php).

                                              I have a feeling that what I described above probably has gone over your head, which if so I re-iterate my recommendation to search for an alternative project when your marks are on the line ^^

                                              If you feel confident in yourself, proceed at will ^^

                                              If you want to proceed with your initial project and you want an alternative to php, I'd suggest looking at tools such as heroku and implementing the server in a 'RESTful' way. Then you can focus on the front end in javascript and using one of the many front-end libraries available to make your game at least look cool.

                                              If you want to look at a simpler, but related project idea, you could try looking at 'Twine', which would basically let you set up a visual novel/choose your own adventure style game. Less interactive than a true online game, but definitely much more achievable.
                                              Reply With Quote
                                                #24    
                                              Old March 7th, 2018 (5:07 AM).
                                              Geomonlover Geomonlover is offline
                                                 
                                                Join Date: Apr 2017
                                                Posts: 15
                                                My teacher has directed me to a site for learning all these different types of codes, so I'm starting to understand it! :3. I would like for it to be multiplayer, since I want people on the site when I present my final project, so the code your saying that can run all of that is php? ill have to look into that then! :3 thank you for the info! I would make a different game, but both me and my teacher are Really excited for this :3
                                                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 6:32 AM.