TrinityCore最新版本master安装@ubuntu22@win10

原名字是:trinitycore最新版本master安装@docker@freebsd15@win10

说明一下,原计划是在win10的virtualbox安装FreeBSD,然后在FreeBSD系统安装docker-machine,再安装tinycore-linux,在里面再安装docker,docker里面再安装TrinityCore!

最终实施方案是:在Win10里VirtualBox安装Ubuntu22.04,然后安装TrinityCore

VirtualBox中安装Ubuntu

刚开始为了能在FreeBSD里面再虚拟化,需要在VirtualBox打开VT-x。但是选项是灰色的。这时候按照常规想法,应该是在虚拟机开机的时候进入bios修改。但是VirtualBox没有bios,所以要在Windows10 用执行命令的方法打开:

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms
"freebsd2" {d07f2950-2ba5-4d88-b81f-13b58703ba43}
"freebsd15" {0cc27105-42ee-4bef-b11e-f82a6e2c2e48}
"freebsd1" {cb381dc6-f89b-4509-a3d8-60b4df70129a}
"freebsd15new" {13e6778a-8a35-482d-9813-c71f5cd35278}

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyvm "freebsd15" --nested-hw-virt on

执行完之后VT-x选项就不是灰色的,可以勾选了。当然win10 bios里要打开VT-x,这个就不赘述了

创建和安装Ubuntu

到清华镜像下载安装盘 Index of /ubuntu-releases/22.04.4/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

 安装好Ubuntu后,

安装相关库

apt-get update
apt-get install git clang cmake make gcc g++ libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mysql-server p7zip
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang 100

 创建专用账户wow

sudo adduser wow

用wow用户登录,然后下载master源码

cd ~/
git clone -b master https://github.com/TrinityCore/TrinityCore.git

 源码编译

cd TrinityCore
mkdir build
cd buildcmake ../ -DCMAKE_INSTALL_PREFIX=/home/wow/server

编译

make -j $(nproc) 
make install

若有需要,及时更新代码

cd ~/TrinityCore/
git pull origin master

 更新完之后,不要忘记再重新编译!

 配置服务器

下载程序需要的地图等文件,可以从这里下载: https://tc.arctium.io

下载master版本的,下载后解压,带目录拷贝到server/data目录

 配置config文件

将dist后缀去掉

server/etc$ ls
bnetserver.conf  bnetserver.conf.dist  worldserver.conf  worldserver.conf.dist

创建数据库

sudo mysql# 进入mysql后执行
source /home/wow/download/create_mysql.sql

最后配置网络

UPDATE realmlist SET address = '192.168.0.16' WHERE address = '127.0.0.1';

use auth;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
mysql>  select id,name,address,localaddress,gamebuild from realmlist;
+----+---------+-----------+--------------+-----------+
| id | name    | address   | localaddress | gamebuild |
+----+---------+-----------+--------------+-----------+
|  1 | Trinity | 127.0.0.1 | 127.0.0.1    |     54604 |
+----+---------+-----------+--------------+-----------+
1 row in set (0.00 sec)mysql> UPDATE realmlist SET address = '192.168.0.16' WHERE address = '127.0.0.1';
Query OK, 1 row affected (0.02 sec)
Rows matched: 1  Changed: 1  Warnings: 0mysql>  select id,name,address,localaddress,gamebuild from realmlist;
+----+---------+--------------+--------------+-----------+
| id | name    | address      | localaddress | gamebuild |
+----+---------+--------------+--------------+-----------+
|  1 | Trinity | 192.168.0.16 | 127.0.0.1    |     54604 |
+----+---------+--------------+--------------+-----------+
1 row in set (0.00 sec)

启动服务

执行

cd server/bin/

./worldserver

执行

./bnetserver

创建用户:

 bnetaccount create test@test test

提升gm权限:account set gmlevel 1#1 3 -1

登录:

E-mail: test@test
Password: test

 

配置客户端

对于master版本,需要特制的game Launcher,下载地址: https://arctium.io/wow/

在_retail/config.wtf文件中加入:SET portal "192.168.0.16"

 

调式

FreeBSD下docker-machine提示This computer doesn't have VT-X/AMD-v enabled

