Merge from sourcemod-1.1 branch.
authorDavid Anderson <dvander@alliedmods.net>
Sun Dec 28 19:56:40 2008 -0500 (2008-12-28)
changeset 2488f7f1bbcc85e4
parent 2482 d8a999d95092
parent 2487 517a1b6abb75
child 2489 005c598ba230
Merge from sourcemod-1.1 branch.
configs/languages.cfg
core/GameDataFetcher.cpp
extensions/sdktools/vnatives.cpp
     1.1 --- a/changelog.txt	Sun Dec 28 18:28:57 2008 -0500
     1.2 +++ b/changelog.txt	Sun Dec 28 19:56:40 2008 -0500
     1.3 @@ -2,6 +2,82 @@
     1.4  
     1.5  ----------------------------
     1.6  
     1.7 +SourceMod 1.1.0 [2008-12-28]
     1.8 +
     1.9 +URL: http://wiki.alliedmods.net/SourceMod_1.1.0_Release_Notes
    1.10 +
    1.11 +Major features:
    1.12 + * New map management plugins.
    1.13 + * New reserved slot type.
    1.14 + * GameData updates are retrieved remotely
    1.15 + * Client Preferences extension for per-client "cookies"
    1.16 + * New incremental and independent JIT
    1.17 +
    1.18 +Changes:
    1.19 +
    1.20 + - Added new client preferences extension (API in clientprefs.inc, bug 1925).
    1.21 + - Added new gamedata auto-update functionality (bug 2602).
    1.22 + - Revamped and greatly expanded map management plugins and their functionality (bug 2201).
    1.23 + - Debug mode is now always on; as there is no longer a performance loss, there is no non-debug mode.
    1.24 + - The timeleft trigger can now handle mp_winlimit, mp_fraglimit, and mp_maxrounds (bug 2344).
    1.25 + - Translations can now be in separate files and placed in language-unique folders.
    1.26 + - The leading "STEAM_0:" or "STEAM_1:" in SteamIDs can now be omitted from admin files.
    1.27 + - Added sm_revote command so clients can participate in a vote that fell off their screen (bug 2156).
    1.28 + - Added Core API for creating stack structures (adt_stack.inc, bug 2441).
    1.29 + - Added API for extending mapchooser (mapchooser.inc, bug 2201).
    1.30 + - Added Core API for map transition control and history (nextmap.inc).
    1.31 + - Added TF2 forward for overriding how critical hits are calculated.
    1.32 + - Added SetClientInfo() native for modifying how a server sees a client's setinfo properties.
    1.33 + - Added CreateDirectory() native (bug 3253).
    1.34 + - Added "magic" MaxClients variable to replace slower GetMaxClients() call.
    1.35 + - Added support for three-letter language codes (bug 3526).
    1.36 + - Functions to control client versus client mic listening now work as described (bug 2498).
    1.37 + - Fixed SDKTools not being reloadable, and fixed a related bug in Handle type removal (bug 2753).
    1.38 + - Rewrote internal translation handling. Extensions now have access to an ITranslator API (bug 2535).
    1.39 + - Rewrote internal handling of dependencies (especially relating to native providers) (bug 2466).
    1.40 + - Added user config hooks to IGameConfigManager, for parsing user-defined sections.
    1.41 + - Revamped SourcePawn API. Removed and deprecated many structures and functions accidentally exposed publicly.
    1.42 + - Revamped SourcePawn structure, it is now separable from SourceMod for other projects.
    1.43 + - Renamed basefuncommands.phrases.txt to funcommands.phrases.txt (bug 2485).
    1.44 + - Renamed basefunvotes.phrases.txt to funvotes.phrases.txt (bug 2485).
    1.45 + - Added IDBDriver API call for extensions to handle IDBDriver dependencies properly.
    1.46 + - Usermessage natives now validate clients to prevent crashing.
    1.47 + - Fixed OnConfigsExecuted not working on listen servers.
    1.48 + - Fixed out-of-handle conditions in CreateTimer() causing crashes (bug 3381).
    1.49 + - Fixed accessing invalid Handles causing crashes (bug 3359).
    1.50 + - Fixed memory corruption with MySQL + FetchString (bug 3352).
    1.51 + - Fixed ReadFileString ignoring its fourth parameter (bug 3459).
    1.52 + - Fixed sm_sql_addadmin reading the immunity field as a password (bug 3395).
    1.53 + - Fixed ReadFile sign-extending instead of zero-extending (bug 3449). 
    1.54 +
    1.55 +----------------------------
    1.56 +
    1.57 +SourceMod 1.0.4 [2008-09-14]
    1.58 +
    1.59 +Changes:
    1.60 +
    1.61 + - Fixed amb1986: Format() with very long strings could crash if the input and output buffers overlapped.
    1.62 + - Fixed amb1938: The compiler ate too many characters in preprocessor macros.
    1.63 + - Fixed amb1935: Topmenu child names were not uncached when a category was deleted.
    1.64 + - Fixed amb1929: Banning via the console threw a runtime error.
    1.65 + - Fixed amb1918: Ban menu should compare userids, not client indexes
    1.66 + - Fixed amb1916: Threaded query delay is now 50ms instead of 500ms.
    1.67 + - Fixed amb1899: Duplicate maps in auto generated maplists.
    1.68 + - Fixed amb1891: Basechat didn't check for blank message in private says.
    1.69 + - Fixed amb1853: Ternary operators with string assignments could chop strings off.
    1.70 + - Fixed amb1815: Custom admin menu wasn't escaping input.
    1.71 + - Fixed amb1808: KickClient() is now delayed to prevent crashes, use KickClientEx for old functionality.
    1.72 + - Fixed amb1802: Possible crash when a client disconnected.
    1.73 + - Fixed amb1801: Improved bot detection, and fixed bots crashing if inside an OrangeBox server.cfg.
    1.74 + - Fixed amb1780: admin-sql-threaded had a debug spew turned on.
    1.75 + - Fixed amb1779: Crash in GetTeamName() on mods that don't support it.
    1.76 + - Fixed amb1763: Function call status is now cleared on a new function call.
    1.77 + - Fixed amb1749: Updated and improved DoD:S SDKTools coverage.
    1.78 + - Fixed team native crashes in SDKTools for mods like Insurgency.
    1.79 + - Fixed various file handle leaks. 
    1.80 +
    1.81 +----------------------------
    1.82 +
    1.83  SourceMod 1.0.3 [2008-06-21]
    1.84  
    1.85  Changes:
     3.1 --- a/core/GameDataFetcher.cpp	Sun Dec 28 18:28:57 2008 -0500
     3.2 +++ b/core/GameDataFetcher.cpp	Sun Dec 28 19:56:40 2008 -0500
     3.3 @@ -126,9 +126,15 @@
     3.4  	GetAdjustedTime(&t);
     3.5  	tm *curtime = localtime(&t);
     3.6  
     3.7 -	g_SourceMod.BuildPath(Path_SM, log_path, sizeof(log_path), "logs/gamedata/L%02d%02d.log", curtime->tm_mon + 1, curtime->tm_mday);
     3.8 +	g_SourceMod.BuildPath(Path_SM,
     3.9 +						  log_path,
    3.10 +						  sizeof(log_path),
    3.11 +						  "logs/gamedata/L%04d%02d%02d.log",
    3.12 +						  curtime->tm_year + 1900,
    3.13 +						  curtime->tm_mon + 1,
    3.14 +						  curtime->tm_mday);
    3.15  
    3.16 -	logfile = fopen(log_path, "a");
    3.17 +	logfile = fopen(log_path, "at");
    3.18  
    3.19  	if (!logfile)
    3.20  	{
     4.1 --- a/extensions/sdktools/vnatives.cpp	Sun Dec 28 18:28:57 2008 -0500
     4.2 +++ b/extensions/sdktools/vnatives.cpp	Sun Dec 28 19:56:40 2008 -0500
     4.3 @@ -101,8 +101,8 @@
     4.4  		*vaddr = call;
     4.5  		return true;
     4.6  	} else {
     4.7 -		void *addr;
     4.8 -		if (g_pGameConf->GetMemSig(name, &addr))
     4.9 +		void *addr = NULL;
    4.10 +		if (g_pGameConf->GetMemSig(name, &addr) && addr != NULL)
    4.11  		{
    4.12  			call = CreateValveCall(addr, vcalltype, retinfo, params, numParams);
    4.13  			if (call)