原创

割草机的安装教程

  1. 前去 https://github.com/Grasscutters/Grasscutter 下载最新的jar,并把项目根目录的 keystore.p12 下载下来跟jar放到一个目录
  2. 安装 jdk17
  3. 安装 MongoDB (recommended 4.0+)
  4. 下载 https://git.crepe.moe/tamilpp25/Grasscutter_Resources 中的资源,放到jar的同目录,将 Resources 改成 resources
  5. 启动割草机的jar, java -jar grasscutter-x.x.x.jar,将会在跟目录生成 config.json 配置文件,打开配置文件
    {
      "folderStructure": {
        "resources": "./resources/",
        "data": "./data/",
        "packets": "./packets/",
        "scripts": "resources:Scripts/",
        "plugins": "./plugins/"
      },
      "databaseInfo": {
        "server": {
          "connectionUri": "mongodb://localhost:27017",
          "collection": "grasscutter"
        },
        "game": {
          "connectionUri": "mongodb://localhost:27017",
          "collection": "grasscutter"
        }
      },
      "language": {
        "language": "en_US",
        "fallback": "en_US",
        "document": "EN"
      },
      "account": {
        "autoCreate": false,
        "EXPERIMENTAL_RealPassword": false,
        "defaultPermissions": [],
        "maxPlayer": -1
      },
      "server": {
        "debugWhitelist": [],
        "debugBlacklist": [],
        "runMode": "HYBRID",
        "logCommands": false,
        "http": {
          "bindAddress": "0.0.0.0",
          "bindPort": 443,
          "accessAddress": "当前IP地址",
          "accessPort": 0,
          "encryption": {
            "useEncryption": true,
            "useInRouting": true,
            "keystore": "./keystore.p12",
            "keystorePassword": "123456"
          },
          "policies": {
            "cors": {
              "enabled": false,
              "allowedOrigins": [
                "*"
              ]
            }
          },
          "files": {
            "indexFile": "./index.html",
            "errorFile": "./404.html"
          }
        },
        "game": {
          "bindAddress": "0.0.0.0",
          "bindPort": 22102,
          "accessAddress": "当前IP地址",
          "accessPort": 0,
          "loadEntitiesForPlayerRange": 100,
          "enableScriptInBigWorld": false,
          "enableConsole": true,
          "kcpInterval": 20,
          "logPackets": "NONE",
          "isShowPacketPayload": false,
          "isShowLoopPackets": false,
          "gameOptions": {
            "inventoryLimits": {
              "weapons": 2000,
              "relics": 2000,
              "materials": 2000,
              "furniture": 2000,
              "all": 30000
            },
            "avatarLimits": {
              "singlePlayerTeam": 4,
              "multiplayerTeam": 4
            },
            "sceneEntityLimit": 1000,
            "watchGachaConfig": false,
            "enableShopItems": true,
            "staminaUsage": true,
            "energyUsage": true,
            "fishhookTeleport": true,
            "resinOptions": {
              "resinUsage": false,
              "cap": 160,
              "rechargeTime": 480
            },
            "rates": {
              "adventureExp": 1.0,
              "mora": 1.0,
              "leyLines": 1.0
            }
          },
          "joinOptions": {
            "welcomeEmotes": [
              2007,
              1002,
              4010
            ],
            "welcomeMessage": "Welcome to a Grasscutter server.",
            "welcomeMail": {
              "title": "Welcome to Grasscutter!",
              "content": "Hi there!\r\nFirst of all, welcome to Grasscutter. If you have any issues, please let us know so that Lawnmower can help you! \r\n\r\nCheck out our:\r\n\u003ctype\u003d\"browser\" text\u003d\"Discord\" href\u003d\"https://discord.gg/T5vZU6UyeG\"/\u003e\n",
              "sender": "Lawnmower",
              "items": [
                {
                  "itemId": 13509,
                  "itemCount": 1,
                  "itemLevel": 1
                },
                {
                  "itemId": 201,
                  "itemCount": 99999,
                  "itemLevel": 1
                }
              ]
            }
          },
          "serverAccount": {
            "avatarId": 10000007,
            "nameCardId": 210001,
            "adventureRank": 1,
            "worldLevel": 0,
            "nickName": "Server",
            "signature": "Welcome to Grasscutter!"
          }
        },
        "dispatch": {
          "regions": [],
          "defaultName": "Grasscutter",
          "logRequests": "NONE"
        },
        "debugMode": {
          "serverLoggerLevel": {
            "levelInt": 10000,
            "levelStr": "NONE"
          },
          "servicesLoggersLevel": {
            "levelInt": 20000,
            "levelStr": "NONE"
          },
          "logPackets": "NONE",
          "isShowPacketPayload": false,
          "isShowLoopPackets": false,
          "logRequests": "NONE"
        }
      },
      "version": 4
    }
  6. 下载代理或登录器,填写虚拟机ip,进入游戏
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容