project-navigation
Personal tools

Author Topic: screen shows defeat while stats say victory  (Read 5844 times)

Offline ligtvoet

  • Rookie
  • ***
  • Posts: 13
    • View Profile
screen shows defeat while stats say victory
« 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.

Offline kurja

  • Captain
  • *****
  • Posts: 504
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #1 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.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #2 on: June 10, 2012, 12:05:43 am »
And that bug was fixed since February...

-geever

Offline ligtvoet

  • Rookie
  • ***
  • Posts: 13
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #3 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?

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #4 on: June 10, 2012, 12:46:11 pm »
Sorry for stupid question: are you recompiling after you get the new files?

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #5 on: June 10, 2012, 03:13:23 pm »
Another stupid question: are you rebasing after you fetch?

Offline ligtvoet

  • Rookie
  • ***
  • Posts: 13
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #6 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

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #7 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.

Offline Jon_dArc

  • Squad Leader
  • ****
  • Posts: 134
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #8 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

Offline Sandro

  • Squad Leader
  • ****
  • Posts: 240
  • Maintenance guy for UFO:AI 3D engine
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #9 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.

Offline kurja

  • Captain
  • *****
  • Posts: 504
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #10 on: June 12, 2012, 03:40:58 pm »
exactly what does rebasing achieve? if not using any mods or branches, does it do anything?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #11 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

Offline Jon_dArc

  • Squad Leader
  • ****
  • Posts: 134
    • View Profile
Re: screen shows defeat while stats say victory
« Reply #12 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