docker-machine  create --driver virtualbox myvm
Running pre-create checks...
Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" 

首先到VirtualBox里面把启用嵌套VT-x打上对勾

如果是灰色的,执行这条命令试试:C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyvm "freebsd15" --nested-hw-virt on

加上这条命令:--virtualbox-no-vtx-check

docker-machine  create --virtualbox-no-vtx-check --driver virtualbox myvm

执行后报错"Get \"https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso\": EOF"

docker-machine  create --virtualbox-no-vtx-check -
Running pre-create checks...
(myvm) Image cache directory does not exist, creating it at /home/skywalk/.docker/machine/cache...
(myvm) No default Boot2Docker ISO found locally, downloading the latest release...
(myvm) Latest release for github.com/boot2docker/boot2docker is v19.03.12
(myvm) Downloading /home/skywalk/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso...
Error with pre-create check: "Get \"https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso\": EOF"
$ docker-machine  create --virtualbox-no-vtx-check --driver virtualbox myvm
Running pre-create checks...
(myvm) No default Boot2Docker ISO found locally, downloading the latest release...
(myvm) Latest release for github.com/boot2docker/boot2docker is v19.03.12
(myvm) Downloading /home/skywalk/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso...
Error with pre-create check: "Get \"https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso\": EOF"

github抽风,把其它地方的boot2docker.iso文件cp到~/.docker/machine/cache目录下。

用普通用户创建的时候报错Failed to create the host-only adapter

(myvm) Check network to re-create if needed...
(myvm) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(myvm) 0%...
(myvm) Progress state: NS_ERROR_FAILURE
(myvm) VBoxManage: error: Failed to create the host-only adapter
(myvm) VBoxManage: error: Failed to execute '/usr/local/lib/virtualbox/VBoxNetAdpCtl add 2>&1' - exit status: 32256
(myvm) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(myvm) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp
(myvm)
(myvm) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
原因是没有权限。用root账户创建

root账户下网卡也没创建成功

(myvm) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(myvm) 0%...
(myvm) Progress state: NS_ERROR_FAILURE
(myvm) VBoxManage: error: Failed to create the host-only adapter
(myvm) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(myvm) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(myvm) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp
(myvm)
(myvm) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue

我想是因为没有装virtualbox吧? 发现已经装好了。问题遗留

发现virtualbox中只能创建32位系统

这是个大问题啊,不解决后面没法继续啊!

放弃,直接虚拟出来ubuntu!

trinitycore创建数据库报错

source /home/wow/download/create_mysql.sql

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2024 GitHub,&nbsp' at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Inc.
      </span>
    </div>

    <nav aria-label="Footer">
      <h3 class="sr' at line 1

发现create_mysql.sql文档有问题,wget没有下载下来,用笨方法下载。然后再source执行,ok了

运行worldserver报错Map file './maps/0000_43_31.map' does not exist!

VMap support included. LineOfSight: true, getHeight: true, indoorCheck: true
VMap data directory is: ./vmaps
Map file './maps/0000_43_31.map' does not exist!
Please place MAP-files (*.map) in the appropriate directory (./maps/), or correct the DataDir setting in your worldserver.conf file.
Unable to load map and vmap data for starting zones - server shutting down!

但是那个文件明明在那里啊!

网上有issue:Map 0000_43_31.map is missing · Issue #19791 · TrinityCore/TrinityCore · GitHub 

还是有人说数据路径要用绝对路径,于是

编辑文件server/etc/worldserver.conf,使用绝对路径

# DataDir = "."
DataDir = "/home/wow/server/data"

问题解决。

报错enUS/Achievement.db2, expected 0x920E09CB, got 0x145BE391 (possibly wrong client version)

Incorrect layout hash in /home/wow/server/data/dbc/enUS/Achievement.db2, expected 0x920E09CB, got 0x145BE391 (possibly wrong client version) Incorrect layout hash in /home/wow/server/data/dbc/enUS/ContentTuning.db2, expected 0x3E5D4B74, got 0x7364682E (possibly wrong client version) Incorrect layout hash in /home/wow/server/data/dbc/enUS/ItemModifiedAppearance.db2, expected 0x0120090C, got 0xF881E7D5 (possibly wrong client version) Unable to load db2 files for enUS locale specified in DBC.Locale config!

