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

    Brockway Pangalactic Porcupine

    Okey, that is pretty clear, so with global protect, does this prevent projectile and npc ?
    Because i get grief by someone that can spawn meteor guns ! OMG ! And he will find soon egnough how to make npc with those too...

    Cheers.
     
  2. Brockway

    Brockway Pangalactic Porcupine

    Hi, nice plugin, really ! but when i connect to the interface, i dont know what to enter in login, i enter the password into the config and my name in game, and that work.
    But the chat dont work, and i cant edit the group of users.

    Any idea why ?

    Cheers.
     
  3. @teihoo do you know why our server since recent times, sometimes when it crashes / starts, it can take up to 45min to start because it's "recovering" files? As the Universe.dat and others? Is that normal?
     
  4. combatmedic02

    combatmedic02 Void-Bound Voyager

    Hey guys, trying to use this again with my windows 2008 server and I'm getting a lot of lag when there are around 8 players in the game.

    Am getting a lot of:

    Warn: I/O error from 127.0.0.1:56666 in NetSocket read loop or device closed: NetworkException: tcp recv error: A connection attempt failed because the connected party did not properly respond after a
    period of time, or established connection failed because connected host has failed to respond.

    TcpSocket::readPartial(char*, unsigned int)
    IODevice::readFull(char*, unsigned int)
    DataStream::eek:perator>>(unsigned char)
    NetSocket::readerLoop()
    ThreadImpl::runThread(void*)
    BaseThreadInitThunk
    RtlInitializeExceptionChain
    RtlInitializeExceptionChain

    Errors In Starbound and lots of:

    2014-03-15 06:53:58,561 - starrypy.packet_stream.PacketStream - ERROR - Unknown error in start_packet.
    2014-03-15 06:53:58,565 - starrypy.packet_stream.PacketStream - ERROR - Unknown error in check_packet

    Errors from StarryPy.

    is there any solution to these? The Wrapper seems a lot better then when I last used it but it does like creating a ton of lag... I can hold over 21 players in the server while its vanilla but it just seems to go to pot when StarryPy is running. Any help would be very much appreciated. Thanks. :)
     
  5. Higgins

    Higgins Tentacle Wrangler

    Yes I do login through the 8083 port. The kick player works.

    Code:
    Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi)
    event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
    Browser console only reports this
     
  6. teihoo

    teihoo Ketchup Robot

    Which version are you running?
     
  7. teihoo

    teihoo Ketchup Robot

    That's like a starbound thing ... i have no idea atm what could be causing it ...
     
  8. DeathShot

    DeathShot Space Hobo

    C:\Users\Josh\Desktop\StarryPy>python server.py
    Opening message file res/messages_En.mo for locale English_United States.
    Locale not found. Using default messages.
    2014-03-15 15:37:49,799 - starrypy - INFO - Started StarryPy server version 1.3.
    2
    2014-03-15 15:37:50,061 - starrypy.plugin_manager.PluginManager - CRITICAL - A p
    lugin reported a fatal error. Error: Could not open starbound configuration file
    . Tried path: FilePath(u'C:\\Program Files\\Steam\\SteamApps\\common\\StarBound)
    \\starbound.config')
    2014-03-15 15:37:50,071 - starrypy - CRITICAL - Shutting Down.

    I get this error when trying to run the python server.py command. Help please?
     
  9. MajorCyto

    MajorCyto Phantasmal Quasar

    Im using the fork from your github i just downloaded it (about 20 min ago from this post) everything works perfect except the WEBGUI which gives this on start ->

    Code:
    2014-03-16 02:09:15,616 - starrypy - INFO - Started StarryPy server version 1.4.2
    2014-03-16 02:09:15,691 - starrypy.plugin_manager.PluginManager - CRITICAL - Import error for web_gui
    2014-03-16 02:09:16,988 - starrypy.plugin_manager.PluginManager - INFO - Loaded plugins:
    
    Code:
          "web_gui": {
                "auto_activate": true,
                "cookie_token": "",
                "log_path": "webgui.log",
                "log_path_access": "webgui_access.log",
                "ownerpassword": "8i5p3qD6p0bD",
                "port": 8083,
                "remember_cookie_token": true,
                "restart_script": "/etc/init/starbound.conf",
                "serverurl": "starbards.net"
    I don't care about the owner password, ill change it.. considering it doesnt work anyways lol, i also tried with "localhost" in server URL and several other variations.

    I run the StarBards.net server and were averaging 25 to 30 players daily so the WEB GUI will be really handy considering i do use service scripts.. Please let me know any info or logs you need to help troubleshoot the issue.

    ===

    Also, in a unrelated note players can use /spawn while not on the ship which when they beam up and trip is beginning transit freezes them and they have to relog. Ill add it to your issue tracker. --Edit: Nevermind, you dont have a issue tracker? lol

    Also, which "bad packet" do i remove so they can pick up items again if they drop them, because either.. it needs to block item drop to or i need to allow item pick up on spawn. I can already forsee problems lol.

    Thanks for your future reply!
     
    Last edited: Mar 16, 2014
  10. SexualRhinoceros

    SexualRhinoceros Existential Complex

    @teihoo although this is super outdated, I figured I'd post this here. Right when StarryPy came out, I wrote a plugin that allowed planets to be protected on a per planet basis, then allow the users themselves decide who could build and who couldn't on the planet. It also limited the users to the number of planets they could build unless they were an admin so no trolls can take over the whole server. I sent this to Carrots, but he kinda ignored it or forgot and it seems you took over development or you're working on it more than carrots so I'd let you know about it too to maybe refine it and add it as something as I seriously have no idea how to Python. Thanks! https://gist.github.com/SexualRhinoceros/3abff2016396006b92f3
     
    SweFox and teihoo like this.
  11. teihoo

    teihoo Ketchup Robot

    It's telling you it cant open starbound.config file. How do you have path entered in starrypy config.json?
     
  12. teihoo

    teihoo Ketchup Robot

    Hey, that sounds a lot like "claims" :)) Which i was going to finish today. I will have a look, so thanks for this!
     
  13. SexualRhinoceros

    SexualRhinoceros Existential Complex

    no problem! I did it through ways Carrots didn't like by editing the player file, but I was recoding it to use the database structure the planets used when I shut down my server so I never got around to finishing it! Hope I could help a little with it!
     
  14. teihoo

    teihoo Ketchup Robot

    You probably need to install torando for web_gui to work: pip install tornado

    Ye /spawn is weird, I'll have a look today.

    I believe it would be "REQUEST_DROP" but im not sure, because i never get around to try that out ....

    And last but not least, every github project or fork has an issues tracker, you can use that one, or send me message here, or anyhow you prefer :p If I canhelp, I will.
     
  15. MajorCyto

    MajorCyto Phantasmal Quasar

    Is there a way to block dropping items instead? And i can just block drop, and pick up.

    Also, people can't break blocks on the protected planet.. but they can still place down objects/items.. Anyway to block that as well, or should that already work and its broke? xD


    --Thanks for your replies so far, i will try the tornado thing and report back as well!
     
  16. teihoo

    teihoo Ketchup Robot

    Originaly "ENTITY_INTERACT" was also blocked, but that prevents them from interacting with anything, i really need to do more testing with this :/

    Edit: I talked a bout a few of these here: http://community.playstarbound.com/...-written-in-python.67562/page-66#post-1876748
     
  17. teihoo

    teihoo Ketchup Robot

    Oh teh leet 1337 post :O :) *stolen*
     
  18. MajorCyto

    MajorCyto Phantasmal Quasar

    Alright, and not to "compare" the 2 as they are different, but Starrybound was able to block just placing items but you could still open doors, and chests it might be worth a look?

    P.S - Tornado resolved the issue for me, the WEB GUI works fine now thanks, and its awesome! Very useful for me and the team thanks.

    ===

    Also kinda interesting, but i have the starbound server itself on a service script so it auto restarts, when it crashes the proxy wrapper leaves you in and you just kinda sit there. The game server comes back up, and you can see people leave and join again but you can't do anything until you leave and join again. Is it possible to have a active check on the wrapper for when it detects it goes down, kick everyone to force them to relog?

    ===

    Also, does ENTITY_INTERACT also block opening inventory and such? Because if so, that doesn't seem like a good solution. But i don't really want random buildings all over spawn world either haha.
     
  19. teihoo

    teihoo Ketchup Robot

    Yes, that's what ENTITY_INTERACT will do. Like I said before, there's all the packets listed in packet_types.py, just need to play with those to get right combination, I'll do that soon.

    I'll try have a look, how to kick players on starbound server restarts, but yeah I've noticed that too, so I restart both or manually logout :/

    If you want to quickly fix /spawn, I've pushed the fix on my fork: https://github.com/teihoo/StarryPy_Teihoo/commit/2649c2e7c58e197e646e09bd4aaa27d55d2b9453
     
  20. MajorCyto

    MajorCyto Phantasmal Quasar

    Thanks for the fix to /spawn, and thanks for offering to look into the other thing. I found these in the packet list, maybe these are what im looking for?

    SPAWN_ENTITY = 29
    ENTITY_CREATE = 42
    ENTITY_UPDATE = 43
    ENTITY_DESTROY = 44

    ===

    Also, the bookmark command doesn't work.. You do /bookmark and it list the help text. Then you do "/bookmark test" and it says

    "Bookmark test has been added!"
    "<server> No such command bookmark"

    Then you do /bookmark, and it doesn't add it to the bookmark list. Lol, just thought i would report it to you. I had 5 people trying to use it right away. xD
     

Share This Page