This is the first plugin I've written, so please contact me for feedback if you have any problems.
About:- Change A2S INFO description and map name
- Support map name display own internal set of translation in official Maps
- Support map name display finalestatus in finalemap
- Cache all mission and chapter displayname in .phrases.txt
- mission and chapter info will be added automatically if it does not exist in .phrases.txt
Requirements:
Admin Commands: (requires "z" flag)
PHP Code:
// Reload A2S_EDIT Setting (only reload data/a2s_info_edit.cfg)
sm_a2s_edit_reload
CVars:
PHP Code:
// A2S_INFO MapName DisplayType.
// 1.Mission
// 2.Mission & Chapter
// 3.Mission & FinaleType
// 4.Mission & Chapter & FinaleType
// 5.Mission & [ChapterNum|MaxChapter]
a2s_info_mapname_type "4"
// What language is used in the generated PhraseFile to replace the TranslatedText of en?
// (Please Delete All A2S_Edit PhraseFile After Change This Cvar to Regenerate)
// translations/a2s_chapters.phrases.txt and a2s_missions.phrases.txt
a2s_info_mapname_language "en"
Known Issue:- Map name displayed has a length limit, too long will be truncated. (Max 32 lengths)
ChangeLog:
Code:
1.1.3 - Fix server port > 32767 info issues. Remove lakwsh modify engine support. Support l4d2 2238 patch.
1.1.2 - Fix KeyValue DataType compile error on l4d2_source_keyvalues ver = 0.3
1.1.1 - Support L4DHooks ver >=1.334 GetMaxChapters native
1.1.0 - Add windows sign and mempatch.
1.0.8 - Add KeyValue file in data folder, for storing status and description text.
1.0.7 - Add map name display finalestatus in finalemap.
1.0.5 - Add sb_all_bot_game change to 1 so that Localizer init phrases.
1.0.4 - Remove maxplayers modify and mempatch.
1.0.3 - Add ProcessConnectionlessPacket memPatch to support official engine.dll/so.
1.0.2 - Add additional checks to support lakwsh modify engine.dll/so.
1.0.1 - Fix RebuildInfo_MapName memPatch.
1.0.0 - Initial release.
Thanks:- Silvers - Various handy plug-ins and tutorials.
- Dragokas - Various help in reading the game's built-in localized content.
- sorallll - Some help on the code.
- fdxx - Various help for reading keyvalue on memory.
- Github:lakwsh - Various signatures, offsets help.
Installation:- Make sure the all the requirements in the Requirements are installed and working.
- Download "A2S_Info_Edit.txt" and put into your servers \addons\sourcemod\gamedata\ folder.
- Download "A2S_Info_Edit.sp" and put into your servers \addons\sourcemod\scripting\ folder.
- Compiling plugin and put into your servers \addons\sourcemod\plugins\ folder.
Notice:- Don't click "Get Plugin"!!, this plugin compile need inc file with Left 4 Dhooks, SourceScramble, l4d2_source_keyvalues and Localizer.