User Tools

Site Tools


server:compiling_the_server:config_h

Differences

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

Link to this comparison view

Last revision Both sides next revision
server:compiling_the_server:config_h [2018/04/13 07:03]
karl created for TMPDIR and LOGFILE
server:compiling_the_server:config_h [2018/04/19 06:55]
karl add mapsize MAP_CLIENT_X MAP_CLIENT_Y
Line 17: Line 17:
  
 If it is planned to add a --prefix to configure, then before running ''​make''​ it is probably useful \\ If it is planned to add a --prefix to configure, then before running ''​make''​ it is probably useful \\
-to adjust the TMPDIR variable to match --prefix . +to adjust the TMPDIR variable to match --prefix .
  
 Example: ./configure --prefix=/​usr/​games/​crossfire-1.70.0 \\ Example: ./configure --prefix=/​usr/​games/​crossfire-1.70.0 \\
-should then make TMPDIR look as +should then make TMPDIR look as
 ''#​define TMPDIR "/​usr/​games/​crossfire-1.70.0/​tmp"''​ ''#​define TMPDIR "/​usr/​games/​crossfire-1.70.0/​tmp"''​
  
Line 41: Line 41:
  
 If it is planned to add a --prefix to configure, then before running ''​make''​ it is probably useful \\ If it is planned to add a --prefix to configure, then before running ''​make''​ it is probably useful \\
-to adjust the LOGFILE variable to match --prefix . +to adjust the LOGFILE variable to match --prefix .
  
 Example: ./configure --prefix=/​usr/​games/​crossfire-1.70.0 \\ Example: ./configure --prefix=/​usr/​games/​crossfire-1.70.0 \\
-should then make LOGFILE look as +should then make LOGFILE look as
 ''#​define LOGFILE "/​usr/​games/​crossfire-1.70.0/​var/​log/​crossfire-server-1.70.0.log"''​ ''#​define LOGFILE "/​usr/​games/​crossfire-1.70.0/​var/​log/​crossfire-server-1.70.0.log"''​
  
 FIXME Proper permissions for LOGFILE FIXME Proper permissions for LOGFILE
 +
 +
 +===== mapsize ==
 +The server has two pre-defined maximum mapsize values to send to the client : **MAP_CLIENT_X** and **MAP_CLIENT_Y** . \\
 +It is unfortunately not possible to set those in the //​etc/​crossfire/​settings//​ file.
 +<code c>
 +#define MAP_CLIENT_X ​   25
 +#define MAP_CLIENT_Y ​   25
 +</​code>​
 +
 +Since the client supports a maximum of 31, it might be advised to set these two values to 31 also, \\
 +especially for local servers just consuming loop back (inerface lo) bandwidth.
 +
server/compiling_the_server/config_h.txt ยท Last modified: 2018/04/20 11:22 by karl