lundi 21 avril 2014

[Mutator] Music downloader

This is simply a mod which allows server admins to make clients automatically download music and karma data files for KF.



Server hosts download this file: http://ift.tt/1eU4iUd

Clients download this file: http://ift.tt/PmutXm

Unzip all files to KillingFloor/System folder.



Notice:

- Downloader works for Windows clients only (not Linux nor Mac clients), however server side mutator works on any version.

- Clients are required to go download and unzip a custom DLL file in their KF system folder for this mod to work.

- Mod has built-in Russian language support (translated by Poosh).



To setup downloads for the resource files, you have to use UCC.exe Compress for the .ogg and .ka files you wish to add and upload them to a HTTP website.

Important: In order to prevent caps sensitive issues, I've forced clients to always download file names in all lower case, so for example: Aliens01_Loud.ogg.uz2 should be renamed to aliens01_loud.ogg.uz2!



The following settings are available in MusicLoader.ini:
[MusicLoader.MusicMut]

MainDownloadLink=http://ift.tt/1eU4iUj - This is the primary download URL.

CustomFileLinks=SomeSongName:http://ift.tt/PmutXq

CustomFileLinks=SomeSongNameB:http://ift.tt/PmutXq
- These can be used to redirect specific files to specific sites only.

CustomKarmaFiles=Doom3Karma

CustomKarmaFiles=MoreRagdolls
- These lines can be added to make clients download custom ragdolls that are required by some mods in server.

To start this mutator on server, either add mutator named "Music Downloader" or in URL "?Mutator=MusicLoader.MusicMut".



The mutator is programmed to search for all MusicTriggers, KFMusicTriggers, Level Properties Song and ACTION_ChangeMusic in ScriptedTriggers for required musics in a map, so if level has any other custom methods to start music, this mod wont consider them as required map song.



Note in the default MainDownloadLink (http://ift.tt/Pmus5I) I have added some custom songs there already:

aliens01_loud.ogg.uz2 to aliens12_loud.ogg.uz2

aliens01_quiet.ogg.uz2 to aliens16_quiet.ogg.uz2

d2map01.ogg.uz2 to d2map32.ogg.uz2

damned-calm01.ogg.uz2 to damned-calm02.ogg.uz2

damned-close.ogg.uz2 and damned-monster.ogg.uz2

doom3karma.ka.uz2

drag1.ogg.uz2 to drag5.ogg.uz2

smoothjazz.ogg.uz2

sunkissed.ogg.uz2



If you want me to add other songs or karma data files in there, feel free to give me suggestions.



If you wish to have the C++ source codes of this mod, you will have to PM me about it.





Legal notice for TWI:

This mutator hasn't involved any reverse engineering of Core.dll, all is done with help of UT public headers, and Notepad++ to find Core.dll export names.




Aucun commentaire:

Enregistrer un commentaire