This was created to give streamers a little more control than using the Beam Interactive. With Beam Interactive you are using Sparks to interact with the streamer. If something goes wrong the streamer has no way of refunding Sparks. Sparks are only gained by watching streams and takes a while to get a decent amount. Most streamers dont want to be trolled so bad that they cant enjoy the game and will set their interactions at a high spark cost. This will disscourage the viewer from interacting. With ScottyBot integration the streamer has full control over the costs and viewers can earn points easier and in more ways than they can with Sparks.
NOTE: YOU MUST HAVE A DEDICATED SERVER WITH TELNET ENABLED, THIS WILL NOT CONNECT TO GAME CLIENT!
you should have a serverconfig.xml file with the following lines:
<property name="TelnetPassword" value="<TELNET_PASSWORD>"/>
<property name="TelnetPort" value="<TELNET_PORT>"/>
<property name="TelnetEnabled" value="true"/>
These instructions have been tested and work on Windows/Linux/mac
-
Download and install Python 3.3 or above
- Follow instructions at - https://www.python.org/downloads/
-
Download our files (click Clone or Download button)
- Download the files and folders (will download 7d2d-beam-interactive-scotty-integration.zip)
- Unzip the files into an easy to remember location (will create a folder called 7d2d-beam-interactive-scotty-integration)
-
Open the scottyint.py script (open with text editor of your choosing)
- Change the info on line's 14 & 18 - 21
- Save the changes
-
Open cmd(windows) or terminal(linux/unix)
- cd to the directory where you unziped the files in step 2.
- Run the scottyint script
- py -3 scottyint.py (windows)
- python3 scottyint.py (linux/unix)
While the interactive is running you will see in terminal a bunch of lines that look like:
send: b'\x81\xaa\xbc-\x19\xcf\xc7\x0f}\xae\xc8L;\xf5\x9c\x0fz\xa0\xd1@x\xa1\xd8^;\xe3\x9c\x0f|\xb9\xd9Cm\xed'
This is completely normal. It is the ping going to the scottybot to keep it alive. If you do not want to see this comment out line 199 of the scottyint.py file. You can do this by changing the line to # websocket.enableTrace(True)
To close out the interactive ctrl + c or hit the x int the right hand cornor of the terminal window
If you get module errors when trying to run
- Open cmd(windows) or terminal(linux/unix)
- Install websocket module
- pip3 install websocket (windows) (If if it warns about pip being outdated update it)
- sudo pip3 install websocket-client (linux/unix)
- linux pip3 uses gcc to compile the modules and gcc looks for a valid Python.h header, which on many Unbuntu/Debian based systems very well may fail as it will look for a Python V2 header that it may or may not find and may or may not be a version mismatch. (Thanks Bobofett for this knowledge)
- Install websocket module
Below are the commands that are in the scottyint.py file. You can name your commands whatever you want in Scotty Bot, but you will have to manually change them to match in the scottyint.py file. I will make it more smarter later so you will be able to use whatever command you want and not change the scottybotint.py file.... (yes I said more smarter! LMAO)
-
!item
- Spawns a RANDOM item from every spawanable item in the game
-
!health
- Spawns a RANDOM Health item
-
!food
- Spawns a RANDOM food item
-
!animal
- Spawns a RANDOM animal (except bears)
-
!quest
- Spawns a RANDOM quest
-
!airdrop
- Spawns an airdrop
-
!weapon
- Spawns a RANDOM weapon (ammunition also included)
-
!explosives
- Spawns a RANDOM explosive item
-
!clothes
- Spawns a RANDOM piece of clothing
-
!tool
- Spawns a RANDOM tool
-
!enemy
- Spawns a RANDOM zombie (including hornets, dogs, bears, and zombie bears)
-
!feral
- Spawns a feral
-
!screamer
- Spawns a screamer
-
!horde
- Spawns a wandering horde
- !buff
- Still decideing how these will work
- !debuff
- Still decideing how these will work