Skocz do zawartości

[RSS] [L4D2] A2S Info Change (1.1.0) [11-Mar-2022]


GameNation

Rekomendowane odpowiedzi


68747470733a2f2f692e696d6775722e636f6d2f
68747470733a2f2f692e696d6775722e636f6d2f
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.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.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: sp Get Plugin or Get Source (A2S_Info_Edit.sp - 24.4 KB)
File Type: txt A2S_Info_Edit.txt (3.9 KB)

Przeczytaj cały wpis na stronie AlliedModders

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.