ATTENTION: THIS REPO IS OBSOLETE. I wrote it for an older version of the old UI. With new features and especially new UI added, it would take some effort to adapt the code...and I don't have the time. So, until the developer of ETT has added official following feature to the spectator, I'd recommend trying https://github.com/fabioedoardoluigialberto/ett_auto_spectate_simple instead.
This script runs on PC. It will make the 2D Eleven Table Tennis PC version automatically follow ETT matches played on the headset.
Example video: https://www.youtube.com/watch?v=NF-jWgePDrM
-
Install ETT on PC (from either Steam or Oculus PC app).
-
Double click
ElevenStartJust2d.bat
file in PC ETT installation folder to run the game in 2d.-
If the game is not running in full screen mode, press
alt+enter
to make sure it is in full screen. -
Adjust view to how you want to spectate the game (WASDQE to move camera position, right mouse click&drag to pan around.). Then Use
(left)shift+8
to save this view. It will be used later as the spectatoring view. -
Exit 2d ETT.
-
-
These steps are for Windows users:
-
Download the latest executable file from https://github.com/jerryfromearth/ett-auto-spectate/releases and save it whenever you want. It bundled all the dependencies, so you shouldn't even need to install python.
-
Create a
username.txt
file next to the executable and write your ETT username in it. Save it.
-
-
These steps are for non-Windows users:
-
Install Python 3 if you haven't. (https://www.python.org/downloads/)
-
Download the latest source code zip from https://github.com/jerryfromearth/ett-auto-spectate/releases/, extract/decompress the
ett-auto-spectate
folder to any place you want. -
Create a
username.txt
file inett-auto-spectate
and write your ETT username in it. Save it. -
Double click
prepare.bat
inett-auto-spectate
folder to install the dependencies locally.
-
-
Make sure headset isn't plugged to the PC. Launch ETT on your headset, click "OK" and make sure it has at least loaded the friend list.
-
Unequip headset for now.
-
Double click
ElevenStartJust2d.bat
file in PC ETT installation folder to run the game in 2d. If it's not using full screen, press alt+enter. Since your main ETT account has logged in on the headset, the PC version will login with the "_guest" account. Do not change the camera view!- Make sure the "_guest" account" has and only has one friend, which is your main account (which is running on the headset).
-
Either run
ett-auto-spectate.exe
(if you are on Windows) or executepython ett-auto-spectate.py
(if you are NOT on Windows) inett-auto-spectate
folder. If all checks passed, the script should output something likeWaiting until user <your-user-name> is in a room...
. Minimize the script window if you only have one monitor. Otherwise make sure it's not on the main monitor. -
Again, make sure the 2d ETT is running on the main monitor and using full screen. No other window should be in front of it.
-
Put on the headset and start playing. Now the 2D ETT will automatically join the room when you join one (you can see it in the "room user list" on the right side in ETT), and leave when you leave one.
Note: After you join a room, always wait 5-10 seconds (use the time to greet opponent etc.) to give the 2D ETT enough time to join the room. If it joins the room during a match, glitches might happen (ball reset might be needed to resolve it).
To streamline the whole experience, I wrote this windows batch file (you will need to edit the paths, obviously):
cd /D G:\Oculus\Software\Software\for-fun-labs-eleven-table-tennis-vr
call ElevenStartJust2d.bat
cd /D E:\obs-studio\bin\64bit\
start obs64.exe --startrecording --minimize-to-tray
timeout 20
cd /D C:\Users\Jerry\Desktop\ETT\ett-auto-spectate
start ett-auto-spectate.exe
Please contact SolidSlime#2677 on discord for questions.
I recommend to use the scoreboard overlay by Cristy94(XCS): https://github.com/Cristy94/eleven-vr-scoreboard
- Exit room only works when a match has ended
- Make other resolutions work
- Write more instructions
- OCR the texts
- Handle the case when spectator is kicked out from the room (don't rejoin)
- Enable ping ball?