AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] A2S Info Change (1.1.3) [17-May-2024] (https://forums.alliedmods.net/showthread.php?t=342132)

yuzumi 03-10-2023 22:38

[L4D2] A2S Info Change (1.1.3) [17-May-2024]
 
2 Attachment(s)

https://i.imgur.com/qnvMqzd.png
https://i.imgur.com/jZ3OasI.png



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.

Bluetool 03-11-2023 01:53

Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2022]
 
perfect working, Thanks!

BRU7US 03-11-2023 06:40

Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2022]
 
Very useful. Thanks!

foxhound27 03-12-2023 06:30

Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
 
Bravo

ReCreator 05-10-2023 17:12

Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
 
Is there any possibilty to add L4D1 support?
Especialy interested in map string change. Its realisation in plugin is awesome, much better than the original.

yuzumi 05-17-2023 05:17

Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
 
Quote:

Originally Posted by ReCreator (Post 2804213)
Is there any possibilty to add L4D1 support?
Especialy interested in map string change. Its realisation in plugin is awesome, much better than the original.

Sorry.. The plugin generate map info require l4d2_source_keyvalues. but keyvalues plugin unsupport l4d1.

TypicalType 05-19-2023 05:28

Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
 
L 05/19/2023 - 06:21:11: [SM] Blaming: l4d2_source_keyvalues.smx
L 05/19/2023 - 06:21:11: [SM] Call stack trace:
L 05/19/2023 - 06:21:11: [SM] [0] SetFailState
L 05/19/2023 - 06:21:11: [SM] [1] Line 339, C:\Users\:3\Desktop\l4d2_source_keyvalues.sp: :Init
L 05/19/2023 - 06:21:11: [SM] [2] Line 75, C:\Users\:3\Desktop\l4d2_source_keyvalues.sp: :OnPluginStart
L 05/19/2023 - 06:21:11: [SM] Unable to load plugin "l4d2_source_keyvalues.smx": Error detected in plugin startup (see error logs)

Looks like Source Keyvalues broke after the last 2 updates which makes this plugin unusable.

fdxx 05-19-2023 08:50

Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
 
Quote:

Originally Posted by TypicalType (Post 2804594)
L 05/19/2023 - 06:21:11: [SM] Blaming: l4d2_source_keyvalues.smx
L 05/19/2023 - 06:21:11: [SM] Call stack trace:
L 05/19/2023 - 06:21:11: [SM] [0] SetFailState
L 05/19/2023 - 06:21:11: [SM] [1] Line 339, C:\Users\:3\Desktop\l4d2_source_keyvalues.sp: :Init
L 05/19/2023 - 06:21:11: [SM] [2] Line 75, C:\Users\:3\Desktop\l4d2_source_keyvalues.sp: :OnPluginStart
L 05/19/2023 - 06:21:11: [SM] Unable to load plugin "l4d2_source_keyvalues.smx": Error detected in plugin startup (see error logs)

Looks like Source Keyvalues broke after the last 2 updates which makes this plugin unusable.

Download the latest file from github l4d2_source_keyvalues

HarryPotter 11-29-2023 09:28

Re: [L4D2] A2S Info Change (1.1.1) [20-Aug-2023]
 
Latest Localizer.inc, l4d2_source_keyvalues.inc
PHP Code:

scripting\A2S_Info_Edit.sp(403) : error 139could not find type "DataType"
scripting\A2S_Info_Edit.sp(416) : error 017undefined symbol "type"
scripting\A2S_Info_Edit.sp(417) : error 017undefined symbol "type"
scripting\A2S_Info_Edit.sp(431) : error 017undefined symbol "type" 


Iciaria 12-23-2023 03:12

Re: [L4D2] A2S Info Change (1.1.1) [20-Aug-2023]
 
Quote:

Originally Posted by HarryPotter (Post 2813717)
Latest Localizer.inc, l4d2_source_keyvalues.inc
PHP Code:

scripting\A2S_Info_Edit.sp(403) : error 139could not find type "DataType"
scripting\A2S_Info_Edit.sp(416) : error 017undefined symbol "type"
scripting\A2S_Info_Edit.sp(417) : error 017undefined symbol "type"
scripting\A2S_Info_Edit.sp(431) : error 017undefined symbol "type" 


l4d2_source_keyvalues

https://github.com/fdxx/l4d2_source_...d574cd14fa7aab

Old versions can be used:

https://github.com/fdxx/l4d2_source_...97fa6664d59769


All times are GMT -4. The time now is 19:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.