User Tools

Site Tools


server:running_the_server:positional_parameters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
server:running_the_server:positional_parameters [2018/03/05 15:11] – [-m] Add description of where the output goes to for each -m option karlserver:running_the_server:positional_parameters [2025/04/18 13:08] (current) – external edit 127.0.0.1
Line 56: Line 56:
 Syntax : ''-csport <portnumber>'' Syntax : ''-csport <portnumber>''
  
-The default port-number for the crossfire server is //13227// . \\+The default port-number for the crossfire server is //13327// . \\
 If you want to run it for another port, or even want to [[:server:hosting|host]] [[multiple instances]] of the server, then it needs to assign a different port number for each instance that runs.  If you want to run it for another port, or even want to [[:server:hosting|host]] [[multiple instances]] of the server, then it needs to assign a different port number for each instance that runs. 
  
Line 66: Line 66:
 ==== -mon ==== ==== -mon ====
  
-===== Configurations for the server =====+===== Configuration Files and Directories for the server =====
  
 ==== -arch ==== ==== -arch ====
Line 103: Line 103:
  
 ==== -v ==== ==== -v ====
 +Should print out the version of the server binary. \\
 +That worked until at least v1.12.0 somewhat, but later servers would not print anything into the terminal, since some code changes in regards to the message stream between the server and the client had been changed, that made the usage of older clients on newer v1.50 servers and beyond partly unusable and the other way too. \\
 +The problem is the //void version(object *op)// in //server/server/server.c// , that is called by //static void call_version(void)// in //server/server/init.c// with the //NULL// parameter. \\
 +The function //version// is also used by the player command [[:player_commands#version]] and since v1.50 uses a //draw_ext_info_format// that apparently fails to check for the direction of the output. The older servers used the //new_draw_info_format// function. These *_draw_*_info_* functions are to be found in //server/socket/info.c// .
  
 +Example output : 
 +  * ''This is Crossfire v1.11.0''
 +  * ''This is Crossfire v1.12-beta''
 +     * ''[NULL]''
 ==== -m ==== ==== -m ====
  
Line 115: Line 123:
    
   *  **-m3**         Dumps out artifact information. **Output is printed to [[logfile]]** .   *  **-m3**         Dumps out artifact information. **Output is printed to [[logfile]]** .
-    * dump_artifacts+    * dump_artifacts()
     * common/treasure.c //printf(logfile,"Artifact %-30s Dif//     * common/treasure.c //printf(logfile,"Artifact %-30s Dif//
    
Line 124: Line 132:
   *  **-m5**         Dumps out skill information. **No Output Possible**.   *  **-m5**         Dumps out skill information. **No Output Possible**.
     * :!: NOT functional ! Code hooks are there, but no //dump_skills()// function.     * :!: NOT functional ! Code hooks are there, but no //dump_skills()// function.
-    * just exit(0);+    * Older servers just //exit(0);// , newer servers //cleanup()// with //exit(0)// .
      
   *  **-m6**         Dumps out race information. **Output goes to stderr**.   *  **-m6**         Dumps out race information. **Output goes to stderr**.
server/running_the_server/positional_parameters.1520284306.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki