project-navigation
Personal tools

Poll

Are you interested in such a script

Yes
9 (100%)
No
0 (0%)
Don't care
0 (0%)

Total Members Voted: 5

Voting closed: August 12, 2009, 04:03:18 pm

Author Topic: make_UfoAI_win32 (all in one win32 build script)  (Read 150843 times)

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: All in one win32 build script
« Reply #60 on: January 09, 2010, 12:42:34 am »
added a work arround to get all needed dlls into the installer

Offline Rockwolf

  • Rookie
  • ***
  • Posts: 17
    • View Profile
Re: All in one win32 build script
« Reply #61 on: January 16, 2010, 03:28:26 pm »
Just want to say thank you to Muton for making something like this.

However, I seem to be having a problem getting it to work.

The application downloads the source, gets C::B ready, but when starting on the compile of Ufo2map, it seems to sit and idle.  My CPU is just sitting idling at around 5% activity, with little jumps to 10%, that's about it.  

I chose the option where your application determines the details of my processor.

Edit:  I have an AMD Phenom II, Quadcore, 3.0Ghz, 8Meg total cache, socket AM3
« Last Edit: January 17, 2010, 07:18:03 am by Rockwolf »

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: All in one win32 build script
« Reply #62 on: January 17, 2010, 05:34:35 pm »
@Rockwolf
an amd k10
CPU Layer 1 cache Line size 64byte
CPU Layer 1 cache size 64kbyte
CPU Layer 2 cache size 512kbyte
Leave this field at unknows if you are not shure
you will loose only marginal speed


=== again an update ================================

I've merged both scripts into one
You now need only make_UfoAI_win32.exe
No need to extract a zip ...

wiki
make_UfoAI_win32.exe

added
  • 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)
bug
  • removed ufo2map loop bug

I'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] )


Offline Rockwolf

  • Rookie
  • ***
  • Posts: 17
    • View Profile
Re: All in one win32 build script
« Reply #63 on: January 18, 2010, 10:20:21 am »
Still idling at ufo2map.  I set up the processor in the map compiler as you said.

Do I need to check something for the sse?  

Also, there's a dropdown with 01, 02, 03.  What does that mean, and should I select something other than the default?

If it helps, I'm only running Vista 32bit, even though my processor is a 64bit.  I used my current copy of windows when I built my new system a few months ago.  Putting a computer together and setting it up is about the extent of my skills with computers.  I can troubleshoot some of the simpler hardware issues, but that's pretty much it.  So, basically, I'm quite lost with much of what's required.

Sorry if you'll need to use a lot of explaining of each step.

edit:  Should I have C::B open and running when I try to run your compiler?

edit #2:  I've been doing everything on my D:\, but other than the drive path, everything was set up exactly as you described in the wiki.
« Last Edit: January 18, 2010, 03:35:26 pm by Rockwolf »

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: All in one win32 build script
« Reply #64 on: January 18, 2010, 07:44:27 pm »
You have full access to the folder?
Run codeblocks.exe yourself and open project file
ufoai\build\projects\ufo2map.cbp
and recompile the project -> result?

Zip and attach the log file!
UfoAIbuild-*.log

Offline horza

  • Cannon Fodder
  • **
  • Posts: 6
    • View Profile
Re: All in one win32 build script
« Reply #65 on: January 18, 2010, 10:32:03 pm »
I've got the following error on the build. Any ideas? No pdfs were downloaded so I'm wondering why it's looking for one, or why none were downloaded if they're needed.


MessageBox: 0: "If you want to play multiplayer games, open the TCP port 27910 in your firewall."
FunctionEnd
SectionGroup Game ->(SECGROUP01)
Section: "Game Files" ->(SEC01)
SetOverwrite: ifnewer
SetOutPath: "$INSTDIR"
File: "COPYING" 14969 bytes
File: "README" 120 bytes
File: "CONTRIBUTORS" 6869 bytes
warning: File: "..\..\src\docs\tex\*.pdf" -> no files found. (C:\Program Files (x86)\UFOAI\ufoai\contrib\installer\ufoai.mod.nsi:91)
File: "C:\PROGRA~2\UFOAI\MinGW\bin\intl.dll" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "C:\Program Files (x86)\UFOAI\ufoai\contrib\installer\ufoai.mod.nsi" on line 92 -- aborting creation process
Endtime:   2010.01.18 21:17:57 2
Error 26
Failed to build the installer

Offline Rockwolf

  • Rookie
  • ***
  • Posts: 17
    • View Profile