先更新master源代码试试

cd ~/TrinityCore/
git pull origin master

然后重新编译,安装。再运行,ok了!

客户端还是登录不上

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/834752.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

力扣:204. 计数质数(Java)

目录 题目描述:示例 1&#xff1a;示例 2&#xff1a;代码实现&#xff1a; 题目描述: 给定整数 n &#xff0c;返回 所有小于非负整数 n 的质数的数量 。 示例 1&#xff1a; 输入&#xff1a;n 10 输出&#xff1a;4 解释&#xff1a;小于 10 的质数一共有 4 个, 它们是 …

迁移docker存储目录

背景&#xff1a; 使用docker安装mysql&#xff0c;pika&#xff0c;redis后&#xff0c;系统将数据存储到mysql。 一段时间后&#xff0c; mysql经常报 ‘ 空间不足 ’。 后来发现docker存储目录所在的分区磁盘空间不足。所以&#xff0c;考虑迁移docker存储目录。 环境&…

git 常用命令 git怎么撤销命令 持续更新中!!!!

基本流程 # 拉取仓库 git clone 仓库地址 # 拉取最新版本 git pull # 本地提交 git add . git commit -m "本次提交信息&#xff01;" # 推送上云 git push分支 # 创建分支 git checkout -b cart # 删除本机的分支 git branch -d cart # 切换分支 本地切换到主分支…

引入RabbitMQ

前置条件 docker 安装 mq docker run \-e RABBITMQ_DEFAULT_USERdudu \-e RABBITMQ_DEFAULT_PASS123456 \-v mq-plugins:/plugins \--name mq \--hostname mq \-p 15672:15672 \-p 5672:5672 \--network hmall \-d \rabbitmq:3.8-management可能会出现&#xff1a;docker: Er…

2024HW Linux应急响应基础学习

首先展示关于Linux的关键目录&#xff0c;这是应急响应查看的关键&#xff1a; 常用命令 top //查看进程资源的占用情况 ps -aux //查看进程 直接写ps aux也可以 netstat -antpl //查看网络连接 ls -alh /proc/pid //查看某个pid对应的可执行程序 pid记得修改 lsof /…

华大基因CEPO-尹烨说学习与生活

怎么去面对生活和事业中的不确定性&#xff1f; 尹烨说&#xff0c;人类能够对抗不确定性的唯一的办法是&#xff0c;去让自己充电。 主持人问他&#xff0c;“和你同年的也有很多人&#xff0c;他们也可能也在学习&#xff0c;你怎么就能够脱颖而出呢&#xff1f;” 他说&am…

基于Springboot+Vue+Java的校园资料分享平台

&#x1f49e; 文末获取源码联系 &#x1f649; &#x1f447;&#x1f3fb; 精选专栏推荐收藏订阅 &#x1f447;&#x1f3fb; &#x1f380;《Java 精选实战项目-计算机毕业设计题目推荐-期末大作业》&#x1f618; 更多实战项目~ https://www.yuque.com/liuyixin-rotwn/ei3…

word图片水印

一、word中旧水印如何删除 打开word模板&#xff0c;想要删除旧水印&#xff0c;如下图所示操作&#xff0c;但是旧水印删除不掉。 以为上传新水印图片会替换掉旧水印&#xff0c;结果显示了2个水印&#xff0c;要怎么删除呢&#xff1f; 如下截图所示&#xff0c;双击打开页…

SpringCloud:认识微服务

程序员老茶 &#x1f648;作者简介&#xff1a;练习时长两年半的Java up主 &#x1f649;个人主页&#xff1a;程序员老茶 &#x1f64a; P   S : 点赞是免费的&#xff0c;却可以让写博客的作者开心好久好久&#x1f60e; &#x1f4da;系列专栏&#xff1a;Java全栈&#…

生成式人工智能岗位探析

