EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Server config java code for locked (https://www.eqemulator.org/forums/showthread.php?t=42774)

Fridgecritter 01-14-2020 03:04 PM

Server config java code for locked
 
The config file doesn't look like this anymore:

<!-- Server status. Default is unlocked -->
<!--<locked/>-->
<!-- <unlocked/> -->

I used to just uncomment the "locked" part of the config to lock my server so every time I start it up I don't have to log in and #lock it. I don't want to use the private login server, I'd rather just lock it in the config file. But now that the config file is written in javascript, I don't know what keywords and format the server wants to see for locked. Thanks in advance.

Fridgecritter 01-14-2020 03:24 PM

On the server installer page, they list LOCKED as one of the variables, but if you go to the link for the base line config file example, Akka doesn't have a LOCKED section in his code either.

Here's what his looks like on the example from the website:

Code:

{
        "server": {
                "zones": {
                        "defaultstatus": "0",
                        "ports": {
                                "low": "7000",
                                "high": "7400"
                        }
                },
                "qsdatabase": {
                        "host": "localhost",
                        "port": "3306",
                        "username": "root",
                        "password": "eqemu",
                        "db": "peq"
                },
                "chatserver": {
                        "port": "7778",
                        "host": ""
                },
                "mailserver": {
                        "host": "",
                        "port": "7778"
                },
                "webinterface": {
                        "port": "9081"
                },
                "world": {
                        "loginserver1": {
                                "account": "",
                                "password": "",
                                "legacy": "1",
                                "host": "login.eqemulator.net",
                                "port": "5998"
                        },
                        "loginserver2": {
                                "port": "5998",
                                "account": "",
                                "password": "",
                                "host": "127.0.0.1"
                        },
                        "tcp": {
                                "ip": "127.0.0.1",
                                "port": "9001"
                        },
                        "telnet": {
                                "ip": "0.0.0.0",
                                "port": "9000",
                                "enabled": "true"
                        },
                        "key": "somelongrandomstring12345asdfffff",
                        "http": {
                                "port": "9080",
                                "enabled": "true",
                                "mimefile": "mime.types"
                        },
                        "shortname": "Akkas PEQ Installer",
                        "longname": "Akkas PEQ Installer"
                },
                "database": {
                        "db": "peq",
                        "host": "localhost",
                        "port": "3306",
                        "username": "root",
                        "password": "eqemu"
                }
        }
}


FievelMousey 01-14-2020 07:33 PM

Code:

"world" : {
              "localaddress" : "127.0.0.1",
              "http" : {
                    "enabled" : "false",
                    "mimefile" : "mime.types",
                    "port" : "9080"
              },
              "key" : "",
              "locked" : "false",
                          "loginserver1": {
                                "account": "",
                                "password": "",
                                "legacy": "1",
                                "host": "login.eqemulator.net",
                                "port": "5998"
                                },
              "loginserver2" : {
                    "account" : "",
                    "host" : "127.0.0.1",
                    "password" : "",
                    "port" : "5998"
              },


Fridgecritter 01-14-2020 07:49 PM

Thanks a ton. Such a simple thing but if you don't know how to format it and where to insert it :)


All times are GMT -4. The time now is 09:42 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.