Announcement

Collapse
No announcement yet.

Execute server in background

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Execute server in background

    Is there a way to get rid of the command line control? I want to run the freeciv-server on a real, remote server. That means the console-connection can't be used to control the server.

    Additionally it would be nice to start the server automatically and let it continue with the last saved position.

  • #2
    You can do this to start a process and detach it from the shell:

    civserver &

    So to load a server eith a savegame or set of rules, you can do this:

    civserver -r ruleset &
    civserver -f savegame.gz &

    The rule sets are just plain text files with one "set" command per line, e.g.:

    normal
    set aifill 6
    set maxplayers 6
    etc.

    Comment


    • #3
      Thats the method I found too, but using it I have no possibility to modify game-settings afterwards (e.g. removing a user) because I have no access to the console?

      It looks for me that the Freeciv-server doesn't really works like a real server software.

      Comment


      • #4
        I think you can make a user connected to the server an admin of sorts, making it work the same was as most other game servers, but I don't know how this works.

        Comment


        • #5
          I believe these are the commands you are looking for:

          > help firstlevel
          Command: firstlevel - Grab the 'first come' command access level.
          Synopsis: firstlevel
          Level: info
          Description:
          If 'cmdlevel first come' has been used to set a special 'first come'
          command access level, this is the command to grab it with.
          > help cmdlevel
          Command: cmdlevel - Query or set command access level access.
          Synopsis: cmdlevel
          cmdlevel
          cmdlevel new
          cmdlevel first
          cmdlevel
          Level: hack
          Description:
          The command access level controls which server commands are available
          to users via the client chatline. The available levels are:
          none - no commands
          info - informational commands only
          ctrl - commands that affect the game and users
          hack - *all* commands - dangerous!
          With no arguments, the current command access levels are reported.
          With a single argument, the level is set for all existing connections,
          and the default is set for future connections.
          If 'new' is specified, the level is set for newly connecting clients.
          If 'first come' is specified, the 'first come' level is set; it will be
          granted to the first client to connect, or if there are connections
          already, the first client to issue the 'firstlevel' command.
          If a connection name is specified, the level is set for that connection
          only.
          Command access levels do not persist if a client disconnects, because some
          untrusted person could reconnect with the same name. Note that this command
          now takes connection names, not player names.
          American by birth, smarter than the average tropical fruit by the grace of Me. -me
          I try not to break the rules but merely to test their elasticity. -- Bill Veeck | Don't listed to the Linux Satanist, people. - St. Leo | If patching security holes was the top priority of any of us(no matter the OS), we'd do nothing else. - Me, in a tired and accidental attempt to draw fire from all three sides.
          Posted with Mozilla Firebird running under Sawfish on a Slackware Linux install.:p
          XGalaga.

          Comment


          • #6
            Yes, these commands are exactly what I need! Thank you :-)

            Comment

            Working...
            X