# MultiPlayershootoutのOnlinePlay方法について

**URL:** <https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, feedback, UE4, Blueprint, question\
**Created:** [August 1, 2015, 8:53pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327 "2015-08-01T20:53:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 1, 2015, 8:53pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/1 "2015-08-01T20:53:53Z")

</div>

公式ラーニングについてどなたかご存知の方が居ましたらご教授ください。

MultiPlayershootoutで自分のPCのみの場合は実行することはできるのですがOnlineで行う場合検索をかけても他のユーザーを見つけることができません。

実際にいくつか調べてみたのですが、公式で詳細な実行方法が載っていないため部分的に不明瞭な点がいくつかあります。

以下手順を書いていきますので抜けている、間違っている等ありましたらご指摘ください。

1.オンラインプレイを行う場合エディタから実行でなくクックしてパッケージ化が必要であるか？

2.プロジェクトの「MultiplayerShootout\Config\DefaultEngine.ini」に以下書き込み

[OnlineSubsystem]

DefaultPlatformService=Steam

[OnlineSubsystemSteam]

bEnabled=true

SteamDevAppId=480

3.Steamworks SDK のインストール

再ビルドは行わないため指定のフォルダに最新版のDLLを配置する、Ver.134では下記の二つのファイルしか見当たりませんでした。

steam\_api64.dll

steam\_api.dll

4.INI コンフィギュレーション

テスト用にSteamappID:480を使用しているが、テスターが同じappIDでも実行可能なのか不明です。

5.モジュール設定

＞ユーザーのプロジェクトの一部として、Unreal Engine Steamモジュールを必ず含んでください

上記のように公式ドキュメントでは記述されていますが、どのようにUnreal Engine Steamモジュールを追加するのか？  
また、配置場所等も不明瞭です。  
ここについても追加しなければならないターゲットファイルはC#の拡張子なのでC++環境でビルドをしていなければならないのか？

6.ポート開放が必要？

また、どの番号を使うかどこで指定しているのか不明瞭  
SteamのOnlinesubsystemを使う場合は不要なのでしょうか？

7.ゲームを実行してホストになる

8.別ユーザーが検索を行い、ゲームに参加する。

調べた結果は以上となります。不明瞭な点が多いため実際には繋がらない状態です。

公式ラーニングなのだからでもっと詳しく手順を公開して欲しいところです。

参考：公式サイトのドキュメント

> **[マルチプレイヤー シュートアウト](https://docs.unrealengine.com/4.27/ja/Resources/Showcases/BlueprintMultiplayer/)**
>
> ブループリント マルチプレイヤー ショーケースと構築方法の詳細

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 1, 2015, 8:55pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/2 "2015-08-01T20:55:23Z")

</div>

追記ですが、AnswerHubでも同様の質問が多かったためこれを解決できれば他の方の助けにもなりそうです。もしくは公式ドキュメントの改修をしていただけると一番助かります。

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 2, 2015, 12:26pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/3 "2015-08-02T12:26:31Z")

</div>

LANでやってみましたか？

[OnlineSubsystem]

DefaultPlatformService=Null

だけで。

そうしてプレイするときに、LANえらばなきゃ。

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 2, 2015, 1:37pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/4 "2015-08-02T13:37:44Z")

</div>

回答ありがとうございます。  
同一LAN内でプレイするということでしょうか？  
Onlinesubsystemを使わない場合はネットワークを使って外部のユーザーとプレイができないと認識しておりますが認識違いなのでしょうか？

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 2, 2015, 2:12pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/5 "2015-08-02T14:12:35Z")

</div>

OnlineSubsystemNullとHamachi使うと、LANの外部のユーザーとプレイできる。

もしかしたら、４．７バーションではOnlineSubsystemSteamの問題があったから、４８０IDはつかえない。

> **[Why can't find session in packaged Multiplayer Shootout wuth steam?](https://forums.unrealengine.com/showthread.php?69156-why-can-t-find-session-in-packaged-Multiplayer-Shootout-wuth-steam)**
>
> Hi, i enabled steam in Multiplayer Shootout example, so packaged game work anbd i see my steam name in hosted game but when i launched same packaged game on second PC with another steam account - i can’t find hosted game so why? i tryed switch...

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 2, 2015, 3:08pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/6 "2015-08-02T15:08:59Z")

</div>

バージョンは4.8であればappID480を使うことができるということでしょうか？  
HamachiをどのようにOnlinePlayershootOutに設定してあげれば良いのでしょうか？  
またこれは、FindSessionでサーバー検索を行うことが可能なのでしょうか？

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 2, 2015, 8:48pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/7 "2015-08-02T20:48:25Z")

</div>

Packaged Gameスタートするときに、右下Steamのアイコン出てきますか。それ出てこないなら、なにか設定的の間違いがあります。ここにDefaultEngine.iniについてもっと情報あります。

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Hamachiでは、あなたのLANの外の人はCreateSession参加できる。

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 2, 2015, 10:19pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/8 "2015-08-02T22:19:06Z")

</div>

回答ありがとうございます。

ということは

1.CreateSessionを行うユーザーはHamachiの設定を行いVPN構築

2.DefaultEngine.ini

[OnlineSubsystem]

DefaultPlatformService=Null

この手順でLAN外のユーザーがFindSessionで検索できjoinSessionでゲームに参加できるということですね。

Steamの方についても試してみます。  
二つの方法を実施して確認してみます。

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 4, 2015, 12:16am UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/9 "2015-08-04T00:16:58Z")

