Raised This Month: $51 Target: $400
 12% 

[L4D2] A2S Info Change (1.1.2) [28-Feb-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
yuzumi
Member
Join Date: Jul 2020
Plugin ID:
8411
Plugin Version:
1.1.2
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Customize the server A2S INFO information content (GameDescription and MapName)
    Old 03-10-2023 , 22:38   [L4D2] A2S Info Change (1.1.2) [28-Feb-2024]
    Reply With Quote #1







    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 in the in-game serverbrowser has a length limit, too long will be truncated. But does not affect third-party serverbrowsers.

    ChangeLog:
    Code:
    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.
    Attached Files
    File Type: txt A2S_Info_Edit.txt (3.9 KB, 350 views)
    File Type: sp Get Plugin or Get Source (A2S_Info_Edit.sp - 50 views - 24.8 KB)

    Last edited by yuzumi; 02-29-2024 at 04:54.
    yuzumi is offline
    Bluetool
    New Member
    Join Date: Jul 2016
    Location: South Korea
    Old 03-11-2023 , 01:53   Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2022]
    Reply With Quote #2

    perfect working, Thanks!

    Last edited by Bluetool; 03-11-2023 at 01:57.
    Bluetool is offline
    BRU7US
    Member
    Join Date: Jul 2020
    Location: Tatarstan, Kazan
    Old 03-11-2023 , 06:40   Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2022]
    Reply With Quote #3

    Very useful. Thanks!

    Last edited by BRU7US; 03-11-2023 at 06:40.
    BRU7US is offline
    foxhound27
    AlliedModders Donor
    Join Date: Sep 2019
    Location: Argentina
    Old 03-12-2023 , 06:30   Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
    Reply With Quote #4

    Bravo
    foxhound27 is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 05-10-2023 , 17:12   Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
    Reply With Quote #5

    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 for my pure English...
    ReCreator is offline
    yuzumi
    Member
    Join Date: Jul 2020
    Old 05-17-2023 , 05:17   Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
    Reply With Quote #6

    Quote:
    Originally Posted by ReCreator View Post
    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.
    yuzumi is offline
    TypicalType
    Member
    Join Date: Mar 2020
    Location: Brazil
    Old 05-19-2023 , 05:28   Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
    Reply With Quote #7

    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\\Desktop\l4d2_source_keyvalues.sp: :Init
    L 05/19/2023 - 06:21:11: [SM] [2] Line 75, C:\Users\\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.
    TypicalType is offline
    fdxx
    Member
    Join Date: Oct 2020
    Location: 0xdeadbeef
    Old 05-19-2023 , 08:50   Re: [L4D2] A2S Info Change (1.1.0) [11-Mar-2023]
    Reply With Quote #8

    Quote:
    Originally Posted by TypicalType View Post
    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\\Desktop\l4d2_source_keyvalues.sp: :Init
    L 05/19/2023 - 06:21:11: [SM] [2] Line 75, C:\Users\\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
    fdxx is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 11-29-2023 , 09:28   Re: [L4D2] A2S Info Change (1.1.1) [20-Aug-2023]
    Reply With Quote #9

    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" 
    __________________

    Last edited by HarryPotter; 11-29-2023 at 09:29.
    HarryPotter is offline
    Iciaria
    Member
    Join Date: Aug 2022
    Old 12-23-2023 , 03:12   Re: [L4D2] A2S Info Change (1.1.1) [20-Aug-2023]
    Reply With Quote #10

    Quote:
    Originally Posted by HarryPotter View Post
    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
    __________________
    Sorry,my english not good

    Last edited by Iciaria; 12-23-2023 at 03:14.
    Iciaria is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


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


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