Thread: How to add support for multiple worlds without needing a database.

Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 80
  1. #11  
    Registered Member thiefmn6092's Avatar
    Join Date
    Dec 2006
    Age
    24
    Posts
    2
    Thanks given
    26
    Thanks received
    389
    Rep Power
    0
    that requires so much modification though. my idea seems to be a lot more simple if i can find a solution for the journaling-type-thing
    https://twitter.com/********s1

    If you are a starter and want to learn rsps coding, i think that the server that fits most of your requests is deathlypvpz.
    I know some stone heads will flame and say its shit, i completely agree buy deathlypvpz is the best thing to start with.
    And you must do some Java courses in codecademy to improve yourself.
    Reply With Quote  
     

  2. #12  
    Registered Member thiefmn6092's Avatar
    Join Date
    Dec 2006
    Age
    24
    Posts
    2
    Thanks given
    26
    Thanks received
    389
    Rep Power
    0
    Quote Originally Posted by Scu11 View Post
    Nice job thief. There's also a way that I've been thinking of.

    Basically, you setup the server to run the game on two different worlds. All npcs/players/ground items etc are ran on different instances of the World, then in the login protocol, you choose which world the player is set in.



    You could easily loop all files in the saved games dir on startup and replace all file names, thus removing the .lock?
    thing is, you do not want to remove the lock for players that might be online on another world
    https://twitter.com/********s1

    If you are a starter and want to learn rsps coding, i think that the server that fits most of your requests is deathlypvpz.
    I know some stone heads will flame and say its shit, i completely agree buy deathlypvpz is the best thing to start with.
    And you must do some Java courses in codecademy to improve yourself.
    Reply With Quote  
     

  3. #13  
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,834
    Rep Power
    2934
    Quote Originally Posted by thiefmn6092 View Post
    thing is, you do not want to remove the lock for players that might be online on another world
    Store the world number inside the .lock?

    and then if the world number is the same as the world which is restarting, delete the file

    This whole system does seem a little fragile though
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
    Attached image
    Reply With Quote  
     

  4. #14  
    Registered Member
    Join Date
    Mar 2010
    Posts
    175
    Thanks given
    3
    Thanks received
    2
    Rep Power
    14
    change your car file location to c:/

    edit the servers and run one on a diff port k!

    nah jks good work in theroy
    Quote Originally Posted by Edvinas View Post
    theyre gonna send 65 trillion over paypal, and the account will get limited looool

    SHOES IS MA BITCH
    Reply With Quote  
     

  5. #15  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    ftp...
    MY DISCORD:
    bluejay#1504
    Reply With Quote  
     

  6. #16  
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    or do the easiest and just add a int in the character file??????
    character-isOnline = 1;//is online

    if (isOnline) {return alreadyOn; }

    and in a shutdown hook and logout, isOnline = 0;
    Reply With Quote  
     

  7. #17  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    Quote Originally Posted by silabgarza View Post
    or do the easiest and just add a int in the character file??????
    character-isOnline = 1;//is online

    if (isOnline) {return alreadyOn; }

    and in a shutdown hook and logout, isOnline = 0;
    And if the server crashes you still have the same problem.
    .
    Reply With Quote  
     

  8. #18  
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,834
    Rep Power
    2934
    Quote Originally Posted by Graham View Post
    And if the server crashes you still have the same problem.
    Then you have to focus on making the server as less likely to crash as possible.

    I remember that when a world crashes on runescape, your account gets stuck in that world if you were logged in.
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
    Attached image
    Reply With Quote  
     

  9. #19  
    Banned

    Join Date
    Dec 2008
    Posts
    3,004
    Thanks given
    10
    Thanks received
    198
    Rep Power
    0
    Quote Originally Posted by silabgarza View Post
    or do the easiest and just add a boolean in the character file??????
    character-isOnline = true;//is online

    if (isOnline) {returncode = #; }

    and in a shutdown hook and logout, isOnline = false;
    There thats better
    Reply With Quote  
     

  10. #20  
    Registered Member thiefmn6092's Avatar
    Join Date
    Dec 2006
    Age
    24
    Posts
    2
    Thanks given
    26
    Thanks received
    389
    Rep Power
    0
    Okay.. then everytime it is changed you are going to have to parse and edit the file. How will you assure that access to the file is synchronized between multiple server instances? I do not think Java gives you an interface to lock the files through the OS. Also, the way I stated would make it more simple to allow other processes to access information about it (for example, if you have some kind of web application).
    https://twitter.com/********s1

    If you are a starter and want to learn rsps coding, i think that the server that fits most of your requests is deathlypvpz.
    I know some stone heads will flame and say its shit, i completely agree buy deathlypvpz is the best thing to start with.
    And you must do some Java courses in codecademy to improve yourself.
    Reply With Quote  
     

Page 2 of 8 FirstFirst 1234 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

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