Jump to content

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Posted Image Posted Image

Guest Message by DevFuse
 

Photo

[forums.alliedmods.net] [ANY] tAutoMapDecompression v0.0.1 (2012-01-11)


  • You cannot start a new topic
  • Please log in to reply
No replies to this topic

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7,516
  • Lokalizacja:AMXX.PL
Offline

Posted 11.01.2012 00:41

Why:
This plugin gives you a command to decompress all .bsp.bz2 files in your maps folder to avoid unnecessary traffic when you want to upload new maps to your server.

Requirements:
You'll need the bzip2 extension. To compile this yourself, you'll also need the extensions include file.

How to:
1. Get the bz2 compressed version of it or bzip it yourself.
2. Upload it to your maps folder. Repeat 1+2 until you've uploaded all maps.
3. Execute sm_decompressmaps to start the process.

I've got a question:
Why did you implement the sm_compress command?
a) For historic reasons, this was my test plugin while developing the extension.
B) It skips all default maps (as long as you didn't twiddle with your maplist.txt) and therefore allows server admins to make sure all custom maps are available as .bz2 version. Iirc those are being used whether you are using sv_downloadurl or not. If you indeed are using a fast download server, make sure the bz2 versions on your gameserver and your fast download server are the same.

Todo:
Allow uploading of the bz2 version to your fast download ftp server. This will be handled by a different plugin i guess. Don't know yet. Just an idea.



This plugins is part of the bzip2 extension and can be found in its repository here.

Attached Files Dołączona grafika Get Plugin or Get Source (tAutoMapDecompression.sp - 4.0 KB) Dołączona grafika tAutoMapDecompression.smx (4.9 KB)

Wyświetl pełny artykuł




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users