View Full Version : precache question
daxian
10-21-2010, 07:37 AM
hi all..
after looking through the logs on our server ,i keep comeing across this line .
^~^~^ Add the following line to the *_precache.scr map script:
cache models/player/allied_sas.tik
and others similar to it,
question is where do i add the precache.scr and is it really
neccesary ,as the game calls the DMprecache for each map ?????
i am looking to reduce the errors in the log and therefore logsize
this is why i ask .
Daxian.
daxian
10-22-2010, 06:58 PM
hi all ..
did not think it was a difficult question to ask .....
does nobody know ????
sgTsTuFz
10-22-2010, 11:09 PM
If you're running a stock game - no mod files - you can add a pk3 file with a global folder that has a DMprecache.scr file. The filename has to have a lot of z's in front so that file is read last by the server, and that way the server keeps it in memory.
If you use Foresight, it has a global folder with the scr file. Use pak-scape - google it - to open the foresight pk3 file, drag the global folder to your desktop.
Now go get notepad++ and use it to edit the scr file by right clicking the scr file and then clicking either on Open or Open with - hit the browse tab to search for the pak-scape exe - pak-scape doesn't install to any folder - just get it and run it from its folder.
Anyways, here's the contents of the Foresight pk3's DMprecache scr file.
As for adding that line, its in the code below. There is a version of Foresight that has been taken over by this site (http://www.mohforesight.com/)
As for reducing the log size, just occasionally delete it or try setting it to 2
set logfile "3" //console log - 0=no log 1=buffered 2=continuous 3=append
// Portions of this code has been borrowed from Delator and or CI ...
// No need to reinvent the wheel
// If anyone has a problem with it please let me know and I will remove it.
main:
level.FST_shortversion = string( getcvar( shortversion ) )
// Common statements from MoH:AA and Spearhead
cache models/weapons/colt45.tik
cache models/weapons/p38.tik
cache models/weapons/silencedpistol.tik
cache models/weapons/m1_garand.tik
cache models/weapons/kar98.tik
cache models/weapons/kar98sniper.tik
cache models/weapons/springfield.tik
cache models/weapons/thompsonsmg.tik
cache models/weapons/mp40.tik
cache models/weapons/mp44.tik
cache models/weapons/bar.tik
cache models/weapons/bazooka.tik
cache models/weapons/panzerschreck.tik
cache models/weapons/shotgun.tik
cache models/weapons/m2frag_grenade.tik
cache models/weapons/steilhandgranate.tik
cache models/player/allied_airborne.tik
cache models/player/allied_airborne_fps.tik
cache models/player/allied_manon.tik
cache models/player/allied_manon_fps.tik
//cache models/player/allied_oss.tik
//cache models/player/allied_oss_fps.tik
cache models/player/allied_pilot.tik
cache models/player/allied_pilot_fps.tik
cache models/player/american_army.tik
cache models/player/american_army_fps.tik
cache models/player/american_ranger.tik
cache models/player/american_ranger_fps.tik
cache models/player/german_afrika_officer.tik
cache models/player/german_afrika_officer_fps.tik
cache models/player/german_afrika_private.tik
cache models/player/german_afrika_private_fps.tik
//cache models/player/german_elite_gestapo.tik
//cache models/player/german_elite_gestapo_fps.tik
cache models/player/german_elite_sentry.tik
cache models/player/german_elite_sentry_fps.tik
cache models/player/german_elite_sentry_fps.tik
cache models/player/german_kradshutzen.tik
cache models/player/german_kradshutzen_fps.tik
cache models/player/german_panzer_grenadier.tik
cache models/player/german_panzer_grenadier_fps.tik
cache models/player/german_panzer_obershutze.tik
cache models/player/german_panzer_obershutze_fps.tik
cache models/player/german_panzer_shutze.tik
cache models/player/german_panzer_shutze_fps.tik
cache models/player/german_panzer_tankcommander.tik
cache models/player/german_panzer_tankcommander_fps.tik
cache models/player/german_scientist.tik
cache models/player/german_scientist_fps.tik
cache models/player/german_waffenss_officer.tik
cache models/player/german_waffenss_officer_fps.tik
cache models/player/german_waffenss_shutze.tik
cache models/player/german_waffenss_shutze_fps.tik
cache models/player/german_wehrmacht_officer.tik
cache models/player/german_wehrmacht_officer_fps.tik
cache models/player/german_wehrmacht_soldier.tik
cache models/player/german_wehrmacht_soldier_fps.tik
//cache models/player/german_winter1.tik
//cache models/player/german_winter1_fps.tik
//cache models/player/german_winter2.tik
//cache models/player/german_winter2_fps.tik
cache models/player/german_worker.tik
cache models/player/german_worker_fps.tik
//cache models/weapons/m2frag_grenade_sp_start.tik
//cache models/weapons/mills_grenade_sp_start.tik
//cache models/weapons/russian_f1_grenade_sp_start.tik
//cache models/weapons/m18_smoke_grenade_start.tik
//cache models/weapons/rdg-1_smoke_grenade_start.tik
//cache models/weapons/steilhandgranate_start.tik
//cache models/weapons/nebelhandgranate_start.tik
if ( level.FST_shortversion[ 0 ] == "2" )
{
// SPEARHEAD
cache models/weapons/enfield.tik
//cache models/weapons/FG42.tik
cache models/weapons/G43.tik
cache models/weapons/M18_smoke_grenade.tik
cache models/weapons/mg42carryable.tik
cache models/weapons/mills_grenade.tik
cache models/weapons/Mosin_Nagant_Rifle.tik
cache models/weapons/Nagant_revolver.tik
cache models/weapons/nebelhandgranate.tik
cache models/weapons/ppsh_smg.tik
cache models/weapons/RDG-1_Smoke_grenade.tik
cache models/weapons/Russian_F1_grenade.tik
cache models/weapons/sten.tik
cache models/weapons/svt_rifle.tik
cache models/weapons/Webley_Revolver.tik
// SPEARHEAD MODELS
cache models/player/allied_101st_Captain.tik
cache models/player/allied_101st_Infantry.tik
cache models/player/allied_101st_Scout.tik
cache models/player/allied_501st_PIR_Scout.tik
cache models/player/allied_501st_PIR_Soldier.tik
cache models/player/allied_british_6th_Airborne_Captain.tik
cache models/player/allied_british_6th_Airborne_Paratrooper.tik
cache models/player/allied_russian_Crazy_Boris.tik
cache models/player/allied_russian_Recon_Scout.tik
cache models/player/allied_russian_Recon_Soldier.tik
cache models/player/german_Ardennes_Artillery_Commander.tik
cache models/player/german_DDay_Colonel.tik
cache models/player/allied_british_tank_corporal.tik
cache models/fx/heavyshellexp_base.tik
cache models/fx/heavyshellexp_dirt.tik
cache models/fx/heavyshellexp_stone.tik
cache models/fx/heavyshellexp_snow.tik
cache models/fx/tankexp_base.tik
cache models/fx/tankexp_dirt.tik
cache models/fx/tankexp_stone.tik
cache models/fx/tankexp_snow.tik
cache models/fx/bazookaexp_dirt.tik
cache models/fx/bazookaexp_stone.tik
cache models/fx/bazookaexp_snow.tik
cache models/fx/fx_fence_wood.tik
cache models/fx/tankexp_base.tik
cache models/items/pulse_explosive.tik
cache models/player/allied_101st_Captain_fps.tik
cache models/player/allied_101st_Infantry_fps.tik
cache models/player/allied_101st_Scout_fps.tik
cache models/player/allied_501st_PIR_Scout_fps.tik
cache models/player/allied_501st_PIR_Soldier_fps.tik
cache models/player/allied_british_6th_Airborne_Captain_fps.tik
cache models/player/allied_british_6th_Airborne_Paratrooper_fps.tik
cache models/player/allied_russian_Crazy_Boris_fps.tik
cache models/player/allied_russian_Recon_Scout_fps.tik
cache models/player/allied_russian_Recon_Soldier_fps.tik
cache models/player/german_Ardennes_Artillery_Commander_fps.tik
cache models/player/german_DDay_Colonel_fps.tik
cache models/player/allied_british_tank_corporal_fps.tik
cache models/player/allied_british_tank_corporal_fps.tik
}
if ( level.FST_shortversion[ 2 ] == "3" )
{
// BREAKTHROUGH MODELS
cache models/player/sc_ax_ital_inf.tik
cache models/player/sc_ax_ital_inf_fps.tik
cache models/player/sc_ax_ital_inf2.tik
cache models/player/sc_ax_ital_inf2_fps.tik
cache models/player/it_ax_ital_vol.tik
cache models/player/it_ax_ital_vol_fps.tik
//Nash
cache models/human/it_ax_ital_vol.tik
cache models/human/sc_ax_ital_inf2.tik
cache models/human/sc_ax_ital_para.tik
cache models/human/german_wehrmact_nco.tik
cache models/human/german_misc_kradshutzen.tik
cache models/human/german_misc_scientist.tik
cache models/human/german_afrika_officer.tik
cache models/emitters/tehao_candlelight.tik
cache models/emitters/tehao_candleholder_withfire.tik
cache models/animate/tree_commontree.tik
cache models/animate/wall_exploder.tik
cache models/miscobj/pulse_detonator.tik
cache models/human/allied_pilot.tik
cache models/weapons/it_w_carcano.tik
cache models/player/allied_russian_seaman.tik
cache models/vehicles/p47fly.tik
cache models/ammo/us_bomb.tik
cache models/emitters/explosion_mine.tik
cache models/weapons/uk_w_vickers.tik
cache models/items/item_25_healthbox.tik
cache models/emitters/mortar_higgins.tik
cache models/weapons/uk_w_vickers_clip.tik
cache models/items/dm_50_healthbox.tik
cache models/weapons/it_w_moschetto.tik
cache models/weapons/it_w_bomba.tik
cache models/weapons/it_w_bombabreda.tik
cache models/weapons/it_w_beretta.tik
cache models/weapons/it_w_moschetto_clip.tik
cache models/gear/german_ssofficercap.tik
cache models/items/explosive.tik
cache models/player/allied_technician.tik
cache models/weapons/kar98_mortar.tik
cache models/weapons/delisle.tik
cache models/fx/riflegrenadeexplosion.tik
cache models/weapons/uk_w_piat.tik
cache models/ammo/g43_clip.tik
cache models/fx/explosiontigershell.tik
cache models/ammo/piat_shell.tik
cache models/animal/cockroach.tik
cache models/vehicles/shermantank_damaged.tik
cache models/fx/corona_red.tik
cache models/statweapons/p_granatwerfer_base.tik
cache models/emitters/tehao_bridgeexplosion.tik
cache models/animate/fx_explosion_mine.tik
cache models/statweapons/p_granatwerfer_cannon.tik
cache models/static/vehicle_gmctruck.tik
cache models/miscobj/anim_detonator.tik
cache models/human/allied_pilot.tik
cache models/vehicles/vehiclesoundentity.tik
cache models/animate/military_radio.tik
cache models/weapons/it_w_carcano.tik
cache models/weapons/it_w_bomba.tik
cache models/weapons/it_w_bombabreda.tik
cache models/weapons/it_w_beretta.tik
cache models/weapons/uk_w_vickers.tik
cache models/player/allied_russian_seaman.tik
cache models/player/allied_technician.tik
cache models/weapons/uk_w_l42a1.tik
cache models/weapons/delisle.tik
cache models/weapons/it_w_moschetto.tik
cache models/items/dm_50_healthbox.tik
cache models/ammo/g43_clip.tik
cache models/statweapons/mg42_gun_viewmodel.tik
cache models/fx/granatwerferexplosion.tik
cache models/weapons/it_w_moschetto_clip.tik
cache models/weapons/uk_w_vickers_clip.tik
cache models/weapons/uk_w_l42a1_clip.tik
cache models/weapons/uk_w_piat.tik
cache models/items/explosive.tik
cache models/fx/fx_flak88_explosion.tik
cache models/vehicles/sherman_base.tik
cache models/vehicles/sherman_turret_main.tik
cache models/vehicles/sherman_turret_mini.tik
cache models/fx/bazookaexplosion_dm.tik
cache models/ammo/piat_shell.tik
cache models/ammo/it_w_beretta_clip.tik
cache models/human/2nd-ranger_medic.tik
cache models/human/1st-ranger_engineer.tik
cache models/human/2nd-ranger_lieutenant.tik
cache models/animate/military_radio.tik
cache models/vehicles/opeltruckgreen_canopy.tik
cache models/static/corona_reg.tik
cache models/vehicles/p47fly.tik
cache models/static/vehicle_opeltruck_green.tik
cache models/vehicles/vehiclesoundentity.tik
cache models/human/allied_pilot.tik
cache models/weapons/it_w_carcano.tik
cache models/weapons/it_w_bomba.tik
cache models/weapons/it_w_bombabreda.tik
cache models/weapons/it_w_beretta.tik
cache models/weapons/us_w_minedetector.tik
cache models/weapons/uk_w_vickers.tik
cache models/player/allied_russian_seaman.tik
cache models/weapons/kar98_mortar.tik
cache models/weapons/us_w_mine.tik
cache models/weapons/delisle.tik
cache models/items/dm_50_healthbox.tik
cache models/fx/riflegrenadeexplosion.tik
cache models/emitters/explosion_mine.tik
cache models/ammo/it_w_beretta_clip.tik
cache models/weapons/uk_w_vickers_clip.tik
cache models/fx/bazookaexplosion_dm.tik
cache models/player/allied_technician.tik
cache models/fx/nebelhandgranateexplosion.tik
cache models/emitters/cinematics_camexplosion.tik
cache models/emitters/tehao_thicksmoke.tik
cache models/emitters/cinematics_smoketrail.tik
cache models/items/explosive.tik
cache models/fx/fx_flak88_explosion.tik
cache models/vehicles/opeltruckgreen_d.tik
cache models/ammo/g43_clip.tik
cache models/ammo/svt_clip_reload.tik
cache models/weapons/uk_w_piat.tik
cache models/fx/explosiontigershell.tik
cache models/ammo/piat_shell.tik
cache models/human/it_ax_ital_vol.tik
cache models/human/sc_ax_ital_inf2.tik
cache models/human/sc_ax_ital_para.tik
cache models/human/german_wehrmact_nco.tik
cache models/human/german_misc_kradshutzen.tik
cache models/human/german_misc_scientist.tik
cache models/human/german_afrika_officer.tik
cache models/emitters/tehao_candlelight.tik
cache models/emitters/tehao_candleholder_withfire.tik
cache models/animate/tree_commontree.tik
cache models/animate/wall_exploder.tik
cache models/miscobj/pulse_detonator.tik
cache models/human/allied_pilot.tik
cache models/weapons/it_w_carcano.tik
cache models/weapons/uk_w_piat.tik
cache models/weapons/it_w_bomba.tik
cache models/weapons/it_w_bombabreda.tik
cache models/weapons/it_w_beretta.tik
cache models/player/allied_russian_seaman.tik
cache models/weapons/uk_w_vickers.tik
cache models/weapons/delisle.tik
cache models/items/dm_50_healthbox.tik
cache models/weapons/uk_w_vickers_clip.tik
cache models/fx/explosiontigershell.tik
cache models/ammo/piat_shell.tik
cache models/fx/bazookaexplosion_dm.tik
cache models/weapons/it_w_moschetto.tik
cache models/weapons/it_w_moschetto_clip.tik
cache models/player/allied_technician.tik
cache models/player/allied_russian_corporal.tik
cache models/player/allied_british_tank_corporal.tik
cache models/ammo/nagant_pistol_shell.tik
cache models/ammo/enfield_clip1.tik
cache models/fx/explosionpiatshell.tik
cache models/human/sc_al_us_gobbs.tik
cache models/human/allied_usa_c47-paratrooper1.tik
cache models/human/allied_uk_c47_paratrooper2.tik
cache models/human/allied_airborne_soldier.tik
cache models/human/german_afrika_grenadier_nowrap.tik
cache models/human/german_wehrmact_colonel.tik
cache models/human/german_doubleagent.tik
cache models/human/sc_al_us_claus.tik
cache models/human/sc_al_us_ltpalia.tik
cache models/human/sc_al_brit_tank.tik
cache models/human/sc_ax_ital_inf.tik
cache models/human/german_waffenss_nco.tik
cache models/human/allied_uk_c47_capt_paratrooper.tik
cache models/human/german_misc_worker.tik
cache models/human/sc_al_us_pilot.tik
cache models/human/allied_uk_paratrooper3.tik
cache models/ammo/enfield_clip2.tik
}
// Additional statements to avoid some console noise ...
cache models/fx/dummy.tik
cache models/fx/bh_paper_lite.tik
cache models/fx/bh_paper_hard.tik
cache models/fx/bh_wood_lite.tik
cache models/fx/bh_wood_hard.tik
cache models/fx/bh_metal_lite.tik
cache models/fx/bh_metal_hard.tik
cache models/fx/bh_stone_lite.tik
cache models/fx/bh_stone_hard.tik
cache models/fx/bh_dirt_lite.tik
cache models/fx/bh_dirt_hard.tik
cache models/fx/bh_grass_lite.tik
cache models/fx/bh_grass_hard.tik
cache models/fx/bh_mud_lite.tik
cache models/fx/bh_mud_hard.tik
cache models/fx/bh_water_lite.tik
cache models/fx/bh_water_hard.tik
cache models/fx/bh_glass_lite.tik
cache models/fx/bh_glass_hard.tik
cache models/fx/bh_sand_lite.tik
cache models/fx/bh_sand_hard.tik
cache models/fx/bh_foliage_lite.tik
cache models/fx/bh_foliage_hard.tik
cache models/fx/bh_snow_lite.tik
cache models/fx/bh_snow_hard.tik
cache models/fx/bh_carpet_lite.tik
cache models/fx/bh_carpet_hard.tik
cache models/fx/bh_human_uniform_lite.tik
cache models/fx/bh_human_uniform_hard.tik
cache models/fx/water_trail_bubble.tik
cache models/fx/grenexp_base.tik
cache models/fx/bazookaexp_base.tik
cache models/fx/grenexp_paper.tik
cache models/fx/grenexp_wood.tik
cache models/fx/grenexp_metal.tik
cache models/fx/grenexp_stone.tik
cache models/fx/grenexp_dirt.tik
cache models/fx/grenexp_grass.tik
cache models/fx/grenexp_mud.tik
cache models/fx/grenexp_water.tik
cache models/fx/grenexp_gravel.tik
cache models/fx/grenexp_sand.tik
cache models/fx/grenexp_foliage.tik
cache models/fx/grenexp_snow.tik
cache models/fx/grenexp_carpet.tik
cache models/fx/water_ripple_still.tik
cache models/fx/water_ripple_moving.tik
cache models/fx/barrel_oil_leak_big.tik
cache models/fx/barrel_oil_leak_medium.tik
cache models/fx/barrel_oil_leak_small.tik
cache models/fx/barrel_oil_leak_splat.tik
cache models/fx/barrel_water_leak_big.tik
cache models/fx/barrel_water_leak_medium.tik
cache models/fx/barrel_water_leak_small.tik
cache models/fx/barrel_water_leak_splat.tik
cache models/fx/fs_light_dust.tik
cache models/fx/fs_heavy_dust.tik
cache models/fx/fs_dirt.tik
cache models/fx/fs_grass.tik
cache models/fx/fs_mud.tik
cache models/fx/fs_puddle.tik
cache models/fx/fs_sand.tik
cache models/fx/fs_snow.tik
cache models/player/allied_sas.tik
cache models/player/allied_sas_fps.tik
cache models/player/german_winter_1.tik
cache models/player/german_winter_1_fps.tik
cache models/player/german_winter_2.tik
cache models/player/german_winter_2_fps.tik
cache models/items/explosive.tik
cache models/items/binoculars.tik
daxian
10-23-2010, 05:35 AM
hi sgTsTuFz.....
thank you for the reply.....
so ,in effect ,you are saying the DMprecache makes the map specific precache
redundant ????
which was the question i asked....perhaps i did not make that clear .
sgTsTuFz
10-23-2010, 03:36 PM
If I understand what you are saying correctly, yes. Each map calls the DMprecache.scr - you can see the command in every map's scr file -
"exec global/DMprecache.scr"
You can either copy the DMprecache.scr and and put it in a folder called "global" and make it as a 'zzzzzzzzz_filename.pk3 using pakscape and put it serverside in your main or mainta folder. Add all of the lines above that I posted to your DMprecache.scr file. It should be a complete listing of all items that need to be precached.
You end up with a 'mod' - it merely replaces the stock DMprecache.scr for all maps.
daxian
10-24-2010, 07:12 AM
hi sgTsTuFz.....
ok thanks for that .
Daxian
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.