0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

3回目の マインクラフトPE マルチプレイサーバー セットアップ時のメモ

Posted at

前回のメモ

3回目にむけて

しばらく間があいたので、今の状況でどこまで手順が変わるか、確認する。

環境

  • さくらのクラウド
  • CentOS 7
  • マインクラフトPE 0.15.2

はじめに

マインクラフトPEのマルチプレイサーバー(PocketMine-MP)のセットアップ(3回目)時のメモです。

メモ

  • マインクラフトPEのPEとは、Pocket Editionの略。簡単に言うとスマホ(iPhone, Android)版のこと。
  • PEと、PC版と、コンシューマーゲーム機版(プレステ版など)は、基本的に互換性がない。
  • PEのマルチプレイサーバーのソフトは、PocketMine-MPというソフト。(公式が提供するものではない?他にもあるかも?)
  • pharファイルというファイル(jarのPHP版?)を最新のものをダウンロードして置き換えることが必要。(プレイしているクライアントのバージョンよりも低いバージョン用のサーバでは動かない)

コマンドメモ

# root ユーザー以外のユーザーを作ってセットアップするのが原則
useradd hoge
passwd hoge

# とりあえず yum update しておく
yum -y update

# 前提パッケージのインストール(すでに入っているかも?)
yum install perl gcc make automake libtool autoconf m4

# wget インストールする
yum -y install wget

# PocketMine-MP をダウンロードする
wget -q -O - http://get.pocketmine.net/ | bash

# 現在公開されているものは最新バージョン用にまとまっておらず、いくつか追加の手順が必要
# PHPのバージョンが古いので、ベットダウンロードしてきて、bin ディレクトリ毎入れ替える
# 上記手順なので、PHP を yum でインストールしたりはしなくても大丈夫
wget -O PHP_7.0.3_x86-64_Linux.tar.gz https://bintray.com/pocketmine/PocketMine/download_file?file_path=PHP_7.0.3_x86-64_Linux.tar.gz

# 展開する
tar -xvf PHP_7.0.3_x86-64_Linux.tar.gz

# phar ファイル(プラグインパック?)の新しいのをダウンロードして、ファイルを入れ替えることが必要
# 最新バージョンは、
# https://bintray.com/pocketmine/PocketMine/PocketMine-MP-phar#files
# の、一番下のリンクを使う、ということでよさそう。(が、公式では無いようなので、そういう意味では注意が必要ぽい。公式、情報更新されてないぽい…)
# 0.15用
wget https://bintray.com/pocketmine/PocketMine/download_file?file_path=PocketMine-MP_1.6dev-27_ef8227a0_API-2.0.0.phar

# firewalld で ポートを開ける。この辺りは、まだまだ勉強しないといけない。
firewall-cmd --add-port=19132/udp --zone=public --permanent
firewall-cmd --reload

# スタート用のシェルスクリプトを起動する
./start.sh

今回参考にさせていただいた主なページ。感謝 :pray:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?