Difference between revisions of "AMX Mod X 1.9 Release Notes"
m (SvenCoop 5.17 is now supported in Hamsandwich) |
m (Added cs_get_weaponbox_item) |
||
Line 724: | Line 724: | ||
* Added {{tt|cs_get_item_alias}} ({{pr|amxx|342}}) | * Added {{tt|cs_get_item_alias}} ({{pr|amxx|342}}) | ||
* Added {{tt|cs_get_weapon_info}} native which gives various information about a weapon (only) ({{pr|amxx|278}}, {{pr|amxx|356}}) | * Added {{tt|cs_get_weapon_info}} native which gives various information about a weapon (only) ({{pr|amxx|278}}, {{pr|amxx|356}}) | ||
+ | * Added {{tt|cs_get_weaponbox_item}} native ({{pr|amxx|548}}) | ||
* Added a param to {{tt|cs_set_user_deaths}} native to choose whether the scoreboard should be updated ({{pr|amxx|255}}) | * Added a param to {{tt|cs_set_user_deaths}} native to choose whether the scoreboard should be updated ({{pr|amxx|255}}) | ||
* Added support for {{tt|monster_scientist}} entity (alias of {{tt|hostage_entity}}) to hostage natives ({{pr|amxx|255}}) | * Added support for {{tt|monster_scientist}} entity (alias of {{tt|hostage_entity}}) to hostage natives ({{pr|amxx|255}}) |
Revision as of 15:27, 9 September 2018
AMX Mod X 1.9 is a major update, containing many features, fixes, and improvements under the hood.
- ✓ All old plugins and modules will continue to work.
- ✓ This release does have new configuration files.
- ✓ This release does have configuration changes.
- ✓ This release does include plugin changes.
- ✓ This release does have translations changes.
- ✓ This release does not break compatibility.
⇅
.
Contents
Major Highlights
GitHub
A friendly reminder of the previous announcement on the AMX Mod X website, all development is now done on GitHub.
You can now check out the latest changes on https://github.com/alliedmodders/amxmodx.
Any help is welcomed and encouraged. To contribute, there are two ways:
- To report a bug or request a feature, you can create an issue here: https://github.com/alliedmodders/amxmodx/issues
- To directly contribute to the AMX Mod X repository, you can create a Pull Request by following this guide: https://wiki.alliedmods.net/Git_Tutorial.
- You can see the current PRs here as well: https://github.com/alliedmodders/amxmodx/pulls.
- → Don't hesitate to give your thoughts or to review, anyone can participate!
General
The improvements for AMX Mod X 1.9 span the whole project:
- Stability and performance improvements
- Official support for ReHLDS and ReGameDLL
- Greatly improved UTF-8 support across the project
- Significant improvements to modules and official plugins
- (Almost) completely revised and completed documentation
- Tons of new functionalities for plugin developers and admins
Compatibility
For AMX Mod X plugins and modules, this release is fully backward compatible. Anything else is a bug.
However, a lot of legacy AMX Mod (no X) code has been removed, so we no longer guarantee backward compatibility for AMX Mod plugins.
AMX Mod X contains a host of new features for developers, so plugins and modules compiled against AMX Mod X 1.9 will not run on an earlier version.
If we are made aware of compatibility issues, we will list the known issues below while a fix is developed.
Known Issues:
- None
Upgrading
Upgrading follows the standard procedure, however, there are some specific steps that require additional attention.
General
- Ensure your game server is completely stopped as you cannot properly update some files while they are still in use.
- Replace all binaries:
- Replace languages files:
- Any
.txt
files in/amxmodx/data/lang
folder
- Any
- Replace
hamdata.ini
in/amxmodx/configs
folder - If you do scripting locally:
New files
- Copy
GeoLite2-Country.mmdb
to the/amxmodx/data
folder (optionally, delete the oldGeoIP.dat
file) - Copy the whole
gamedata
directory to the/amxmodx/data
folder
Config changes
File | Changes |
---|---|
amxx.cfg
|
⇅ New cvars// Server language in ISO 639-1 format // Please see data/lang/languages.txt file for a list of supported languages // // Default value: en amx_language "en" // If you set this to 0, clients will not see a message about amx_langmenu when they join the server // // Default value: 1 amx_language_display_msg 1 // Max temporary ban time (admins with ADMIN_BAN_TEMP access can't ban more than this time) // time in minutes, 60 is 1 hour, 120 is 2 hours, 1440 is 1 day, and 10080 is 1 week // Default value: 4320 aka 3 days amx_tempban_maxtime 4320 // Time to wait (in seconds) before displaying a message about amx_help to a client once joined the server // // Default value: 15 amx_help_display_msg_time 15 // If you set this to 0, clients will not see a message about amx_help when they join the server // // Default value: 1 amx_help_display_msg 1 // Amount of commands per amx_help page // // Default value: 10 amx_help_amount_per_page 10 Note:
amx_help_display_msg replaces the DISPLAY_MSG define in admin_help.sma . Note: amx_help_amount_per_page replaces the HELPAMOUNT define in admin_help.sma .Slay is now in the last position. "0" slap damage to the default values was wrongly left out. // Slay is automaticall inserted as the last option // Default values: 0 1 5 amx_plmenu_slapdmg 0 1 5 Missing values: // Show admins activity // 0 - disabled // 1 - show without admin name // 2 - show with name // 3 - show name only to admins, hide name from normal users // 4 - show name only to admins, show nothing to normal users // 5 - hide name only to admins, show nothing to normal users // // Default value: 2 amx_show_activity 2 |
core.ini
|
⇅ One missing and one new option.; Admin commnand flag manager ; 0 - enabled ; 1 - disabled disableflagman 0 ; MySQL default timeout mysql_timeout 60 |
sql.cfg
|
⇅ New cvaramx_sql_timeout "60" |
users.ini
|
⇅ New flag & documentation adjusted; d - amx_ban and amx_unban commands (permanent and temporary bans) ; v - amx_ban and amx_unban commands (temporary bans only, about amx_unban, only self performed ban during map gonna be allowed) |
Overview for Admins
Gamedata
The AMX Mod X team has made an effort to avoid hard-coding game-specific data into AMXX core and modules. New gamedata files have been created which are located in the amxmodx/data/gamedata/
directory.
These files are now mandatory.
Game data files shipped with AMX Mod X can and will be updated at any time, therefore it is strongly discouraged to edit them manually.
To make custom gamedata changes, please use the custom
folder under the gamedata
directory. All files under this directory are parsed (in an undefined order) after the main files are loaded. They will never be overwritten.
GeoIP
The GeoIP.dat
file is now replaced by GeoLite2-Country.mmdb
file.
As usual, a more detailed city version exists but is not provided in the default distribution. Plugins can require this version to operate.
Both (Country: ~2 MB, City: ~30 MB) can be downloaded from the official page: https://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary).
Plugins
Most plugins received large amounts of code improvements, modernizing and optimizing them using the latest AMXX core features. This also includes a few security fixes.
However, this does not (yet) translate into major user-facing features. We tried to improve internal tools before focusing on that.
The features in this release are:
General
- A new access level flag
v
for temporary bans - UTF-8 support in some MOTD
Admin Commands
- A new
amx_extendmap
command to extend the time limit of the current map. Usage:<time in minutes>
- A new
amx_xvar_int
andamx_xvar_float
command
Admin Chat
- Cooldown on
say_team @]
to avoid overflow on admins
Admin Help
- A new
amx_searchcmd
command to display information about a command. Usage:<match> <entry no.> [no. of entries to display (server only)]
- The hardcoded defines are replaced with
amx_help_display_msg
,amx_help_display_msg_time
andamx_help_amount_per_page
cvars
CS Misc. Stats
- A new
/msounds
client command to enable/disable sounds - A new option to disable showing last man's health
Players Menu
- A new Silent Transfer option
- A new
amx_language_display_msg
cvar for previously hardcodedDISPLAY_MSG
- Slay is now the last option in the Slay/Slap Menu
Restrict Weapons
- The
MAPSETTINGS
define is replaced byamx_restrmapsettings
cvar - No more hardcoded multilingual messages
- Admin activity is displayed on config loading/saving
- Opened menu is refereshed if the command is used to save/load/set
- Menu/command items are now grouped per class
Stats X
- Some translations are now player-specific.
Teleport Menu
- Possibility of being stuck should be reduced.
Translations
Along with fixes, improvements, and completion of existing translations, two new languages are provided:
- Russian
- Chinese
Overview for Developers
General
There are too many additions to list them here in details. For complete API changes and additions, see AMX_Mod_X_1.9_API_Changes.
It is strongly recommended to check out the changes, a lot of information is contained there.
Essentially:
- Documentation has been updated in many ways.
- Compiler got a bunch of fixes and minor improvements/features.
- The API has been updated with various fixes and improvements.
- New module
- New core APIs
- Existing core APIs additions
- Existing module APIs additions
Changelog
Internal
Compilation
- Ported buildscripts to new AMBuild2 platform, https://github.com/alliedmodders/ambuild
- Removed MakeFile (PR 262)
- Fixed GCC 4.8, Clang 3.9+ compilation (amb273061, PR 458)
- Built assembly files with AMBuild (PR 481)
Library
- Now using new AlliedModders Template Library (AMTL) in many places, https://github.com/alliedmodders/amtl (PR 138, PR 260, PR 270, PR 296, PR 422, PR 436)
- Added basic ReHLDS and ReGameDLL support (PR 417, PR 423, PR 425, PR 427, PR 446, PR 450, PR 483, PR 520)
- Removed pre-compiled zlib from the tree (PR 117, PR 118, PR 527)
- Unified zlib linkage by compiling it as a static library and linking it to concerned projects (PR 195)
Others
- Added license files for GPL2+/GPL3+, updated headers and
amxx gpl
command (PR 102, PR 103) - Deduplicated a number of files used by modules by moving them to the public directory (PR 112)
- Enabled C++11 support (PR 162)
- Updated versioning system and added missing module RC file (PR 165)
- Improved SELinux compatibility (PR 328)
- Updated Visual Studio projects files (PR 109, PR 247)
- Added Visual Studio 2015+ support (PR 179, PR 333, PR 397)
- Added or adjusted a bunch of safety checks (PR 433)
Core
Config
Command
- Made registered server commands case-insensitive (bug 5625)
- Extended
amxx list
command to search with criteria (PR 377)
Menu
- Updated mods list supporting colored menus: DMC, TFC and Valve (PR 143)
- Fixed unexpected behaviors when a game menu is overlapped with a custom one (bug 3199)
- Fixed a crash with overlapping newmenu (PR 462)
Module API
- Added the following functions (see api changes) (PR 97, PR 254, PR 530)
MF_SetAmxStringUTF8Char
MF_SetAmxStringUTF8Cell
MF_GetAmxStringNull
MF_GetAmxVectorNull
MF_GetConfigManager
MF_LoadAmxScriptEx
- Fixed
OnPluginsUnloaded
not being called for reloadable modules (PR 485)
Multilingual
- Improved method to check whether a multilingual file has been processed (PR 213)
- Fixed dictionary text files parser failing on BOM marking (bug 5858)
- Fixed missing status reset on successful language key retrieval (bug 5994)
Native
- Increased
get_amxstring
buffer size up to 16k (bug 5901)
- Fixed crash when dynamic native is executed with the max number of params (PR 291)
Others
- Added plugin version to debug trace information (bug 3649)
- Removed KTrie dependency to Hash map (PR 8, PR 406)
- Removed AMX Mod compatibility (PR 31, PR 461)
- Removed useless natives: hcsardhnexsnu, is_user_hacking, is_rukia_a_hag, and amxx_setpl_curweap (PR 461)
- Fixed incorrect message error on plugin which uses a deprecated file format (PR 275)
- Fixed spectator team index not being set in specific situations (Counter-strike only) (PR 15)
- Fixed an unicode issue with
amx_SetStringOld
(PR 22, PR 23) - Fixed log not written earlier at the first server start (PR 265)
- Fixed a memory leak when registering a forward fails due to missing callback (PR 465)
User
Translation
- Added Chinese language (PR 75)
- Updated Macedonian & Bulgarian translations (PR 477)
- Updated Hungarian translations (PR 474, PR 494)
- Fixed incorrect keys in several multilingual files (PR 27)
- Fixed missing translations for the following languages: de, cz, ro and sr (PR 27)
- Fixed various translations (PR 67)
Plugin
General
- Added a new access level flag
v
for temporary bans (bug 3218, PR 440) - Added UTF-8 support in some MOTD (bug 5825, PR 135)
- Removed AMX Mod compatibility (PR 28)
- Removed leet speak translation (PR 83)
- Removed some
client_cmd
usage (PR 88) - Applied general optimizations (bug 5822, bug 5833, bug 5818, PR 9, PR 17, PR 78, PR 82, PR 88, PR 89, PR 90, PR 136, PR 139, PR 141, PR 190, PR 194, PR 214, PR 216, PR 227, PR 241, PR 256, PR 362, PR 424)
Admin Base
- Directly kick players rather than use a loopback command (bug 5946)
- Assigned
FCVAR_PROTECTED
directly inregister_cvar
instead of after startup (PR 87) - Replaced
console_print
withengclient_print
to support connecting players (PR 251, bug 6372)
- Fixed an issue when not including a port when an admin is added by IP address (bug 5978)
Admin Chat
- Implemented cooldown on
say_team @]
to prevent admin's client get overflowed if executed a couple of times (bug 5815)
- Fixed broken admin chat access consistency (bug 5822)
Admin Commands
- Added
amx_extendmap
command (bug 3068) - Added
amx_xvar
command (bug 5896) - Added check for empty string in
amx_chat
command (bug 6017)
- Trimmed target in
amx_ban
to prevent bypassing checks (PR 86) - Removed slowhack in
amx_nick
command (bug 5832) - Sanitized
servercfgfile
andlservercfgfile
values (bug 6578
- Fixed Template:Amx slap unexpected behavior using large negative damage (bug 4975)
- Fixed a permission scalability bug in the following commands: (bug 6578, PR 441)
amx_addban
amx_exec
amx_cvar
Admin Help
- Added
amx_searchcmd
command (PR 415, PR 456) - Replaced hardcoded defines with
amx_help_display_msg
,amx_help_display_msg_time
andamx_help_amount_per_page
cvars (PR 84, PR 415)
CS Misc. Stats
- Added
/msounds
client command to enable/disable sounds (bug 5846) - Added an option to disable showing last man's health (bug 5847, PR 122)
- Fixed missing stats sounds, sounds precaching and few bugs (bug 5810)
Map Menu Plugin
- Fixed possible buffer overflows (PR 91)
Multi-Lingula System
- Moved
amx_language
cvar to core (PR 82)
NextMap
- Fixed last map not properly saving resulting mapcycle reset at mapchange (bug 5817)
- Fixed an in-game issue where
mp_chattime
cvar doesn't exist (bug 5922)
Nextmap Chooser
- Fixed possible buffer overflows (PR 91)
Players Menu
- Added Silent Transfer Option (PR 113, PR 161)
- Added
amx_language_display_msg
cvar for previously hardcodedDISPLAY_MSG
(PR 82)
- Moved slay as last option instead of first in Slay/Slap Menu (bug 5861)
- Removed vault usage,
amx_setlang
and server language from the menu in favor ofamx_language
(PR 82) - Used server language as fallback if client's "lang" key is not defined (PR 106)
Plugin Menu
- Fixed unreachable code warning (PR 131)
Restrict Weapons
- Overhauled the plugin (PR 347)
- Applied general optimization and small QoL changes
- Moved
MAPSETTINGS
define to cvaramx_restrmapsettings
- Made hardcoded messages multilingual
- Displayed admin activity on config loading/saving
- Refreshed opened menus if the command is used to save/load/set
- Grouped visually menu/command items per class
Stats X
- Moved formatting from
LANG_SERVER
to player-specific translations where possible (PR 9)
TimeLeft
- Fixed possible out of bound error (bug 5818)
Teleport Menu
- Improved precision to reduce the possibility of being stuck after teleportation (PR 17)
Developer
General
New Modules
- Introduced a JSON module (PR 379)
Engine
- Fixed some natives relying on a known engine bug related to last player's edict being invalid (bug 6429, PR 297, PR 299, PR 306)
emit_sound
Last player wasn't hearing the sound. e/message_begin
,dod_weaponlist
Was leading to a crash because engine doesn't like MSG_ONE_*
with null entity.TFC_[Clear/Set]Model
Was leading to a crash because of null edict. set_tr/2
Was not working when used with TR_pHit
pev
Was returning 0 used with pev_edict
pev_valid
Was returning 0.
Miscellaneous
- Added
DMG_GRENADE
constant (CS Only) (bug 6030) - Added missing
SVC_
messages (PR 223)SVC_RESOURCELOCATION
SVC_SENDCVARVALUE
SVC_SENDCVARVALUE2
- Added new xs stocks (PR 426)
xs_vec_len_2d
xs_vec_distance
xs_vec_distance_2d
xs_vec_add_scaled
xs_vec_sub_scaled
- Added
STATSX_*
,DODX_*
andMAX_BODYHITS
constants for client statistics (PR 509)
- Allowed
arrayset
to accept any type (PR 516) - Allowed
ExecuteForward
without need to create variable for returned value (PR 382) - Enforced
any:
tag in several natives header for convenience (PR 166, PR 222, PR 499) - Moved string constants and stocks in their own
string_const.inc
andstring_stocks.inc
includes PR 407
Core
New APIs
- Introduced Automatic Config File API (PR 266, PR 289, PR 496)
- Introduced DataPacks API (bug 5885, PR 231, PR 261, PR 419)
- Introduced Game Config Parser API (PR 254)
- Introduced Hasher API (PR 206, PR 384)
- Introduced Stack structures API (PR 94)
- Introduced TextParser API (PR 101, PR 272, PR 344, bug 6228, bug 6476)
- Introduced Trie Iterator API (PR 413)
Cellarray
- Added
ArraySortEx
/SortADTArray
natives and newSort_Random
sort method (bug 5494, PR 279) - Added the following new CellArray natives:
ArrayClone
,ArrayResize
,ArrayFindString
andArrayFindValue
(bug 6104, PR 107, PR 408) - Added
size
parameter toArrayGetArray
,ArraySetArray
andArrayPushArray
to control the number of elements to use (PR 76, PR 111) - Added
block
parameter toArrayGetCell
andArraySetCell
to specify which block (PR 76, PR 111) - Added
achar
parameter toArrayGetCell
andArraySetCell
value as a byte (PR 76, PR 111)
- Fixed an overflow issue with
ArrayInsertBefore
andArrayInsertAfter
(bug 4330) - Fixed
ArrayDestroy
erroring on invalid handle (PR 210)
CellTrie
- Added
TrieGetSize
andTrieSnapshot*
natives (PR 8) - Added new
replace
parameters forTrieSet*
natives to make the operation fail if key already set (PR 8) - Added new
size
parameter forTrieGetString
andTrieGetArray
to return the number of bytes written in the buffer (PR 8)
Client
- Added
client_disconnected
forward to fix player not being internally disconnected in some situation (PR 264, PR 304, PR 334) - Added
client_remove
forward (post version ofclient_disconnected
PR 414 - Added
client_connectex
forward to allow to reject player’s attempt to join (PR 322) - Added
flag
parameter touser_silentkill
(PR 323) - Added
find_player_ex
native, a wrapper offind_player
using flags as strings (PR 389) - Added
get_players_ex
stock, a wrapper ofget_players
using flags as strings (PR 389) - Added
get_playersnum_ex
native to retrieve directly the player's count using flags as strings (PR 517)
- Extended
client_authorized
to pass steam ID (PR 322) - Set
set_user_rendering
default color/amount to 0 to follow game behavior (bug 5772) - Allowed the following natives to be used on connecting players:
find_player
,get_players
andengclient_print
(console only) (bug 6229, PR 126) - Made the
body
param inget_user_aiming
optional (PR 532)
- Fixed
user_slap
unexpected behavior when using large negative damage (bug 4975) - Fixed missing new line on client console message which is not truncated server-side if its length exceeds buffer size (bug 3140)
Cvar/Command
- Introduced several natives for cvars management (PR 185, PR 202, PR 203, PR 211, PR 230, PR 318, PR 337, PR 453)
- Added
amxclient_cmd
native (bug 5887, PR 438, PR 518) - Added
read_argv_int
andread_argv_float
to return the value directly as integer or float (PR 366, PR 383) - Added a param to
register_*cmd
andget_*cmd
to specifyinfo
is a multilingual key in order to encourage command translation (PR 349, PR 434)
- Fixed a
engclient_cmd
buffer issue (PR 438)
Event
- Added new
register_event
flags to filter humans and bots (bug 5768) - Added
register_event_ex
native, a wrapper ofregister_event
using flags as strings (PR 389) - Added
enable/disable_event
natives (bug 6360, PR 267) - Added
enable/disable_logevent
natives (PR 326)
- Fixed reentrancy issue when a generated message is sent during
register_event
forward (bug 3664)
File
- Added support for Valve FS to natives that use file handles (PR 217, PR 235, PR 467)
- Added
SetFilePermissions
native - Added
FileReadInt8
,FileReadUint8
,FileReadInt16
,FileReadUint16
andFileReadInt32
natives - Added
FileWriteInt8
,FileWriteInt16
andFileWriteInt32
natives - Added
GetFileTime
native returning a file timestamp as a unix timestamp (bug 4543)
Menu
- Added menu timeout functionality to Newmenu API (PR 21) TODO: link to script changes?
- Added
MEXIT_FORCE
to force a proper exit button on unpaginated menus (PR 20) - Added
MPROP_SHOWPAGE
to set whether or not to show the page number in menu title (PR 473) - Added
menu_addblank2
andmenu_addtext2
to fix unexpected behavior with the original ones whenslot
param is set to 1 (bug 3096) - Added menu pagination callback (PR 420)
- Add default values for
menu_item_getinfo
's arguments (PR 511)
- Fixed recursion issues with
show_menu
and newmenus (PR 140, PR 335) - Fixed a potential underflow bug which can occur when a non-paginated menu has no items in it (PR 20)
- Fixed a potential menu handle leak when
show_menu
is used after a newmenu was opened (PR 21) - Fixed
MPROP_NOCOLORS
menu property not working (PR 283) - Fixed missing format param on error in
next_hudchannel
native (PR 391) - Fixed a menu recursion issue (PR 471)
Message
- Added
e/write_/coord/angle/_f
ande/message_begin_f
natives (bug 5829) - Added
client_print_color
native (Counter-Strike only) (bug 5823, PR 338, PR 504) - Added
set/show_dhudmessage
which uses a different kind of message HUD (hint) (bug 5979) - Added
client_printex
stock (bug 5828, PR 10) - Added
MSG_INIT
support inmessage_begin
native (bug 6254, PR 151) - Added
elog_message
native (PR 451)
- Set
set_hudmessage
default channel to -1 to reflect auto-channeling support (bug 5771)
String
- Added
strtol
native (bug 3233) - Added
strtof
native (bug 5909) - Added
strtok2
which fixes a trim issue withstrtok
(bug 3993) - Added new string-related stocks (bug 6110, PR 327)
- Added new string-related natives (bug 6110)
- Added
fmt
native to format and return a string inline (PR 350) - Added support for binary format
%b
(bug 6110) - Added special format specifiers
%n
and%N
(PR 93) - Added support for
%l
format specifier (bug 6361, PR 229, PR 313, PR 320, PR 331, PR 343) - Added
SetGlobalTransTarget
to globally set the player’s language, for use with%l
format specifier (PR 229) - Added text formatting ability to
set_fail_state
(bug 5800) - Added some UTF-8 compatible natives (PR 407)
mb_strotolower
mb_strtoupper
mb_ucfirst
mb_strtotitle
is_string_category
- Made formatting-capable function UTF-8 safe (including precision with %s e.g. %.12s) (bug 6110)
- Made a bunch of stocks/natives UTF-8 safe (bug 6110, PR 159)
- Improved UTF-8 support in some natives (PR 407, PR 459)
containi
strfind
(with ignorecase set)strcmp
(with ignorecase set)strncmp
(with ignorecase set)equali
replace_string
(with ignorecase set)replace_stringex
(with ignorecase set)get_players
(with name and ignorecase flags set)find_player
(with name and ignorecase flags set)
- Fixed UTF-8 character parsing due to improper casting (PR 401)
- Fixed
strncmp
case sensitivity (PR 314) - Fixed a
floatround
overflow on large numbers resulting in a negative number when optimization is enabled (PR 376)
Others
- Added
GetModelBoundingBox
native (bug 3527, PR 536) - Added
has_map_ent_class
native (bug 5814) - Added
engine_changelevel
(PR 104, PR 184, PR 503) - Added
FP_VAL_BYREF
to pass values by reference in forwards (PR 369) - Added
RequestFrame
native (PR 412) - Added
set_task_ex
stock, a wrapper ofset_task
using flags as strings (PR 389)
- Added
get_user_rendering
native (PR 514) - Hidden blank line in abort native with
AMX_ERR_NONE
(bug 6233, PR 125) - Improved
power
native on large number (PR 385)
- Fixed definite time drift on repeating tasks (bug 3302)
- Fixed a potential issue in
get_plugin
(PR 277) - Fixed a crash when a dynamic native is executed with the max number of params (PR 291)
Compiler
- Added support for Emscripten to the compiler (PR 115)
- Added the following globals (PR 116)
__BINARY_PATH__
__BINARY_FILE__
__LINE__
- Added
#pragma deprecated
(PR 116, PR 307) - Added a flag
-E
to consider all warnings as errors (PR 137) - Added string literal concatenation and stringizing operator (PR 173)
- Added ability to directly reference another address in a default argument (for arrays only) (PR 248)
- Removed AMX Mod compatibility (PR 31)
- Increased variable and functions maximum name length from
31
to63
characters (bug 5924) - Increased input line length from
511
to4095
characters (PR 116) - Ignored
#pragma tabsize
with non-positive argument (PR 116) - Improved
sizeof
return on array without specifying the dimensions (PR 116, PR 158) - Improved the reported line number accuracy on warning 203/4 (symbol never used) (PR 116)
- Used in-memory buffers for reading files, and handling newline better (PR 116)
- Used hash table for global name lookups (PR 116)
- Disabled the estimated usage calculation because it doesn’t work well and is not that useful (PR 137)
- Removed scpack (PR 221, PR 226)
- Prevented declaring arrays that the compiler is too buggy to handle (PR 248)
- Fixed returning strings from variadic functions (PR 121, PR 399)
- Fixed issue with multidimensional array variable release (PR 116)
- Fixed memory corruption when parsing natives (PR 116)
- Fixed improper handling of constant chained relational operators, i.e:
0 < 1 <= 2
(PR 116) - Fixed bogus assert about name lengths (PR 116)
- Fixed asserting when returning a string literal (PR 116)
- Fixed return omission with else-after-return (PR 116)
- Fixed crash when using
tagof(tagname:)
(PR 116) - Fixed the
@
character not being allowed in macro definitions (PR 116) - Fixed
#elseif
handling not working as expected (PR 116) - Fixed
enum
field size was not taken into account when implicitly passed to a function (PR 116) - Fixed trailing commas in array literals changing the result of
sizeof
(PR 163) - Fixed regression with member tag of
enum
is not being checked on assignment (PR 164) - Fixed
tagof
operator used as a default value for function arguments (PR 191) - Fixed issue where native functions returning an array would not compile (PR 351)
- Fixed compilation error for GCC 6 (PR 372)
- Fixed compilation for Clang 3.5+ (PR 177, PR 361)
- Fixed inc/dec operators not returning an iEXPRESSION (PR 429)
Modules
CStrike
- Added
CS_OnBuy
forward, called right before an item is received (PR 25, PR 68, PR 124, PR 183, PR 263, PR 315, PR 340, PR 334) - Added
CS_OnBuyAttempt
forward, called right after a command is issued (PR 68, PR 263, PR 334) - Added
cs_create_entity
native (PR 189, PR 193) - Added
cs_find_ent_by_class
native (PR 189, PR 193) - Added
cs_find_ent_by_owner
(PR 278) - Added
cs_set_ent_class native
(PR 332, PR 519) - Added
cs_get_user_weapon_entity
andcs_get_user_weapon
natives (PR 330, PR 353) - Added
cs_get_weapon_class
andcs_is_valid_itemid
stocks for convenience (PR 278) - Added
cs_get_item_id
native to get aCSI_
value from a given alias,weapon_
oritem_
(PR 278, PR 342) - Added
cs_get_translated_item_alias
native to get an item name (classname) from a given alias (PR 278, PR 356) - Added
cs_get_item_alias
(PR 342) - Added
cs_get_weapon_info
native which gives various information about a weapon (only) (PR 278, PR 356) - Added
cs_get_weaponbox_item
native (PR 548) - Added a param to
cs_set_user_deaths
native to choose whether the scoreboard should be updated (PR 255) - Added support for
monster_scientist
entity (alias ofhostage_entity
) to hostage natives (PR 255) - Added a
count
param tocs_get/set_armoury_type
to get/set the number of weapons inside an armoury (PR 255) - Added a
update_index
param incs_set_user_model
to choose whether the model index should be updated (PR 255, PR 300, PR 370) - Added a
CS_NORESET
constant for use withcs_set_user_team
for skipping the model reset (PR 287, PR 400) - Added a new value for
draw_animation
incs_set_weapon_silen
which follows game behavior (PR 255) - Added the associated
TRAIN_*
constants from HLSDK for use withcs_get_user_driving
(PR 255)
- Moved all hardcoded data to its own gamedata files (PR 255, PR 352, PR 356)
- Done some cleanup for the sake of consistency and readability (PR 255)
- Added some known constants from CS, a
cstrike_const.inc
has been created for the occasion (PR 278) - Cached
GET_USER_MSG_ID
calls (PR 255) - Improved
cs_set_no_knives
internal code by hookingpfnCreateNamedEntity
only when necessary (PR 255) - Made
cs_get_user_armor
armortype
param optional (PR 255) - Improved
cs_set_user_zoom
by using an event-based approach rather than enforcing on-frame basis whenmode
is 0 (PR 255)
- Fixed
cs_user_spawn
to properly respawn players (bug 3752) - Fixed
cs_set_user_team
not telling core spectator team change (PR 13) - Fixed
cs_get_hostage_id
error check: a hostage can't be a player (PR 255) - Fixed
cs_set_user_[model/team]
andcs_reset_user_[model/team]
overflow issue by staggering user's info updates across multiple frames (PR 255) - Fixed missing meta return in
ServerActivate
(PR 308)
CSX
- Modified
csstats_rank
value to matchamxx.cfg
default value (PR 170)
- Fixed
client_death/damage
forwards passing alive victims onClientKill
(bug 5812) - Fixed
client_death
forward called onkill
command if sent by a spectator (PR 404)
DoDX
- Fixed grenade_throw incorrect calling behavior and wrong returned weapon IDs (bug 5785)
- Fixed a potential crash (PR 277)
DoDFun
- Fixed a potential issue (PR 277)
Engine
- Added
client_cmdStart
forward (bug 5779) - Added
set_ent_rendering
native (bug 5773) - Added
entity_intersects
native (bug 6172, PR 70, PR 367) - Added
unregister_touch/think/impulse
(PR 250) - Added safe
get_global_edict2
andentity_get_edict2
(PR 250, PR 367) - Added a destination parameter to
trace_hull
to make it useful usingNULL_VECTOR
(PR 250)
- Improved
set_lights
internal working, only hook server frame whenpfnLightStyle
has been called (PR 250) - Moved
precache_event
to core (PR 250, PR 490) - Removed inconsistent error path from
entity_get_int
(PR 250) - Added error path for
remove_entity
and unsafe entity ids (PR 250) - Added a bunch of missing entity checks (PR 250, PR 345, PR 346, PR 355)
- Used UTF-8 functions where
KeyValueData
is touched (PR 250) - Allowed
find_ent_by_owner
native to work inclient_disconnect
forward (PR 152)
- Fixed a crash when using
get/set_usercmd
(bug 5744) - Fixed
set_view
alteringpev
properties instead ofentity_state
for rendering players (bug 5382) - Fixed incorrect behavior of impulse forwards (bug 3243)
- Fixed
pfn_spawn
metamod return to follow engine behavior (bug 5807) - Fixed
set_ent_rendering
not working on non-player entities (PR 71) - Fixed
get_info_keybuffer
not being able to retrieve local key buffer (PR 250) - Fixed an entity check logic error (PR 250, PR 259)
- Fixed
is_visible
native not working on players (PR 392) - Fixed a
set_lights
buffer issue which was resulting in an incorrect light (PR 464, PR 508)
Fakemeta
- Added
create_kvd
andfree_kvd
allowing creation of new KVD structures that can be used with Hamsandwich. - Added new
get
/set_pdata_*
natives for the following types:bool
,byte
,short
,vector
,ehandle
andent
(bug 5770) - Introduced new natives to read/write on entity's private data based off class/member name using gamedata files (PR 284)
get
/set_ent_data
get
/set_ent_data_float
get
/set_ent_data_vector
get
/set_ent_data_entity
get
/set_ent_data_string
get_ent_data_size
find_ent_data_info
get_field_basetype
- Introduced natives to read/write on the gamerules object (PR 298, PR 309, PR 316)
get
/set_gamerules_int
get
/set_gamerulesa_float
get
/set_gamerules_vector
get
/set_gamerules_entity
get
/set_gamerules_string
get_gamerules_size
find_gamerules_info
- Allowed
get/set_pdata_cbase
usage at map end whereas player's private data is still valid (bug 5787) - Improved handling of
KeyValueData
and made it compatible with Hamsandwich (PR 240) - Allowed null invoker to be passed in
EngFunc_PlayBackEvent
(PR 358, bug 6467)
- Fixed
pev_blending
not working with set_pev (bug 5758) - Fixed broken
EngFunc_ChangeLevel
(PR 244) - Fixed a bug with recursive pre hooks (PR 341)
- Fixed memory leak in
unregister_forward
(PR 388)
Fun
- Internal changes: (PR 421)
- Made
pfnTraceLine
a post forward to avoid breaking plugins hooking this forward as well (e.g.FM_TraceLine
). Related toset_user_hitzones
native. pfnTraceLine
andpfnPlayerPreThink
used byset_user_hitzones
andset_user_footsteps
are now toggled on-demand.
- Made
- Added
HITZONE_*
constants for use withget_user_hitzones
andset_user_hitzones
(PR 421)
GeoIP
- Module now uses the latest MaxMind GeoIP2 API (PR 99, PR 104, PR 132)
- Added new (UTF-8 safe)
geoip_*
natives to retrieve the city, region, continent and more (PR 99, PR 198, PR 200) - Added a
geoip
command mainly for debugging purposes (version, dump an ip data) (PR 99) - Marked
geoip_country
as deprecated in favor of the newgeoip_country_ex
native (PR 99)
Hamsandwich
- Added support for the following mods:
- Deathmatch Classic
- Adrenaline Gamer
- Opposing Forces
- Sven Coop v5.17
- Added several functions which required different handlers
- Added a lot of missing virtual functions for all mods
- Added natives to deal with the
ItemInfo
structure - Added support for bots without
player
classname (bug 6111, bug 6323, PR 153, PR 228) - Added
SetParamEntity2
native to fix entity param not changing in post hook (PR 395, PR 463)
- Updated offsets for all mods (PR 354)
- Aligned stack on 16 byte boundary in hamsandwich trampolines (PR 24)
- Fixed crash for functions returning a vector
- Fixed crash when
Ham_TakeHealth
is called - Fixed various typos
- Fixed misaligned offsets in
hamdata.ini
- Fixed vtable patching on Linux for newer GCC binaries
- Fixed resource leak when reading
hamdata.ini
(PR 274) - Fixed
ham hooks
command not displaying all current hooks of a plugin (PR 276) - Fixed
HAM_OVERRIDE
in post hooks (bug 6443, PR 317) - Fixed a buffer issue in
RegisterHam
(PR 495)
MySQL
- Added
SQL_SetCharset
native to (re)set character set (bug 5999) - Added MySQL Reconnect feature (PR 154)
- Bumped MySQL version to 5.5 (PR 466, PR 468)
- Established a default timeout for MySQL connectivity (PR 188)
- Improved module threading to be more responsive (PR 207)
NVault
- Fixed a potential crash at map change if an empty key or value is saved (PR 112, PR 130)
- Fixed potential formatting issue with
nvault_[p]set
(PR 187)
NS
RegEx
- Added
regex_compile_ex
, mainly to allow direct use ofPCRE_*
flags (PR 69) - Added
regex_match_all_c
andregex_match_all
to retrieve all matches (PR 69) - Added
regex_replace
to search and replace (PR 69) - Added
regex_match_simple
stock (PR 69, PR 156)
- Updated PCRE to
v8.35
with UTF-8 support (PR 69) - Updated
regex_subtr
to increase static buffer size same as core and to make it UTF-8 safe (PR 69)
SQLite
- Fixed missing queuetime
FP_CELL
parameter inSQL_ThreadQuery
callback (PR 205) - Fixed missing buffer size check to
QuoteString
implementation (PR 411)
Socket
- Added a new
_flags
parameter to allow non-blocking mode and return libc error (PR 301) - Added
socket_is_writable
native to check whether a socket is ready to write (PR 301) - Added
socket_is_readable
as an alias tosocket_change
(PR 301)
- Updated WinSock version from
1.1
to2.2
(PR 301) - Properly checked for WinSock initialization on
OnAmxxAttach
/Detach
(PR 301) - Ignored natives registration if WinSock can't be started (PR 301)
- Made
socket_open
IP version agnostic (both IPv4 and IPv6 are supported) (PR 301) - Made
socket_close
to return a value on success/failure (PR 301)
NVault
- Fixed server crash when nvault is writing to journal file without write permission (bug 3231)