アシュリーたんが可愛すぎて生きるのが辛い 任天堂こんな可愛いキャラクタいつの間に生み出してたんや mix3です
Photon Cloud が何とか良くわかってないんだけど、とりあえず試したかった
ちなみに Linux SDK は さくらVPS で 試したところ make すら出来ませんでした
Linux SDK には勝てなかったよ…
MacOSX SDK の Demo を動かす
- MacOSX SDK をサイトからダウンロードして unzip
- Demos/demo_loadBalancing/iMac/demo_iMac_loadBalancing_cpp.xcodeproj を XCode で開きビルドする
- $ Demos/demo_loadBalancing/iMac/build/debug/demo_iMac_loadBalancing_cpp
always:
0 - exit
--------------------
outside a game room:
1 - create game
2 - join random game
--------------------
inside a game room:
1 - leave game
--------------------
connecting
2013-10-23 02:06:56,558781 ERROR NetworkLogic.cpp connectionErrorReturn() line: 217 - code: 1039
connection failed with error 1039
2013-10-23 02:06:56,559703 INFO NetworkLogic.cpp disconnectReturn() line: 281 -
disconnected
- connection failed するので NetworkLogic.cppを弄る
- 80行目 : mLoadBalancingClient(*this, L"if connecting to the exitgamescloud, replace this string with the application id, that can be found after logging in at http://exitgamescloud.com/Dashboard", appVersion, PLAYER_NAME)
- 100行目 mLoadBalancingClient.connect(L"localhost:5055"); // specify the ip and port of your local masterserver here; call the parameterless overload instead, if you want to connect to the exitgamescloud
- 80行目はL"YOUR_APP_ID"に変更, 100行目は Cloud を使うので空に変更
- 再度ビルド
- $ Demos/demo_loadBalancing/iMac/build/debug/demo_iMac_loadBalancing_cpp
always:
0 - exit
--------------------
outside a game room:
1 - create game
2 - join random game
--------------------
inside a game room:
1 - leave game
--------------------
connecting
2013-10-23 02:18:49,198122 INFO LoadBalancingClient.cpp onStatusChanged() line: 510 - connected to masterserver
2013-10-23 02:18:49,507223 INFO LoadBalancingPeer.cpp opAuthenticate() line: 100 - OperationRequest - operationCode: 230 {224="YOUR_APP_ID", 220="1.0", 225="OS X"}
2013-10-23 02:18:49,809279 INFO EnetPeer.cpp dispatchIncomingCommands() line: 290 - command to dispatch not yet needed
2013-10-23 02:18:49,810149 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 230, returnCode: 0 {}
2013-10-23 02:18:49,810900 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 226
2013-10-23 02:18:50,112417 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 229, returnCode: 0 {}
2013-10-23 02:18:50,113866 INFO NetworkLogic.cpp connectReturn() line: 268 -
connected
2013-10-23 02:18:50,114394 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 230
2013-10-23 02:18:54,824511 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 226
1creating game "-517133284"
2013-10-23 02:18:56,329376 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 227, returnCode: 0 {230="95.211.58.243:5056", 255="-517133284"}
2013-10-23 02:18:57,333041 INFO LoadBalancingClient.cpp onStatusChanged() line: 505 - connected to gameserver
2013-10-23 02:18:57,640726 INFO LoadBalancingPeer.cpp opAuthenticate() line: 100 - OperationRequest - operationCode: 230 {224="YOUR_APP_ID", 220="1.0", 225="OS X"}
2013-10-23 02:18:58,042258 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 230, returnCode: 0 {}
2013-10-23 02:18:58,444147 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 227, returnCode: 0 {254=1, 248={250=[]}}
2013-10-23 02:18:58,445078 INFO NetworkLogic.cpp createRoomReturn() line: 288 -
2013-10-23 02:18:58,445820 INFO NetworkLogic.cpp createRoomReturn() line: 296 - localPlayerNr: 1
game room "-517133284" has been created
regularly sending dummy events now
2013-10-23 02:18:58,446940 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 255
2013-10-23 02:18:58,447675 INFO NetworkLogic.cpp joinRoomEventAction() line: 242 - OS X joined the game
player 1 OS X has joined the game
sssssssssssssssssssssssssssssssssssssssssssssssssssssss1ss
leaving game room
2013-10-23 02:19:04,472288 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 254, returnCode: 0 {}
2013-10-23 02:19:05,478600 INFO LoadBalancingClient.cpp onStatusChanged() line: 510 - connected to masterserver
2013-10-23 02:19:05,786180 INFO LoadBalancingPeer.cpp opAuthenticate() line: 100 - OperationRequest - operationCode: 230 {224="YOUR_APP_ID", 220="1.0", 225="OS X"}
2013-10-23 02:19:06,088374 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 226
2013-10-23 02:19:06,089500 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 230, returnCode: 0 {}
2013-10-23 02:19:06,390775 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 229, returnCode: 0 {}
2013-10-23 02:19:06,391676 INFO NetworkLogic.cpp leaveRoomReturn() line: 336 -
game room has been successfully left
2013-10-23 02:19:06,392076 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 230
0terminating application
2013-10-23 02:19:11,103029 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 226
2013-10-23 02:19:11,404197 INFO NetworkLogic.cpp disconnectReturn() line: 281 -
disconnected
という感じで動くことを確認 ターミナルを二つ開いて
- Aが create game
- Bが random join game(gameが一つしかないので多分確定でAのいるところへ行く)
- Bが leave game
- Aが leave game
みたいなことが出来ることも確認できた
これで何かする予定もないので、これぐらいで今は満足満足