笔者近期看到一则新闻&#xff1a;生成式人工智能岗位需求暴涨超 300%&#xff0c;AIGC 相关岗位的平均招聘年薪达 40 万元以上。到底什么是生成式人工智能岗位&#xff0c;和传统的人工智能岗又有什么区别呢&#xff1f;笔者今天想和大家一起聊聊这个新兴岗位。 第一波先上概…

机器学习_KNN算法

机器学习_KNN算法 K-近邻&#xff08;K-Nearest Neighbors&#xff0c;简称KNN&#xff09;算法是一种基本的机器学习分类和回归算法 其核心思想是&#xff1a;如果一个样本在特征空间中的k个最相似&#xff08;即特征空间中最邻近&#xff09;的样本中的大多数属于某一个类别…

「短链接教程」如何使用自己的域名生成短链接

在当今数字化时代&#xff0c;短链接的应用越来越广泛。它们不仅能让链接更简洁美观&#xff0c;还便于分享和传播。 但很多时候想用自己的域名生成短链接&#xff1f;搭建短链接平台又比较麻烦&#xff0c;所以&#xff0c;这里以C1N短网址(c1n.cn)为例&#xff0c;介绍下如何…

Java 8的新特性,Lambda表达式、Stream API等

Java 8, 发布于2014年3月&#xff0c;带来了一系列令人兴奋的新特性&#xff0c;其中最显著的包括Lambda表达式、Stream API、新的日期时间API和接口的默认方法与静态方法。这些增强大大提高了Java的表达能力&#xff0c;简化了代码的复杂性&#xff0c;并改进了数据处理能力。…

kingbase R9 高可用集群相关术语介绍

术语介绍 术语 定义 金仓数据库管理系统 &#xff08;KingbaseES&#xff09; 人大金仓数据库管理系统&#xff0c;本文指代单机服务版本&#xff0c;下文也被称作单机版。其成员可能包括数据 节点&#xff08;data node&#xff09;、备份节点&#xff08;repo node&am…

自定义函数工具库

一、函数相关 call()& apply()& bind() API说明 call() 语法: call(fn, obj, ...args)功能: 执行fn, 使this为obj, 并将后面的n个参数传给fn(功能等同于函数对象的call方法)apply() 语法: apply(fn, obj, args)功能: 执行fn, 使this为obj, 并将args数组中的元素传给f…

【EI会议|投稿优惠】2024年电力电网与电子通讯国际会议(ICPGEC 2024)

2024 International Conference on Power Grid and Electronic Communication 一、大会信息 会议名称&#xff1a;2024年电力电网与电子通讯国际会议会议简称&#xff1a;ICPGEC 2024收录检索&#xff1a;提交Ei Compendex,CPCI,CNKI,Google Scholar等会议官网&#xff1a;htt…

git cherry-pick命令使用

git cherry-pick 是一个非常实用的Git命令&#xff0c;它允许你将一个或多个提交从一个分支复制并应用到另一个分支上&#xff0c;而不需要进行整个分支的合并。这对于只想将某些特定更改而非整个分支历史引入当前工作的情况非常有用。以下是使用 git cherry-pick 的基本步骤和…

【训练与预测】02 - 完整的模型验证套路

02 - 完整的模型验证套路 模型图 验证一个模型就是指使用已经训练好的模型&#xff0c;然后给它提供输入。 test.py import torch import torchvision from PIL import Imagedevice torch.device("cuda" if torch.cuda.is_available() else "cpu") ima…

【数据结构】栈(Stack)和队列(Queue)

文章目录 栈一、栈的概念及结构二、栈的特点三、栈的实现1.初始化栈2.判断栈空3.入栈4.出栈5.取栈顶元素6.栈的元素个数7.销毁 队列一、队列的概念及结构二、队列的特点三、队列的实现1.初始化2.入队3.出队4.判断队空5.取队头元素6.取队尾元素 总结 栈 一、栈的概念及结构 栈…

政务热线系统让政府服务更接地气

一、引言 随着社会的快速发展和民众需求的日益增长&#xff0c;政府面临着巨大的挑战。政府需要更好地倾听民众的声音&#xff0c;关注民众的关切&#xff0c;并采取相应的措施回应民众的需求。而政府热线系统作为一种重要的沟通渠道&#xff0c;在提升政府服务质量、增强政府…