当前位置:网站首页>From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)
From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)
2022-07-31 04:29:00 【bun_ God's pocket】
Reinstalled new system,There is absolutely no environment whatsoever,从零开始,一镜到底,简单易懂,If you miss any step, you slap me
一、Reinstall the original clean system first

二、搭建JAVA环境
1、Download the Oracle official website versionJAVA,in the selectionmsi-installer
If you download something elsejava,要配置环境,别问我,我不教

2、java安装步骤
一直点next


3、java检查(可跳过)
(1)win+r打开“运行”

(2)输入cmd 然后确认

(3)输入
java -version
javac -version(4)java和javacIf the version is the same, the installation is indicatedjava正确
For example in the picture18.0.2

三、配置node.js环境
1、下载node.js
官网下,Don't ask me from somewhere else

2、安装步骤
一路点next





点finsih结束
3、添加node.js系统环境变量(非常重要)
win+r输入cmdPress again to confirm
输入:
SET PATH=C:\Program Files\Nodejs;%PATH%4、node.js配置检查(可跳过)
输入
npm -vIf the following figure appears, the configuration is successful

四、编译服务器
1、下载源代码
I'm afraid some people won't click or post a picture

服务器源代码:GitHub - Grasscutters/Grasscutter: A server software reimplementation for a certain anime game.
Repository source code:
After downloading the server source code解压to your convenience
2、Copy the address of the folder
3、编译(Don't close it after compiling)
cmd中输入:
cd 你复制的地址
.\gradlew.bat
.\gradlew jarSlow internet is normal,Now you can go do something else,For example, create a database first
Below is a screenshot during compilation:




编译完成,cmd先别关
四、搭建数据库(If you don't want to build, you can skip using the database I provided)
下载地址: MongoDB: The Developer Data Platform | MongoDB | MongoDB
先鸽了,You can use my database server first,Wait until the server blows up
五、运行服务器
1、修改文件名:
把grasscutter-1.2.3-dev.jar改为grasscutter.jar
If you don't know how to change the file extension, see below:
点查看,Click on the file extension


2、在cmd中输入
java -jar grasscutter.jar
3、 添加资源库
A new folder called resources,双击进入,Unzip the database file and put it inside

After copying:
4、修改config.json
(1)用记事本打开config.json

(2)修改ip(Skip for local stand-alone use)
LAN users:ipconfigLook at your local area networkip
公网ip者:Change to your own public networkip

(3)配置数据库
如图

"databaseInfo": {
"server": {
"connectionUri": "mongodb://oyz.news:10419",
"collection": "StrawberryJam"
},
"game": {
"connectionUri": "mongodb://oyz.news:10419",
"collection": "StrawberryJam"
}
},5、运行服务器
(1)cmd输入:
java -jar grasscutter.jar
(2)选择语言:chs 中文
(3)顺利开启

五、组建虚拟局域网(Local use or public networkip的可以忽略)
第一种方法(不推荐):Dandelion networking can only be said to be expensive and slow,But the advantage is that it is relatively stable,操作简单,It is a commercial product after all,You can contact Dandelion customer service to teach you.
第二种方法:Zerotier组网,The upper limit is high when the network is stable,支持P2P内网穿透,The measured network speed is about the actual bandwidth50%(A computer is connected1000M宽带,connected to another computer5G网络,The virtual LAN network speed is approx400~500M).
注册官网:Download – ZeroTier
1、Sign up for a network of your ownid


2、下载Zerotier.Join the above networkid


3、Test whether the server can be reached
打开cmd命令提示符
输入:
ping Your server is on a virtual local area networkip虚拟局域网的ip可以输入ipconfig查看

Like this, the connection is successful.
六、关闭windows防火墙
1、搜索高级安全Windows Defender防火墙
2、Click Inbound Rules
(1)新建规则

(2)程序
(3)所有程序

(3)任何
(4)允许连接

(5)全选

(6)名称随便

3、Click Outbound Rules,重复一遍操作
七、客户端连接
Please refer to my other articles:
除草机(Grasscutter) Windows客户端配置教程_bun_God's Pocket Blog-CSDN博客
除草机(Grasscutter) ios/Android客户端配置教程_bun_God's Pocket Blog-CSDN博客
边栏推荐
- Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
- Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
- 【线性神经网络】softmax回归
- qlib架构
- MySQL to revise the root password
- 【论文阅读】Mastering the game of Go with deep neural networks and tree search
- IDEA常用快捷键与插件
- "A daily practice, happy water problem" 1331. Array serial number conversion
- [Swift]自定义点击APP图标弹出的快捷方式
- 聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开
猜你喜欢

Regarding the primary key id in the mysql8.0 database, when the id is inserted using replace to be 0, the actual id is automatically incremented after insertion, resulting in the solution to the repea

binom二项分布,

(4) Recursion, variable parameters, access modifiers, understanding main method, code block

C language from entry to such as soil, the data store

Notes on the establishment of the company's official website (6): The public security record of the domain name is carried out and the record number is displayed at the bottom of the web page
![[C language] General method of base conversion](/img/28/954af5f47a79ff02d3cc0792ac8586.jpg)
[C language] General method of base conversion

pom文件成橘红色未加载的解决方案

Learning DAVID Database (1)
![Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]](/img/83/e0163b324448c6ef5b106862673637.jpg)
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]

Know the showTimePicker method of the basic components of Flutter
随机推荐
qlib架构
Know the showTimePicker method of the basic components of Flutter
XSS靶场(三)prompt to win
(四)递归、可变参数、访问修饰符、理解 main 方法、代码块
BP神经网络
【C语言进阶】文件操作(一)
VScode+ESP32快速安装ESP-IDF插件
Daily practice of LeetCode - palindrome structure of OR36 linked list
type_traits metaprogramming library learning
unity2d小游戏
HCIP第十天_BGP路由汇总实验
[AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
RESTful api接口设计规范
Postgresql 15 source code analysis (5) - pg_control
已解决(最新版selenium框架元素定位报错)NameError: name ‘By‘ is not defined
扫雷游戏(c语言写)
Daily practice of LeetCode - 138. Copy a linked list with random pointers
Port inspection steps - 7680 port analysis - Dosvc service
开源汇智创未来 | 2022开放原子全球开源峰会OpenAtom openEuler分论坛圆满召开
(树) 最近公共祖先(LCA)

