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

[ANY] Late Downloads Manager (1.0.52 alpha, 2018.02.27)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Late Downloads Manager
Download files to players while in-game.

This is mostly a proof of concept release to see how well it works and if there's large interest in such a thing.

Late downloads download in the background while players are in-game, at about 128Kbps. This means a 1MB file will take about 1 minute to download. For comparison, sprays and jingles are each limited to 512KB, for a total of 1MB.

Features:
Associate files with servers, maps, and players to be downloaded to players while in-game. Remembers which players have which files to avoid resending.

CVARS:
sm_latedlman_servername "default"
The name to use for this server. Files owned by the named server will be late downloaded to clients.

Requirements:
Late Downloads extension
MySQL Database

Optional dependencies:
PHP for using LateDownloadsManagerApi.php

Plugin design note:
This plugin will immediately unload itself if it encounters any detected errors, typically database errors.

Planned features:
Threaded queries
Blacklists
Clear download cache for specified player
Arbitrary comma-delimited modes cvar?
Integration for other plugins to determine if a player has a file

Installation:
Install the Late Downloads extension
Import latedlman.sql into your database
Add an entry for "latedlman" to databases.cfg
Load the plugin
Add late downloads using LateDownloadManagerApi.php or manually

LateDownloadManagerApi.php usage example:
PHP Code:

$api = new LateDownloadManagerApi('/home/tf2/.steam/steamcmd/game/tf''latedlman''127.0.0.1''user''password');
$api->SetValidatePath(false); // Do this if this script is not running on the game sever with access to the game directory

// Won't be replaced/duplicated if they already exist
$api->AddServer('neatplace');
$api->AddPlayer('STEAM_0:1:37936200');
$api->AddMap('cp_process_final');

$api->AddFileOwnedByServer('test/test.txt''neatplace');
$api->AddFileOwnedByPlayer('test/hartmann.txt''STEAM_0:1:37936200');
$api->AddFileOwnedByMap('test/process.txt''cp_process_final');

// The same file can be owned by multiple things
$api->AddFileOwnedByPlayer('test/test.txt''STEAM_0:1:37936200'); 


Attached Files
File Type: zip latedlman_2018_02_27.zip (16.6 KB)

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ę...