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

[TF2 (and others)] VGUI URL Cache Buster


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
At some point, the behavior of Steam's webview changed. Calling ShowMOTDPanel (or variants) will show a previously viewed page if the last page viewed was on the same first-level domain.

This plugin hooks the VGUIMenu usermessage and manipulates it in one of two ways to attempt to force displaying the correct page:
  • The "proxy" iframe: The URL is rewritten so the user navigates to a static page with an iframe element; the desired page is loaded into it.
  • The "delayed load": Another URL is opened, then the original URL is sent after a short delay.

This plugin is tested and verified to work in Team Fortress 2. Other Source games that use bitbuffers should also work. CS:GO uses protobufs for user messages, so this plugin does not work there.

ConVars:
  • vgui_workaround_delay_time: Amount of time that the "delayed load" takes.
  • vgui_workaround_proxy_page: The URL to the static iframe page. You can host a copy yourself; it's available in the repository.

Other configuration:
You can configure which URL prefixes use which method. See the configs/vgui_cache_buster_urls.cfg file for more details.

Dependencies:
If the "proxy" method is used, this plugin is dependent on one static page made accessible via web hosting. The plugin ships with a default URL pointed to my personally hosted copy of the page.

No other plugin / extension dependencies.

Things the plugin will clobber:
VGUIMenu usermessages, obviously.

Pages that are specific with X-Frame-Options headers will refuse to load with the "proxy" method. This includes YouTube, Google, and Steam group pages.

Installation:
  1. Download the package.zip file from the releases page and copy the files into your SourceMod directory.
    • Optionally: Upload the www/motd_proxy.html page to web hosting.
  2. Load the plugin. This will generate the configuration file located at cfg/sourcemod/plugin.vgui_cache_buster.cfg.
  3. Perform any desired configuration changes in the above file, as well as the URL configuration file. If you're hosting the static page yourself, change the vgui_workaround_proxy_page ConVar.

Releases / Source Code

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

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

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