Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

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


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy

68747470733a2f2f692e696d6775722e636f6d2f
68747470733a2f2f692e696d6775722e636f6d2f



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

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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