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 CommandStar: Real-Time Chat, Online Players, and Server Status

Discussion in 'Multiplayer' started by Seriallos, Dec 15, 2013.

  1. Dr Dank Phd

    Dr Dank Phd Tentacle Wrangler

    Just installed this today. Pretty straightforward installation, and definitely a neat piece of code, thanks!
     
  2. Seriallos

    Seriallos Space Penguin Leader

    0.1.5 - Refactor, Server Status, and Bug Fixes
    Download: https://github.com/seriallos/commandstar/releases/tag/v0.1.5

    New
    • Server status check is available but defaults OFF
    • Ignores chat lines that start with # (Starlight admin prefix)
    Fixes/Tweaks
    • Player list and world list should clear out when server restarts
    • All colors codes should be filtered out. For example, ^#cyan;
    • Reading old chat is easier now. You won't get bounced to new messages when they show up. (Thanks to malobre for initial code!)
    • Fixes bug where active systems would disappear on change
    Technical
    • Major codebase refactor
      • starboundserver/server.coffee manages the log watcher and network monitor
      • Moved a bunch of files/dirs around for better organization
        • server.coffee is now lib/commandstar.coffee
        • classes/ is now lib/
    • Bunch more tests
     
    MajorCyto and SpaceKitten like this.
  3. Seriallos

    Seriallos Space Penguin Leader

    0.1.6 - Server Totals and Data Persistence

    Download: https://github.com/seriallos/commandstar/releases/tag/v0.1.6

    This may be another unstable release. NeDB is a brand new dependency that I've
    only been able to test on my own low-pop servers.

    Note: Server status should be usable soon as the socket leak has been fixed for
    the next Starbound release. Forum link

    New
    • Show total worlds explored and total players seen (ever) on the server.
      • These will only start tracking with this new update.
      • Players are tracked by their game name.
    • Adds several API endpoints
      • /server/worlds - Returns info on all visited worlds
      • /server/players - Returns info on all players ever seen
    Fixes/Tweaks
    • runServer.sh should now work from any path (Fixes #11)
    • Fixes bug where slash chat was showing up on the site
    Technical
    • Adds NeDB as a dependency to have a bit of persistence when restarted
      • Default data path is ./data. This is configurable.
      • This will enable moving forward on a bunch of other features.
      • Using a pure NodeJS library keeps CommandStar easy to install and run.
     
  4. se7en

    se7en Scruffy Nerf-Herder

    Code:
    USER@HOST:~/server/starbound/commandstar$ ./runServer.sh
    Installing/updating dependencies...
       warn  - error raised: Error: listen EADDRINUSE
    
    hm? :(
    UBUNTU, config like that:
    Code:
    starbound:
      binPath: /home/XXX/server/starbound/linux64
      assetsPath: /home/XXX/server/starbound/assets
      dataPath: /home/XXX/server/starbound/linux64/universe
      logFile: /home/XXX/server/starbound/linux64/starbound_server.log
      configFile: /home/XXX/server/starbound/linux64/starbound.config
    
    nothing other than above changed in config
     
  5. Seriallos

    Seriallos Space Penguin Leader



    That probably means that you have CommandStar already running. You'll need to make sure the old process is killed before the new one will work properly.
     
  6. se7en

    se7en Scruffy Nerf-Herder

    oh its 8080 port i believe i got webmin there right
    will check and post later
     
  7. Seriallos

    Seriallos Space Penguin Leader

    Yeah, 8080 is the default. You can change the listenPort in the configuration to be whatever you want.
     
  8. Seriallos

    Seriallos Space Penguin Leader

  9. Mortalsinn

    Mortalsinn Zero Gravity Genie

    Any idea why I'm getting this path error? My config looks good as far as I can tell!


    http://i604.photobucket.com/albums/tt126/mortalsinn/Untitled-15.jpg

    Yikes...that's a bit hard to read - Let me know if you need a larger version


    Edit: in that picture I removed the .config and .log extensions as a test but I get the same error with or with out the extensions
     
  10. Seriallos

    Seriallos Space Penguin Leader

    Think the configFile needs to end with 'starbound.config', not just 'starbound'.
     
  11. Mortalsinn

    Mortalsinn Zero Gravity Genie

    I did that the first time, got the same error. Notice in the error message in your command star console the path it shows...its adding double \\ when in the config I have single \

    any ideas?
     
  12. Seriallos

    Seriallos Space Penguin Leader

    I think I see it now - try wrapping your paths in double quotes and make sure configFile is using starbound.config. The double slashes are expected in those error messages.

    I believe that should work. If it does, I'll update the default config to have the double quotes as well.
     
  13. Mortalsinn

    Mortalsinn Zero Gravity Genie

    I tried single quotes, double quotes etc.. nothing worked. Also, I can't name my config file "starbound.config" because I'm using Starrybound and if I do that, Starrybound creates a new config file "starbound" with out the .config

    could that be the issue?
     
  14. Seriallos

    Seriallos Space Penguin Leader

    Hmm, I thought Starrybound just rewrites the starbound.config with its own values and it kept the .config as part of the filename. I've only played around with it on Linux and a slightly older version, though.

    Is the starbound config file that it makes still just plain JSON?

    Is Steam in 'Program Files', not 'Program Files (x86)'?

    The code that's throwing the error is pretty straightforward - it's unable to find a file at the location provided. The two ways this could happen is if the config file is being parsed incorrectly or there's no file actually there :)

    I'll see if I can test this out on my own PC to see what's going on.
     
  15. Seriallos

    Seriallos Space Penguin Leader

    I just did a quick test on my own PC and everything seemed to be working. starbound.config was still in the main starbound directory after starrybound was running. So it seems there's no inherent conflict between CommandStar and Starrybound at first glance on my system.

    Double check your paths and make sure they are wrapped in double quotes. If that still doesn't work, I might request a bit more detail in a PM to see if we can get to the bottom of the issue.
     
  16. Mortalsinn

    Mortalsinn Zero Gravity Genie

    I installed Visual studio express, it changed the config to XML configuration and when I edit it with Notepad ++ all the variables are listed in one continuous long line now, not vertically like it used to be. Would that have anything to do with it?
     
  17. Seriallos

    Seriallos Space Penguin Leader

    That shouldn't have an effect. CommandStar should be able to parse the JSON whether it's pretty printed or not.
     
  18. StilleVande

    StilleVande Big Damn Hero

    You use Starrybound?
     
  19. Seriallos

    Seriallos Space Penguin Leader

    Master branch has been updated to support new log lines for Furious Koala.

    Will make a real release once I'm certain everything is stable with the new release.
     
  20. NakashimaKun

    NakashimaKun Pangalactic Porcupine

    Hello,

    To get this viewable to an outsider you can port forward the IP and it'll be public view (Example IP) http://85.2.514.21:8080 <-- This isn't an actual IP don't try it.

    Most routers support this and if your stuck on how to port forward there is a ton of guide on the forum already to get the starbound server itself working ;)

    Hope this helps.
     

Share This Page