Technical support > Windows
Issues with build 24055 (Muton Diff patch)
Muton:
>No, not every change would increase the ufo2map version
Than i make a proposal
please add a comment in ufo2map.c
--- Code: ---// RecompileALLmaps 0 this is for binarymakers. Increase the number by 1 if a complete recompilation of maps is necessary
--- End code ---
odie:
--- Quote from: geever on April 19, 2009, 11:33:28 am ---Run compile_maps.bat with /clean parameter so it will recompile all.
Full map recompilation isn't needed on every ufo2map change it can be minor but nowdays the pathfinding is changin' which does need it.
Note that there was a pathfinding commit today again so happy recompiling! :)
-geever
--- End quote ---
Ah, thanks geever!
I used to do that, but at one point, i thnk the /clean para was broken, so i tot it did not work animore.
Tried it just and its in the midst of recompilation. :)
So, ya, back to compilation indeed, and very happy to do it. lol
Muton:
I've found a way to determine
if its necessary to recompile all maps or not.
The logic behind
Take one map and build it always with option "-t 1"
hash this one map before and after the sourceupdate (and maprecompiling)
if the summ is different you need to recompile all maps
To do this you'll need fsum!
--- Code: ---:: here we hash one of the biggest maps
:: recompile it using only one core (very important)
:: and check if both hashsumms are identical
:: if not all maps need to be recompiled
:: %~dps0 == ufoai root (install-sh, Makefile.in, ...)
for /f "skip=4" %%a in (fsum -d"%~dps0base\maps" bunker.bsp') do (
del /F /Q "%~dps0base\maps\bunker.bsp"
ufo2map.exe -v 4 -extra -t 1 maps/bunker || (
@echo I was unable to compile bunker.map
call :error
)
for /f "skip=4" %%b in (fsum -d"%~dps0base\maps" bunker.bsp') do (
if NOT "%%a"=="%%b" (
move "%~dps0base\maps\bunker.bsp" "%~dps0\bunker.bsp"
del /Q /F /S "%~dps0base\maps\*.bsp"
move "%~dps0\bunker.bsp" "%~dps0base\maps\bunker.bsp"
)
)
)
--- End code ---
odie:
--- Quote from: Muton on April 22, 2009, 09:20:59 pm ---I've found a way to determine
if its necessary to recompile all maps or not.
The logic behind
Take one map and build it always with option "-t 1"
hash this one map before and after the sourceupdate (and maprecompiling)
if the summ is different you need to recompile all maps
To do this you'll need fsum!
--- Code: ---:: here we hash one of the biggest maps
:: recompile it using only one core (very important)
:: and check if both hashsumms are identical
:: if not all maps need to be recompiled
:: %~dps0 == ufoai root (install-sh, Makefile.in, ...)
for /f "skip=4" %%a in (fsum -d"%~dps0base\maps" bunker.bsp') do (
del /F /Q "%~dps0base\maps\bunker.bsp"
ufo2map.exe -v 4 -extra -t 1 maps/bunker || (
@echo I was unable to compile bunker.map
call :error
)
for /f "skip=4" %%b in (fsum -d"%~dps0base\maps" bunker.bsp') do (
if NOT "%%a"=="%%b" (
move "%~dps0base\maps\bunker.bsp" "%~dps0\bunker.bsp"
del /Q /F /S "%~dps0base\maps\*.bsp"
move "%~dps0\bunker.bsp" "%~dps0base\maps\bunker.bsp"
)
)
)
--- End code ---
--- End quote ---
Ooooo, interesting.
I saw one of the mods sent this link in a diff thread:
UFOAI revision logs
I think, developers might be able to help us further by:
1) Whenever all maps requires recompilations, to indicate in log - though this might get cluttered.
2) Post a sticky note! Lol. :P
Navigation
[0] Message Index
[*] Previous page
Go to full version