Unfortunately 2 maps which are used in competitions today - Ironfist Spitfire and by Tatar - have passwords on them so I cannot go into the editor to calculate shadows...

Is there a way I can do this without having to create a .bat file?
Moderator: English Moderator
As far as I know, there is no possibility to calculate the shadows of only a selected map by a commandline option.niarfman wrote:Hi !
Is it possible to enhance this script by adding an argument allowing to choose the folder to compute ?
For now we need to move the maps which we doesn't want to compute in an other folder. And some maps which are not in the Maps folder will also be compute. When using Ultra Quality, the needed time for each map is around 15-20 minutes on my computer (i7 2600k + Radeon 7950). Be able to compute ONLY desired maps will save me a lot of time ^^.
Thanks by advance
Code: Select all
Map1.Map.Gbx
Elite\Map_01.Map.Gbx
Storm\Map_03.Map.Gbx
Code: Select all
rem create a backup
xcopy /s /e C:\Users\MyUserName\Documents\ManiaPlanet\Maps c:\Users\MyUserName\Documents\ManiaPlanetBackup
rem delete all maps
del /s /q /f C:\Users\MyUserName\Documents\ManiaPlanet\Maps\*.*
rem copy the maps to calculate back, quotes in case of blanks in file names
for /f "tokens=*" %i in (maplist.txt) do xcopy /s /e "C:\Users\MyUserName\Documents\ManiaPlanetBackup\Maps\%i" "C:\Users\MyUserName\Documents\ManiaPlanet\Maps\%i"
rem start shadow calculation
"C:\Program Files (x86)\ManiaPlanet\ManiaPlanetLauncher.exe" /computeallshadows /useronly /collections=Storm /LmQuality=Ultra
rem copy backup files back, ignore newer ones with /d option
xcopy /d /s "c:\Users\MyUserName\Documents\ManiaPlanetBackup\Maps\*.*" "C:\Users\MyUserName\Documents\ManiaPlanet\Maps"
Code: Select all
rem create a backup (or update the backup with newer files only)
xcopy /d /s /e C:\Users\MyUserName\Documents\ManiaPlanet\Maps c:\Users\MyUserName\Documents\ManiaPlanetBackup
[b][color=#FF8000]LuckyBoy[/color][/b] wrote:To make things a bit clearer, computed shadows with at least "Fast Quality" are saved as separate files in your cache folder (also used by p2p downloads), if the current map is "bound to a file" (this is the case when you just load a map from a file, but not when you've edited a loaded map and not saved it yet).eyebo wrote:High and Ultra shadows are always saved in your cache. So these will disappear if you clear your cache. Only default quality shadows are saved in map files. This is apparently desired functionality, from what communications I've had with Nadeo about it. The higher quality shadows in the cache still provide more calculations for the default shadows saved in the map file. So quality is still increased by calculating them. But this would explain why the shadows might disappear after cleaning your cache.zarexz wrote:Shadows also seem to get lost after cleaning your cache but I can't put my finger on it yet.
Fortunately, if you load a map, edit it, compute shadows, and then save, the locals cache will be saved at the map save point (because they're up-to-date).
Indeed if you clean your cache, you'll loose all your local shadow caches, but the embedded caches in the map won't be lost. This mean you'll still be able to play with the maps on multiplayer, but in the map editor, the compute dialog will display that nothing has been computed (this dialog ignores the embedded cache).
Thanks
Users browsing this forum: No registered users and 2 guests