Query: Starmade Server Wrappers

    Valiant70

    That crazy cyborg
    Joined
    Oct 27, 2013
    Messages
    2,189
    Reaction score
    1,167
    • Thinking Positive
    • Purchased!
    • Legacy Citizen 4
    I want to learn about wrapper programs for Starmade but I don't really know where to begin. I've never used a wrapper before and I don't know what capabilities a wrapper would have in Starmade. If anyone with experience reads this, could you point me in the right direction?

    Thanks!
     
    Joined
    Jul 21, 2013
    Messages
    2,932
    Reaction score
    460
    • Hardware Store
    A server wrapper basically parses the standard output of a starmade-server and sends commands to the server using its standard input.
    If you run a starmade server from the console on your computer, you can do that manually yourself, and I would recommend doing so.
    As for how you read the standard output and write to the standard input of the server depends on the language you write the wrapper in.
     

    Doomsider

    Server scriptologist
    Joined
    Jan 21, 2013
    Messages
    215
    Reaction score
    43
    I want to learn about wrapper programs for Starmade but I don't really know where to begin. I've never used a wrapper before and I don't know what capabilities a wrapper would have in Starmade. If anyone with experience reads this, could you point me in the right direction?

    Thanks!
    A wrapper simply collects the output of the server and then reacts based on scripted or programmed functions. So for instance you could make chat commands so when you typed something in the server in chat the output would be read by the wrapper and then acted upon through things like server commands.

    I wrote a wrapper and it had many capabilities like starting/stopping server, checking for server stop or hanging and restarting server, chat commands, and a database that you can use to track whats going on in the server so that you could do something like make a server map with it or display complex statistics on a web page.

    From adding things like bank accounts to making sectors off limits or punishing players, you can do a lot because Schema is nice enough to have a bunch of server commands that do cool things.

    I wrote my wrapper in BASH so it would be accessible by most people (anyone could edit it to do what they want without spending months or years learning code). There is also a wrapper by Gravypod in JAVA.

    Here is the link to my current wrapper

    GitHub - doomsider/shadow: Shadow is a script that works with Mysql to gather data and interact with game servers