Difference between revisions of "AMX Mod X 1.8.0 Changes"

From AlliedModders Wiki
Jump to: navigation, search
m
(filled out more changes)
Line 7: Line 7:
 
*Added {{AMBug|50741}} and {{AMBug|43830}}: per-map plugins files can now be prefixed based.
 
*Added {{AMBug|50741}} and {{AMBug|43830}}: per-map plugins files can now be prefixed based.
 
*Added {{amb|17}}: New menu rendering is now more consistent; non-consistent controls are deprecated.
 
*Added {{amb|17}}: New menu rendering is now more consistent; non-consistent controls are deprecated.
 +
*Added {{amb|32}}: The server console commands "amxx cvars" and "amxx cmds" can now filter by plugin.
 
*Added {{amb|122}}: Log file names now include a four-digit year.
 
*Added {{amb|122}}: Log file names now include a four-digit year.
 +
*Fixed {{amb|18}}: New menus are now properly destroyed if overridden.
 
*Fixed {{amb|46}}: <tt>is_user_bot</tt> had some false positives.
 
*Fixed {{amb|46}}: <tt>is_user_bot</tt> had some false positives.
*Fixed {{amb|18}}: New menus are now properly destroyed if overridden.
+
*Fixed {{amb|69}}: Fixed Metamod trying to reload AMX Mod X against a poorly configured clock.
 
*Fixed {{amb|207}}: New menus now display "0" instead of "10."
 
*Fixed {{amb|207}}: New menus now display "0" instead of "10."
 
*Fixed {{amb|208}}: New menus did not reset callback results after each call.
 
*Fixed {{amb|208}}: New menus did not reset callback results after each call.
 
*Fixed {{amb|200}}: Dynamic/fake natives were not re-entrant.
 
*Fixed {{amb|200}}: Dynamic/fake natives were not re-entrant.
 
*Fixed {{amb|244}}: Run-time errors blocked forwards.
 
*Fixed {{amb|244}}: Run-time errors blocked forwards.
 +
*Fixed {{amb|305}}: Core crashed on mods that removed the standard <tt>mp_timelimit</tt> cvar.
 
*Fixed many various internal new menu rendering and item selection bugs.
 
*Fixed many various internal new menu rendering and item selection bugs.
 
==Scripting Changes==
 
==Scripting Changes==
 
*Added natives for dynamic global arrays.
 
*Added natives for dynamic global arrays.
 
*Added a new, magic <tt>any</tt> tag from [[SourceMod]].
 
*Added a new, magic <tt>any</tt> tag from [[SourceMod]].
 +
*Added a <tt>charsmax</tt> operator for safe sizeof(string)-1 usage.
 
*Added <tt>set_pcvar_string</tt>().
 
*Added <tt>set_pcvar_string</tt>().
 
*Added <tt>LookupLangKey</tt>().
 
*Added <tt>LookupLangKey</tt>().
 
*Added <tt>SQL_QuoteString</tt>().
 
*Added <tt>SQL_QuoteString</tt>().
 +
*Added <tt>[g|s]et_pdata_cbase[_safe]</tt>().
 +
*Added <tt>geoip_code[2|3]_ex</tt>(), which address a serious issue in the now deprecated <tt>geoip_code[2|3]</tt>().
 +
*Added <tt>lookup_sequence</tt>(), <tt>set_controller</tt>(), <tt>set_pev_string</tt>(), and <tt>pev_serial</tt>() to Fakemeta.
 +
*Added <tt>ns_get_user_team</tt>.
 
*Added a menu property to change the numbering color.
 
*Added a menu property to change the numbering color.
 
*Added {{amb|27}}: <tt>SQL_Rewind</tt>().
 
*Added {{amb|27}}: <tt>SQL_Rewind</tt>().
Line 30: Line 38:
 
*Added {{amb|92}}: <tt>create_tr2</tt>() and <tt>free_tr2</tt>().
 
*Added {{amb|92}}: <tt>create_tr2</tt>() and <tt>free_tr2</tt>().
 
*Added {{amb|205}}: <tt>cs_[g|s]et_c4_explode_time</tt>().
 
*Added {{amb|205}}: <tt>cs_[g|s]et_c4_explode_time</tt>().
 +
*Added {{amb|216}}: <tt>SQL_MakeStdTuple</tt>() now has a timeout parameter.
 
*Added {{amb|237}}: Fakemeta can now call "ServerPrint."
 
*Added {{amb|237}}: Fakemeta can now call "ServerPrint."
 
*Added {{amb|242}}: <tt>cs_[g|s]et_user_hostagekills</tt>().
 
*Added {{amb|242}}: <tt>cs_[g|s]et_user_hostagekills</tt>().
 
*Added {{amb|245}}: <tt>precache_sound</tt> now returns a precache index.
 
*Added {{amb|245}}: <tt>precache_sound</tt> now returns a precache index.
 
*Added {{amb|261}}: <tt>has_flag</tt>() and <tt>has_all_flags</tt>().
 
*Added {{amb|261}}: <tt>has_flag</tt>() and <tt>has_all_flags</tt>().
 +
*Added {{amb|291}}: <tt>cs_[g|s]et_c4_defusing</tt>().
 +
*Added {{amb|673}}: <tt>regex_compile</tt>() and <tt>regex_match_c</tt> for pre-compiling expressions.
 
*Added {{AMBug|46213}}: <tt>player_menu_info</tt>() now returns a page number.
 
*Added {{AMBug|46213}}: <tt>player_menu_info</tt>() now returns a page number.
 
*Added {{AMBug|51064}}: Some parameters to <tt>get_plugin</tt> are now optional.
 
*Added {{AMBug|51064}}: Some parameters to <tt>get_plugin</tt> are now optional.
 
*Added {{AMBug|50610}}: Some parameters to <tt>get_user_weapon</tt> are now optional.
 
*Added {{AMBug|50610}}: Some parameters to <tt>get_user_weapon</tt> are now optional.
*Fixed {{AMBug|49337}}: <tt>get_pcvar_float</tt>() malfunctioned on high numbers.
 
 
*Added {{AMBug|48841}}: <tt>tfc_is_user_feigning</tt>().
 
*Added {{AMBug|48841}}: <tt>tfc_is_user_feigning</tt>().
 
*Added {{AMBug|45664}}: <tt>tfc_is_team_ally</tt>().
 
*Added {{AMBug|45664}}: <tt>tfc_is_team_ally</tt>().
 +
*Fixed {{AMBug|49337}}: <tt>get_pcvar_float</tt>() malfunctioned on high numbers.
 
*Fixed {{amb|78}}: <tt>get_concmdsnum</tt> could return an incorrect result.
 
*Fixed {{amb|78}}: <tt>get_concmdsnum</tt> could return an incorrect result.
 
*Fixed {{amb|85}}: Tag mismatches on <tt>ShowSyncHudMsg</tt>().
 
*Fixed {{amb|85}}: Tag mismatches on <tt>ShowSyncHudMsg</tt>().
Line 46: Line 57:
 
*Fixed {{amb|110}}: <tt>socket_change</tt>() could return 1 on certain failures.
 
*Fixed {{amb|110}}: <tt>socket_change</tt>() could return 1 on certain failures.
 
*Fixed {{amb|116}}: <tt>DispatchKeyValue</tt>() did not work on worldspawn (entity 0).
 
*Fixed {{amb|116}}: <tt>DispatchKeyValue</tt>() did not work on worldspawn (entity 0).
 +
*Fixed {{amb|149}}: <tt>register_event</tt> with the "e" flag could catch incorrect players.
 
*Fixed {{amb|230}}: <tt>radius_damage</tt>() didn't kill players on all mods.
 
*Fixed {{amb|230}}: <tt>radius_damage</tt>() didn't kill players on all mods.
 +
