• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Using a Redirect for Faster Downloads

kampinkarl

Active member
Dec 10, 2011
32
4
Hello there, I'm fairly new to owning a server for KF and I followed this guide perfectly yet my download still seems to be coming from the server and not a redirected download. The speeds never changed

This is the guide I followed all highlighted by bold/colored letters

I know that the colors are super hard to read but its not the important part. the important part is below where im running into errors

-----------------------------------------------------------------------------------------------
6. INSTALLING CUSTOM MAPS USING A REDIRECT
-----------------------------------------------------------------------------------------------

Using the Killing Floor SDK the community is able to create its own maps for Admin to host of their servers. These maps can be automatically downloaded by users joining your server with a few easy steps as follows:

1) Download a custom map and place it in your maps folder. In my case I downloaded KF-WestLondonNight.rom and placed it in C:\KS1\maps

2) Go to your system folder and make a .bat with the following code:

Code:
ucc compress ..\maps\<mapname.rom>
Mine is:

Code:
Code:
ucc compress ..\maps\KF-WestLondonNight.rom
This will compress the map into into a much smaller size and display .uz2 at the end of the map name.
KF-WestLondonNight.rom was compressed from 10.7 MB > 1.78 MB. This will reduce download time and keep bandwidth to a fraction of what it would have been without compression.

If you want to compress every single map in the map folder then here is a script from saweet. Even though it will compress the default maps as well, this can still be an efficient script if you have multiple custom maps to compress in one instance.

Make a .bat file containing the following command in your system folder. ie: compress_maps.bat

Code:
Code:
for /f "tokens=*" %%a in ('dir /b ..\maps\*.rom') do ucc compress ..\maps\%%a
3) Go to your map folder and you'll see the compressed map as <mapname.rom.uz2>.

4) Remove this compressed map from your map folder and upload it to your third party host. I made a folder in the main web host directory called maps and placed the compressed map in there. http://www.yourhost.com/maps/

5) Go to your KillingFloor.ini and locate [IpDrv.HTTPDownload]
In the RedirectToURL= place the location of the compressed map:
RedirectToURL=http://www.yourhost.com/maps/

Note the forward slash at the end of the redirect link.

By default you will see UseCompression=True is already set.

6) Now you need to add the map to the map list. You can do this manually or through the Web Admin Interface.

I recommend using the Web Admin Interface for your first attempt as it will write a [KFMod.KFMaplist] entry at the bottom of your KillingFloor.ini with maps listed below as follows:

[KFMod.KFMaplist]
MapNum=0
Maps=KF-<Mapname>
Maps=KF-<Mapname>
Maps=KF-<Mapname>

Go to your Web Admin Interface and select Defaults > Maps. Select maps you want added to the map cycle and move them from Maps Not In Cycle > Maps In Cycle using the arrow tabs. Hit the Save button.

7) Restart your map/server and perform a Map Vote for the new map.

Once you have your [KFMod.KFMaplist] entry listed at the bottom of the KillingFloor.ini you can simply update map entries there for new custom maps or continue to use the Web Admin Interface.

If you don't have a host who can store your maps (and mods) then you can at least test the function using http://www.dropbox.com or http://www.fileden.com They both offer FREE hosting and bandwidth although dropbox appears to be the superior option with a 2GB upload limit and unlimited bandwidth. These companies change their plans from time to time so check their current offers.

You can also configure the redirect from your own server PC by installing your own web hosting application, like Apache.

Some maps come bundled with additional files for textures, sound, models, etc. You can also add these to your server redirect area in compressed form. They can all be added to the same redirect folder as the maps. Make sure they are added to the correct folders on the game server in uncompressed form.[/B]
__________________________________________________


SO at the start I was just uploading custom maps to my Killing Floor Server
And since I already had the maps saved to my Steam/Userapps/Common/
Killingfloor/Maps

it was not making me download maps from the server
But everyone who didn't have the maps and had to download
was getting a slow like 5-10 KB transfer rate

So I followed the guide but ran into lots of problems.....

I uploaded a map to dropbox.com
I setup a redirect link to my Dropbox.com archive that has my
KF-Doom2-Final-V7 map in there

Like so in my .Ini
Code:
RedirectToURL=http://dl.dropbox.com/u/53134067/

After setting up the Redirect link to the maps it asks to delete the map from
your server. I then deleted the map from the server
Upon doing this it removed the map from my web admin cycle play list
And from being able to select it at all while playing in game

