UFO:Alien Invasion

Technical support => Bugs in stable version (2.5) => Topic started by: ligtvoet on June 09, 2012, 09:55:26 pm

Title: screen shows defeat while stats say victory
Post by: ligtvoet on June 09, 2012, 09:55:26 pm
I regularly update the files, it says however 2.4-dev AI-32 28 Feb.
Anyway, running on Linux 12.04

When running a battle in auto-mode, I regularly get a defeat screen while the statistics say that 8 aliens were killed, and 8 soldiers and civilians survived.
Title: Re: screen shows defeat while stats say victory
Post by: kurja on June 09, 2012, 11:02:17 pm
I regularly update the files, it says however 2.4-dev AI-32 28 Feb.
Anyway, running on Linux 12.04

you won't get from 2.4dev to 2.4 release by update/upgrade, you need to uninstall and then reinstall the new version or if you want 2.5dev you have to compile it.
Title: Re: screen shows defeat while stats say victory
Post by: geever on June 10, 2012, 12:05:43 am
And that bug was fixed since February...

-geever
Title: Re: screen shows defeat while stats say victory
Post by: ligtvoet on June 10, 2012, 11:43:30 am
So I did a fresh git fetch and still I get the 28 Feb version. What do I do wrong?
Title: Re: screen shows defeat while stats say victory
Post by: H-Hour on June 10, 2012, 12:46:11 pm
Sorry for stupid question: are you recompiling after you get the new files?
Title: Re: screen shows defeat while stats say victory
Post by: H-Hour on June 10, 2012, 03:13:23 pm
Another stupid question: are you rebasing after you fetch?
Title: Re: screen shows defeat while stats say victory
Post by: ligtvoet on June 10, 2012, 10:36:59 pm
This is what I do:

git fetch
./configure
make clean
make
make lang
python ./contrib/map-get/update.py
./ufo
Title: Re: screen shows defeat while stats say victory
Post by: H-Hour on June 10, 2012, 10:42:13 pm
After git fetch, I think you also need to git upbase or git rebase. Otherwise you are downloading the files but not actually applying the changes to your working folder.
Title: Re: screen shows defeat while stats say victory
Post by: Jon_dArc on June 12, 2012, 01:20:05 pm
In at least some circumstances git fetch will also check out the revision containing the newly fetched files (it's always done that for me, thus far), but that would probably be a good place to start looking.

~J
Title: Re: screen shows defeat while stats say victory
Post by: Sandro on June 12, 2012, 02:10:46 pm
Proper way is to use "git pull --rebase" instead of "git fetch".
For those who like hypnotizing the progress bars, "--progress" could be added.
Title: Re: screen shows defeat while stats say victory
Post by: kurja on June 12, 2012, 03:40:58 pm
exactly what does rebasing achieve? if not using any mods or branches, does it do anything?
Title: Re: screen shows defeat while stats say victory
Post by: geever on June 12, 2012, 03:46:31 pm
if you don't commit anything it does nothing afaik. But the best is imho setting up an alias:

Code: [Select]
git config alias.up "pull --rebase"

So you only have to type git up as it was an SVN, and still cared about accidental merge-commits.

-geever
Title: Re: screen shows defeat while stats say victory
Post by: Jon_dArc on June 12, 2012, 07:37:12 pm
Proper way is to use "git pull --rebase" instead of "git fetch".
Hah, I'm a dumbass. Yes, "git pull" is what I've been using, not "git fetch", ignore my previous comment. I have not found it necessary to use the --rebase flag, despite having local commits and branches.

~J