PDA

View Full Version : Custom content do not precache only on map change.


medic917
11-01-2014, 10:42
When I start the server, the materials are there and not missing textures and downloading fine (using sm downloader to download to client).

However when I change the map the materials show as missing textures, and I was thinking it might be due to precache errors.

Is it because it's loading too late?
Where else can I add the precaching too other than onmapstart?

**maybe i should ask in the scripting section

Powerlord
11-01-2014, 13:54
Stringtables, including the precache and download tables, are reset on map change.

Meaning that files have to be precached and added to the downloads table on every map change.

Setting sv_pure too late will also cause it to not take effect until the next map change, so if you set it to sv_pure 1 in server.cfg, it won't be applied for the first map.

medic917
11-02-2014, 08:57
Well, sometimes it shows on map change, and on other map changes the textures are missing.

Any idea on what I can do to fix this?

I tried sv_pure 0 and -1

medic917
11-02-2014, 09:11
or maybe i should add the precaching in the source code to OnMapChange instead of just OnPluginStart?

h3bus
11-03-2014, 03:45
Precache has to be in OnMapStart

medic917
11-04-2014, 01:10
nvm sv pure 0 and -1 DID work.

Thanks for the help Powerlord!