Using a tmp.con File To Preserve Map Settings
Posted: 2013-01-09 21:35
This is a simple, basic tutorial over the tmp.con, a file that will help you with lines of code that you wish to load or lines that disappear any time you edit that section of the level, ie when you set into your terrain.con and you edit the terrain, you need to place it back in the file.
Setting up the tmp
First copy your init.con in your level folder, it should copy as "Init - Copy"

Now rename it to "tmp" with out the "". You now have your tmp.con file.
Now this is how my tmp looks for Shikotan Island...
First you can see I added This usually goes in the terrain.con for a 4km level, the problem you can encounter, is if you place that code in your terrain.con, and you edit your level in the terrain editor, you lose this line. But by placing it in the tmp.con, it will never go away, and will always load.
A few other terrainCuller's that you can add that are not naturally in the terrain.con, thus will be removed anytime you make changes in the terrain editor are....
Two of these can pretty much be set values, but others should be based on what your average VD is in the game.
If you have a level like fallujah, which is pretty much flat and urban, you can get away with lower numbers based around 100-250, if not, no ingame and see at what distance you see your "fog" begin to start to have an effect, and work off that value.
These are my values.
Before

After

Another line of code I like to add is
(NOTE) This does not effect projectiles. Now, what this does change is effects. What I did was bumped it up to speed 80 to show you. Here I threw a smoke grenade in the left along the hesco's and you can see the smoke trailing off to the right.

Here we have black smoke coming from the mid factory building, as you can see because wind is set to "80" in this picture, it's stretched out to the right. Generally settings from 1-11 are best. (1 calm, 11 storm rolling in)

Wind speed 0
Wind speed 6


Along with direction you want to make sure cloud speed, water speed, and undergrowth speed fit with what you have.
That's it for the tmp.con Have fun and see you on the battlefield!
Code: Select all
terrainCuller.setUseStitchedLods 0Setting up the tmp
First copy your init.con in your level folder, it should copy as "Init - Copy"

Now rename it to "tmp" with out the "". You now have your tmp.con file.
Now this is how my tmp looks for Shikotan Island...
Code: Select all
terrainCuller.setUseStitchedLods 0
windmanager.globalWindSpeed 11
windmanager.globalWinddirection 0/0/1Code: Select all
terrainCuller.setUseStitchedLods 0A few other terrainCuller's that you can add that are not naturally in the terrain.con, thus will be removed anytime you make changes in the terrain editor are....
Code: Select all
terrainCuller.lodSwitchDistance
terrainCuller.baseCellSize
terrainCuller.detailCullMaxLevel
Code: Select all
terrainCuller.lodSwitchDistance 0
terrainCuller.baseCellSize 128
terrainCuller.detailCullMaxLevel VD Based
These are my values.
Code: Select all
terrainCuller.lodSwitchDistance 0
terrainCuller.baseCellSize 128
terrainCuller.detailCullMaxLevel 100
After

Another line of code I like to add is
Code: Select all
windmanager.globalWindSpeed 11
windmanager.globalWinddirection 0/0/1
Here we have black smoke coming from the mid factory building, as you can see because wind is set to "80" in this picture, it's stretched out to the right. Generally settings from 1-11 are best. (1 calm, 11 storm rolling in)

Wind speed 0
Wind speed 6

Code: Select all
windmanager.globalWinddirection 0/0/1This works the direction of the wind, play around with the numbers to find what best suits you and make sure water and clouds are going with it.1/0/0 East
-1/0/0 West
0/0/1 North
0/0/-1 South
Along with direction you want to make sure cloud speed, water speed, and undergrowth speed fit with what you have.
That's it for the tmp.con Have fun and see you on the battlefield!