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

2024-05-10 11:28

本文主要是介绍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了!

客户端还是登录不上

这篇关于TrinityCore最新版本master安装@ubuntu22@win10的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/976307

相关文章

golang1.23版本之前 Timer Reset方法无法正确使用

《golang1.23版本之前TimerReset方法无法正确使用》在Go1.23之前,使用`time.Reset`函数时需要先调用`Stop`并明确从timer的channel中抽取出东西,以避... 目录golang1.23 之前 Reset ​到底有什么问题golang1.23 之前到底应该如何正确的

python管理工具之conda安装部署及使用详解

《python管理工具之conda安装部署及使用详解》这篇文章详细介绍了如何安装和使用conda来管理Python环境,它涵盖了从安装部署、镜像源配置到具体的conda使用方法,包括创建、激活、安装包... 目录pytpshheraerUhon管理工具:conda部署+使用一、安装部署1、 下载2、 安装3

Golang的CSP模型简介(最新推荐)

《Golang的CSP模型简介(最新推荐)》Golang采用了CSP(CommunicatingSequentialProcesses,通信顺序进程)并发模型,通过goroutine和channe... 目录前言一、介绍1. 什么是 CSP 模型2. Goroutine3. Channel4. Channe

IDEA如何切换数据库版本mysql5或mysql8

《IDEA如何切换数据库版本mysql5或mysql8》本文介绍了如何将IntelliJIDEA从MySQL5切换到MySQL8的详细步骤,包括下载MySQL8、安装、配置、停止旧服务、启动新服务以及... 目录问题描述解决方案第一步第二步第三步第四步第五步总结问题描述最近想开发一个新应用,想使用mysq

java脚本使用不同版本jdk的说明介绍

《java脚本使用不同版本jdk的说明介绍》本文介绍了在Java中执行JavaScript脚本的几种方式,包括使用ScriptEngine、Nashorn和GraalVM,ScriptEngine适用... 目录Java脚本使用不同版本jdk的说明1.使用ScriptEngine执行javascript2.

龙蜥操作系统Anolis OS-23.x安装配置图解教程(保姆级)

《龙蜥操作系统AnolisOS-23.x安装配置图解教程(保姆级)》:本文主要介绍了安装和配置AnolisOS23.2系统,包括分区、软件选择、设置root密码、网络配置、主机名设置和禁用SELinux的步骤,详细内容请阅读本文,希望能对你有所帮助... ‌AnolisOS‌是由阿里云推出的开源操作系统,旨

Ubuntu系统怎么安装Warp? 新一代AI 终端神器安装使用方法

《Ubuntu系统怎么安装Warp?新一代AI终端神器安装使用方法》Warp是一款使用Rust开发的现代化AI终端工具,该怎么再Ubuntu系统中安装使用呢?下面我们就来看看详细教程... Warp Terminal 是一款使用 Rust 开发的现代化「AI 终端」工具。最初它只支持 MACOS,但在 20

mysql-8.0.30压缩包版安装和配置MySQL环境过程

《mysql-8.0.30压缩包版安装和配置MySQL环境过程》该文章介绍了如何在Windows系统中下载、安装和配置MySQL数据库,包括下载地址、解压文件、创建和配置my.ini文件、设置环境变量... 目录压缩包安装配置下载配置环境变量下载和初始化总结压缩包安装配置下载下载地址:https://d

Debian如何查看系统版本? 7种轻松查看Debian版本信息的实用方法

《Debian如何查看系统版本?7种轻松查看Debian版本信息的实用方法》Debian是一个广泛使用的Linux发行版,用户有时需要查看其版本信息以进行系统管理、故障排除或兼容性检查,在Debia... 作为最受欢迎的 linux 发行版之一,Debian 的版本信息在日常使用和系统维护中起着至关重要的作

LinuxMint怎么安装? Linux Mint22下载安装图文教程

《LinuxMint怎么安装?LinuxMint22下载安装图文教程》LinuxMint22发布以后,有很多新功能,很多朋友想要下载并安装,该怎么操作呢?下面我们就来看看详细安装指南... linux Mint 是一款基于 Ubuntu 的流行发行版,凭借其现代、精致、易于使用的特性,深受小伙伴们所喜爱。对