当前位置:网站首页>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 -v
If 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 jar
Slow 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博客
边栏推荐
- Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
- 从零开始,一镜到底,纯净系统搭建除草机(Grasscutter)
- volatile内存语义以及实现 -volatile写和读对普通变量的影响
- Port inspection steps - 7680 port analysis - Dosvc service
- Safety 20220709
- (线段树) 基础线段树常见问题总结
- Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
- ENSP,划分VLAN、静态路由,三层交换机综合配置
- ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
- three.js make 3D photo album
猜你喜欢
专访 | 阿里巴巴首席技术官程立:云+开源共同形成数字世界的可信基础
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
【论文阅读】Mastering the game of Go with deep neural networks and tree search
组件传值 provide/inject
MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
Unity打灵狐者
idea工程明明有依赖但是文件就是显示没有,Cannot resolve symbol ‘XXX‘
npm、nrm两种方式查看源和切换镜像
ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
Hand in hand to realize the picture preview plug-in (3)
随机推荐
[C language] General method for finding the sum of the greatest common factor and the least common multiple of two integers m and n, the classical solution
pom文件成橘红色未加载的解决方案
Redis counts new and retained users
Daily practice of LeetCode - palindrome structure of OR36 linked list
RESTful api interface design specification
open failed: EACCES (Permission denied)
errno error code and meaning (Chinese)
MySQL based operations
MySQL fuzzy query can use INSTR instead of LIKE
Safety 20220709
高等数学---第九章二重积分
interprocess communication
递归实现汉诺塔问题
ClickHouse: Setting up remote connections
Pytest e-commerce project combat (on)
Port inspection steps - 7680 port analysis - Dosvc service
VScode+ESP32快速安装ESP-IDF插件
el-image tag doesn't work after binding click event
npm、nrm两种方式查看源和切换镜像
Two address pools r2 are responsible for managing the address pool r1 is responsible for managing dhcp relays