Difference between revisions of "SourceMod 1.1.0 Release Notes"

From AlliedModders Wiki
Jump to: navigation, search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
SourceMod 1.1 has been brewing for over ten months and is nearing release qualityPlease help beta test it!
+
__FORCETOC__
 
+
SourceMod 1.1 is a major update, containing many features, fixes, and improvementsIf you need help upgrading, see [[Upgrading SourceMod]].
 
 
'''TODO'''
 
*[https://bugs.alliedmods.net/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=SourceMod&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=VERIFIED&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfield=short_desc&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=flagtypes.name&type0-0-0=equals&value0-0-0=blocking-1.1.0%2B List of blockers]
 
*Write client prefs api link.
 
*Write gamedata updating link.
 
*Update ML docs on the new dir layout.
 
'''RELEASE CHECKLIST'''
 
*Update changelog.txt
 
*Send release upstream
 
*Update downloads.php
 
*Update wiki refs to latest version
 
*Update site compiler
 
*Update structs.inc link.
 
*Update docs.sourcemod.net/api
 
*Branch trunk off as sourcemod-1.1, bump central to sourcemod-1.2.
 
*Post news
 
 
 
  
 +
*'''This release DOES HAVE configuration changes.'''
 +
*'''This release DOES NOT break compatibility.'''
 +
<br />
 
=Plugin Changes=
 
=Plugin Changes=
  
Line 56: Line 42:
  
  
=Structs Extension=
+
=JIT Changes=
A new extension called "Structs" is now availableThis extension is designed to abstract native data structures for plugins to easily modify.  For example, it is now possible to modify weapon information structures that were previously internal to the HL2SDK.
+
The concept of "debug mode" has been removed.  Debug mode is now always on, and it has been reworked to not be a performance hit.  In addition functions are now compiled on-demand rather than all at once on load.   
 +
 
 +
The JIT has received major API changes and is now decoupled from SourceMod.  For more information, see [http://www.bailopan.net/blog/?p=199 this blog post].
 +
 
 +
 
 +
=Config Changes=
 +
*<tt>core.cfg</tt> has new options for tweaking gamedata updating.
 +
*<tt>databases.cfg</tt> now contains a default entry for client preferences.
 +
*<tt>languages.cfg</tt> now contains the new user-translated languages.
 +
*<tt>maplists.cfg</tt> has been extended for the new map management plugins.
 +
*<tt>plugin_settings.cfg</tt> no longer has debug settings.
  
For more information, see [http://blahblah/ structs.inc].
 
  
 +
=Compatibility=
 +
This release is fully backwards compatible.  It is not, however, forwards compatible.  Plugins compiled against SourceMod 1.1 will not run on any earlier version.
  
=JIT Changes=
 
The concept of "debug mode" has been removed.  Debug mode is now always on, and it has been reworked to not be a performance hit.  In addition functions are now compiled on-demand rather than all at once on load. 
 
  
The JIT has received major API changes and is now decoupled from SourceMod.  For more information, see [http://www.bailopan.net/blog/?p=199 this blog post].
+
=Translations=
 +
SourceMod 1.1.0 ships with a number of community provided translation packsThe following languages are included:
 +
*Brazilian Portuguese
 +
*Chinese Simplified
 +
*Danish
 +
*German
 +
*Hungarian
 +
*Japanese
 +
*Latvian
 +
*Norwegian
 +
*Polish
 +
*Romanian
 +
*Russian
 +
*Spanish
 +
*Swedish
 +
*Turkish
  
  
 
=Changelog=
 
=Changelog=
 
*Added new client preferences extension (API in clientprefs.inc, {{bz|1925}}).
 
*Added new client preferences extension (API in clientprefs.inc, {{bz|1925}}).
*Added new struct abstraction extension (API in structs.inc, {{bz|2666}}).
 
 
*Added new gamedata auto-update functionality ({{bz|2602}}).  
 
*Added new gamedata auto-update functionality ({{bz|2602}}).  
 
*Revamped and greatly expanded map management plugins and their functionality ({{bz|2201}}).
 
*Revamped and greatly expanded map management plugins and their functionality ({{bz|2201}}).
Line 76: Line 85:
 
*The timeleft trigger can now handle mp_winlimit, mp_fraglimit, and mp_maxrounds ({{bz|2344}}).
 
*The timeleft trigger can now handle mp_winlimit, mp_fraglimit, and mp_maxrounds ({{bz|2344}}).
 
*Translations can now be in separate files and placed in language-unique folders.
 
*Translations can now be in separate files and placed in language-unique folders.
 +
*The leading "STEAM_0:" or "STEAM_1:" in SteamIDs can now be omitted from admin files.
 
*Added sm_revote command so clients can participate in a vote that fell off their screen ({{bz|2156}}).
 
*Added sm_revote command so clients can participate in a vote that fell off their screen ({{bz|2156}}).
 
*Added Core API for creating stack structures (adt_stack.inc, {{bz|2441}}).
 
*Added Core API for creating stack structures (adt_stack.inc, {{bz|2441}}).
Line 84: Line 94:
 
*Added CreateDirectory() native ({{bz|3253}}).
 
*Added CreateDirectory() native ({{bz|3253}}).
 
*Added "magic" MaxClients variable to replace slower GetMaxClients() call.
 
*Added "magic" MaxClients variable to replace slower GetMaxClients() call.
 +
*Added support for three-letter language codes ({{bz|3526}}).
 
*Functions to control client versus client mic listening now work as described ({{bz|2498}}).
 
*Functions to control client versus client mic listening now work as described ({{bz|2498}}).
 
*Fixed SDKTools not being reloadable, and fixed a related bug in Handle type removal ({{bz|2753}}).
 
*Fixed SDKTools not being reloadable, and fixed a related bug in Handle type removal ({{bz|2753}}).
Line 99: Line 110:
 
*Fixed accessing invalid Handles causing crashes ({{bz|3359}}).
 
*Fixed accessing invalid Handles causing crashes ({{bz|3359}}).
 
*Fixed memory corruption with MySQL + FetchString ({{bz|3352}}).
 
*Fixed memory corruption with MySQL + FetchString ({{bz|3352}}).
 +
*Fixed ReadFileString ignoring its fourth parameter ({{bz|3459}}).
 +
*Fixed sm_sql_addadmin reading the immunity field as a password ({{bz|3395}}).
 +
*Fixed ReadFile sign-extending instead of zero-extending ({{bz|3449}}).

Latest revision as of 00:22, 29 December 2008

SourceMod 1.1 is a major update, containing many features, fixes, and improvements. If you need help upgrading, see Upgrading SourceMod.

  • This release DOES HAVE configuration changes.
  • This release DOES NOT break compatibility.


Plugin Changes

Map Management Changes

SourceMod's map management plugins have gone through huge overhauls to address many community requested features and bugs.

The new "mapchooser" plugin provides a central system for other map-related plugins. In addition:

  • nominations adds nominations into map votes.
  • rockthevote lets users start early map votes.
  • nextmap automatically selects the next map.
  • randomcycle randomly selects the next map.

To learn more about the new map management system, see Map Management.

Reserved Slot Changes

Reserved slots has a new reserve type to stop kicking players once a certain number of admins have been reached. There is also a new kick type cvar that selects which heuristic to kick a player by. Available heuristics are ping time, connection time, and randomly.

For more information, see Reserved Slots. Sections specific to SourceMod 1.1 or higher are marked as such.


Gamedata Updater

One major support problem with SourceMod is that when a mod updates, it is quite easy to break SourceMod's SDKTools. SDKTools provides "hacky" scripting functionality for internal game features, like slaying players or creating entities.

To fix this 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.

Only official gamedata files are updated. All gamedata updating functionality can be disabled if you deem it a security risk. For more information, see Gamedata Updating.


Client Prefs

SourceMod 1.1 comes with a new "client preferences" extension. This extension lets plugins configure properties on clients which are preserved across connections, server restarts, and even across multiple servers. Properties are created and maintained by plugins in an API similar to ConVars (cvars).

The Client Prefs extension can be configured to use SQLite (default) or MySQL. All operations are threaded in order to not interrupt gameplay performance.

To read more, see Client Preferences API.


JIT Changes

The concept of "debug mode" has been removed. Debug mode is now always on, and it has been reworked to not be a performance hit. In addition functions are now compiled on-demand rather than all at once on load.

The JIT has received major API changes and is now decoupled from SourceMod. For more information, see this blog post.


Config Changes

  • core.cfg has new options for tweaking gamedata updating.
  • databases.cfg now contains a default entry for client preferences.
  • languages.cfg now contains the new user-translated languages.
  • maplists.cfg has been extended for the new map management plugins.
  • plugin_settings.cfg no longer has debug settings.


Compatibility

This release is fully backwards compatible. It is not, however, forwards compatible. Plugins compiled against SourceMod 1.1 will not run on any earlier version.


Translations

SourceMod 1.1.0 ships with a number of community provided translation packs. The following languages are included:

  • Brazilian Portuguese
  • Chinese Simplified
  • Danish
  • German
  • Hungarian
  • Japanese
  • Latvian
  • Norwegian
  • Polish
  • Romanian
  • Russian
  • Spanish
  • Swedish
  • Turkish


Changelog

  • Added new client preferences extension (API in clientprefs.inc, bug 1925).
  • Added new gamedata auto-update functionality (bug 2602).
  • Revamped and greatly expanded map management plugins and their functionality (bug 2201).
  • Debug mode is now always on; as there is no longer a performance loss, there is no non-debug mode.
  • The timeleft trigger can now handle mp_winlimit, mp_fraglimit, and mp_maxrounds (bug 2344).
  • Translations can now be in separate files and placed in language-unique folders.
  • The leading "STEAM_0:" or "STEAM_1:" in SteamIDs can now be omitted from admin files.
  • Added sm_revote command so clients can participate in a vote that fell off their screen (bug 2156).
  • Added Core API for creating stack structures (adt_stack.inc, bug 2441).
  • Added API for extending mapchooser (mapchooser.inc, bug 2201).
  • Added Core API for map transition control and history (nextmap.inc).
  • Added TF2 forward for overriding how critical hits are calculated.
  • Added SetClientInfo() native for modifying how a server sees a client's setinfo properties.
  • Added CreateDirectory() native (bug 3253).
  • Added "magic" MaxClients variable to replace slower GetMaxClients() call.
  • Added support for three-letter language codes (bug 3526).
  • Functions to control client versus client mic listening now work as described (bug 2498).
  • Fixed SDKTools not being reloadable, and fixed a related bug in Handle type removal (bug 2753).
  • Rewrote internal translation handling. Extensions now have access to an ITranslator API (bug 2535).
  • Rewrote internal handling of dependencies (especially relating to native providers) (bug 2466).
  • Added user config hooks to IGameConfigManager, for parsing user-defined sections.
  • Revamped SourcePawn API. Removed and deprecated many structures and functions accidentally exposed publicly.
  • Revamped SourcePawn structure, it is now separable from SourceMod for other projects.
  • Renamed basefuncommands.phrases.txt to funcommands.phrases.txt (bug 2485).
  • Renamed basefunvotes.phrases.txt to funvotes.phrases.txt (bug 2485).
  • Added IDBDriver API call for extensions to handle IDBDriver dependencies properly.
  • Usermessage natives now validate clients to prevent crashing.
  • Fixed OnConfigsExecuted not working on listen servers.
  • Fixed out-of-handle conditions in CreateTimer() causing crashes (bug 3381).
  • Fixed accessing invalid Handles causing crashes (bug 3359).
  • Fixed memory corruption with MySQL + FetchString (bug 3352).
  • Fixed ReadFileString ignoring its fourth parameter (bug 3459).
  • Fixed sm_sql_addadmin reading the immunity field as a password (bug 3395).
  • Fixed ReadFile sign-extending instead of zero-extending (bug 3449).