Page 1 of 1
BuildAll-RecalcAll
Posted: Thu May 15, 2014 10:14 pm
by Werewolf13
I'm sittin' here looking at two batch files in the battles from the bulge directory on my HDD. In it I see two files:
1)BuildAllMapCaches.bat
2)RecalcAllTerrainTables.bat
Both contain the mapmaker commandes to do what the batch file titles say.
Anyone with Build 278 tried these two files? Do they work? I Imagine you'd have to run the recalc file first and then the buildall file 2nd.
Anyone? Buehler? Buehler?
RE: BuildAll-RecalcAll
Posted: Fri May 16, 2014 1:13 am
by Arjuna
Yep that's what they do and yes they should run with 278. Note that I recalced all BFTB map caches for that release. This process can take a long time - best done overnight. Also I would temporarily remove the BFTB maps and replace them after you have recacled the other ones - that will save you time.
RE: BuildAll-RecalcAll
Posted: Fri May 16, 2014 11:10 am
by Phoenix100
What's that then - a self-fix for the problem of slow load times for all large non-bftb maps? If so will do it.
Any ETA on Africa (and Crete, and Malta), Dave?
RE: BuildAll-RecalcAll
Posted: Fri May 16, 2014 3:43 pm
by Werewolf13
ORIGINAL: phoenix
What's that then - a self-fix for the problem of slow load times for all large non-bftb maps? If so will do it.
Any ETA on Africa (and Crete, and Malta), Dave?
That's exactly what it is.
I'd still like to know which one to run 1st though. I imagine recalc the terrain 1st then the build cache since the cache as I understand it calculates line of sight information which would require up to date terrain calculations to be accurate.
RE: BuildAll-RecalcAll
Posted: Fri May 16, 2014 7:37 pm
by Arjuna
I'm not on my dev machine at he moment, so I can't check the code to confirm. But FYI when we do a conversion we write a specific conversion function for each file affected - ie for the Scenario, map, estab file. That conversion may do a number of things. For the map files, it will usually call CalcTerrainTables() at the end. So just running that batch file may not be sufficient to do a full conversion of the file. I recommend you use the ScenMaker to open and save it. During this process it will invoke the conversion code.
Now also note that the recalc map cache bat file simply generates a new map cache file. You really only need do this if you have changed the map graphics - ie by either editing the map graphics that the map file is using or selecting a differen map graphics set for the map file - or the map data objects by actually editing these in the MapMaker. If neither of these have occurred you don't need to waste time recalling the caches. We provide this tool so modders can see the effect of changing the graphics or editing a map.