1. When making a thread, please tag your thread accordingly using the menu to the left of the textfield where you name your thread where applicable. Server Advertisements and Mod Releases should be contained to their respective subforums.

Server Discussion StarryPy - A plugin driven server wrapper written in Python.

Discussion in 'Multiplayer' started by Carrots Are Mediocre, Jan 29, 2014.

  1. When is going to be a release at once? Tests everywhere!
    Also any news on the wrapper capability to restart the parent server in case of crash or non-responding?
     
  2. lordglythglyth

    lordglythglyth Pangalactic Porcupine

    um i cantinstall python my server i get error 403 or somthing ithe server is linux

    Code:
    root@labloodserver:/home/starbound/starbound/linux64# sudo apt-get install pytho                                                                                                                                  n2.7 python-dev python-pip git
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
      build-essential cpp cpp-4.7 dpkg-dev fakeroot g++ g++-4.7 gcc gcc-4.7
      git-man libalgorithm-diff-perl libalgorithm-diff-xs-perl
      libalgorithm-merge-perl libc-bin libc-dev-bin libc6 libc6:i386 libc6-dev
      libcurl3:i386 libcurl3-gnutls libdpkg-perl liberror-perl libexpat1
      libexpat1:i386 libexpat1-dev libfile-fcntllock-perl libgmp10 libitm1 libmpc2
      libmpfr4 libpython2.7 libquadmath0 librtmp0 libssl-dev libssl-doc
      libssl1.0.0 libssl1.0.0:i386 libstdc++6-4.7-dev libtimedate-perl
      linux-libc-dev manpages-dev patch python python-minimal python-pkg-resources
      python-setuptools python2.7-dev python2.7-minimal zlib1g-dev
    Suggested packages:
      cpp-doc gcc-4.7-locales debian-keyring g++-multilib g++-4.7-multilib
      gcc-4.7-doc libstdc++6-4.7-dbg gcc-multilib autoconf automake1.9 libtool
      flex bison gdb gcc-doc gcc-4.7-multilib libmudflap0-4.7-dev libgcc1-dbg
      libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold
      git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
      git-email git-gui gitk gitweb glibc-doc glibc-doc:i386 locales:i386
      libstdc++6-4.7-doc diffutils-doc python-doc python-tk python-distribute
      python-distribute-doc python2.7-doc
    Recommended packages:
      python-dev-all
    The following NEW packages will be installed:
      build-essential cpp cpp-4.7 dpkg-dev fakeroot g++ g++-4.7 gcc gcc-4.7 git
      git-man libalgorithm-diff-perl libalgorithm-diff-xs-perl
      libalgorithm-merge-perl libc-dev-bin libc6-dev libcurl3-gnutls libdpkg-perl
      liberror-perl libexpat1-dev libfile-fcntllock-perl libgmp10 libitm1 libmpc2
      libmpfr4 libquadmath0 librtmp0 libssl-dev libssl-doc libstdc++6-4.7-dev
      libtimedate-perl linux-libc-dev manpages-dev patch python-dev python-pip
      python-pkg-resources python-setuptools python2.7-dev zlib1g-dev
    The following packages will be upgraded:
      libc-bin libc6 libc6:i386 libcurl3:i386 libexpat1 libexpat1:i386
      libpython2.7 libssl1.0.0 libssl1.0.0:i386 python python-minimal python2.7
      python2.7-minimal
    13 upgraded, 40 newly installed, 0 to remove and 231 not upgraded.
    Need to get 34.5 MB/82.7 MB of archives.
    After this operation, 141 MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libssl1.0.0 i386 1.0.                                                                                                                                  1c-3ubuntu2.5
      404  Not Found [IP: 91.189.91.15 80]
    Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl3-gnutls amd64                                                                                                                                    7.27.0-1ubuntu1.4
      404  Not Found [IP: 91.189.91.15 80]
    Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl3 i386 7.27.0-                                                                                                                                  1ubuntu1.4
      404  Not Found [IP: 91.189.91.15 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main libssl1.0.0 i386 1.                                                                                                                                  0.1c-3ubuntu2.5
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main libssl1.0.0 amd64 1                                                                                                                                  .0.1c-3ubuntu2.5
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main linux-libc-dev amd6                                                                                                                                  4 3.5.0-44.67
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main libpython2.7 amd64                                                                                                                                    2.7.3-5ubuntu4.3
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main python2.7 amd64 2.7                                                                                                                                  .3-5ubuntu4.3
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main python2.7-minimal a                                                                                                                                  md64 2.7.3-5ubuntu4.3
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main libssl-dev amd64 1.                                                                                                                                  0.1c-3ubuntu2.5
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main libssl-doc all 1.0.                                                                                                                                  1c-3ubuntu2.5
      404  Not Found [IP: 91.189.92.200 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main python2.7-dev amd64                                                                                                                                    2.7.3-5ubuntu4.3
      404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.                                                                                                                                  0_1.0.1c-3ubuntu2.5_i386.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.                                                                                                                                  0_1.0.1c-3ubuntu2.5_amd64.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3-gnutl                                                                                                                                  s_7.27.0-1ubuntu1.4_amd64.deb  404  Not Found [IP: 91.189.91.15 80]
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3_7.27.                                                                                                                                  0-1ubuntu1.4_i386.deb  404  Not Found [IP: 91.189.91.15 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-d                                                                                                                                  ev_3.5.0-44.67_amd64.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/libpytho                                                                                                                                  n2.7_2.7.3-5ubuntu4.3_amd64.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.                                                                                                                                  7_2.7.3-5ubuntu4.3_amd64.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.                                                                                                                                  7-minimal_2.7.3-5ubuntu4.3_amd64.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev                                                                                                                                  _1.0.1c-3ubuntu2.5_amd64.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-doc                                                                                                                                  _1.0.1c-3ubuntu2.5_all.deb  404  Not Found [IP: 91.189.92.200 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.                                                                                                                                  7-dev_2.7.3-5ubuntu4.3_amd64.deb  404  Not Found [IP: 91.189.92.200 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis    
     
    Last edited: Mar 9, 2014
  3. mattmonkey24

    mattmonkey24 Void-Bound Voyager

    basically the "404 Not Found" means the files aren't there, and i'm sure there is a way to change where you download python from, but i suck at linux and i don't know how, maybe google or someone else could help out with that.
    also, since you have ubuntu, you should already have python2.7 so you don't need to download that. you could try and get the dependencies from somwhere other than ubuntu's website since that didn't seem to work
     
    Last edited: Mar 9, 2014
  4. traxo

    traxo Phantasmal Quasar

    These errors are often caused by old package lists. Did you update the lists with "apt-get update" before trying to install the packages?
     
  5. mattmonkey24

    mattmonkey24 Void-Bound Voyager

    @traxo i can't seem to download your web gui from github, when i use "git clone https://github.com/traxo-xx/StarryPy_plugins.git" it doesn't download your web gui

    edit:from that link, i downloaded the zip which has the web-gui, but i wasn't able to make git give me the web-gui plugin folder
    i have the web-gui working, its AWESOME! i just wish i could make git clone work to simplify updates
     
    Last edited: Mar 9, 2014
  6. lordglythglyth

    lordglythglyth Pangalactic Porcupine

    Code:
    root@labloodserver:/home/starbound/starbound/StarryPy# python server.py
    Locale not found. Using default messages.
    The configuration file (config.json) doesn't exist! Creating one from defaults.
    StarryPy will now exit. Please examine config.json and adjust the variables appropriately.
    
    
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    
    root@labloodserver:/home/starbound/starbound/StarryPy# python server.py        Locale not found. Using default messages.
    2014-03-09 23:21:33,995 - starrypy - CRITICAL - The starbound server is not connectable at the address localhost:21024.
    2014-03-09 23:21:33,995 - starrypy - CRITICAL - Please ensure that you are running starbound_server on the correct port and that is reflected in the StarryPy configuration.
    
    
    
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    
    
    oot@labloodserver:/home/starbound/starbound# cd linux64
    root@labloodserver:/home/starbound/starbound/linux64# sudo pip install -r StarryPy/requirements.txt
    Requirement already satisfied (use --upgrade to upgrade): sqlalchemy in /usr/local/lib/python2.7/dist-packages (from -r StarryPy/requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): twisted in /usr/local/lib/python2.7/dist-packages (from -r StarryPy/requirements.txt (line 2))
    Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from -r StarryPy/requirements.txt (line 3))
    Requirement already satisfied (use --upgrade to upgrade): construct in /usr/local/lib/python2.7/dist-packages (from -r StarryPy/requirements.txt (line 4))
    Requirement already satisfied (use --upgrade to upgrade): nose in /usr/local/lib/python2.7/dist-packages (from -r StarryPy/requirements.txt (line 5))
    Requirement already satisfied (use --upgrade to upgrade): zope.interface>=3.6.0 in /usr/local/lib/python2.7/dist-packages (from twisted->-r StarryPy/requirements.txt (line 2))
    Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from construct->-r StarryPy/requirements.txt (line 4))
    Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages (from zope.interface>=3.6.0->twisted->-r StarryPy/requirements.txt (line 2))
    Cleaning up...
    
    
    
    i need help
     
  7. traxo

    traxo Phantasmal Quasar

    Really weird. What exactly happens when you try to git clone the repository? Any errors?
     
  8. mattmonkey24

    mattmonkey24 Void-Bound Voyager

    the first thing with the configuration file is normal
    read the readme! change the port that starbound runs on to 21024. also make sure to start the starbound server first, let it load, then start StarryPy
     
  9. lordglythglyth

    lordglythglyth Pangalactic Porcupine

    i dono how to change the port i rent the server
     
  10. mattmonkey24

    mattmonkey24 Void-Bound Voyager

    Code:
    root@debian-server:/home/matthew# cd /home
    root@debian-server:/home# git clone https://github.com/traxo-xx/StarryPy_plugins.git
    Cloning into 'StarryPy_plugins'...
    remote: Counting objects: 953, done.
    remote: Compressing objects: 100% (643/643), done.
    remote: Total 953 (delta 292), reused 888 (delta 247)
    Receiving objects: 100% (953/953), 2.06 MiB | 128 KiB/s, done.
    Resolving deltas: 100% (292/292), done.
    root@debian-server:/home#
    
    it runs it perfectly, but it downloads the StarryPy_plugins without the Web_Gui folder, StarryPy server status, and without Notify My Android

    chat in the webgui also doesn't work and i can't seem to forward the port for the WebGui so people outside my network can access it

    edit: i was trying to use the internal ip address from outside my home network :p so i got the port forwarding working
     
    Last edited: Mar 9, 2014
  11. mattmonkey24

    mattmonkey24 Void-Bound Voyager

    what kind of server do you rent?
    all you should have to change is in the starbound.config go to the line that says "gameport" and change it from 21025 to 21024
     
  12. lordglythglyth

    lordglythglyth Pangalactic Porcupine

    removed
     
    Last edited: Mar 9, 2014
  13. mattmonkey24

    mattmonkey24 Void-Bound Voyager

    just as you normally would. i type in [192.168.0.138] other people type in only my external ip address with no port at the end
    basically changing the gameport makes it so that people connect to StarryPy and through StarryPy they connect to starbound


    i still don't have chat working on Traxo's web_gui; can anyone help me? irc is the only plugin i have disabled
     
  14. lordglythglyth

    lordglythglyth Pangalactic Porcupine

    Code:
    root@labloodserver:/home/starbound/StarryPy# python server.py
    Locale not found. Using default messages.
    2014-03-10 00:22:34,244 - starrypy - INFO - Started StarryPy server version 1.3.2
    2014-03-10 00:22:34,378 - starrypy.plugin_manager.PluginManager - CRITICAL - A plugin reported a fatal error. Error: Could not open starbound configuration file. Tried path: FilePath(u'/opt/starbound/starbound.config')
    2014-03-10 00:22:34,378 - starrypy - CRITICAL - Shutting Down.
    
    
    
    
    and this is my config file

    Code:
    {
        "bind_address": "",
        "bind_port": 21025,
        "chat_prefix": "#",
        "chattimestamps": true,
        "colors": {
            "admin": "^#C443F7;",
            "default": "^#F7EB43;",
            "guest": "^#F7EB43;",
            "irc": "^#e39313;",
            "moderator": "^#4385F7;",
            "owner": "^#F7434C;",
            "registered": "^#A0F743;"
        },
        "command_prefix": "/",
        "core_plugin_path": "core_plugins",
        "debug_file": "debug.log",
        "logging_format_console": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
        "logging_format_debugfile": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
        "logging_format_logfile": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
        "owner_uuid": "!!--REPLACE THIS--!!",
        "passthrough": false,
        "player_db": "config/player.db",
        "plugin_config": {
            "admin_messenger": {
                "auto_activate": true
            },
            "afk_plugin": {
                "afk_msg": "is now AFK",
                "afkreturn_msg": "has returned",
                "auto_activate": true
            },
            "announcer_plugin": {
                "auto_activate": true
            },
            "bookmarks_plugin": {
                "auto_activate": true
            },
            "chat_logger": {
                "auto_activate": true
            },
            "colored_names_plugin": {
                "auto_activate": true
            },
            "command_dispatcher": {
                "auto_activate": true
            },
            "emotes_plugin": {
                "auto_activate": true
            },
            "irc": {
                "auto_activate": false,
                "bot_nickname": "botname",
                "channel": "#channel",
                "color": "^#e39313;",
                "echo_from_channel": true,
                "nickserv_password": "password",
                "port": 6667,
                "server": "irc.freenode.net"
            },
            "loginwho_plugin": {
                "auto_activate": true
            },
            "motd_plugin": {
                "auto_activate": true,
                "motd": "Welcome to the server! Play nice."
            },
            "mute_manager": {
                "auto_activate": true
            },
            "new_player_greeter_plugin": {
                "auto_activate": true,
                "items": [],
                "message": "Welcome new Starbounder ;)"
            },
            "planet_protect": {
                "auto_activate": true,
                "bad_packets": [
                    "CONNECT_WIRE",
                    "DISCONNECT_ALL_WIRES",
                    "OPEN_CONTAINER",
                    "CLOSE_CONTAINER",
                    "SWAP_IN_CONTAINER",
                    "DAMAGE_TILE",
                    "DAMAGE_TILE_GROUP",
                    "REQUEST_DROP",
                    "MODIFY_TILE_LIST"
                ],
                "blacklist": [
                    "bomb",
                    "bombblockexplosion",
                    "boneswoosh",
                    "bouldersmashexplosion",
                    "bouncycluster",
                    "bouncyclustergrenade",
                    "cluster",
                    "clustergoo",
                    "clustergrenade",
                    "defensiveexplosion",
                    "dungeonpodexplosion",
                    "electricexplosion",
                    "electrogrenade",
                    "explosivebullet",
                    "explosivegoo",
                    "fireexplosion",
                    "friendlyboneexplosion",
                    "gas",
                    "gas2",
                    "gasgrenade",
                    "glowbomb",
                    "glowgas",
                    "gravitybomb",
                    "grenade",
                    "grenade",
                    "grenadeexplosion",
                    "icestorm",
                    "impactgrenade",
                    "invisibleprojectile",
                    "jellybossexplode",
                    "jellybossgoo",
                    "jumpbomb",
                    "jumpgas",
                    "largemeteor",
                    "lavaballoon",
                    "lavaprojectile",
                    "magicmolotov",
                    "megabeam",
                    "meteor",
                    "meteorblockprojectile",
                    "meteorblockspawner",
                    "meteorexplosion",
                    "molotov",
                    "molotovflame",
                    "nail",
                    "nailbomb",
                    "plasmabullet",
                    "plasmaexplosion2",
                    "plasmagrenade",
                    "plasmatorpedo",
                    "poisonsmoke",
                    "poisonstatusprojectile",
                    "poopbreath",
                    "pulsecannon",
                    "pulsecannonexplosion",
                    "purpleplasma",
                    "regularexplosion",
                    "regularexplosion2",
                    "regularexplosionnospark",
                    "rocket",
                    "rocketexplosion",
                    "runbomb",
                    "rungas",
                    "shockbomb",
                    "smallmeteor",
                    "smallregularexplosion",
                    "targetexplosion",
                    "vsmallregularexplosion",
                    "vsmallregularexplosionnodamage",
                    "water",
                    "zbomb",
                    "spinningrocket",
                    "stationaryrocket"
                ],
                "player_planets": {},
                "protect_everything": false,
                "protected_planets": []
            },
            "planet_visitor_announcer_plugin": {
                "auto_activate": true
            },
            "planet_warps_plugin": {
                "auto_activate": true
            },
            "player_manager": {
                "auto_activate": true,
                "name_removal_regexes": [
                    "\\^#[\\w]+;",
                    "[^ \\w]+"
                ]
            },
            "players_plugin": {
                "auto_activate": true
            },
            "plugin_manager": {
                "auto_activate": true
            },
            "pushover_plugin": {
                "auto_activate": false
            },
            "starbound_config_manager": {
                "auto_activate": true
            },
            "starteritems_plugin": {
                "auto_activate": true,
                "items": [
                    [
                        "bandage",
                        20
                    ],
                    [
                        "burger",
                        20
                    ],
                    [
                        "stoneaxe",
                        1
                    ],
                    [
                        "stonehoe",
                        1
                    ],
                    [
                        "stonepickaxe",
                        1
                    ],
                    [
                        "solariumore",
                        30
                    ],
                    [
                        "money",
                        1000
                    ]
                ],
                "message": "You were given a set of starter items ;)"
            },
            "uptime_plugin": {
                "auto_activate": true
            },
            "user_management_commands": {
                "auto_activate": true
            },
            "warpy_plugin": {
                "auto_activate": true
            }
        },
        "plugin_path": "plugins",
        "port_check": true,
        "reap_time": 10,
        "server_connect_timeout": 5,
        "starbound_path": "/opt/starbound/",
        "upstream_hostname": "localhost",
        "upstream_port": 21024
    }
    
    /home/starbound/StarryPy
    this is directory its in
     
    Last edited: Mar 9, 2014
  15. Higgins

    Higgins Tentacle Wrangler

    Any idea how to get the watchdog working?
     
  16. Snowpup

    Snowpup Giant Laser Beams

    Has ANYBODY figure out the fix to protected planets and registered users?
     
  17. mattmonkey24

    mattmonkey24 Void-Bound Voyager

    @lordglythglyth at the very bottom of the .json you can see starbound_path and that need to be changed to /home/starbound/starbound
    @Higgins im not really sure what that does but I suggest just using starrypy 1.x because there is no support or plugins for starrypy3k
    @Snowpup I cant really help you there. Why not just rank people up by one so they can get past planet_protect?

    I still need help too with the web_gui because the chat box isnt working on it
     
  18. FuzzyThor

    FuzzyThor Existential Complex

    @lordglythglyth Usually on rented servers you are only able to use the ports the host gives you. So in this case you cant use the standard ports.
    What is you server host and what is your package? Like is it a dedicated server or is it a virtual server?
     
  19. Snowpup

    Snowpup Giant Laser Beams

    That is what I was doing. I would type "/promote name registered" and have it work succesfully, green names, yada yada, but they cannot build or destroy. It seems they can place items but not destroy or pick them up once destroyed.
     
  20. lordglythglyth

    lordglythglyth Pangalactic Porcupine

    how i make my self admin with out web ui as i dono how to set up a web ui
     

Share This Page