Re: All in one win32 build script
« Reply #66 on: January 19, 2010, 12:27:50 pm »
You have full access to the folder?
Run codeblocks.exe yourself and open project file
ufoai\build\projects\ufo2map.cbp
and recompile the project -> result?

Zip and attach the log file!
UfoAIbuild-*.log

Turns out that I didn't have full access.  I thought I did, so I did change it to full access on both root folders involved.  Crazy windows...  Doesn't even let me have full access on my own computer, under my own account, which is a member of administrators.  grr...

So, I set them up to full access, and ran your program, still idling at ufo2map.  I did check all 4 cores as well.  When I tried to run that project file in Codeblocks, it stopped right away.  I could not find the file UfoAIbuild-*.log, even after a full system search, thought I found a .txt document that matched.

I attached it, I hope this is what you meant.


Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: All in one win32 build script
« Reply #67 on: January 19, 2010, 09:45:34 pm »
@horza
File: "C:\PROGRA~2\UFOAI\MinGW\bin\intl.dll" -> no files found.

outdated Mingw environment
sfx 7z file codeblocks.exe

@Rockwolf

I've tested the script on a clean vista x64 setup without a problem
So if you are unable to compile ufo2map by hand using codeblocks.exe than the problem is somwhere on your machine
The log file contain no error

Possible that you forgotten something?



Offline Rockwolf

  • Rookie
  • ***
  • Posts: 17
    • View Profile
Re: All in one win32 build script
« Reply #68 on: January 20, 2010, 12:24:20 pm »
@horza
File: "C:\PROGRA~2\UFOAI\MinGW\bin\intl.dll" -> no files found.

outdated Mingw environment
sfx 7z file codeblocks.exe

@Rockwolf

I've tested the script on a clean vista x64 setup without a problem
So if you are unable to compile ufo2map by hand using codeblocks.exe than the problem is somwhere on your machine
The log file contain no error



Possible that you forgotten something?




I'll try to do it via the base administrator account, and see if that changes anything.

I'll keep you updated.



Okay, didn't work in Administrator, but then I noticed a little something in the way I had your application set up.  I had Codeblocks set to d:\ufoai_src\codeblocks

Turns out that I had unzipped codeblocks into d:\ufoai_src\codeblocks\codeblocks

I changed that, and hit start, and it's now compiling!

Sorry for my bout of stupidity.


Oh boy, my machine is really chugging away now!  Can't run any other programs until this finishes, lagging my machine really badly.


Okay, failed to build the installer, error 26, after 12 minutes.

I don't mind that it failed, this is the farthest I've gotten so far!  I zipped and attached the .txt, hope you can find out what went wrong!

Cheers again Muton, I really appreciate the effort you've put into making a compiler that someone like myself can use.
« Last Edit: January 20, 2010, 01:34:35 pm by Rockwolf »

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: All in one win32 build script
« Reply #69 on: January 20, 2010, 05:21:57 pm »
File: "D:\ufoai_src\MinGW\bin\intl.dll" -> no files found.

You also have an outdated MinGW environment
extract the codeblocks.exe again
Than you'll find not only a codeblocks folder also a MinGW folder
use this MinGW environment to build UfoAI
(copy over you'r existing folder and replace anything)

Offline Rockwolf

  • Rookie
  • ***
  • Posts: 17
    • View Profile
Re: All in one win32 build script
« Reply #70 on: January 21, 2010, 11:13:56 am »
Works perfectly now, a few warnings, but looks like I have a working uptodate revision now!

Thanks for all of your patience.

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: All in one win32 build script
« Reply #71 on: February 14, 2010, 11:15:49 am »
== 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.exe

changed
  • installer nsis script of UfoAI modify
bug
  • update routine

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: All in one win32 build script
« Reply #72 on: February 14, 2010, 11:47:51 am »
is that something we should integrate into the official version, too? why don't you show patches for your changes on those scripts?

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: All in one win32 build script
« Reply #73 on: February 14, 2010, 03:40:33 pm »
A dev should start to fix the dll problem

http://sourceforge.net/apps/trac/ufoai/ticket/60

replace : with a space, Nsis want to build/remove shortcuts with this vars
!define PRODUCT_NAME "UFO:Alien Invasion"
!define SHORT_PRODUCT_NAME "UFO:AI"
!define PRODUCT_NAME_DEDICATED "UFO:Alien Invasion Dedicated Server"
!define PRODUCT_PUBLISHER "UFO:AI Team"



UAC depend on a NSIS plugin
and user privilege to un-install will only wotk with this UAC plugin on Vista/7
the rest is cosmetic

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: All in one win32 build script
« Reply #74 on: February 14, 2010, 03:53:06 pm »
escaping with \: isn't working, too? the : is part of the name