*Fixed {{amb|257}}: <tt>get_user_origin</tt>() mode 4 had false positives.
 +
*Fixed {{amb|343}}: <tt>TFC_ClearModel</tt>() did not function as documented.
 +
*Fixed {{amb|421}}: <tt>get_user_weapons</tt>() could omit a weapon on Day of Defeat.
 +
*Fixed {{amb|437}}: <tt>dod_set_user_kills</tt>() and <tt>dod_set_user_score</tt>() could mess up the scoreboard.
 +
*Fixed {{amb|519}}: <tt>geoip_code[2|3]</tt>() buffer overflowed on error.
 +
*Fixed {{amb|736}}: <tt>find_entity</tt>() was defined twice.
 
*Fixed a memory leak in <tt>SortCustom1D</tt>().
 
*Fixed a memory leak in <tt>SortCustom1D</tt>().
 +
*Fixed a crash bug in <tt>fwrite_blocks</tt>().
 
==Plugin Changes==
 
==Plugin Changes==
 
*There is no longer a hardcoded limit to the number of admins.
 
*There is no longer a hardcoded limit to the number of admins.
Line 57: Line 76:
 
*Added {{AMBug|29353}}: amx_plugins now prints paginated output.
 
*Added {{AMBug|29353}}: amx_plugins now prints paginated output.
 
*Added {{AMBug|50742}}: admin.sma now supports prefix based per-map configs.
 
*Added {{AMBug|50742}}: admin.sma now supports prefix based per-map configs.
 +
*Added {{amb|28}}: statscfg.sma can now use translations.
 +
*Added {{amb|30}}: <tt>csstats_rankbots</tt> prevents bots from showing on <tt>/top15</tt>.
 +
*Added {{amb|31}}: plmenu.sma ban and slap options are now configurable.
 +
*Added {{amb|42}}: Added new values for <tt>amx_show_activity</tt>.
 
*Added {{amb|51}}: amx_vote can now take more than two options.
 
*Added {{amb|51}}: amx_vote can now take more than two options.
 
*Added {{amb|64}}: amx_voteban autodetects whether it should IP ban.
 
*Added {{amb|64}}: amx_voteban autodetects whether it should IP ban.
 +
*Added {{amb|307}}: amx_addban now caches the last ten connections.
 +
*Added {{amb|311}}: mapcycle file now ignores .bsp extensions.
 +
*Added {{amb|340}}: amx_ban/amx_banip now display a reason in the activity.
 +
*Added {{amb|427}}: Additional weapons to <tt>dod_[g|s]et_user_ammo</tt>().
 +
*Fixed {{amb|29}}: pausecfg.sma did not translate two phrases.
 
*Fixed {{amb|91}}: miscstats.sma truncated some language translations.
 
*Fixed {{amb|91}}: miscstats.sma truncated some language translations.
 
*Fixed {{amb|94}}: amx_psay sometimes sent truncated messages.
 
*Fixed {{amb|94}}: amx_psay sometimes sent truncated messages.
 +
*Fixed {{amb|109}}: mapsmenu.sma now checks <tt>mapcyclefile</tt> before reverting to <tt>mapcycle.txt</tt>.
 
*Fixed {{amb|118}}: amx_help would not list <tt>ADMIN_ADMIN</tt> commands.
 
*Fixed {{amb|118}}: amx_help would not list <tt>ADMIN_ADMIN</tt> commands.
 +
*Fixed {{amb|130}}: Various menus did not take <tt>ADMIN_ALL</tt> or <tt>ADMIN_ADMIN</tt> into account.
 +
*Fixed {{amb|183}}: plmenu.sma did not work on Natural Selection.
 +
*Fixed {{amb|196}}: amx_modules did not handle invalid modules properly.
 
*Fixed {{amb|222}}: cl_rebuy could exploit CS weapon restrictions.  This also makes CZ bots obey restrictions.
 
