Server.cfg FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:27, 28 January 2014
Connor Mead (Talk | contribs)

← Previous diff
Revision as of 01:11, 4 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 31: Line 31:
| gamemode(n) (N) (t) | gamemode(n) (N) (t)
| It's possible to set the gamemode that plays, how many times it plays and when it plays by editing the values here. To use this correctly you must understand how it works, '''(n)''' is the gamemode number, '''(N)''' is the gamemode name*, and '''(t)''' is the times played before switching onto the next mode. By default this area will look like this: | It's possible to set the gamemode that plays, how many times it plays and when it plays by editing the values here. To use this correctly you must understand how it works, '''(n)''' is the gamemode number, '''(N)''' is the gamemode name*, and '''(t)''' is the times played before switching onto the next mode. By default this area will look like this:
-* gamemode0 grandlarc 1+* gamemode0 grandlarc 1{{traduct}}
|- |-
| weburl | weburl
Line 40: Line 40:
|- |-
| filterscripts (N) | filterscripts (N)
- | Filterscripts are scripts that run in the background of your gamemode, they are there to add extras to the server without editing the gamemode. It's very useful if you want to carry a specific property to more than one gamemode. To use this you must find the folder in your server folder named '''filterscripts''' and place your filterscripts (.amx) in there. (N) symbolizes the filterscript name*. If you have multiple filterscripts you want to load, put them all in a row separated by "space", e.g. ''filterscripts script1 script2''.+ | Filterscripts are scripts that run in the background of your gamemode, they are there to add extras to the server without editing the gamemode. It's very useful if you want to carry a specific property to more than one gamemode. To use this you must find the folder in your server folder named '''filterscripts''' and place your filterscripts (.amx) in there. (N) symbolizes the filterscript name*. If you have multiple filterscripts you want to load, put them all in a row separated by "space", e.g. ''filterscripts script1 script2''.{{traduct}}
|- |-
| plugins (N) | plugins (N)
| The plugins directive allows you to specify plugins which are designed to enhance gamemodes and filterscripts. (N) symbolizes the plugin's name. If you have multiple plugins you want to load, put them all in a row separated by "space", e.g. ''plugins plugin1 plugin2''. | The plugins directive allows you to specify plugins which are designed to enhance gamemodes and filterscripts. (N) symbolizes the plugin's name. If you have multiple plugins you want to load, put them all in a row separated by "space", e.g. ''plugins plugin1 plugin2''.
-* You may find more information about plugin development in [http://forum.sa-mp.com/showthread.php?t=295798 this topic].+* You may find more information about plugin development in [http://forum.sa-mp.com/showthread.php?t=295798 this topic].{{traduct}}
|- |-
| password (p) | password (p)
- | Locking your server is another option that is available for the root server administrator. You can use this to lock unwanted visitors from the server. (p) symbolizes the password that will be used. By default your server will not have a password.+ | Locking your server is another option that is available for the root server administrator. You can use this to lock unwanted visitors from the server. (p) symbolizes the password that will be used. By default your server will not have a password.{{traduct}}
|- |-
| mapname (m) | mapname (m)
| The mapname appears in the server browser. (m) symolizes the mapname. By default this is set to '''San Andreas'''. | The mapname appears in the server browser. (m) symolizes the mapname. By default this is set to '''San Andreas'''.
*Replace [name] to anything you want, e.g. My-stunt-map *Replace [name] to anything you want, e.g. My-stunt-map
-*''The gamemode/filterscript name is the gamemodes/filterscripts compiled name in your gamemodes/filterscripts folder, all must match exactly except you must leave the .amx extension off''.+*''The gamemode/filterscript name is the gamemodes/filterscripts compiled name in your gamemodes/filterscripts folder, all must match exactly except you must leave the .amx extension off''.{{traduct}}
|- |-
| bind | bind
Line 58: Line 58:
|- |-
| rcon 0/1 | rcon 0/1
- | If 0 is specified the rcon [[Remote Console]] feature is disabled.+ | If 0 is specified the rcon [[Remote Console]] feature is disabled.{{traduct}}
|- |-
| maxnpc | maxnpc
Line 64: Line 64:
|- |-
| onfoot_rate'''*''' | onfoot_rate'''*'''
- | The minimum time in milliseconds a client updates the server with new data while running/walking.+ | The minimum time in milliseconds a client updates the server with new data while running/walking.{{traduct}}
|- |-
| incar_rate | incar_rate
- | The minimum time in milliseconds a client updates the server with new data while in a vehicle.+ | The minimum time in milliseconds a client updates the server with new data while in a vehicle.{{traduct}}
|- |-
| weapon_rate | weapon_rate
- | The minimum time in milliseconds a client updates the server with new data while firing a weapon.+ | The minimum time in milliseconds a client updates the server with new data while firing a weapon.{{traduct}}
|- |-
| stream_distance'''**''' | stream_distance'''**'''
- | The distance on the X,Y plane which server entities will stream in for connected players.+ | The distance on the X,Y plane which server entities will stream in for connected players.{{traduct}}
|- |-
| stream_rate'''***''' | stream_rate'''***'''
- | The number of milliseconds that must elapse before server entities stream distance is retested for each player.+ | The number of milliseconds that must elapse before server entities stream distance is retested for each player.{{traduct}}
|- |-
| timestamp | timestamp
Line 82: Line 82:
|- |-
| logqueries | logqueries
- | 0 to disable, 1 to enable. This logs all queries sent to the server by players, it's considerably useful during a DDoS attack. + | 0 to disable, 1 to enable. This logs all queries sent to the server by players, it's considerably useful during a DDoS attack. {{traduct}}
|- |-
| logtimeformat | logtimeformat
| Allows you to configure the timestamp format. The format is based on the [http://cplusplus.com/reference/clibrary/ctime/strftime/ strftime] format from C/C++. Here are some examples: | Allows you to configure the timestamp format. The format is based on the [http://cplusplus.com/reference/clibrary/ctime/strftime/ strftime] format from C/C++. Here are some examples:
*logtimeformat [%H:%M:%S] - (default) This displays only the time, and is the default format for all previous SA-MP server versions. *logtimeformat [%H:%M:%S] - (default) This displays only the time, and is the default format for all previous SA-MP server versions.
-*logtimeformat [%d/%m/%Y %H:%M:%S] - This would display the date in dd/mm/yyyy format followed by the time in hour:minute:second format.+*logtimeformat [%d/%m/%Y %H:%M:%S] - This would display the date in dd/mm/yyyy format followed by the time in hour:minute:second format.{{traduct}}
|- |-
| output | output
- | Enable/Disable duplication of log messages (e.g. those printed with print/printf from scripts or logprintf from plugins) in server console. If this option is set to '''0''' (default) messages are only printed to server log. This option has effect only on Linux servers.+ | Enable/Disable duplication of log messages (e.g. those printed with print/printf from scripts or logprintf from plugins) in server console. If this option is set to '''0''' (default) messages are only printed to server log. This option has effect only on Linux servers.{{traduct}}
|- |-
| gamemodetext | gamemodetext
- | Set game mode text. Same as if you call [http://wiki.sa-mp.com/wiki/SetGameModeText SetGameModeText ]. The game mode text is set to '''Unknown''' by default.+ | Set game mode text. Same as if you call [http://wiki.sa-mp.com/wiki/SetGameModeText SetGameModeText ]. The game mode text is set to '''Unknown''' by default.{{traduct}}
|- |-
| chatlogging 0/1 | chatlogging 0/1
- | Enable/disable player chat to the server log. Useful to disable to stop the log becoming bloated, or if you have another scripted chat logging solution. This is enabled by default. Set to '''0''' to disable logging. This was introduced in '''0.3e R2''' and will not work with previous versions.+ | Enable/disable player chat to the server log. Useful to disable to stop the log becoming bloated, or if you have another scripted chat logging solution. This is enabled by default. Set to '''0''' to disable logging. This was introduced in '''0.3e R2''' and will not work with previous versions.{{traduct}}
|- |-
| messageholelimit | messageholelimit
Line 104: Line 104:
| Mettez à 0 (défaut) pour désactiver la visée automatique des manettes, et pour activer la compensation lors des tir. Mettez à 2 pour activer le 'legacy mode' qui permet de désactiver la compensation des tirs et la visée automatique des manettes sera activée. Mettez à 1 est utilisé pour le déboguage, seulement la position des joueurs sera compensée lors des tirs et pas la rotation. | Mettez à 0 (défaut) pour désactiver la visée automatique des manettes, et pour activer la compensation lors des tir. Mettez à 2 pour activer le 'legacy mode' qui permet de désactiver la compensation des tirs et la visée automatique des manettes sera activée. Mettez à 1 est utilisé pour le déboguage, seulement la position des joueurs sera compensée lors des tirs et pas la rotation.
|} |}
-['''*'''] Lower values of onfoot_rate incar_rate weapon_rate increase sync performance although increase bandwidth.+['''*'''] Lower values of onfoot_rate incar_rate weapon_rate increase sync performance although increase bandwidth.{{traduct}}
-['''**'''] stream_distance With larger values, players can see server entities at a greater distance although will require more client processing and potentially more bandwidth.+['''**'''] stream_distance With larger values, players can see server entities at a greater distance although will require more client processing and potentially more bandwidth.{{traduct}}
-['''***'''] stream_rate Lower values increase server CPU as it has to recheck streaming conditions more frequently for each player.+['''***'''] stream_rate Lower values increase server CPU as it has to recheck streaming conditions more frequently for each player.{{traduct}}

Revision as of 01:11, 4 February 2014

A Working Server!
Enlarge
A Working Server!

Description:

server.cfg est un fichier de configuration pou le serveur qui permet de modifier des paramètres tels que les filterscripts chargés, les plugins, le mot de passe, etc...
Ce fichier est nécessaire pour tous les serveurs et doit être situé dans le dossier du serveur.



Paramètres

Le tableau suivant va vous montrer la plupart des paramètres:

Paramètre Effet
echo C'est ce qu'affiche la console lorsqu'elle charge server.cfg. Par défaut, la console affiche Executing Server Config...
lanmode Activer le lanmode (mode LAN, local) vous permettra de consommer moins de bande passante pour rendre le serveur un peu plus rapide. Vous pouvez activerle lanmode en changeant la valeur en 1, et vous pouvez le désactiver en changeant la valeur en 0. Par défaut vaut 0
maxplayers C'est le maximum de joueur qui peut-être atteint par le serveur. Changer cette valeur permet de changer combien de joueurs peuvent entrer dans le server. Le maximum est 500 et le minimum est 1. Par défaut, maxplayers vaut 500.
announce Activer/Désactiver l'affichage dans la liste des serveurs de SA-MP. 1 pour activer ou 0 pour désactiver.
port Le port utilisé par le serveur. Par défaut le port est 7777.
hostname Permet de changer le nom affiché dans la liste des serveurs. Par défaut, le nom est SA-MP 0.3 Server.
gamemode(n) (N) (t) It's possible to set the gamemode that plays, how many times it plays and when it plays by editing the values here. To use this correctly you must understand how it works, (n) is the gamemode number, (N) is the gamemode name*, and (t) is the times played before switching onto the next mode. By default this area will look like this:
  • gamemode0 grandlarc 1
weburl C'est le lien vers le site qui sera affiché dans les détails de votre serveur ans la liste des serveurs. C'est un paramètre optionnel, par défaut le site est www.sa-mp.com.
rcon_password Le mot de passe utiliser pour administrer le serveur et utiliser les commandes rcon. Par défat le mot de passe est changeme. Le serveur ne se lancera pas si le mot de passe est changeme.
filterscripts (N) Filterscripts are scripts that run in the background of your gamemode, they are there to add extras to the server without editing the gamemode. It's very useful if you want to carry a specific property to more than one gamemode. To use this you must find the folder in your server folder named filterscripts and place your filterscripts (.amx) in there. (N) symbolizes the filterscript name*. If you have multiple filterscripts you want to load, put them all in a row separated by "space", e.g. filterscripts script1 script2.
plugins (N) The plugins directive allows you to specify plugins which are designed to enhance gamemodes and filterscripts. (N) symbolizes the plugin's name. If you have multiple plugins you want to load, put them all in a row separated by "space", e.g. plugins plugin1 plugin2.
  • You may find more information about plugin development in this topic.
password (p) Locking your server is another option that is available for the root server administrator. You can use this to lock unwanted visitors from the server. (p) symbolizes the password that will be used. By default your server will not have a password.
mapname (m) The mapname appears in the server browser. (m) symolizes the mapname. By default this is set to San Andreas.
  • Replace [name] to anything you want, e.g. My-stunt-map
  • The gamemode/filterscript name is the gamemodes/filterscripts compiled name in your gamemodes/filterscripts folder, all must match exactly except you must leave the .amx extension off.
bind Force le serveur à utiliser une IP spécifique
rcon 0/1 If 0 is specified the rcon Remote Console feature is disabled.
maxnpc Le maximum de NPC (PNJ) qui peuvent rejoindre le serveur.
onfoot_rate* The minimum time in milliseconds a client updates the server with new data while running/walking.
incar_rate The minimum time in milliseconds a client updates the server with new data while in a vehicle.
weapon_rate The minimum time in milliseconds a client updates the server with new data while firing a weapon.
stream_distance** The distance on the X,Y plane which server entities will stream in for connected players.
stream_rate*** The number of milliseconds that must elapse before server entities stream distance is retested for each player.
timestamp Activer/Désactiver le timestamp.
logqueries 0 to disable, 1 to enable. This logs all queries sent to the server by players, it's considerably useful during a DDoS attack.
logtimeformat Allows you to configure the timestamp format. The format is based on the strftime format from C/C++. Here are some examples:
  • logtimeformat [%H:%M:%S] - (default) This displays only the time, and is the default format for all previous SA-MP server versions.
  • logtimeformat [%d/%m/%Y %H:%M:%S] - This would display the date in dd/mm/yyyy format followed by the time in hour:minute:second format.
output Enable/Disable duplication of log messages (e.g. those printed with print/printf from scripts or logprintf from plugins) in server console. If this option is set to 0 (default) messages are only printed to server log. This option has effect only on Linux servers.
gamemodetext Set game mode text. Same as if you call SetGameModeText . The game mode text is set to Unknown by default.
chatlogging 0/1 Enable/disable player chat to the server log. Useful to disable to stop the log becoming bloated, or if you have another scripted chat logging solution. This is enabled by default. Set to 0 to disable logging. This was introduced in 0.3e R2 and will not work with previous versions.
messageholelimit Regardez ici.
shotcompmode Mettez à 0 (défaut) pour désactiver la visée automatique des manettes, et pour activer la compensation lors des tir. Mettez à 2 pour activer le 'legacy mode' qui permet de désactiver la compensation des tirs et la visée automatique des manettes sera activée. Mettez à 1 est utilisé pour le déboguage, seulement la position des joueurs sera compensée lors des tirs et pas la rotation.

[*] Lower values of onfoot_rate incar_rate weapon_rate increase sync performance although increase bandwidth.

[**] stream_distance With larger values, players can see server entities at a greater distance although will require more client processing and potentially more bandwidth.

[***] stream_rate Lower values increase server CPU as it has to recheck streaming conditions more frequently for each player.


Notes

  • The stream_distance and stream_rate can be changed while the server is running e.g. /rcon stream_distance 300.0 or /rcon stream_rate 1000. The onfoot_rate, incar_rate, weapon_rate can also be changed while the server is running, although it will only effect newly connecting players.
  • (Game-)Modes (and Filterscripts) do not have to be in "gamemodes/" or "filterscripts/". The information in server.cfg is a path, and can use "..": (Quote by Y_Less)
filterscripts ../scriptfiles/first ../minimodes/second