Skip to content

dcortez/7d2d-beam-interactive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

7 Days to Die - ScottyBot Integration (Python)

YOU MUST INSTALL PYTHON 3.3 or ABOVE


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.


CAVEATS

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

  1. Download and install Python 3.3 or above

  2. 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)
  1. Open the scottyint.py script (open with text editor of your choosing)

    • Change the info on line's 14 & 18 - 21
    • Save the changes
  2. 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

  1. 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)

You have to add the following commands and costs to Scotty Bot. (costs are up to you)

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)

Helpful Items

  1. !item

    • Spawns a RANDOM item from every spawanable item in the game
  2. !health

    • Spawns a RANDOM Health item
  3. !food

    • Spawns a RANDOM food item
  4. !animal

    • Spawns a RANDOM animal (except bears)
  5. !quest

    • Spawns a RANDOM quest
  6. !airdrop

    • Spawns an airdrop
  7. !weapon

    • Spawns a RANDOM weapon (ammunition also included)
  8. !explosives

    • Spawns a RANDOM explosive item
  9. !clothes

    • Spawns a RANDOM piece of clothing
  10. !tool

    • Spawns a RANDOM tool

Harmful Items

  1. !enemy

    • Spawns a RANDOM zombie (including hornets, dogs, bears, and zombie bears)
  2. !feral

    • Spawns a feral
  3. !screamer

    • Spawns a screamer
  4. !horde

    • Spawns a wandering horde

MORE TO COME....

Helpful or Harmful

  1. !buff
    • Still decideing how these will work
  2. !debuff
    • Still decideing how these will work

About

7 Days To Die - Interactive Plugin for Beam.pro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages