HOHOHOK 发表于 2020-5-21 12:18:51

【搬运】 Swordie v176 Server Setup Guide

转自 http://forum.ragezone.com/f428/swordie-v176-server-setup-guide-1176727/

Long time lurker, active maybe 10 years ago when v62 was still a thing and the community was growing. Decided to make use of my free time to port over the guide written on Discord. Hopefully this helps more people to get into some sort of mushroom-game dev :)

Full credits to the Swordie team & contributors, especially Asura and Sjonnie who originally wrote this guide.

Swordie Discord: https://discord.gg/DyFcAM8


源码下载: https://www.sourcetreeapp.com/
开发工具下载 IntelliJ (Community version): https://www.jetbrains.com/idea/downl...ection=windows
数据库下载 MySQL Workbench: https://dev.mysql.com/downloads/workbench/
运行环境下载 WAMP Server: https://sourceforge.net/projects/wampserver/
java jdk下载 Java Dev Kit 1.8uXX: http://www.oracle.com/technetwork/ja...s-2133151.html
wz导出工具下载 WZ Dump: http://www.mediafire.com/file/2av7so...ZDump.rar/file

GMSv176客户端下载
http://download2.nexon.net/Game/Mapl...SSetupv176.exe
http://download2.nexon.net/Game/Mapl...SSetupv176.z01
http://download2.nexon.net/Game/Mapl...SSetupv176.z02
http://download2.nexon.net/Game/Mapl...SSetupv176.z03
http://download2.nexon.net/Game/Mapl...SSetupv176.z04
http://download2.nexon.net/Game/Mapl...SSetupv176.z05
http://download2.nexon.net/Game/Mapl...SSetupv176.z06

教程
1. 打开 Source Tree
2. Click File > Clone/Newhttps://imgur.com/X138yCzhttps://imgur.com/X138yCz
https://i.imgur.com/X138yCz.png
3. 输入详细信息如下:

[*]Source Path: https://bitbucket.org/swordiemen/swordie/src/master/
[*]Destination Path: <选择你要保存的地方>
[*]Name: swordie
[*]Local Folder:

4. Hit Clone
步骤 2: 导出 WZ 文件1. **确保你安装了GMS客户端 v176 **
2. 创建 2 个新的空白文件夹命名 “wz” 和 “dat”
3. 打开 WZ Dumper & 选择 “Dump All WZ Files from Folder”
https://i.imgur.com/4m7Vct8.png

5. 选择你安装 v176 的地方
https://imgur.com/GM3FWnW
https://i.imgur.com/GM3FWnW.png

6. 接下来, 选择 wz 文件 您在源文件夹中创建的
https://imgur.com/Bvvz5r7
https://i.imgur.com/Bvvz5r7.png
提示:此步骤将花费一些时间,因此您可以在等待时继续进行下一步。


步骤 3: 创建你的数据库1. 安装 (if you haven’t already) 运行 WAMP 服务. 确保在右下侧边栏中亮起绿色。
2. 打开 MySQL 并通过单击+号添加新的连接
https://i.imgur.com/9mHDmB2.png

3. 填写以下信息:
https://i.imgur.com/8o9SBvy.png


4. 单击您新创建的连接
https://i.imgur.com/DLXkOvt.png

5. 创建一个新的模式
https://i.imgur.com/JqPJlPF.png

6. 命名架构 “swordie”, 不要触摸其他任何选项,然后单击“应用并完成”.
https://i.imgur.com/WZ4qlZZ.png

7. 打开 script 文件
https://i.imgur.com/MXmgLfm.png

8. 导航 <你的源码文件处>/sql/ 然后选择 InitTables_characters.sql

https://i.imgur.com/naw7V8C.png


9. 双击打开
https://i.imgur.com/ypcTASs.png

10. 执行文件
https://i.imgur.com/0XGAbzf.png


11. 完成后,您将需要运行sql文件夹中的其余脚本。




步骤 4: 运行服务端**注意**: 你的 WZ 文件必须完成导出 在继续之前(步骤 2) .
1. 打开 IntelliJ
2. 点击 Open or Import
https://i.imgur.com/qtDtRQy.png

