Difference between revisions of "Gamedata Updating (SourceMod)"
(New page: We now have a gamedata auto-updating feature in SourceMod (for gamedata files only). When your server starts, SourceMod will contact AlliedModders to check for gamedata file updates. Allie...) |
m |
||
Line 13: | Line 13: | ||
**The default value is "no". A value of "yes" will block the Auto Updater. | **The default value is "no". A value of "yes" will block the Auto Updater. | ||
*ForceRestartAfterUpdate | *ForceRestartAfterUpdate | ||
− | **Enables or disables automatic restarting of | + | **Enables or disables automatic restarting of SourceMod after a gamedata update. |
− | **The default value is "no". A value of "yes" will | + | **The default value is "no". A value of "yes" will make SourceMod reload itself and refresh the map. |
*AutoUpdateServer | *AutoUpdateServer | ||
− | **Sets the server to connect to for | + | **Sets the server to connect to for automatic gamedata updates. |
− | **Default is " | + | **Default is "smupdate.alliedmods.net" |
*AutoUpdatePort | *AutoUpdatePort | ||
**Sets the port to connect to on the AutoUpdateServer server | **Sets the port to connect to on the AutoUpdateServer server | ||
**Default is 6500 | **Default is 6500 | ||
− | = | + | ==Details== |
− | + | Gamedata files are only replaced if their contents are recognized. For example, if you make custom changes to your files, they will not be replaced even if a newer version is available. For this reason it is recommended that you submit any changes upstream through the [https://bugs.alliedmods.net/ bug tracker]. | |
− | |||
− | |||
− | + | Gamedata files from snapshots are not tracked. Only gamedata files from official releases will be automatically updated. This means if you are using a snapshot, your files may not receive updates. | |
− | |||
− | |||
− | |||
− | |||
− | = | + | =Developers= |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | See tools/gamedata_md5 and tools/daemon for the code that analyzes and handles update requests for gamedata files. Please report any bugs [https://bugs.alliedmods.net/ at the usual place]. | |
− | |||
− |
Revision as of 19:07, 28 December 2008
We now have a gamedata auto-updating feature in SourceMod (for gamedata files only). When your server starts, SourceMod will contact AlliedModders to check for gamedata file updates. AlliedModders will send back new files if they are available.
As part of this effort, if your server crashes on load, gamedata files will become locked, and no "hacky" functionality will be available. The motivation behind this is to give your server time to update safely in case plugins are trying to run functions that are doomed to crash.
Contents
Users
Configuration
core.cfg has four new settings to control the autoupdaters functionality
- DisableAutoUpdate
- Enables or Disables SourceMod's automatic gamedata updating.
- The default value is "no". A value of "yes" will block the Auto Updater.
- ForceRestartAfterUpdate
- Enables or disables automatic restarting of SourceMod after a gamedata update.
- The default value is "no". A value of "yes" will make SourceMod reload itself and refresh the map.
- AutoUpdateServer
- Sets the server to connect to for automatic gamedata updates.
- Default is "smupdate.alliedmods.net"
- AutoUpdatePort
- Sets the port to connect to on the AutoUpdateServer server
- Default is 6500
Details
Gamedata files are only replaced if their contents are recognized. For example, if you make custom changes to your files, they will not be replaced even if a newer version is available. For this reason it is recommended that you submit any changes upstream through the bug tracker.
Gamedata files from snapshots are not tracked. Only gamedata files from official releases will be automatically updated. This means if you are using a snapshot, your files may not receive updates.
Developers
See tools/gamedata_md5 and tools/daemon for the code that analyzes and handles update requests for gamedata files. Please report any bugs at the usual place.