project-navigation
Personal tools

Author Topic: Win32 Development Binary Installer Links  (Read 466585 times)

Offline iliaarpad

  • Rookie
  • ***
  • Posts: 31
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #150 on: February 20, 2009, 03:06:09 pm »
Quote
We have investigated this problem last night and Bayo committed a possible fix in r22790.

note: it was only reproducible on windows, release build.

Okay, I'll test it to see if it works when I get home from work. And thanks for the quick fix!

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #151 on: February 20, 2009, 03:32:48 pm »
It's good that this issue has come to light, but why would you compile in release mode for these development binaries? It's better to have as much debug information as possible for feedback.

Offline iliaarpad

  • Rookie
  • ***
  • Posts: 31
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #152 on: February 20, 2009, 07:21:43 pm »
Actually it wasn't my intention to build a release version. I must have accidentally changed the target somehow. If not for Destructavator's tip, I'd be still in the dark.

In the meantime I updated my working copy and built a release with full optimization and it does seem to work. No crash or segmentation fault encountered. It would seem that the fix worked.

Offline iliaarpad

  • Rookie
  • ***
  • Posts: 31
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #153 on: February 23, 2009, 09:12:07 pm »
Hi!

Since I couldn't find any tools that could create/apply patches on folders I created a simple Java command line tool that "extends" xdelta on folders. It can create a patch (more precisely a folder with all the patch files) for two folders and can also patch a folder using a patch folder.

It's quite simple to use - to create a patch that could patch dir1 to dir2:

Code: [Select]
java -jar mxdelta.jar diff dir1 dir2 outputdir
To patch dir1 using the folder outputdir:

Code: [Select]
java -jar mxdelta patch dir1 outputdir
The tool is capable of updating existing files and creating recently added ones - but it can not delete removed files.
I hope it can be useful... I needed this because I play the game on one computer but I have to build it on another.

Note: you will need xdelta on your path or in the same folder as the jar file.
I have attached the tool to this post.

[attachment deleted by admin]
« Last Edit: February 23, 2009, 09:15:31 pm by iliaarpad »

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #154 on: February 23, 2009, 09:40:27 pm »

odie

  • Guest
Re: Win32 Development Binary Installer Links
« Reply #155 on: February 25, 2009, 02:59:26 am »
Yoz Destructavator,

Here's 22955: R22955 of 2.3dev UFOAI Win32

Its the complete recompilation of the maps with "/clean" and also a rebuild of all codes in CB.
Its a fresh recompilation of the pk3 files too.

Managed to sort out most of the issues with the scriptings (NSIS and the worspace file) at last. Many thanks for the help rendered dude. :)

Let me know if u wish help in this area in future. I can compile quite quickly.

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #156 on: February 26, 2009, 06:57:58 pm »
Little announcement for everyone building the game and uploading installers for Windows:

Please check periodically to make sure the .DLL files from the "contrib" folder are up-to-date from SVN when copied to the main folder with ufo.exe, as well as anywhere else you use them.  I feel like an idiot as I failed to do this myself, and found that I was packaging and uploading binaries with older versions in the game folder, perhaps compiling with them as well.  It turns out that the Tortosie SVN program, at least for me, doesn't update copied DLL files, and the DLLs in the game folder were older than the ones from the "contrib" folder.

Needless to say, this may have also been causing some bugs and issues in recent builds, for which I apologize.

The next build I upload will have this corrected.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #157 on: February 26, 2009, 07:15:50 pm »
Of course it doesn't update the copied DLLs. They're not in the repository. It only cares about files that have properties defined in the .svn directory.

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #158 on: February 27, 2009, 05:28:08 pm »
http://ufoai.ninex.info/wiki/index.php/Code::Blocks
copy the dynamic libraries (*.dll) from contrib/dlls/ to the UFO:AI root dir,
or into a directory in your path (e.g. c:\windows\system32).
Or add the contrib\dlls directory to your path.

@echo add ufo2map.exe dlls into path variable
set path=%path%;%~dps0contrib\dlls

and then comile the maps using ufo2map

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #159 on: February 27, 2009, 05:31:09 pm »
set path=%path%;%~dps0contrib\dlls

That doesn't sound right...

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #160 on: February 27, 2009, 06:37:01 pm »
Thats an example
i run my script from the ufoai root folder where configure and makefiles reside

Btw.
Am i the only one having a problem in combat
when i try to open fire
i'm unable to shoot
Normaly a "window" popup and i can choose the firemode
but the window doesn't show up
i've build a debug too but nothing changed

[attachment deleted by admin]

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #161 on: February 27, 2009, 06:51:15 pm »
I know bayo was doing something with that, reworking the firemode popup to something more standardized (in menu code terms). I'm guessing this has something to do with it.

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #162 on: February 27, 2009, 09:36:34 pm »
Hello Muton. Maybe you should have some warning on your console.
You also must clean up the old game data before installing new one. Its a common problem when a binary use old data (or some old files).

If it change nothing, what does it do if you use this command on the console?
Code: [Select]
mn_push firemode_rightfiremode_right is one of the popup window for the firemode. It should display to you the window.

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #163 on: February 28, 2009, 01:17:19 pm »
> Hello Muton. Maybe you should have some warning on your console.
no warnings

> You also must clean up the old game data before installing new one. Its a common problem when a binary use old data (or some old files).
old game data?
tried last full build 22950 (after uninstalling Ufoai) == same problem
but i dont have the "scrollmouse bug"


> If it change nothing, what does it do if you use this command on the console?
>
Code: [Select]
mn_push firemode_right> firemode_right is one of the popup window for the firemode. It should display to you the window.
no popup, no message, no error
Exactly the same result
as i would press the fire button next to the weapon

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Win32 Development Binary Installer Links
« Reply #164 on: February 28, 2009, 01:27:30 pm »
Are you sure you compiled Windows_debug?