[Development] Connect Server on JAVA (OPEN SOURCE)

Results 1 to 1 of 1
  1. #1
    Enthusiast Kernighan is offline
    MemberRank
    Apr 2013 Join Date
    MoldovaLocation
    35Posts

    wink [Development] Connect Server on JAVA (OPEN SOURCE)

    Greetings dear ragezone users.. I'm so glad to come back here again and to share something with you :)
    What I would like to try is to port the source code of the server including all its components to JAVA and maybe try to move the community towards JAVA development.
    I started from connect server just because it is the smallest component and good point to remember how works some things in MU.



    As long as I have time, I will try to push hard and to build something working, I hope you'll enjoy it.



    IMPORTANT! Install JRE or JDK version 8, how to do it you can find by looking for How do I install Java?



    Connect Server: Version 1.0

    How do I run connect server?

    1. Open command line or terminal if you are linux user, then
    2. java -Xms1024m -Xmx2048m -jar /path/connectserver-1.0.jar --path /path/startup.json

    I would be grateful if someone will test on different versions to find and fix bugs e.t.c.



    Join Server:
    Working hard on it



    startup.json

    Code:
    {
     "logging": {
      "level": "INFO",
      "appenders": [
       {
        "name": "Stdout",
        "type": "CONSOLE",
        "format": "%d{DEFAULT} [%t] %-5level %logger{36} - %msg%n"
        }, {
        "name": "RollingFile",
        "type": "ROLLING_FILE",
        "format": "%d{DEFAULT} [%t] %-5level %logger{36} - %msg%n",
        "fileName": "connect-server.log",
        "filePattern": "connect-server-%i.log",
        "sizeBasedTriggeringPolicy": {
         "size": "10M"
        }
       }
      ]
     },
     "connectServer": {
      "tcpPort": 44405,
      "udpPort": 55557,
      "serverList": [
       {
        "serverCode": 0,
        "serverName": "GameServer",
        "serverAddress": "127.0.0.1",
        "serverPort": 55901,
        "serverType": "VISIBLE"
       },
       {
        "serverCode": 19,
        "serverName": "GameServerCS",
        "serverAddress": "127.0.0.1",
        "serverPort": 55919,
        "serverType": "HIDDEN"
       }
      ]
     }
    }


    Source code: GitHub
    Last edited by Kernighan; 12-08-19 at 11:59 AM.




Advertisement