So i have the redirect link setup for the maps
but the map is no longer in my Server Files

then I try to manually add the map to my Killingfloor.Ini
Via
Code:
Maps=kf-mountainpass
Maps=kf-icecave
Maps=kf-aperture
Maps=kf-abusementpark
Maps=KF-Doom2-Final-V7


I then save the .ini file and upload it to my server and restart the server
But when I check my .ini file after a restart
it erases the code I just added: Maps=Doom2-Final-V7


This doenst make any sense...

The guide tells me to delete the file from my Kf Server
And when I do that, in the web admin and through manually editing the killingfloor.ini it wont let me add the Doom map UNLESS its uploaded to my server


Now when i have the map uploaded to my server and the redirect link up
It still downloads the map from my dam server!


WHATS GOING ON

Edit: basically it wont Allow me to have the map able to choose
UNLESS I have it on the server/maps file

And it wont download it from my redirect link
If I remove the map from my server files
It no longer shows in my Ini/Web Admin

And If I add it Manually into my Ini it erases the code


Also the Compress_maps.bat code and stuff didnt compress my maps at all ?
 
Last edited:
You must have the .rom file(your map) uploaded to the server. Not sure what the guide said but it must be there. Also did you upload the .rom or the .uz2 file to your dropbox? The dropbox is your redirect and the redirect only uses compressed .uz2 files. Also did you put your files in the public folder(dropbox)?

Edit: To compress maps , you must have Killing Floor SDK installed. Go into steam library > tools and install it. Then retry your compress .bat file. Upload the resulting .uz2 files to your dropbox. Upload the .rom(the map) file to your game server.
 
Last edited:
Upvote 0
You must have the .rom file(your map) uploaded to the server. Not sure what the guide said but it must be there. Also did you upload the .rom or the .uz2 file to your dropbox? The dropbox is your redirect and the redirect only uses compressed .uz2 files. Also did you put your files in the public folder(dropbox)?

Edit: To compress maps , you must have Killing Floor SDK installed. Go into steam library > tools and install it. Then retry your compress .bat file. Upload the resulting .uz2 files to your dropbox. Upload the .rom(the map) file to your game server.


I think I may have overlooked the Compressed stuff

I skipped over that just to see if the redirect itself would even work

let me try all of the above and see if it works

And yeah I did upload them to the public folder but it was a ROM file.


So if I wanted to add I&JC's 2.6/2.7 to my server could I just add those files to my drop box and it will download from the redirect instead of the server?
 
Upvote 0
Yes but all the files must be compressed to .uz2 file format before you put them in your dropbox redirect. Also any .u files must be added to your KillingFloor.ini > Serverpackages to appear in game.

How do I compress the Weapon files to a uz2 file?
Do I make a bat file in system with the code
Code:
ucc compress ..\Animations/ICJweaponpack2.6 (or wherever the file is located)

i believe I got everything working so far
 
Upvote 0
Dammit...
Now I've ran into another problem

after installing SDK
I was unable to connect to any Killing Floor server online

I uninstalled SDK still had the same dam problem

So i deleted my KF files and am reinstalling them now


When you compress files , there will be a txt file called SteamappID or something in your system folder, delete it and you should be able to connect again.
 
Upvote 0
When you compress files , there will be a txt file called SteamappID or something in your system folder, delete it and you should be able to connect again.

Hah, thanks mate that future bit of info will help me
I aslo appreciate all of your replies trying to help me with my server issues
it is great predicated.

Lol i had my buddy connect to my server and download a map via the redirect

he said it was fast and compressed

I cant thank you enough kind sir!
 
Upvote 0
So I downloaded the Hunting Rifle Mod

And I got a 7k and 1k Animation/sound file i want to compress and upload to my redirect

But the texture file is a .UTX File
I tired making a .BAT file like so
Code:
ucc compress ..\Textures\HuntingRilfeT.UTX

And when I ran the .BAT file it showed it was compressing it, But I cant find the compressed uz2 File anywhere
 
Upvote 0
Dominate4eva

Dominate4eva

