Thread: NodeJS based RSPS — Scape.JS

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 NodeJS based RSPS — Scape.JS 
    JavaScript Heathen 👹

    frostbit3's Avatar
    Join Date
    Mar 2012
    Age
    29
    Posts
    404
    Thanks given
    381
    Thanks received
    90
    Rep Power
    78
    R-S Mod Response  Scape.JS
    Attached image



    I want to build a server that utilizes NodeJS as the underlying technology. I feel that JavaScript has come a long way and is much more up to the job of actually being utilized in a server environment. NodeJS is used in millions of companies around the world, and has garnered a massive package repository.

    The server will utilize packages (plugins) that are published on NPM, which will allow for seamless and easy code reuse and modification. Another big advantage to using NodeJS and EcmaScript 6 (JavaScript/ES6) is the async and await modifiers. async/await is perfect for writing asynchronous code, synchronously. Here is some psuedo code of what a skill could look like:
    Code:
    const chopTree = async (entity, tries = 0) => {
      if (tries === 3) {
        entity.addItem(LOG_ID)
        return false
      }
      entity.animate(CHOP_ANIMATION)
      await seconds(1)
      return chopTree(entity, tries++) // heh, couldnt resist :cool:
    }
    Still not convinced? JavaScript has a unique design pattern called "Prototypal Inheritance" which alleviates common design issues in other languages, such as:

    • The tight coupling problem (class inheritance is the tightest coupling available in oo design), which leads to the next one…
    • The fragile base class problem
    • Inflexible hierarchy problem (eventually, all evolving hierarchies are wrong for new uses)
    • The duplication by necessity problem (due to inflexible hierarchies, new use cases are often shoe-horned in by duplicating, rather than adapting existing code)
    • The Gorilla/banana problem (What you wanted was a banana, but what you got was a gorilla holding the banana, and the entire jungle)


    If you are interested in learning more about "Prototypal Inheritance", here are some great resources: Article
    Spoiler for Video:


    I think all the above reasons and more are why I want to pursue in building a private server that runs on NodeJS. I am aware that there has been one written before, however that was from a long time ago, the V8 engine has gotten considerably better, as well as JavaScript. I would argue JavaScript is the fastest changing language right now. For better or worse .

    Here is where you come in.
    If anyone could provide assistance with knowledge of the 317/377 Protocol, that would be awesome.

    Where will this be hosted?
    I will create a GitHub repository and will link it in a project thread.

    Are you going to do this?
    It comes down to reception of the idea and if I can get enough support with the game protocol. I understand that there is the wiki, but some things still aren't clear, and I don't know who I can talk to about it.




    Lets make RuneScape web-scaletm
    >> real life is pretty much the same as code. off-by-one, naming, and unterminated recursion
    Reply With Quote  
     

  2. #2  
    Blurite

    Corey's Avatar
    Join Date
    Feb 2012
    Age
    26
    Posts
    1,491
    Thanks given
    1,245
    Thanks received
    1,729
    Rep Power
    5000
    Good luck with this.
    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Nov 2017
    Posts
    12
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    How far did this project come? Did it die?
    Reply With Quote  
     

  5. #4  
    Professional Upsetter


    Join Date
    Jul 2006
    Posts
    5,392
    Thanks given
    163
    Thanks received
    447
    Rep Power
    2040
    Fuck. No. Why. God. No.
    Ex-super moderator of Rune-Server.org and RSBot.org
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    shit im high af

    Chance's Avatar
    Join Date
    Feb 2012
    Age
    28
    Posts
    1,046
    Thanks given
    96
    Thanks received
    1,076
    Rep Power
    5000
    You got so caught up in thinking if you could, that you didn't stop to think if you should.
    But, if you do come back to this and do it, best of luck to you.
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Registered Member
    Join Date
    Nov 2017
    Posts
    12
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    Why not guys? It's possible to do, so why not?
    Reply With Quote  
     

  10. #7  
    Registered Member
    Velocity's Avatar
    Join Date
    Jan 2009
    Age
    28
    Posts
    2,028
    Thanks given
    1,013
    Thanks received
    2,376
    Rep Power
    4112
    Quote Originally Posted by Isakilla View Post
    Because this community is so stuck in its old ways it never promotes any new ideas.
    no, it's because there's a fucking tool for every job and nodejs isn't the right tool for this job
    xxxxxxx
    Reply With Quote  
     

  11. Thankful users:


  12. #8  
    Developer


    Join Date
    Aug 2012
    Posts
    2,493
    Thanks given
    180
    Thanks received
    1,732
    Rep Power
    2487
    ive seen eastern europe prostitutes with a brighter future than this project
    Reply With Quote  
     

  13. Thankful user:


  14. #9  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by frostbit3 View Post
    Another big advantage to using NodeJS and EcmaScript 6 (JavaScript/ES6) is the async and await modifiers. async/await is perfect for writing asynchronous code, synchronously.
    Attached image
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  15. Thankful user:


  16. #10  
    JavaScript Heathen 👹

    frostbit3's Avatar
    Join Date
    Mar 2012
    Age
    29
    Posts
    404
    Thanks given
    381
    Thanks received
    90
    Rep Power
    78
    Quote Originally Posted by Arham View Post
    Attached image

    just doing what works 4 me . if I were to make this thread today it would be in the project section. not really constructive or adding to the *year old* thread but cool.
    >> real life is pretty much the same as code. off-by-one, naming, and unterminated recursion
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Zenith - your text based rsps
    By Fabrice L in forum Website Development
    Replies: 116
    Last Post: 05-30-2012, 02:30 AM
  2. '04 Based RSPS
    By riddim dan in forum Spam
    Replies: 17
    Last Post: 05-08-2012, 05:40 PM
  3. Non-Java Based Rsps Classic Remake*
    By Swifti in forum PC
    Replies: 21
    Last Post: 01-26-2012, 04:42 AM
  4. Replies: 1
    Last Post: 08-28-2010, 09:01 AM
  5. Replies: 1
    Last Post: 03-29-2010, 01:56 AM
Tags for this Thread

View Tag Cloud

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