Precache console command

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Precache console command

Post by Apache Thunder »

Code: Select all

game.writePrecache
This command has no arguments, so that's all you need there. :D

Debugger must be used for this command to work.

I also have a question somewhat related. I want to make a texturePrecache.dat file for my levels. Some of the vanilla levels have this. But I don't know how it's made. Battlecraft doesn't make one, nor do I know of any command that can make one. Any one know how to make one?
ImageImageImage
I have cameras in your head!
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Precache console command

Post by freddy »

[quote="Apache Thunder"]

Code: Select all

game.writePrecache
how does one use this? i mean do the map has to be unpacked or something, or where do the precache file go?
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Precache console command

Post by Senshi »

IIRC the precache file goes in Battlefield 1942\bf1942\levels\ , you should be able to find them there after generation.

But actually precache files are quite useless nowadays IMO. Really any computer built in the second half of this decade should be able to load vehicles and objects "on the fly" during gameplay. The point of precaching was to reduce the "popup" lag when vehicles had to be loaded on the first time during gameplay, but that is kinda redundant now in days where 1-2 GB RAM are common.
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Precache console command

Post by fo0k »

does that logic not also apply to the texturePrecache.dat ?
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Precache console command

Post by Senshi »

I guess, but I didn't say anyhting as I have absolutely no clue what the textureprecache thingie is good for ;) . Never heard of it, actually...
Post Reply