BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Samples / VrBoardGame / Readme.md

Readme.md

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
Readme.md 2.9 KiB Download Raw

Overview

This example demonstrates using the Oculus In-App-Purchase API and skill based matchmaking. The setting is a simple boardgame (which you are encourage to chage to your creative idea!) on a 3x3 grid with two pieces and one special 'power-piece' that can be purchased with IAP through the Oculus Store. After an Online match is completed the ranking is sent to the Matchmaking Service so that following match selections will take into account a user's skill level.

Application Setup

1. Open the Project in Unity 5.4.1p1 or later 2. Import the OculusPlatform Unity package

  • Unity: Main Menu -> Assets -> Import Package -> Custom Package
  • SDK Location: Unity/OculusPlatform.unitypackage

Rift

1. Create your Rift application on the Oculus Developer Dashboard 2. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Oculus Rift App Id)

GearVR

1. Create the GearVR application on the Oculus Developer Dashboard 2. Move the GearVR application into the Rift application's App Grouping 3. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Gear VR App Id) 4. Copy the OSIG files for the GearVR devices you are testing to Assets\Plugins\Android\Assets

Configure Matchmaking

1. On the Oculus Dashboard, navigate to the Matchmaking section for your App Grouping 2. Change the option box from 'Pools' to 'Skill Pools' 3. Click Create Pool 4. Set the 'Skill Pool Key' to ''VR_BOARD_GAME'' 5. Select ''Medium'' for the 'Luck Factor' 6. Enter ''0'' for the 'Draw Probability 7. Click 'Save & Deploy' 8. Change the option box 'Skill Pools' to 'Pools' 9. Click Create Pool 10. Set the 'Pool Key' to ''VR_BOARD_GAME_POOL'' 11. Set the Mode to Quickmatch 12. Enter ''2'' for both the Min and Max Users 13. Select ''VR_BOARD_GAME'' for the 'Skill Pool' 14. Leave 'Advanced Quickmatch' set to ''No'' 15. Leave 'Should Consider Ping Time?' at the default setting of ''No'' 16. Click 'Save & Deploy'

Configure IAP

1. On the Oculus Dashboard, make sure the Payment Info is setup for your Organization 2. Navigate to the IAP tab under your App Grouping 3. Select the Upload TSV button and choose the Oculus_IAP.tsv in the project root directory.

Upload your builds

Build executables from Unity and upload them to your Application Dashboard

  • Rift

1. Add the executable and data folder to a zip file 2. Upload the zip to the Alpha channel on your Dashboard 3. Set the executable name you chose in the zip file 4. Add Friends you are testing with as Subscribed Users for the Alpha channel

  • GearVR

1. Create an android keystore (if you don't have one) so Unity can sign the build. (Player Settings -> Publishing Settings) 2. Upload the apk to the Alpha channel on your Dashboard 3. Each apk you upload needs a new build number (Player Settings -> Other Settings) 4. Add Friends you are testing with as Subscribed Users for the Alpha channel

Source
1# Overview
2
3This example demonstrates using the Oculus In-App-Purchase API and skill based matchmaking.
4The setting is a simple boardgame (which you are encourage to chage to your creative idea!)
5on a 3x3 grid with two pieces and one special 'power-piece' that can be purchased with
6IAP through the Oculus Store. After an Online match is completed the ranking is sent to
7the Matchmaking Service so that following match selections will take into account a user's
8skill level.
9
10# Application Setup
11
121. Open the Project in Unity 5.4.1p1 or later
132. Import the OculusPlatform Unity package
14 - Unity: Main Menu -> Assets -> Import Package -> Custom Package
15 - SDK Location: Unity/OculusPlatform.unitypackage
16
17## Rift
181. Create your Rift application on the Oculus Developer Dashboard
192. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Oculus Rift App Id)
20
21## GearVR
221. Create the GearVR application on the Oculus Developer Dashboard
232. Move the GearVR application into the Rift application's App Grouping
243. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Gear VR App Id)
254. Copy the OSIG files for the GearVR devices you are testing to Assets\Plugins\Android\Assets
26
27# Configure Matchmaking
28
291. On the Oculus Dashboard, navigate to the Matchmaking section for your App Grouping
302. Change the option box from 'Pools' to 'Skill Pools'
313. Click Create Pool
324. Set the 'Skill Pool Key' to ''VR_BOARD_GAME''
335. Select ''Medium'' for the 'Luck Factor'
346. Enter ''0'' for the 'Draw Probability
357. Click 'Save & Deploy'
368. Change the option box 'Skill Pools' to 'Pools'
379. Click Create Pool
3810. Set the 'Pool Key' to ''VR_BOARD_GAME_POOL''
3911. Set the Mode to Quickmatch
4012. Enter ''2'' for both the Min and Max Users
4113. Select ''VR_BOARD_GAME'' for the 'Skill Pool'
4214. Leave 'Advanced Quickmatch' set to ''No''
4315. Leave 'Should Consider Ping Time?' at the default setting of ''No''
4416. Click 'Save & Deploy'
45
46# Configure IAP
47
481. On the Oculus Dashboard, make sure the Payment Info is setup for your Organization
492. Navigate to the IAP tab under your App Grouping
503. Select the Upload TSV button and choose the Oculus_IAP.tsv in the project root directory.
51
52# Upload your builds
53
54Build executables from Unity and upload them to your Application Dashboard
55* Rift
56 1. Add the executable and data folder to a zip file
57 2. Upload the zip to the Alpha channel on your Dashboard
58 3. Set the executable name you chose in the zip file
59 4. Add Friends you are testing with as Subscribed Users for the Alpha channel
60* GearVR
61 1. Create an android keystore (if you don't have one) so Unity can sign the build. (Player Settings -> Publishing Settings)
62 2. Upload the apk to the Alpha channel on your Dashboard
63 3. Each apk you upload needs a new build number (Player Settings -> Other Settings)
64 4. Add Friends you are testing with as Subscribed Users for the Alpha channel