no longer maintainedurl to wikiBecause of the complicated routine that is needed to build ufoai from source
I've started to script a new all in one package to build ufoai from source.
Planned is a fire and forget executable
Just set up path and switches on the GUI then press start and you're done.
No need to download another tool from the net
or set up mingw path variable or something else.
The script will be splitted in 2 parts
The GUI will be part of the C::B package
and the "working" script is part of SVN
to be easy maintainable.
The scripting language is autoit3
I know it's not one of the new cool ones
but the syntax is easy (
very important)
it's fairly powerful
it's well documented
it's free (not opensource)
still supported
there is a big community
and no installation is needed
I've attached a screenshot and the script itself
But before i spend days on this project i want to know if there is some interest
especially from the devs
== 2009.12.08 ==============================================
Its time for the first test
UfoAI.zip- download and extract the zip
- place all files into the correct location
- run configure_win32.exe make you'r selection and press start
- wait until finished
place all files into the correct locationThis zip contains
.\configure_win32.exe the start stript
.\ufoai represents your ufoai sourcefolder
.\MinGW represents your mingw folder
.)configure_win32.exe can be placed anywhere you want
It will generate an ini file to hold your settings
and the working script itself (this way you dont need to extract it from the exe)
.)ufoai the folder-structure is replicaded from svn
here you find the buildscript
.)Mingw the folder-structure is replicaded from C::B package
added 7za.exe (should already be there)
added 7zan.exe (same as 7za.exe but optimized for P4 SSE2)
added svn 1.6.6 (you should alredy have svn but 1.6.1)
added autoit script interpreter + include files (
http://www.autoitscript.com/autoit3/)
run configure_win32.exe make you'r selection and press startThis script merge all infos and push them into the buildscript
First point to the location for C::B MinGW UfoAI and Nsis (use the Button)
then do other selections
ufo2map optimize- Core n (slect those cores you want to use)
- clean (will clean all maps before building)
- fast (will do much less lightning)
- P M, P4 2, P4 3, .... (optimize ufo2map for some Processors P4 and SSE2 or Core2Duo and SSSE3 ..
UfoAI optimize- debug (will build a debug build)
- P3 (will optimize for P3 SSE (no -Ox option used))
- full (build a full installer including radiant ans source)
- small (build a small installer without maptools and source)
press start
configure_win32.exe will close and the buildscript windows should show up
wait until finishedThe hardest part
.....
after the script has finished a log file should appear
and the finished installer show up on your desktop
If an error occure zip and attach the log here (its in your %tmp% folder)
== 2009.12.20 ==============================================
UfoAI.zipadded- noNSIS button in configure script
- support for long filenames
- "Lockcheck" for svn (dont update)
changed- the name of the initial script from make_win32.exe to configure_win32.exe
- prepare routine for C::B (default.conf.bak stores your config, default.conf is changed during a run)
bug- The list inside map_last_build.md5 was appended and not replaced
== 2009.12.30 ==============================================
UfoAI.zipadded- Checkbox for source update
- Checkbox for map compilation (incl. Benchmark)
- Selection for pk3 or 7z file creation
- Checkbox for Translation file generation
- Checkbox for UfoAI compilation
- Installer checkbox incl. small installer option
- A lot of GCC options for ufo2map and the whole UfoAI project
- Help included (select the GUI element to view the help on the edit field)
changed- map and ufo2map optimization
- ufoai optimization
bugNo Admin rights need (w2k XP [dont know NT 6.x])
You need to place all files in a folder with appropriate rights for the user
Users FULL acces
Run this as Admin
cacls "C:\Program Files (x86)\my ufoai folder" /T /E /G Users:F
replace Users with the name of the group correnspondig to your language
Run this and you'll se the groupname (here Benutzer)
cacls "%ProgramFiles%"
C:\Programme VORDEFINIERT\Benutzer:R
VORDEFINIERT\Benutzer:(OI)(CI)(IO)(Beschr�nkter Zugriff:)
GENERIC_READ
GENERIC_EXECUTE
VORDEFINIERT\Hauptbenutzer:C
VORDEFINIERT\Hauptbenutzer:(OI)(CI)(IO)C
VORDEFINIERT\Administratoren:F
VORDEFINIERT\Administratoren:(OI)(CI)(IO)F
NT-AUTORIT�T\SYSTEM:F
NT-AUTORIT�T\SYSTEM:(OI)(CI)(IO)F
VORDEFINIERT\Administratoren:F
ERSTELLER-BESITZER:(OI)(CI)(IO)F
== 2009.01.17 ==============================================
I've merged both scripts into one
You now need only make_UfoAI_win32.exe
No need to extract a zip ...
make_UfoAI_win32.exeadded- version number
- update routine
- merged both scripts into one
- ufo2map source monitoring
- a MessageBox was added into NSIS if you build a small installer (where to get the source files)
changed- 7zan.exe not used any more
- relative path in md5 files
- the name of the compiled script changed (the last time)
- small wiki changes
- log file is not any more overwritten
- all md5 fileas are stored in the same directory as make_UfoAI_win32.exe (not on \contrib\scripts any more)
bugI've added 2 new routines
update routine
ufo2map source monitoring
The update routine check by every start if there is a new revision available
If yes the new revision is downloaded into %tmp% and a helper file is called (wait_copy_run.exe)
This helper file wait until the script terminates itself
copy the new revision over your existing one
and run it
The ufo2map source monitoring routine
will help users to stay up2date with there maps (*.bsp) witout cleaning all maps by hand (even if not necessary)
To activate this routine checkbox clean must be unchecked
This routine clean all maps only if a sourcefile of ufo2map.exe has changed (all *.bsp files will be deleted)
if not it will use ufo2map_last_build.md5 to determine which *.map file has changed since the last svn update
and delete the corresponding *.bsp file
In this case only changed maps will be build and the map compilation process is dramatically shorten
I've made a flowchart
map_last_build.md5 ( stores the path, name and md5hash of all *.map files from the last successful mapcompilation )
ufo2map_last_build.md5 ( stores the path, name and md5hash of all *.h *.c files from the last successful mapcompilation )
ufo2map.cbp ( contain all information to build ufo2map.exe [*.h *.c] )
== 2009.02.14 == 0.5.1 =====================================
I've added a routine to "fix" the nsis script from ufoai source
Changed to user privilege for un-install incl. UAC for Vista and 7
Removed a bug that break the update routine
You have to manualy download the script
make_UfoAI_win32.exechanged- installer nsis script of UfoAI modify
bug== 2009.03.14 == 0.5.3 =====================================
Fixed a bug
http://ufoai.ninex.info/forum/index.php?topic=2830.msg34927#msg34927Autoupdate routine is working now!
addedbug- installer script creating pk0 files
== 2009.03.27 == 0.6.0 =====================================
environment check
Every time you press start, ill check your mingw environment to be sure its up2date
If not you will be questioned to update or not
Nothing will be forced!
make install
You are now able to install UfoAI automatically than to run it from source or manually install it
No, its not a good idea to run the game from the source folder
clean switch
The map compile clean switch
You normally dont need it
A algorithm take care that your maps are up2date
small switch
This was linked to the Installer switch and is now independend
If you only want to build the game and nothing else
this switch is 4 you
The map editing tool (Radiant) is not compiled and not installed
added- environment check
- make install
changed- clean switch unchecked by default
- small switch independent from installer
== 2009.03.28 == 0.6.1 =====================================
changed- adopt the new folder structure from svn
== 2009.03.29 == 0.6.2 =====================================
bug- install script error (7z switch)
== 2009.03.29 == 0.6.3 =====================================
changed- cleanup contrib/scripts/windows
== 2009.05.04 == 0.7.0 =====================================
Next to some smaller changes
you'll get a smarter map compiling process
Its no longer forced to run on only one core
Depending on the maps that needs to be compiled the script determine if it is better to run on one core or all your selected cores
If you use the fast switch for compiling maps, the script will use only one core (only lightning is multithreaded [so there is no gain])
You will find a download checkbox which is disabled
Yes i've started to use map_get but currently its only of little use
added- ending sounds are back (they have been converted to ogg)
- verbose output during map compilation ( added to log too )
- real clean up (the old script leave some tmp files on the system)
- a "create" button next to the "make install" button ( if the folder dont exist .... )
- if you close the script while running you will be asked if you really want to do this
- revision level (svn)
changed- gcc option -O2 -O3 ( they wont break threaded run of ufo2map any more )
- ufo2map_last_build.md5 is not used ( using -V --version output from ufo2map instead [this will prevent a recompile of all maps without reason {a dev know better if it is necessary or not }])
- map compilation is not single threaded ( it depends on maps [>750k multi, <100k single, in between depends on cores and amount of <100k maps] )
== 2009.05.15 == 0.7.5 =====================================
I've added ufomodel to create mdx files
Its a fast build process so i spared some time and added it into the ufo2map build proecess
The tool itself is compiled with the same gcc settings as applied for ufo2map
Added the possibility to run a command or script after build completion
Some macro's are added see help
>I've noticed that every time one close the make_UfoAI_win32.exe, even when no compiling was started (not even any change in the setting was made) the app says "My child processes and I are still alive!
Will only show up during "make" no longer under "config"
added- run script after build
- ufomodel
changed- close warning
- litte Gui changes
== 2009.05.22 == 0.7.6 =====================================
.)I've forgotten to clean project folder after compiling ufomodel (fixed)
.)The script now run 7zip with option -mx1 instead of -mx9 to create pk3 files IF switch "Installer" is NOT selected
This should speedup the build process, to the cost of bigger pk3 files
changed- cleaining ufomodel C::B files
- build pk3 files faster if switch "Installer" is deselected
== 2009.05.24 == 0.8.0 =====================================
Added the possibility to compile dev 2.4 or dev 2.3 of Ufoai
If you want to build dev 2.3 you need to get the source too
howtoStore the source directly under the MingW folder (the script will look there for it first [easier switching between 2.4<->2.3])
added== 2010.07.03 == 0.9.0 =====================================
Two big things have been added
1) a map download >like< map_get.pyThe main difference is that you don't download maps that aren't useful for your build
The serverApp run once in an hour that once a day
I do a md5hash on the original *.map files to determine if a map should be downloaded or compiled than do just download
The server log store hash sums of *.map files and the path of them
If you want to download a map (*.bsp)
the script hash your *.map file and check it against the serverlog *.map hash
If both match, the download of this *.bsp will start
If the download failed or the hash is unequal, you will build the map using ufo2map2) A routine to build an update than a full installer of UfoAIIt will build a update of your last full build (you need to enable this function first)
A new switch "diff" was added into the GUI (It requiers the "Installer" and "7z" switch too, to work)
First time you build a full installer.
Next time you call it, you will build (
differential) updates
A new file to hold all infos was added too, inst_last_build.md5 (release 2.4) and inst_last_build_2.3.md5 (release 2.3)
If you delete this file you will start from the beginning (there is no GUI switch to do this)
The update include all dlls and executables, only files inside of pk3's are removed from the installer if they are the same (the pk3 files are than updated during installation)
This way you can switch between a release or debug build, even include radiant once and next time without radiant.
added- instance check of make_UfoAI_win32.exe (only on instance is allowed)
- some Hardware infos to log (CPU RAM OS)
- map download
- Installer update routine
bugs== 2010.12.04 == 0.9.4 =====================================
ufo2map will now use quant 4 to compile maps
SSE is now used if selected
The log file is now not opened after completing compilation, except for an error
MinGW is now silently updated if necessary
A small list of bugs have been fixed
changed- -quant 4 for ufo2map
- make use of SSE during make
- The log file will not open any more if no error accrued
- MinGW update
bugs== 2011.01.05 == 0.9.5 =====================================
There was a bug related to mapdownload
The script tried to download outdated maps.
Added a conditional statement to compare ufo2map version level
from server-log and local ufo2map build
bugs== 2011.02.19 == 0.9.6 =====================================
There was a bug related to mapdownload
Added a "macro" ctrl+s to start the build from the config window
Reduced the hight of the config window a bit (as much as possible)
Added the make model switch (*.mdx files)
Deselecting is only useful if you want to build maps only
added- make model switch
- ctrl+s to start the build process (instead of pressing start)
changed- smooth progress update
- size of the config window reduced
bugs== 2011.02.19 == 0.9.7 =====================================
There was a regex bug
bugs== 2011.03.26 == 0.9.8 =====================================
I've changed the routine to update mingw
changed