Thread: Delta

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1 Delta 
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Thread per client removed, networking done via Netty, saving and loading done via google gson (json).



    Example char:

    Code:
    {
      "username": "Mopar",
      "password": "3800fd5812194a844991bfc86ed5a9cc",
      "x": 3002,
      "y": 3378,
      "height": 0,
      "rights": 0,
      "lastConnection": "",
      "special": 100,
      "tz": -1,
      "starter": 1,
      "pouch1": 0,
      "pouch2": 0,
      "pouch3": 0,
      "pouch4": 0,
      "energy": 100,
      "taskID": -1,
      "taskAmount": -1,
      "jad": 0,
      "q1": 0,
      "q2": 0,
      "q3": 0,
      "q4": 0,
      "q5": 0,
      "q6": 0,
      "q7": 0,
      "q8": 0,
      "q9": 0,
      "q10": 0,
      "q11": 0,
      "brightness": 0,
      "fightType": 1,
      "skill": 0,
      "splitChat": 0,
      "ancients": 0,
      "pin": 0,
      "saradomin": 0,
      "retaliate": 0,
      "action": 0,
      "pcPoints": 0,
      "assult": 0,
      "donator": 0,
      "bow": 100,
      "shield": 100,
      "looks": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "skills": [
        {
          "index": 0,
          "level": 1,
          "xp": 0
        },
        {
          "index": 1,
          "level": 1,
          "xp": 0
        },
        {
          "index": 2,
          "level": 1,
          "xp": 0
        },
        {
          "index": 3,
          "level": 10,
          "xp": 1155
        },
        {
          "index": 4,
          "level": 1,
          "xp": 0
        },
        {
          "index": 5,
          "level": 1,
          "xp": 0
        },
        {
          "index": 6,
          "level": 1,
          "xp": 0
        },
        {
          "index": 7,
          "level": 1,
          "xp": 0
        },
        {
          "index": 8,
          "level": 1,
          "xp": 0
        },
        {
          "index": 9,
          "level": 1,
          "xp": 0
        },
        {
          "index": 10,
          "level": 1,
          "xp": 0
        },
        {
          "index": 11,
          "level": 1,
          "xp": 0
        },
        {
          "index": 12,
          "level": 1,
          "xp": 0
        },
        {
          "index": 13,
          "level": 1,
          "xp": 0
        },
        {
          "index": 14,
          "level": 1,
          "xp": 0
        },
        {
          "index": 15,
          "level": 1,
          "xp": 0
        },
        {
          "index": 16,
          "level": 1,
          "xp": 0
        },
        {
          "index": 17,
          "level": 1,
          "xp": 0
        },
        {
          "index": 18,
          "level": 1,
          "xp": 0
        },
        {
          "index": 19,
          "level": 1,
          "xp": 0
        },
        {
          "index": 20,
          "level": 1,
          "xp": 0
        },
        {
          "index": 21,
          "level": 1,
          "xp": 0
        },
        {
          "index": 22,
          "level": 1,
          "xp": 0
        },
        {
          "index": 23,
          "level": 1,
          "xp": 0
        },
        {
          "index": 24,
          "level": 1,
          "xp": 0
        }
      ],
      "equipment": [],
      "inventory": [
        {
          "index": 0,
          "id": 1291,
          "amount": 1
        },
        {
          "index": 1,
          "id": 1171,
          "amount": 1
        },
        {
          "index": 2,
          "id": 841,
          "amount": 1
        },
        {
          "index": 3,
          "id": 882,
          "amount": 100
        },
        {
          "index": 4,
          "id": 380,
          "amount": 100
        },
        {
          "index": 5,
          "id": 995,
          "amount": 1000000
        }
      ],
      "bank": [],
      "friends": [],
      "ignores": []
    }
    Run:

    Code:
    java -cp bin:libs/* Server
    Compile

    Code:
    javac -sourcepath src -cp 'libs/*' -d bin src/*.java
    Download:
    https://dl.dropbox.com/u/14547530/DeltaScape.zip

    this is for old times sake and lulz, do w.e you like there is enough tutorials for it!
    Reply With Quote  
     


  2. #2  
    Registered Member Anan's Avatar
    Join Date
    Oct 2008
    Posts
    408
    Thanks given
    5
    Thanks received
    27
    Rep Power
    15
    Looks good, good job
    Reply With Quote  
     

  3. #3  
    Registered Member
    Wale's Avatar
    Join Date
    Jul 2011
    Posts
    917
    Thanks given
    279
    Thanks received
    150
    Rep Power
    238
    nice release oobe
    [CENTER]Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Apr 2012
    Posts
    762
    Thanks given
    390
    Thanks received
    76
    Rep Power
    99
    Delta

    Reply With Quote  
     

  5. #5  
    Registered Member K Suave's Avatar
    Join Date
    Dec 2008
    Posts
    298
    Thanks given
    54
    Thanks received
    17
    Rep Power
    2
    disconects everytime do something like kill npc
    Reply With Quote  
     

  6. #6  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by kiriako13 View Post
    disconects everytime do something like kill npc
    Odd work's fine for me and 24 other people currently playing on it!
    Reply With Quote  
     

  7. #7  
    Community Veteran


    Join Date
    Jul 2006
    Posts
    789
    Thanks given
    31
    Thanks received
    80
    Rep Power
    177
    Why isn't the client.java like 5 gb did you clean up additional content or what?
    Reply With Quote  
     

  8. #8  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by stone warior View Post
    Why isn't the client.java like 5 gb did you clean up additional content or what?
    No it's the original. Networking code was removed which was a huge part of it and so was player loading / saving.
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Community Veteran


    Join Date
    Jul 2006
    Posts
    789
    Thanks given
    31
    Thanks received
    80
    Rep Power
    177
    Quote Originally Posted by oobe View Post
    No it's the original. Networking code was removed which was a huge part of it and so was player loading / saving.
    Excuse my ignorance but what are the advantages of networking via Netty and using gson vs the old methods.
    Reply With Quote  
     

  11. #10  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by stone warior View Post
    Excuse my ignorance but what are the advantages of networking via Netty and using gson vs the old methods.
    nio is much much better, it also gets rid of the thread per client model which does not scale at all. I used gson over the old code because the old code sucks, i wanted to keep flat file storage and also be able to edit files easily, this also allows for fairly easy maintenance, ie removing an item from all players will be simply copy and paste the playerdetails object load each file alter and update, where with the old code you would have to parse each line etc etc. ideally you would use a database but don't want the complications for this little lan project!
    Reply With Quote  
     

  12. Thankful user:


Page 1 of 4 123 ... 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. Replies: 10
    Last Post: 02-05-2010, 04:59 PM
  2. Replies: 21
    Last Post: 11-08-2009, 06:30 AM
  3. Replies: 3
    Last Post: 10-01-2009, 04:00 AM
  4. Replies: 25
    Last Post: 08-17-2009, 09:29 AM
  5. [delta] fixing interface for wildy levels [delta]
    By arrowzftw in forum Tutorials
    Replies: 4
    Last Post: 08-02-2009, 05:13 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •