Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • SOUPSOUP: just get a vpn
      August 13, 2018, 06:44:28 PM
    • jme: _^_ will answer all of your javascript questions
      August 12, 2018, 07:11:00 PM
    • doomsale: and where is boxman?
      August 10, 2018, 03:16:59 AM
    • doomsale: Where can i play the Moparscape MMORPG with the Metallica instrumentals?
      August 10, 2018, 03:16:47 AM
    • doomsale: no longer clicking on doors and dummies at east bank
      August 10, 2018, 03:16:07 AM
    • doomsale: were all grown up now huh?
      August 10, 2018, 03:15:58 AM
    • _^_: hey everyone look at my graphs [link]
      August 06, 2018, 01:52:16 PM
    • braedyn: Someone pl0x help me out with PI Lottery!!
      August 03, 2018, 02:12:25 AM
    • Travas: p3n1s
      July 26, 2018, 09:46:33 PM
    • Krackkid: You up :eggplant:
      July 23, 2018, 06:18:17 PM
    • DeathsChaos9: no
      July 23, 2018, 03:53:31 PM
    • Emulous: Come check out Emulous: [link]
      July 22, 2018, 03:37:19 PM
    • Emulous:[link]
      July 22, 2018, 03:37:00 PM
    • Travas: ur mom
      July 21, 2018, 06:04:50 PM
    • YNRDAB: Watcha big ballers up too?
      July 20, 2018, 11:01:06 AM
    • dark250: i need help for coding client
      July 19, 2018, 08:27:37 AM
    • Travas: yes
      July 14, 2018, 02:19:44 PM
    • drubrkletern: lmao racist and sexist much?
      July 14, 2018, 01:11:52 PM
    • Cole1497: yeah i got you lil boat give me a second
      July 13, 2018, 03:19:35 AM
    • B0ATY.: yo can anyone unban my ip, i got banned for saying i hope someone gets aids :p
      July 12, 2018, 09:16:00 PM

    Author Topic: RuneScape 2 Blitz  (Read 25139 times)

    0 Members and 1 Guest are viewing this topic.

    Offlinery60003333

    • Member
    • ****
    • *
    • Posts: 1,366
    • Thanks: +0/-0
      • View Profile
    RuneScape 2 Blitz
    « on: October 16, 2008, 05:04:20 PM »
    RuneScape 2 Blitz by ~All-Go-Free~

    Well, after seeing how horribly programmed WinterLove servers were, I decided to make my own server. I had already made a good packet reading/writing system that could be wrapped around standard IO, or could be powered by a NIO controlling class, which ran in its own thread doing all the actual IO. It allows a huge amount of incoming OR outgoing connects to be handled in one thread. The controlling class does all the underlying work, and the server only deals with streams of packets. This allows for improvements or more implementations of the underlying structure, without changing any code in the server. All that would be needed is a recompile.

    I also wanted to use scripting and events to make things easier. And CFG files in my view are terrible. I used MySQL for storing data, as it allows for easy updating and a central database that all the Worlds can get information from, and you can edit scripts for something, such as commands, in MySQL, and then tell all the Worlds to reload the information into memory.


    So it started off as 317, and I got this far then stopped:


    Then, when 474 servers started to come out, I took a look at them and they were unstable pieces of crap. So I remembered that old project, and updated it to 474, and got this:






    But 474 was slowly fading away because of the lack of 'MapData', and then 503 servers came along. Since I made it as upgradable as possible, up to 503 it went:



    But, then came 508 servers. So once again, I updated it:


    The server is also well programmed. Npcs and Players are both Entities, which own an object that implements Attackable. So, all code written for combat works on Npcs AND players. And all the data is loaded from MySQL into memory, even special attack code.


    The server-side object system is also complete, and I now have the object packet! Both Woodcutting and Mining will just be scripts that pass themselves as an Event object to the player, so I could update either of them without even restarting the world. If you are interested, I used BeanShell as the scripting language, as it may be included with Java itself soon, plus it uses Java's syntax which makes scripting incredibly easy. Also, the login server is now complete! Account loading and saving is done though the login server, which allows for very fast loading and saving over slow connections. Each piece of data implements a Data interface, with methods to convert the data to a byte array and create a Data class from a byte array. This makes it super easy to add player information to save.



    More login server information:
    Basically, the Login Server handles the loading/saving of Data objects attached to a Player. Even the Username is part of a Data object, which I named VitalData, that is automatically loaded for every user. The only information used in packets is the PID (unique Player ID). Everything that connects to the Login Server is a service that a user can connect too. For example. the RS2 Blitz worlds are services, and in the future if I make a game it will also be a service. A list of users on all the services is sent to every service and kept up to date, which ensures that one user is never on two services at once. This is also how the friends list will function, as the login server also forwards Private Messages. Data can be marked as global or non-global. Global data attached to a user is sent to every service, while non-global data is sent to only the service the user is on. And if you look at the JavaDoc, you will see that the login server is simple and lightweight, but VERY powerful. I think RSCD was planning to do something like this, but I guess I got to it first! ;)

    I've also uploaded the JavaDoc for the server, the Login Server, and my ~All-Go-Free~ APIs used in it. They aren't always up to date, but I do re-upload the JavaDocs every once and a while:
    https://www.worldscapeblitz.com/java/508javadoc/
    https://www.worldscapeblitz.com/java/agfjavadoc/
    https://www.worldscapeblitz.com/java/loginserverjavadoc/

    Another great thing is that I can make large changes to the core NIO APIs, which I have done, and no changes to the server are needed.

    The server is now compatible with the HD client:


    And thats the story of RuneScape 2 Blitz! I am working on it constantly, and I'm using it for my next server, WorldScape Blitz. I hope you enjoyed learning about the server! :)
    Post as much as you want, I'm open to comments, suggestions, and criticism with appropriate reason.
    « Last Edit: November 26, 2008, 08:59:07 PM by ry60003333 »
    I'm freaking back.
    RuneRebels - RS 2006 Remake
    Runescape Gambling

    OfflineSonGoku

    • Member
    • ****
    • Posts: 402
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #1 on: October 16, 2008, 05:20:29 PM »
    Looks nice, but in my opinion 317's are better then 474 Plus.

    It seems everyone (By everyone i mean Frugoo) Has problems when they upgraded(He had 474 and 503 webclients).

    317's give the classic feel of runescape, which alot of people like.


    ---Also----
    Will you be making a proper update server since you are at 508?
    « Last Edit: October 16, 2008, 05:24:56 PM by SonGoku »
    Runescape Gambling

    Offlinehasumon

    • Member
    • ****
    • Posts: 1,338
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #2 on: October 16, 2008, 05:20:38 PM »
    Lulz npcs on npcs is always funny to watch.
    Obvious failure is obvious.
    Runescape Gambling

    Offlinery60003333

    • Member
    • ****
    • *
    • Posts: 1,366
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #3 on: October 16, 2008, 05:25:49 PM »
    Looks nice, but in my opinion 317's are better then 474 Plus.

    It seems everyone (By everyone i mean Frugoo) Has problems when they upgraded(He had 474 and 503 webclients).

    317's give the classic feel of runescape, which alot of people like.
    The game code of the server doesn't send packets to the client, the packets are strictly created by the server in their own methods or areas where needed, so the server could be changed to 317. Only the protocol would have to be changed. :) However things such as buttons would have to be redone. :(
    I mainly made it for stability, I updated to 474 originally because I wanted a nice, stable, easy to program server.

    Lulz npcs on npcs is always funny to watch.
    Yes it is. :D
    I'm freaking back.
    RuneRebels - RS 2006 Remake

    Offlinehasumon

    • Member
    • ****
    • Posts: 1,338
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #4 on: October 16, 2008, 06:13:56 PM »
    Give me your files.
    Obvious failure is obvious.

    Offlinery60003333

    • Member
    • ****
    • *
    • Posts: 1,366
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #5 on: October 16, 2008, 06:15:50 PM »
    Give me your files.
    Can't, were developing it closed source in a test environment right now. It also has to run here, because it connects to the local MySQL and login server. :)
    I'm freaking back.
    RuneRebels - RS 2006 Remake

    Offlinehasumon

    • Member
    • ****
    • Posts: 1,338
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #6 on: October 16, 2008, 06:17:12 PM »
    Give me your files.
    Can't, were developing it closed source in a test environment right now. It also has to run here, because it connects to the local MySQL and login server. :)
    Let me beta test and be admin lolol but anyways I LIKE Love++
    Obvious failure is obvious.

    OfflineRS IS DED

    • Member
    • **
    • Posts: 55
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #7 on: October 16, 2008, 06:18:05 PM »
    Shh, if you get Admin for testing, I want Admin for testing. :P

    Offlinehasumon

    • Member
    • ****
    • Posts: 1,338
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #8 on: October 16, 2008, 06:23:28 PM »
    Shh, if you get Admin for testing, I want Admin for testing. :P
    No.
    I = Admin
    You = Minion/Nub
    Ry = My minion
    But seriously ontopic
    I still like that npc on npc. Now if we can do dramatic camera angles like in that swan song quest, we'd be set.
    Obvious failure is obvious.

    OfflineRS IS DED

    • Member
    • **
    • Posts: 55
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #9 on: October 16, 2008, 06:24:48 PM »
    I'm not nub. I own FIVE bronze daggers? Somthing you can't afford.

    Offlinetonypker13

    • Member
    • ****
    • Posts: 2,858
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #10 on: October 16, 2008, 06:57:30 PM »
    Shh, if you get Admin for testing, I want Admin for testing. :P
    No.
    I = Admin
    You = Minion/Nub
    Ry = My minion
    But seriously ontopic
    I still like that npc on npc. Now if we can do dramatic camera angles like in that swan song quest, we'd be set.
    No no no no no.. all wrong.
    I = OWNER.
    You = Sex Slave.
    He = Nub
    Rs Is Ded = minion.
    CMON!! ITS 3rd grade math!

    l0zlxoz0xzo0l Jk
    Kihomura and M.dog suck penis at life!!!
    The Soul for mod

    Paid for by the Suck my penis kihomura and mdog you faggot fudges corporation.

    OfflineRS IS DED

    • Member
    • **
    • Posts: 55
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #11 on: October 16, 2008, 06:59:15 PM »
    WF, I am NOT minion, I take owner for 500 pleez. :)

    OfflineBudda

    • Member
    • ****
    • *
    • Posts: 1,361
    • Thanks: +0/-0
      • View Profile
      • BuddaT.net
    Re: RuneScape 2 Blitz
    « Reply #12 on: October 17, 2008, 12:56:51 AM »
    You're still going on with this? I remember talking to you about it back in March or so, and you were pretty far ahead then.

    OfflineRs2-Devolution

    • Member
    • **
    • Posts: 99
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #13 on: October 17, 2008, 02:57:48 AM »
    good luck man :D support :D

    OfflineHcoJustin

    • Member
    • ****
    • Posts: 2,400
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #14 on: October 17, 2008, 09:28:57 AM »
    lol inspired me to write my own framework :p

    Offlinery60003333

    • Member
    • ****
    • *
    • Posts: 1,366
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #15 on: October 17, 2008, 10:54:23 AM »
    You're still going on with this? I remember talking to you about it back in March or so, and you were pretty far ahead then.
    Yea that was the old one, where I pretty much just recreated a WL server. That used one thread for the login, then controlled all the players in one thread. But it used regular IO, so if a write() operation blocked the whole server would block. :P

    This is a lot better. :D
    I'm freaking back.
    RuneRebels - RS 2006 Remake

    OfflineGnarly...

    • Member
    • ****
    • Posts: 260
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #16 on: October 17, 2008, 07:46:01 PM »
    How did you create the java doc.
    And very nice job on the server!

    Offlineilovelamp

    • Member
    • ***
    • Posts: 135
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #17 on: October 17, 2008, 09:32:08 PM »
    it's good to see there's atleast one other mac user on here
    *cough*give me you client*cough*
    1. Don't request tutorials, and don't ask for help about portforwarding
    2. Use the Search Button before posting in Server help
    3. No topic titles such as "OMFG NEED HELP IM STUCK!!1111!!!!!111!
    4. When asking for help, pretend we are seven year olds, use grammar the correct way and give as much information as possible

    Offlinehasumon

    • Member
    • ****
    • Posts: 1,338
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #18 on: October 17, 2008, 09:39:19 PM »
    it's good to see there's atleast one other mac user on here
    *cough*give me you client*cough*
    I first thought it was some ugly ass skin people though it was retro ._.
    Obvious failure is obvious.

    Offlinetonypker13

    • Member
    • ****
    • Posts: 2,858
    • Thanks: +0/-0
      • View Profile
    Re: RuneScape 2 Blitz
    « Reply #19 on: October 17, 2008, 09:53:47 PM »
    it's good to see there's atleast one other mac user on here
    *cough*give me you client*cough*
    I first thought it was some ugly ass skin people though it was retro ._.
    LOL!!!!
    That's a common mistake for some users who dont use mac. I do though :)
    But I must say, you've made my signature XD!
    Kihomura and M.dog suck penis at life!!!
    The Soul for mod

    Paid for by the Suck my penis kihomura and mdog you faggot fudges corporation.

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal