TTT - FastDL Maps

Hey, I was wondering if it is possible to not have all my maps FastDL at once but instead download the map that is currently in use on the server.

So for example if the server had ttt_map_name running how would I just get it to FastDL that map instead of all of them at once?

Thanks in advance.

It does this already.

With code_gs saying that, don’t have your maps in the resources.lua file

Hmm… well I just joined my server and it downloaded all of the maps at once.

If it already does it how would do it?

Make sure the maps aren’t in your resource.AddFile file.

-------------------------Workshop Assets------------------------------------
resource.AddWorkshop( “131606096” ) – TTT Lunar Base
resource.AddWorkshop( “140410125” ) – TTT_67thway_v7
resource.AddWorkshop( “106560489” ) – TTT_Catacombs
resource.AddWorkshop( “109410344” ) – TTT_Chaser
resource.AddWorkshop( “109413056” ) – TTT_Ferrostruct
resource.AddWorkshop( “106527577” ) – TTT_Lost_Temple
resource.AddWorkshop( “109414736” ) – TTT_Lumos
resource.AddWorkshop( “165249735” ) – TTT_Mars_Colony
resource.AddWorkshop( “133138700” ) – TTT_Nuclear_Power_b2
resource.AddWorkshop( “106545993” ) – TTT_Urban_Ruins
resource.AddWorkshop( “121935805” ) – TTT_Vessel
resource.AddWorkshop( “162956753” ) – TTT_apehouse
resource.AddWorkshop( “163328444” ) – TTT_plaza_b6
resource.AddWorkshop( “163335613” ) – TTT_rooftops_a2_f1
resource.AddWorkshop( “163339021” ) – TTT_ski_resort_a1
resource.AddWorkshop( “165026364” ) – TTT_slender
resource.AddWorkshop( “105195237” ) – ttt_67thway_v4
resource.AddWorkshop( “154177743” ) – ttt_aircraft_v1b
resource.AddWorkshop( “104518391” ) – ttt_amsterville
resource.AddWorkshop( “117743323” ) – ttt_bb_canalwarehousev2_r3
resource.AddWorkshop( “124463722” ) – ttt_bb_outpost57_b5
resource.AddWorkshop( “114042471” ) – ttt_bb_schooldayv3_r3
resource.AddWorkshop( “131586546” ) – ttt_bb_suburbia_b3
resource.AddWorkshop( “141103402” ) – ttt_bb_teenroom_b2
resource.AddWorkshop( “133847491” ) – ttt_bunker
resource.AddWorkshop( “104684367” ) – ttt_canalwarehouse
resource.AddWorkshop( “169342118” ) – ttt_casino_b2
resource.AddWorkshop( “131667838” ) – ttt_community_bowling
resource.AddWorkshop( “144575800” ) – ttt_community_pool_revamped
resource.AddWorkshop( “148394206” ) – ttt_construction_v3
resource.AddWorkshop( “110548369” ) – ttt_culdesac_b2
resource.AddWorkshop( “144558171” ) – ttt_cyberia_a3
resource.AddWorkshop( “145316417” ) – ttt_fastfood_a6
resource.AddWorkshop( “147635981” ) – ttt_forest_final
resource.AddWorkshop( “152687451” ) – ttt_forgotten_forge
resource.AddWorkshop( “135894827” ) – ttt_foundation_a1
resource.AddWorkshop( “119889220” ) – ttt_freddy_the_ship
resource.AddWorkshop( “118937144” ) – ttt_lttp_kakariko
resource.AddWorkshop( “118347159” ) – ttt_main_street
resource.AddWorkshop( “106498411” ) – ttt_mc_skyislands
resource.AddWorkshop( “153600777” ) – ttt_metropolis
resource.AddWorkshop( “159321088” ) – ttt_minecraft_b5
resource.AddWorkshop( “104797349” ) – ttt_onesmallshamble
resource.AddWorkshop( “137891506” ) – ttt_plaza_b7
resource.AddWorkshop( “108034193” ) – ttt_richland
resource.AddWorkshop( “108040571” ) – ttt_roy_the_ship
resource.AddWorkshop( “104544633” ) – ttt_skytower_b1-1
resource.AddWorkshop( “143546559” ) – ttt_slender_v3_fix
resource.Addworkshop( “104506140” ) – ttt_stadium
resource.AddWorkshop( “124960079” ) – ttt_summermansion_b3
resource.AddWorkshop( “133911194” ) – ttt_theship_v1
resource.AddWorkshop( “157420728” ) – ttt_waterworld

That’s how I got mine set up.

Remove all maps…

That’s workshop, not FastDL. You can’t make them only download on the current map with WorkshopDL.

Yeah… that just took a while to process… heh…