*Fixed {{amb|222}}: cl_rebuy could exploit CS weapon restrictions.  This also makes CZ bots obey restrictions.
 +
*Fixed {{amb|228}}: amxmod_compat could cause <tt>set_user_hitzones</tt>() to break.
 +
*Fixed {{amb|350}}: <tt>traceline_set_float</tt> from the AMX Mod Compat layer was broken.
 +
*Fixed {{amb|467}}: <tt>conmotd.txt</tt> is now removed.
 +
*Fixed {{amb|633}}: Immune admins can now target themselves.
 
*Fixed a potential exploit in adminslots.sma.
 
*Fixed a potential exploit in adminslots.sma.
 
*SQL cvars are now protected.
 
*SQL cvars are now protected.
 +
==Module Changes==
 +
*Fixed {{amb|108}}: IP-based stats no longer include a port when saving.
 +
*Fixed {{amb|503}}: CSX did not set a META_RESULT when paused.

Revision as of 15:53, 6 August 2007

AMX Mod X 1.8 is a large feature release with many changes, both to the development API and user-mode features.

Changelog

Overall Changes

  • Command flags are now initially dumped to disk and can be edited via configs/cmdaccess.ini.
  • Added am48738: Romanian translation from X-5173.
  • Added am50741 and am43830: per-map plugins files can now be prefixed based.
  • Added amb17: New menu rendering is now more consistent; non-consistent controls are deprecated.
  • Added amb32: The server console commands "amxx cvars" and "amxx cmds" can now filter by plugin.
  • Added amb122: Log file names now include a four-digit year.
  • Fixed amb18: New menus are now properly destroyed if overridden.
  • Fixed amb46: is_user_bot had some false positives.
  • Fixed amb69: Fixed Metamod trying to reload AMX Mod X against a poorly configured clock.
  • Fixed amb207: New menus now display "0" instead of "10."
  • Fixed amb208: New menus did not reset callback results after each call.
  • Fixed amb200: Dynamic/fake natives were not re-entrant.
  • Fixed amb244: Run-time errors blocked forwards.
  • Fixed amb305: Core crashed on mods that removed the standard mp_timelimit cvar.
  • Fixed many various internal new menu rendering and item selection bugs.

Scripting Changes

  • Added natives for dynamic global arrays.
  • Added a new, magic any tag from SourceMod.
  • Added a charsmax operator for safe sizeof(string)-1 usage.
  • Added set_pcvar_string().
  • Added LookupLangKey().
  • Added SQL_QuoteString().
  • Added [g|s]et_pdata_cbase[_safe]().
  • Added geoip_code[2|3]_ex(), which address a serious issue in the now deprecated geoip_code[2|3]().
  • Added lookup_sequence(), set_controller(), set_pev_string(), and pev_serial() to Fakemeta.
  • Added ns_get_user_team.
  • Added a menu property to change the numbering color.
  • Added amb27: SQL_Rewind().
  • Added amb37: cs_[g|s]et_user_submodel().
  • Added amb38: cs_[g|s]et_user_lastactivity().
  • Added amb39: cs_[g|s]et_hostage_lastuse() and cs_[g|s]et_hostage_nextuser().
  • Added amb63: floatmin(), floatmax(), and floatclamp().
  • Added amb76: Formatting functions can now use %x or %X for hexadecimal numbers.
  • Added amb92: create_tr2() and free_tr2().
  • Added amb205: cs_[g|s]et_c4_explode_time().
  • Added amb216: SQL_MakeStdTuple() now has a timeout parameter.
  • Added amb237: Fakemeta can now call "ServerPrint."
  • Added amb242: cs_[g|s]et_user_hostagekills().
  • Added amb245: precache_sound now returns a precache index.
  • Added amb261: has_flag() and has_all_flags().
  • Added amb291: cs_[g|s]et_c4_defusing().
  • Added amb673: regex_compile() and regex_match_c for pre-compiling expressions.
  • Added am46213: player_menu_info() now returns a page number.
  • Added am51064: Some parameters to get_plugin are now optional.
  • Added am50610: Some parameters to get_user_weapon are now optional.
  • Added am48841: tfc_is_user_feigning().
  • Added am45664: tfc_is_team_ally().
  • Fixed am49337: get_pcvar_float() malfunctioned on high numbers.
  • Fixed amb78: get_concmdsnum could return an incorrect result.
  • Fixed amb85: Tag mismatches on ShowSyncHudMsg().
  • Fixed amb90: set_native_filter() did not work in rare cases.
  • Fixed amb107: socket_open() didn't return an error by reference.
  • Fixed amb110: socket_change() could return 1 on certain failures.
  • Fixed amb116: DispatchKeyValue() did not work on worldspawn (entity 0).
  • Fixed amb149: register_event with the "e" flag could catch incorrect players.
  • Fixed amb230: radius_damage() didn't kill players on all mods.
  • Fixed amb257: get_user_origin() mode 4 had false positives.
  • Fixed amb343: TFC_ClearModel() did not function as documented.
  • Fixed amb421: get_user_weapons() could omit a weapon on Day of Defeat.
  • Fixed amb437: dod_set_user_kills() and dod_set_user_score() could mess up the scoreboard.
  • Fixed amb519: geoip_code[2|3]() buffer overflowed on error.
  • Fixed amb736: find_entity() was defined twice.
  • Fixed a memory leak in SortCustom1D().
  • Fixed a crash bug in fwrite_blocks().