</div>

もしも、Hamachiを使わない場合はどのような方法が考えられるのでしょうか？

LAN外のユーザーがFIndSessionでサーバーリストを取得し任意のサーバーに参加できるようにしたいです。

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 4, 2015, 2:17pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/10 "2015-08-04T14:17:25Z")

</div>

Nullと他にHamachi見たいなネットソルーション使えないと、LAN外のユーザー参加できないです。

もう一回確かめたいですけど、SteamSubsytemで作ったPackaged Gameはスタートのときに右下Steamのアイコン出てきますか。

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 4, 2015, 3:25pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/11 "2015-08-04T15:25:44Z")

</div>

Packaged Gameでは右下にアイコンは出てきません。

エディタからスタンドアローン起動する場合はSteamオーバーレイが表示されます。

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 4, 2015, 5:03pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/12 "2015-08-04T17:03:38Z")

</div>

一回同じこと４．８３とか４．９でやってみてください。アイコン出てこないと、たぶんSteamでセッションつくれません。

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 4, 2015, 9:45pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/13 "2015-08-04T21:45:28Z")

</div>

別バージョンでも試してみます。

それから、SteamworksSDKの過去のバージョンのものをどのようにすれば入手できるのでしょうか？

v1.34が問題という可能性もあるのでそちらも試してみたいです。

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 5, 2015, 11:10am UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/14 "2015-08-05T11:10:55Z")

</div>

開発でパッケージ化すればSteamアイコンが出るようになりました。

しかし、サーバー検索にかかることはありませんでした。

SteamappID480を使っているからでしょうか？

また出荷でパッケージ化した場合Steamアイコンは出てきませんでした。

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 5, 2015, 1:46pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/15 "2015-08-05T13:46:55Z")

</div>

開発パッケージでSteamアイコン出るようにできておめでとうｗ。

あなたのプレジェクトのDefaultEngine.iniの一番上に「URL」書いてありますか。

[URL]  
GameName=あなたのプレジェクトの名前

現在は出荷パッケージについて考えなくてよいと思います。

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 5, 2015, 6:34pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/16 "2015-08-05T18:34:47Z")

</div>

URLは指定されていましたが、プロジェクト名と一致していませんでした。

こちらも一致させておく必要があるのでしょうか？

まずは、セッション作成とそのセッションを検索して参加できるようになれば良いので。

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [August 5, 2015, 7:24pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/17 "2015-08-05T19:24:09Z")

</div>

Hey there, i am sorry if you don’t understand english, because this is all japanese. Still i translated your text and see that you have problems with the sessions, steam and online playing. Maybe someone can translate my answer if the questioner doesn’t understand it.

OnlineSubsystem NULL limits you to LAN Games or Online games where you can only join over the IP. This is due to a missing Master Server. Without a Master Server, the Search Sessions Node (or C++ code) has nothing to ask for a Server List. This is where Steam and other Subsystems come in handy. Due to the AppID and Steams Master Server, you will be able to search and find online games. Although it could be that using the Test AppID 480 will not work.

Also Steam and other subsystems don’t work in the Editor. If you just press Play, you will always play with the NULL Subsystem.

You can start the game directly with “-game” in the command line of VS. You can also try to start it by going to the project directory and right clicking the .uproject file, selecting “Launch Game” or something like that.

If Steam is running and you set it up correctly, you will see the Steam Overlay popping up on the lower right side. If not, you may want to check the LOG Files and see what is going wrong.

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 6, 2015, 8:11am UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/18 "2015-08-06T08:11:23Z")

</div>

「Url」GameNameのプレジェクト名前はSession見つけるのために必要と思います。それでもSteamで作ったSession見つけないと、Log見てみてください。頑張ってｗ。

@eXi  
Yes thats basically what I wrote too　:) The SteamOverlay now pops up in his 4.8 Packaged Project, but he can’t find the session over steam. So last thing I told him is to include URL Name, which I think is necessary.

---

<div class="post-metadata">

**Author:** ![nullponull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nullponull](https://forums.unrealengine.com/u/nullponull)\
**Post date:** [August 6, 2015, 1:02pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/19 "2015-08-06T13:02:14Z")

</div>

URLを指定して見ましたがSearchSessionでサーバーを見つけることができませんでした。

自サイトにログファイルを貼り付けておきました。

[http://pocketstudio.isa-geek.org/archives/303/ログ.html](http://pocketstudio.isa-geek.org/archives/303/%E3%83%AD%E3%82%B0.html)

考えられる原因は何があるのでしょうか？

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [August 6, 2015, 2:33pm UTC](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327/20 "2015-08-06T14:33:54Z")

</div>

これはもしかしたらこっちのユーザと同じ問題です。

> **[Unreal Engine 4.8 Pre. 4 Steam Issues](https://forums.unrealengine.com/questions/237631/unreal-engine-48-pre-4-steam-issues.html)**
>
> Hello, I 've got some issues with the Multiplayer Sessions. I got the log here: 2015.06.03-17.23.25:224\]\[963\]LogOnline:Warning: STEAM: Failed to parse setting from key selected\_division\_68 value 1...

MultiplayerShootoutの場合には、ServerListウィジェットのRefreshListMacoの中のFindSession２０から１００に変化してみて。。。

[Next page](https://forums.unrealengine.com/t/multiplayershootout-onlineplay/327327.md?page=2)