3. 选择 swordie 源码文件然后打开他. 打开后,项目窗口将出现在左侧栏中。
https://i.imgur.com/Ak8XwO6.png

4. 从此侧边栏打开src > main > java . 如果 ‘java’ 文件 没有标记为蓝色, 右键单击它 > Mark Directory as > Sources Root
https://i.imgur.com/Q1be26m.png

5. 导航至src > main > java > net.swordie.ms > Server. 右键然后run server.
https://i.imgur.com/OSLP5xI.png


6.由于必须生成dat文件,因此第一次运行服务器需要一段时间。 要有耐心,用手指交叉。
7. 一旦看到这样的:
https://i.imgur.com/1oXKBsX.png
您的服务器应已启动并正在运行。
8. 如果是第一次运行,请重新启动服务器




步骤 5: 连接你的服务器1. Refer to Bluntest’s method: Client + Bypass OR use the updated one I created here: http://forum.ragezone.com/f921/v176-...lient-1177022/ (这个允许您从启动器中创建一个帐户)
2. 下载文件, 解压缩并将其放入您的v176文件夹。 确保备份原件
3. 删除 Blackcipher 文件.
4. 管理员权限运行MoonLight
5. 在任务栏中,右键单击冒险岛图标,然后单击play.
https://i.imgur.com/bOOE9gu.png

6. 使用预制帐户登录:
Username: admin
Password: admin

PIC: 111 111








lifeng520520 发表于 2020-8-14 08:41:23

大神你好,感谢分享,请问这个端有架设好的吗?太感谢你了!

HOHOHOK 发表于 2020-9-8 16:57:14

lifeng520520 发表于 2020-8-14 08:41
大神你好,感谢分享,请问这个端有架设好的吗?太感谢你了!

有架设好的 但是修复一般 建议自己源码调试比较好的

471604551 发表于 2021-2-8 06:20:25

请问这个源码怎么下载,大佬能百度云一份吗

ffwww1 发表于 2021-8-25 04:10:51

求助!

本帖最后由 ffwww1 于 2021-8-25 04:21 编辑

本人新手,第一次就失败还请高手求助一下
1.请问一下不能创建一个新的模式怎么办?

2.请问一下导航至src > main > java > net.swordie.ms > Server. 右键然后run server.--->执行时出错?

3.请问一下新创建的连接--->不能运行?
4.请问一下步骤 2: 导出 WZ 文件--->(源码文件)<---这个是哪一个地方是下载这个里面文件https://bitbucket.org/swordiemen/swordie/src/master/or导出 Source Tree里面的文件然后再里面创造 “wz” 和 “dat”文件吗?
:dizzy:






lilymlk 发表于 2021-9-11 20:25:18

留名
mark!!!!!!!!!!!!!!!!!!!!!

625833348 发表于 2021-9-22 11:00:59

大神你好,感谢分享。运行server后,提示Exception in thread "main" org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123)
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
        at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:181)
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:312)
        at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:728)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:744)
        at net.swordie.ms.connection.db.DatabaseManager.init(DatabaseManager.java:138)
        at net.swordie.ms.Server.init(Server.java:61)
        at net.swordie.ms.Server.main(Server.java:144)
Caused by: org.hibernate.InstantiationException: could not instantiate test object : net.swordie.ms.client.character.Char
        at org.hibernate.engine.internal.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:43)
        at org.hibernate.engine.internal.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:68)
        at org.hibernate.tuple.PropertyFactory.buildIdentifierAttribute(PropertyFactory.java:65)
        at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:142)
        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:612)
        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:126)
        at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
        ... 9 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.hibernate.engine.internal.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:40)
        ... 18 more
Caused by: java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)

e110110eee 发表于 2022-5-11 12:01:51

您好我想问一下gms 176大概国服哪个版本

wxb2468235 发表于 2022-6-17 15:30:53

客户端下载失败

mickey 发表于 2022-7-18 03:32:42

625833348 发表于 2021-9-22 11:00
大神你好,感谢分享。运行server后,提示Exception in thread "main" org.hibernate.MappingException: Cou ...

jdk要用16, 教程选jdk8, 是过时的.
页: [1]
查看完整版本: 【搬运】 Swordie v176 Server Setup Guide