Plugin Changes

  • There is no longer a hardcoded limit to the number of admins.
  • There is no longer a hardcoded limit to the map list.
  • There is no longer a hardcoded limit to the number of "imessages."
  • Added amb34: There are now plugin command/cvar menus.
  • Added am45044: amx_banmenu now prints the ban time length.
  • Added am43757: amx_addadmin now writes a comment with the player's name.
  • Added am29353: amx_plugins now prints paginated output.
  • Added am50742: admin.sma now supports prefix based per-map configs.
  • Added amb28: statscfg.sma can now use translations.
  • Added amb30: csstats_rankbots prevents bots from showing on /top15.
  • Added amb31: plmenu.sma ban and slap options are now configurable.
  • Added amb42: Added new values for amx_show_activity.
  • Added amb51: amx_vote can now take more than two options.
  • Added amb64: amx_voteban autodetects whether it should IP ban.
  • Added amb307: amx_addban now caches the last ten connections.
  • Added amb311: mapcycle file now ignores .bsp extensions.
  • Added amb340: amx_ban/amx_banip now display a reason in the activity.
  • Added amb427: Additional weapons to dod_[g|s]et_user_ammo().
  • Fixed amb29: pausecfg.sma did not translate two phrases.
  • Fixed amb91: miscstats.sma truncated some language translations.
  • Fixed amb94: amx_psay sometimes sent truncated messages.
  • Fixed amb109: mapsmenu.sma now checks mapcyclefile before reverting to mapcycle.txt.
  • Fixed amb118: amx_help would not list ADMIN_ADMIN commands.
  • Fixed amb130: Various menus did not take ADMIN_ALL or ADMIN_ADMIN into account.
  • Fixed amb183: plmenu.sma did not work on Natural Selection.
  • Fixed amb196: amx_modules did not handle invalid modules properly.
  • Fixed amb222: cl_rebuy could exploit CS weapon restrictions. This also makes CZ bots obey restrictions.
  • Fixed amb228: amxmod_compat could cause set_user_hitzones() to break.
  • Fixed amb350: traceline_set_float from the AMX Mod Compat layer was broken.
  • Fixed amb467: conmotd.txt is now removed.
  • Fixed amb633: Immune admins can now target themselves.
  • Fixed a potential exploit in adminslots.sma.
  • SQL cvars are now protected.

Module Changes

  • Fixed amb108: IP-based stats no longer include a port when saving.
  • Fixed amb503: CSX did not set a META_RESULT when paused.