SUMIKOの「ブロマガもまったりお送りしております?」

二日に一度ゲーム実況動画をあげています。ニコニコからはてなブログへ引っ越してきました。

【ConoHa】【Rising World】ConoHaのVPSでRISING WORLDのUNITY版クライアントをインストールする話。

ConoHaでVPSを借り、OSをUbuntuにしていろんな設定するところまでは、前記事をご覧ください。

nicosumiko.hatenablog.jp

 

今回は、いよいよRising Worldのクライアントをインストールします。

 

 

 

ポート開放

 

あらかじめ、VPSから使用するポート番号を開放(許可)しておきます。

Rising Worldでは、4255のTCPおよびUDPのポートを使用するので……

 

#ポート開放

$ sudo ufw allow 4255/tcp

$ sudo ufw allow 4255/udp

 

#確認

$ sudo ufw status verbose

 

#再起動

$ sudo ufw reload

 

SteamCMDのインストール


基本的にSteamのクライアントをインストールするためには「SteamCMD」というソフトを使います。

 

# 最初に、SteamCMDを入れるディレクトリ(今回はSteamとしました)を作ります。

$ mkdir Steam

 

#ゲーム用のフォルダを作成します。

$ mkdir RisingWorld

 

# カレントディレクトリをSteamに移動します。

$ cd Steam

 

 

$ sudo apt-get install lib32gcc-s1

#Cent OSとは異なります。

 

#SteamCMDを起動するシェルスクリプト(Steamディレクトリ内にできる)を起動します。

$ ./stemcmd.sh

 

プロンプトが「Steam>」になれば成功です。

 

Steam> force_install_dir ../Steam/RisingWorld

Steam> login anonymous

#login前にforce_install_dirを使うとPlease use force_install_dir before logon!と出てうまくいかないようです。

 

Steam> app_update 339010 -validate

#339010はゲームのIDのようなもの。

 

#終了

Steam> quit

 

これでインストールは終了です。

 

クライアントの起動

$ cd RisingWorld

$ ./linux_startscript.sh

(なぜか、./RisingWorld/linux_startscript.shだとエラーが出ます。たぶん、カレントディレクトリをインストールフォルダに置かないといけない?)

 

クライアントを起動すると、しばらくするとマルチプレイのところに表示されるようになります。

待てない場合は、IPを直接入力してもいいです。

 

また、サーバー設定は、以下の場所にあります。必要に応じて変更しましょう。

 

$ vim ~/RisingWorld/server.properties

 

設定すべき主な項目は

 

## SERVER SETTINGS

# UIDs of server admins (separated by semicolon)
Server_Admins=(管理者のSteamID)

# Server IP. Leave blank if you want the server to bind to all addresses
Server_IP=xxx.xxx.xxx.xxx(サーバーのIPアドレス

# Server name (shows up in server list)
Server_Name=(接続リストに表示されるサーバー名)

# Server password. If set, users are prompted to enter the pw to join the server. Leave blank for no pw
Server_Password=(サーバーに接続する際に求められるパスワード)

# Server port (TCP and UDP)
Server_Port=4255(サーバーのポート。変更する場合はここを変える。)

 

## WORLD SETTINGS

# Default world game mode (only used when a new world is created). Either "Survival" or "Creative"
World_GameMode=Survival(ゲームモード)
# Name of the world which should be loaded (if it does not exist, it will be created)
World_Name=(生成されるワールドの名前)
# If false, the game will no longer save world changes
World_SaveWorld=True(ワールドの変更を保存するかどうか。これをfalseする意味ある?)
# Seed that's used for world creation (only when a new world is created). Blank for random seed
World_Seed=(ワールドのシード値。設定しなければランダムです。)

 

## GENERAL SETTINGS

# Maximum number of online players on the server
Settings_MaxPlayers=(サーバーに入れる最大のプレイヤー数)

# If true, this server is advertised as PvE server (this alone does not affect the gameplay)
Settings_PvE=True(NPCとの戦闘のあるなし)
# If true, this server is advertised as PvP server (this alone does not affect the gameplay)
Settings_PvP=True(プレイヤーとの戦闘のあるなし)