see:
http://mancoast.org/kf/KF-Mancoast-WhitelistedMaps-Redirected.7z[url]http://mancoast.org/kf/KF-Mancoast-WhitelistedMaps-Redirected.7z[/URL]
http://forums.tripwireinteractive.com/showthread.php?t=73163[url]http://forums.tripwireinteractive.com/showthread.php?t=73163[/URL]
http://forums.tripwireinteractive.com/showthread.php?t=56000[url]http://forums.tripwireinteractive.com/showthread.php?t=56000[/URL]
compression script:
for /f "tokens=*" %%a in ('dir /b D:\Games\kfdev\_KF-Mancoast-WhitelistedMaps-Redirected\compress\*.*') do D:\Games\KillingFloorServ\system\ucc compress D:\Games\kfdev\_KF-Mancoast-WhitelistedMaps-Redirected\compress\%%a

dominate4eva
A little present from mancoast!
My server is high bandwidth
First backup your killing floor folder!!!
Extract the contents of KF-Mancoast-WhitelistedMaps-Redirected.7z to your KF directory.
Overwrite any files that already exist.
modify killingfloor.ini to include the following:

[IpDrv.HTTPDownload]
RedirectToURL=http://mancoast.org/kf/
ProxyServerHost=
ProxyServerPort=3128
UseCompression=True

[KFMod.KFMaplist]
MapNum=1
Maps=kf-evilsantaslair
Maps=kf-suburbia
Maps=kf-waterworks
Maps=kf-westlondon
Maps=kf-departed
Maps=kf-bioticslab
Maps=kf-icebreaker
Maps=kf-farm
Maps=kf-bedlam
Maps=kf-wyre
Maps=kf-manor
Maps=kf-offices
Maps=kf-foundry
Maps=kf-crash
Maps=kf-filthscross
Maps=kf-biohazard
Maps=kf-hospitalhorrors
Maps=kf-mountainpass
Maps=kf-icecave
Maps=KF-420-Ganja-Farm-Reweeded-V1-1
Maps=KF-420-Ganja-Farm-V1
Maps=KF-Abandoned-Base-DarkNight
Maps=KF-Abandoned-Base-Final
Maps=KF-Abandoned-Base-MacabreDay
Maps=KF-AHouse
Maps=KF-Antigone
Maps=KF-AquaStudy-V2Final
Maps=KF-Arcade-Gas-Station-FIN
Maps=KF-Arcade-Gas-Station-FIN-Survival
Maps=KF-Arcade-Gas-Station-KF
Maps=KF-Arcade-Horzinemall-FIN
Maps=KF-Arcade-Shopping-Center-final
Maps=KF-Arcade-Shopping-FIN
Maps=KF-Arcade-Shopping-vx
Maps=KF-Arcade-Underground
Maps=KF-Archives
Maps=KF-Arena
Maps=KF-AspenManorFinal
Maps=KF-Asylum
Maps=KF-BloodMountain_KFVM
Maps=KF-Canyon-Final
Maps=KF-CastleAvernusV1
Maps=KF-Cellar
Maps=KF-CornerMarket_KFVM
Maps=KF-DeathBasin_KFVM
Maps=KF-DeathBasinSandsNight_KFVM
Maps=KF-ElementarySchool
Maps=KF-EvilResidentsV2
Maps=KF-FacilityV1
Maps=KF-FarmFuzz_KFVM
Maps=KF-FenceTespmap
Maps=KF-Frankensteins_Castle_B1
Maps=KF-HappyHourV2-25
Maps=KF-ManorForkliftFrenzy_KFVM
Maps=KF-ManorMini_KFVM
Maps=KF-MetroRoute
Maps=KF-MosEisleyScum_KFVM
Maps=KF-MountainPassDay_KFVM
Maps=KF-MountainPassNight_KFVM
Maps=KF-Multistorey_Carpark_B4
Maps=KF-Multistorey_Carpark_KFVM
Maps=KF-OldeTower-beta2b
Maps=KF-OriginsVer2
Maps=KF-Pyramidv1_9
Maps=KF-RAVINE
Maps=KF-RE1-Mansion-Story
Maps=KF-Suburbia_KFVM
Maps=KF-Thames_Bridge_B1
Maps=KF-TheddlePedal_KFVM
Maps=KF-ThePit
Maps=KF-Tricky_KFVM
Maps=KF-WestLondon_KFVM
Maps=KF-Wolf
Maps=KF-Wretched
 
Upvote 0
I think he is asking what stock/default packages can not be compressed. In which case, it wont matter if you compress them and upload them to a redirect; the client will never have to download them from the redirect so a mismatch will never occur.

Therefore it's generally safe to compress all files, except the extensions slavek mentioned.
 
Upvote 0