Well, I have another issue I added 5 new maps but I had to remove them because people were getting Disconnected Missing Map so how would I fix that?

-Edit-

How would I set a up a ‘WorkshopDL’ or you mean make them download the maps?

You didn’t set them up correctly then. Follow the format as you’ve done for your other maps, and make sure their IDs are correct.

[editline]25th January 2014[/editline]

You have WorkshopDL = resource.AddWorkshop. To make them download only the current map, you must have a website and use FastDL (resource.AddFile).

Ah okay, thanks for this.

Sorry for my stupidity i’m quite new to all of this.

Here’s the code you need!



--Map Setup
maplist = {}

maplist["ttt_minecraft_b5"] = "159321088"
maplist["ttt_minecraftcity_v4"] = "186842624"
--add more maps here
--usage: maplist["name_of_map_without_extension"] = "WorkshopID" 


local map = game.GetMap() -- Get's the current map name
local id = maplist[map] 
-- Finds the workshop ID for the current map name from the table above

if( id != nil )then
	--If the map is in the table above, add it through workshop
	print( "[MapDL] Setting up maps. " ..map )
	resource.AddWorkshop( id )
end


Thank you so much :smiley:

-Edit-

Where would I put that code?

lua/autorun/server

And what do I do with the maps that are in FastDL? Delete them or leave them all there?

Wait you have a FastDL?
Then you don’t need to do anything… The maps are forced to be downloaded automatically by the server.

Show me your server.cfg (Remove the RCON password and any other information you don’t want to share with us)

Also, provide the link to your FastDL.

The thing is I don’t want all of the map to be Fast Downloaded all at once because people wont want to wait for it and they will leave while in the loading screen.

You don’t have to? The map the server is currently running will be the ONLY map that the clients will download, and if it changes map they will download that map instead. And so on.

This post you made is the reason why people are download all maps at once. If you have a FastDL, the only thing you need to do is place the maps on the FastDL in the maps folder and you’re done.

But as I requested earlier, can you share your server.cfg along with the URL to your FastDL?

log on

hostname “”
rcon_password “”
//sv_password “”
gamemode “terrortown”
sv_region 5
sv_lan 0
sv_logbans 0
sv_logecho 0
sv_logfile 1
sv_log_onefile 0
sv_noclipspeed 5
sv_noclipaccelerate 5
sv_kickerrornum 0
sv_loadingurl “”

ttt_postround_dm 1
ttt_minimum_players 2
ttt_voice_drain 1
ttt_voice_drain_normal 0.6
ttt_voice_drain_admin 0.5
ttt_voice_drain_recharge 0.5
ttt_firstpreptime 30
ttt_preptime_seconds 15
ttt_posttime_seconds 15
ttt_detective_hats 1
ttt_playercolor_mode 0
ttt_namechange_bantime 0
ttt_karma_max 1125
ttt_zedtime_enable 1
ttt_zedtime_endround 1
ttt_ragdoll_collide 0
cl_ragdoll_collide 0

sbox_allownpcs 0
sbox_godmode 0
sbox_plpldamage 1
sbox_playergod 0
sbox_noclip 0

sbox_maxprops 60
sbox_maxragdolls 0
sbox_maxnpcs 0
sbox_maxballoons 0
sbox_maxeffects 0
sbox_maxdynamite 0
sbox_maxlamps 0
sbox_maxthrusters 0
sbox_maxwheels 0
sbox_maxhoverballs 0
sbox_maxvehicles 0
sbox_maxbuttons 10
sbox_maxsents 20
sbox_maxemitters 0
sbox_maxspawners 0
sbox_maxturrets 0

net_maxfilesize 64

sv_minrate “20000”
sv_maxrate “0”
decalfrequency “10”
sv_maxupdaterate “100”
sv_minupdaterate “25”
fps_max “550”
sv_stats “0”
sv_maxcmdrate “65”
sv_mincmdrate “0”

//Fast Download

sv_downloadurl “http://fastdl.extent-hosting.com/fastdl/LewisM/552
sv_download 1
sv_allowupload 1

// execute ban files
exec banned_ip.cfg
exec banned_user.cfg

//rcon settings
sv_rcon_banpenalty “1440”
sv_rcon_maxfailures “5”
sv_rcon_minfailures “5”
sv_rcon_minfailuretime “10”
sv_rcon_maxpacketsize “100”

//ulx config
ulx_warnkick_num “4”
ulx_warnkick_ban “1”
ulx_warkcustom_num “2”
ulx_warncustom_ban “0”
ulx_warnkick_decayrate “190”

Well there’s your issue, your FastDL doesn’t work. http://fastdl.extent-hosting.com/fastdl/LewisM/552