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[ANY] VPK_API (Reader and Writer) (1.0) [26-Oct-2021]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About:

Details:
  • Can read and write files synchronously and asynchronously.
  • The MAX_PROCESS define is 0.3 seconds for asynchronous processing before waiting 0.1 seconds.
  • Supports VPK format version 1 and 2.
  • Does not create archives.
  • Does not write format version 2 footers.
  • ToDo: Extract to temp file and rename on completion.
  • ToDo: Tidy up some error handling (mostly for missing files).
  • ToDo: Some natives may return true on error or wrong file count.
  • Use the examples as a guide for reading and writing.
  • Should not leak handles but have not tested. Please report any issues.


Related Plugins:

Thanks:
  • Dragokas - For requesting a method to Read VPK files.
  • Lux - For suggestions and ideas.
  • JoinedSenses - For sending me an example of version 2 format.


Admin Commands: (requires "z" flag)

PHP Code:

// From the "vpk_api_test" plugin.
// Tests all features of the plugin.
// Creates a folder named "vpk_api_test" in your servers main directory (where addons etc is located).
sm_vpk_api_test 



Example Output:
Spoiler



Natives for developers:
Spoiler



Changes:
Code:

1.0 (26-Oct-2021)
        - Initial release.


Installation:
  • Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.

Attached Files
File Type: zip vpk_api.zip (28.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ę...