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. iZed

    iZed Orbital Explorer

    Im trying to start it on Spirited Giraffe - Update 5 version.
    StarryPy and Server starts fine.
    Im trying to connect and have error in game: Client-server connection no longer valid.
    Starbound Server console says:
    Code:
    Info: UniverseServer: Connection received from: 127.0.0.1:60714
    Info: UniverseServer: Logged in account '<anonymous>' as player 'Zed' from address 127.0.0.1
    Info: UniverseServer: Reviving player at ClientShipWorld:8e84ed405d525c9315b689389df085a0
    Info: UniverseServer: Client 'Zed' <1> (127.0.0.1) connected
    Info: UniverseServer: Loading client ship world ClientShipWorld:8e84ed405d525c9315b689389df085a0
    Info: UniverseServer: Loading celestial world 817679392:33226925:-104037870:2:5
    Info: UniverseServer: Client 'Zed' <1> (127.0.0.1) connection lost
    Info: UniverseServer: Client 'Zed' <1> (127.0.0.1) disconnected
    
    And i have alot errors in StarryPy console.

    Code:
    zet@z-server:~/server/StarryPy$ python server.py
    Attempting initialization of configuration manager singleton.
    Setup console logging...
    Setup file-based logging...
    2015-06-11 05:34:15,434 - DEBUG - starrypy # Port check enabled. Performing port check to localhost:21024
    2015-06-11 05:34:15,438 - DEBUG - starrypy # Port check succeeded. Continuing.
    2015-06-11 05:34:15,438 - INFO - starrypy # Started StarryPy server version 1.5.1
    2015-06-11 05:34:15,620 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'chat_logger'
    2015-06-11 05:34:15,621 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'announcer_plugin'
    2015-06-11 05:34:15,622 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'irc'
    2015-06-11 05:34:15,622 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'command_dispatcher'
    2015-06-11 05:34:15,623 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'mute_manager'
    2015-06-11 05:34:15,624 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'new_player_greeter_plugin'
    2015-06-11 05:34:15,624 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'planet_visitor_announcer_plugin'
    2015-06-11 05:34:15,625 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'motd_plugin'
    2015-06-11 05:34:15,626 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'player_manager'
    2015-06-11 05:34:15,626 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'plugin_manager'
    2015-06-11 05:34:15,627 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'starbound_config_manager'
    2015-06-11 05:34:15,628 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'afk_plugin'
    2015-06-11 05:34:15,628 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'user_management_commands'
    2015-06-11 05:34:15,629 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'uptime_plugin'
    2015-06-11 05:34:15,629 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'emotes_plugin'
    2015-06-11 05:34:15,630 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'bookmarks_plugin'
    2015-06-11 05:34:15,630 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'colored_names_plugin'
    2015-06-11 05:34:15,631 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'poi_plugin'
    2015-06-11 05:34:15,631 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'fuelgiver_plugin'
    2015-06-11 05:34:15,632 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'starteritems_plugin'
    2015-06-11 05:34:15,633 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'warpy_plugin'
    2015-06-11 05:34:15,635 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'partychat_plugin'
    2015-06-11 05:34:15,635 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'mod_chatter'
    2015-06-11 05:34:15,637 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'web_gui'
    2015-06-11 05:34:15,638 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'brutus_whisper'
    2015-06-11 05:34:15,639 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'planet_protect'
    2015-06-11 05:34:15,639 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'admin_messenger'
    2015-06-11 05:34:15,640 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'loginwho_plugin'
    2015-06-11 05:34:15,640 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'players_plugin'
    2015-06-11 05:34:15,641 - DEBUG - starrypy.plugin_manager.PluginManager # Instantiated plugin 'claims'
    2015-06-11 05:34:15,641 - DEBUG - starrypy.plugins.chat_logger # chat_logger plugin object activated.
    2015-06-11 05:34:15,641 - DEBUG - starrypy.plugins.announcer_plugin # announcer_plugin plugin object activated.
    2015-06-11 05:34:15,641 - DEBUG - starrypy.plugins.command_dispatcher # command_dispatcher plugin object activated.
    2015-06-11 05:34:15,642 - DEBUG - starrypy.plugins.mute_manager # mute_manager plugin object activated.
    2015-06-11 05:34:15,642 - DEBUG - starrypy.plugins.planet_visitor_announcer_plugin # planet_visitor_announcer_plugin plugin object activated.
    2015-06-11 05:34:15,642 - DEBUG - starrypy.plugins.motd_plugin # motd_plugin plugin object activated.
    2015-06-11 05:34:15,642 - DEBUG - starrypy.plugins.player_manager # player_manager plugin object activated.
    2015-06-11 05:34:15,643 - INFO - starrypy.player_manager.manager # Loading player database.
    2015-06-11 05:34:15,666 - DEBUG - starrypy.plugins.plugin_manager # plugin_manager plugin object activated.
    2015-06-11 05:34:15,666 - DEBUG - starrypy.plugins.starbound_config_manager # starbound_config_manager plugin object activated.
    2015-06-11 05:34:15,667 - DEBUG - starrypy.plugins.afk_plugin # afk_plugin plugin object activated.
    2015-06-11 05:34:15,668 - DEBUG - starrypy.plugins.user_management_commands # user_management_commands plugin object activated.
    2015-06-11 05:34:15,668 - DEBUG - starrypy.plugins.uptime_plugin # uptime_plugin plugin object activated.
    2015-06-11 05:34:15,668 - DEBUG - starrypy.plugins.emotes_plugin # emotes_plugin plugin object activated.
    2015-06-11 05:34:15,668 - DEBUG - starrypy.plugins.bookmarks_plugin # bookmarks_plugin plugin object activated.
    2015-06-11 05:34:15,668 - DEBUG - starrypy.plugins.colored_names_plugin # colored_names_plugin plugin object activated.
    2015-06-11 05:34:15,668 - DEBUG - starrypy.plugins.poi_plugin # poi_plugin plugin object activated.
    2015-06-11 05:34:15,668 - DEBUG - starrypy.plugins.warpy_plugin # warpy_plugin plugin object activated.
    2015-06-11 05:34:15,669 - DEBUG - starrypy.plugins.partychat_plugin # partychat_plugin plugin object activated.
    2015-06-11 05:34:15,669 - DEBUG - starrypy.plugins.mod_chatter # mod_chatter plugin object activated.
    2015-06-11 05:34:15,669 - DEBUG - starrypy.plugins.web_gui # web_gui plugin object activated.
    2015-06-11 05:34:15,676 - INFO - starrypy.plugins.web_gui # WebGUI listening on port 8083
    2015-06-11 05:34:15,676 - DEBUG - starrypy.plugins.brutus_whisper # brutus_whisper plugin object activated.
    2015-06-11 05:34:15,676 - DEBUG - starrypy.plugins.planet_protect # planet_protect plugin object activated.
    2015-06-11 05:34:15,678 - DEBUG - starrypy.plugins.admin_messenger # admin_messenger plugin object activated.
    2015-06-11 05:34:15,678 - DEBUG - starrypy.plugins.loginwho_plugin # loginwho_plugin plugin object activated.
    2015-06-11 05:34:15,678 - DEBUG - starrypy.plugins.players_plugin # players_plugin plugin object activated.
    2015-06-11 05:34:15,679 - DEBUG - starrypy.plugins.claims # claims plugin object activated.
    2015-06-11 05:34:15,679 - INFO - starrypy.plugin_manager.PluginManager # Loaded plugins:
    afk_plugin, Active: True
    user_management_commands, Active: True
    uptime_plugin, Active: True
    emotes_plugin, Active: True
    bookmarks_plugin, Active: True
    chat_logger, Active: True
    colored_names_plugin, Active: True
    announcer_plugin, Active: True
    loginwho_plugin, Active: True
    poi_plugin, Active: True
    fuelgiver_plugin, Active: False
    starteritems_plugin, Active: False
    players_plugin, Active: True
    irc, Active: False
    warpy_plugin, Active: True
    partychat_plugin, Active: True
    starbound_config_manager, Active: True
    command_dispatcher, Active: True
    web_gui, Active: True
    mute_manager, Active: True
    new_player_greeter_plugin, Active: False
    brutus_whisper, Active: True
    motd_plugin, Active: True
    player_manager, Active: True
    plugin_manager, Active: True
    claims, Active: True
    planet_visitor_announcer_plugin, Active: True
    planet_protect, Active: True
    admin_messenger, Active: True
    mod_chatter, Active: True
    2015-06-11 05:34:15,680 - DEBUG - starrypy # Factory created, endpoint of port 21025
    2015-06-11 05:34:15,680 - DEBUG - starrypy # Attempting to listen on TCP port 21025
    2015-06-11 05:34:15,680 - INFO - starrypy # Listening on port 21025
    2015-06-11 05:34:25,903 - DEBUG - starrypy # Trying to initialize configuration manager.
    2015-06-11 05:34:25,904 - INFO - starrypy # Connection established from IP: 192.168.1.225
    2015-06-11 05:34:25,905 - DEBUG - starrypy # Client protocol instantiated.
    2015-06-11 05:34:25,930 - ERROR - starrypy.plugins.player_manager # Exception in on_connect_response, player info may not have been logged.
    Traceback (most recent call last):
      File "/home/zet/server/StarryPy/plugins/core/player_manager/plugin.py", line 114, in on_connect_response
        connection_parameters = connect_response().parse(data.data)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 188, in parse
        return self.parse_stream(BytesIO(data))
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 198, in parse_stream
        return self._parse(stream, Container())
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 670, in _parse
        subobj = sc._parse(stream, context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 288, in _parse
        return self._decode(self.subcon._parse(stream, context), context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 670, in _parse
        subobj = sc._parse(stream, context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 288, in _parse
        return self._decode(self.subcon._parse(stream, context), context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 398, in _parse
        return _read_stream(stream, self.lengthfunc(context))
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 305, in _read_stream
        raise FieldError("expected %d, found %d" % (length, len(data)))
    FieldError: expected 1011642, found 40
    2015-06-11 05:34:25,941 - ERROR - starrypy.plugins.announcer_plugin # Unknown error in after_connect_response.
    Traceback (most recent call last):
      File "/home/zet/server/StarryPy/plugins/announcer_plugin/announcer_plugin.py", line 17, in after_connect_response
        c = connect_response().parse(data.data)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 188, in parse
        return self.parse_stream(BytesIO(data))
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 198, in parse_stream
        return self._parse(stream, Container())
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 670, in _parse
        subobj = sc._parse(stream, context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 288, in _parse
        return self._decode(self.subcon._parse(stream, context), context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 670, in _parse
        subobj = sc._parse(stream, context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 288, in _parse
        return self._decode(self.subcon._parse(stream, context), context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 398, in _parse
        return _read_stream(stream, self.lengthfunc(context))
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 305, in _read_stream
        raise FieldError("expected %d, found %d" % (length, len(data)))
    FieldError: expected 1011642, found 40
    2015-06-11 05:34:25,941 - ERROR - starrypy.plugin_manager.PluginManager # Error in plugin <Plugin instance: loginwho_plugin (version .1)> with function after_connect_response.
    Traceback (most recent call last):
      File "/home/zet/server/StarryPy/plugin_manager.py", line 166, in do
        res = getattr(plugin, command, lambda _: True)(data)
      File "/home/zet/server/StarryPy/plugins/loginwho_plugin/loginwho_plugin.py", line 18, in after_connect_response
        self.user_commands.who(data)
      File "/home/zet/server/StarryPy/plugins/core/player_manager/manager.py", line 444, in wrapped_function
        if self.protocol.player.access_level >= level:
    AttributeError: 'NoneType' object has no attribute 'access_level'
    2015-06-11 05:34:27,219 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,227 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,230 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,234 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,308 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,311 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,314 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,317 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 05:34:27,493 - INFO - starrypy # Lost connection from IP: 192.168.1.225
    

    [​IMG]


    If i off all plugins i have only this error after connect:
    Code:
    2015-06-11 07:57:11,277 - INFO - starrypy # Connection established from IP: 192.168.1.225
    2015-06-11 07:57:11,279 - DEBUG - starrypy # Client protocol instantiated.
    2015-06-11 07:57:11,305 - ERROR - starrypy.plugins.player_manager # Exception in on_connect_response, player info may not have been logged.
    Traceback (most recent call last):
      File "/home/zet/server/StarryPy/plugins/core/player_manager/plugin.py", line 114, in on_connect_response
        connection_parameters = connect_response().parse(data.data)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 188, in parse
        return self.parse_stream(BytesIO(data))
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 198, in parse_stream
        return self._parse(stream, Container())
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 670, in _parse
        subobj = sc._parse(stream, context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 288, in _parse
        return self._decode(self.subcon._parse(stream, context), context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 670, in _parse
        subobj = sc._parse(stream, context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 288, in _parse
        return self._decode(self.subcon._parse(stream, context), context)
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 398, in _parse
        return _read_stream(stream, self.lengthfunc(context))
      File "/usr/local/lib/python2.7/dist-packages/construct/core.py", line 305, in _read_stream
        raise FieldError("expected %d, found %d" % (length, len(data)))
    FieldError: expected 1011642, found 40
    2015-06-11 07:57:12,600 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 07:57:12,608 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 07:57:12,609 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 07:57:12,611 - WARNING - starrypy # Received unknown message ID (55) from client.
    2015-06-11 07:57:12,685 - INFO - starrypy # Lost connection from IP: 192.168.1.225
    In plugins/core/player_manager/manager.py this code:
    Code:
    def on_connect_response(self, data):
            try:
                connection_parameters = connect_response().parse(data.data)
                if not connection_parameters.success:
                    self.protocol.transport.loseConnection()
                else:
                    self.protocol.player.client_id = connection_parameters.client_id
                    self.protocol.player.logged_in = True
                    self.protocol.player.party_id = ""
                    self.logger.info("Player %s (UUID: %s, IP: %s) logged in" % (
                        self.protocol.player.name, self.protocol.player.uuid,
                        self.protocol.transport.getPeer().host))
            except:
                self.logger.exception("Exception in on_connect_response, player info may not have been logged.")
            finally:
                return True
    I dont know how to fix it, my pyton are very badly :(
     
    Last edited: Jun 11, 2015
  2. ModdedTibby

    ModdedTibby Void-Bound Voyager

    reading the github for this plguin where its updated.

    im throwing an error when im setting this up

    its showing an error in these lines and i look nothing looks off.

    http://prntscr.com/7z5kqs
    Any clues let me know![DOUBLEPOST=1438333135][/DOUBLEPOST]Ive also entere in C:\\GameServers\\Starbound Nothing same errors
     
  3. dangermind

    dangermind Subatomic Cosmonaut

    Si i guess this doesnt work with the newest version of starbound?
     
  4. Tsunder

    Tsunder Phantasmal Quasar

  5. kharidiron

    kharidiron Void-Bound Voyager

    What Tsunder said: it is still actively in development. The only difference from before, is the guy who started the project (CarrotAreMeh) has left, and I'm not a programmer, so improvements are slow in coming.

    But I at least know enough to keep it up to speed with the new protocols. :D
     
  6. dangermind

    dangermind Subatomic Cosmonaut

    Its working yay, but i cant get admin privvileges, i made a password in admin_ss, and the website said i had to enter that into the account tab, but it says the account/password is incorrect when i do that. :(

    i am playing on the same pc as the server is on and i tried connecting to localhost instead of my ip, localhost doesnt work so i entered my local IP which should be the same right?
     
    Last edited: Aug 28, 2015
  7. Tsunder

    Tsunder Phantasmal Quasar

    connect to the loopback address (127.0.0.1)? if you're running starrypy, starrypy's port shoul be the default game port (21025) and the server itself should be something else
     
  8. kharidiron

    kharidiron Void-Bound Voyager

  9. dangermind

    dangermind Subatomic Cosmonaut

    i did and the server is running perfectly now :) thanks alot![DOUBLEPOST=1440849097][/DOUBLEPOST]sadly i now have the issue that my default spawn planet doesnt work, every player gets his own planet instead of starting on the same one. This kinda sucks. :(
     
  10. lordglythglyth

    lordglythglyth Pangalactic Porcupine

    http://pastebin.com/nifLLyKR i tryed to do wat the site said to do with starbound.config and i got Io Errors so i tryed somthing deffent and it still says no such user as the admin_ss password so can some omne just post a starrypy version of starbound.config please
     
  11. ModdedTibby

    ModdedTibby Void-Bound Voyager

    im so confused


    "owner_uuid": "",

    is the UUID the steam64id thats long ass number?

    or what im so confused
     
  12. Dunto

    Dunto Guest

    Hop into single-player, enable admin, and do a /list to find the UUID for your character (remove any leading symbols of course).
     
  13. ModdedTibby

    ModdedTibby Void-Bound Voyager

    thank you much, i ended up finding it in the database. But your way is much easier
     
  14. Symmasolan

    Symmasolan Big Damn Hero

    After googling and experimenting for the longest time, I still can't figure out how to log in as the owner of the server.
    I've got the owner_UUID entered, and when I log in I can do /help and all the owner commands show properly.
    It's just that I'm unable to use most of the commands because it says I'm not logged in.
    I'm unsure what to do with the admin_ss value even with the description on the github page. Could someone please give an example of use?

    I've seen this question asked before on this thread, but no clear answers were given in response.
     
  15. Dunto

    Dunto Guest

  16. Symmasolan

    Symmasolan Big Damn Hero

    I should've worded my question better. My bad. I had all of the values filled, but I didn't understand it fully.
    What was going on in my head was as follows.

    Say I have an admin account. We'll say it's "admn". I'd be setting the admin_ss value to "ad", and then trying to log in to my server as "admnad", or "admn ad".

    I ended up just putting one of the admin sign-in user names from my starbound.config in to the admin_ss value, and it works as intended now.
     
  17. pandee

    pandee Big Damn Hero

    Im following the readme.md..

    1. I have gameport set to 21024 in the starbound.config file
    2. I have upstream_port to 21024 as well
    3. starbound server is running
    4. Launched starrypy

    but it still insists that the server is not connectable at the address localhost:21024

    What should i do?

    Im using Ubunutu 14.04

    ------------
     
    Last edited: Jun 24, 2016
  18. kharidiron

    kharidiron Void-Bound Voyager

    First off, to verify, in the starbound.config file, it is "gameServerPort", correct?
    And, in the config.json, upstream_hostname is set to "localhost"?
    And, have you tested connecting to the Starbound server directly using 21024?
     
  19. pandee

    pandee Big Damn Hero

    Yes. upstream_hostname is set to "localhost"

    Yes and no, I have the starbound.config file set to..

    "gameServerPort" : 21025
    "gameport" : 21024

    Now i assure you that its not a port-forwarding issue. I can login to the starbound server with what ever gameServerPort is set to.

    -----------

    edit

    if i attempt to have both ports at 21025 i get a critical error "Cannot listen on TCP port 21025. Exiting.
     
  20. kharidiron

    kharidiron Void-Bound Voyager

    Delete gameport, and only use gameServerPort, and set it to 21024.

    I don't know where you got gameport from, but they got rid of that syntax a long time ago. If it is still in the docs... just goes to show that I haven't updated the docs in ages... <_<
     

Share This Page