当前位置:网站首页>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博客
边栏推荐
- 问题7:列表的拼接
- Smartcom Programming Level 4 - Magic Academy Lesson 6
- Vue项目通过node连接MySQL数据库并实现增删改查操作
- beforeDestroy与destroyed的使用
- MySQL based operations
- 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
- 问题1:给你1-10的列表,实现列表输出,单数在左边,双数在右边。
- Postgresql 15 source code analysis (5) - pg_control
- Can‘t load /home/Iot/.rnd into RNG
- ENSP,划分VLAN、静态路由,三层交换机综合配置
猜你喜欢
三子棋的代码实现
从零开始,一镜到底,纯净系统搭建除草机(Grasscutter)
Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
Exsl file preview, word file preview web page method
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
binom二项分布,
高等数学---第九章二重积分
扫雷游戏(c语言写)
开源汇智创未来 | 2022开放原子全球开源峰会OpenAtom openEuler分论坛圆满召开
Port inspection steps - 7680 port analysis - Dosvc service
随机推荐
IDEA common shortcut keys and plug-ins
open failed: EACCES (Permission denied)
C# 实现PLC的定时器
MATLAB/Simulink&&STM32CubeMX工具链完成基于模型的设计开发(MBD)(三)
MySQL based operations
exsl文件预览,word文件预览网页方法
(6) Enumeration and annotation
HCIP第十天_BGP路由汇总实验
MySQL 8.0.30 GA
beforeDestroy与destroyed的使用
RESTful api接口设计规范
Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined
Safety 20220722
【线性神经网络】softmax回归
开源社区三十年 | 2022开放原子全球开源峰会开源社区三十年专题活动圆满召开
(树) 最近公共祖先(LCA)
npm、nrm两种方式查看源和切换镜像
(4) Recursion, variable parameters, access modifiers, understanding main method, code block
Why don't you programmers make a living off your own projects?And have to work for someone else?
visual studio 那些提高效率的快捷键,总结(不时更新)