UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #2413 civilianSum > 0 failed
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    Campaign
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    5. Important
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/2413 Item 2413] imported from sourceforge.net tracker on 2013-01-28 19:35:59

After defending the base (where there are no civilians) the game shuts down with the message
ufo: src/client/campaign/cp_campaign.c:388: CL_HandleNationData: Assertion `civilianSum > 0' failed.
./ufo(Sys_Backtrace+0x1f)[0x819e6b6]
The last part of the game log (from the terminal) is attached

Version:
=================
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
Repository Root: https://ufoai.svn.sourceforge.net/svnroot/ufoai
Revision: 29006
Last Changed Author: tlh2000
Last Changed Rev: 29004
Last Changed Date: 2010-03-15 08:29:07 +0100 (Mon, 15 Mar 2010)

System:
===============
Ubuntu Karmic..
Nvidia something graphics, proprietary driver (version 185)
i386

What happened before the bug occurred? Is the bug reproducible?
=====================================================
Defended the base several times, but a certain attack (arriving in-game a couple of hours after a certain save) crashes every time
So it is definitely reproduceable
The battle it self has some issue with aliens appearing on top of the soldiers, but that has happened before

Hope this helps any
- sincerely
===== Comments Ported from Sourceforge =====

====== *anonymous (2010-03-15 21:17:30) ======

Logfile
====== btaxis (2010-03-16 10:23:11) ======

This is because the current scoring algorithm is purely based on the amount of civilians you save. No civilians means a divide by zero, which is why the assert is there. I will implement a hack to prevent this from happening, but what we really need is a simple "mission objectives" system that intelligently calculates a score based on the mission's objectives.
====== btaxis (2010-03-16 11:14:09) ======

The asserts are gone in r29028. Note that this revision fixes the symptoms, not the underlying cause. Nevertheless, I consider this bug closed.
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif