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 #311 Crash when entering base defence with no aircraft
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
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
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/311 Item 311] imported from sourceforge.net tracker on 2013-01-28 18:18:28

Crash when entering base defence with no aircraft.
Suggestion, for now: disallow entering such base
defence --- it will expire naturally.

<Bandobras> the base crash you get in this way
<Bandobras> in campaign main [04:53]
<Bandobras> firststage invasion
<Bandobras> in stage invasion
<Bandobras> expire "0 77 0"
<Bandobras> wait a lot
<Bandobras> crash
<ubequitz> expire "0 77 0"? [04:55]
<ubequitz> the crash is from too many personell
<ubequitz> being awarded
<ubequitz> i.e. too many hirable soldiers
<ubequitz> too many hireable scientists
<Bandobras> really?
<ubequitz> I think
<ubequitz> I got it before
<ubequitz> before you made those nation balance changes
<ubequitz> I got all nations estatic
<ubequitz> with my performance
<ubequitz> made it to march
<ubequitz> and crash [04:56]
<Bandobras> I can&#039;t reproduce the crash right now :(
<Bandobras> the base crash
<ubequitz> hmm
<ubequitz> did it crash during the mission
<ubequitz> or immediately after?
<ubequitz> or did you have to let the months go by?
<ubequitz> if you had to let the months go by
<ubequitz> then you could replace baseattack
<ubequitz> with any mission
<ubequitz> and you would still get a crash
<ubequitz> ... I think
<ubequitz> the Japan map has one problem... I can camp
my snipers and take
them out from a distance [04:57]
<ubequitz> i.e. if I get past about 4 aliens
<ubequitz> then I can be setup to win
<ubequitz> although I thikn a couple are hiding from
me now [04:58]
<ubequitz> ... I&#039;ll have to storm them
<Bandobras> Program received signal SIGSEGV,
Segmentation fault.
<Bandobras> [Switching to Thread -1213217088 (LWP 26366)]
<Bandobras> 0x0805bfea in CL_GameGo () at
client/cl_campaign.c:2019
<Bandobras> 2019 baseCurrent =
aircraft->homebase;
<Bandobras> (gdb) bt
<Bandobras> #0 0x0805bfea in CL_GameGo () at
client/cl_campaign.c:2019
<Bandobras> #1 0x0808d68c in Cmd_ExecuteString
(text=0xbfd1aa24 "game_go")
<Bandobras> at qcommon/cmd.c:793
<Bandobras> #2 0x0808c9d5 in Cbuf_Execute () at
qcommon/cmd.c:263
<Bandobras> #3 0x0806e26b in CL_SendCommand () at
client/cl_main.c:1330
<Bandobras> #4 0x0806e9b9 in CL_Frame (msec=12) at
client/cl_main.c:1543
<Bandobras> #5 0x080965c2 in Qcommon_Frame (msec=12)
at qcommon/common.c:1538
<Bandobras> #6 0x080ad24d in main (argc=10,
argv=0xbfd1afa4)
<Bandobras> at ports/linux/sys_linux.c:424
<Bandobras> change 77 to 277
<Bandobras> wait several months
<Bandobras> enter the baseattack mission [04:59]
<Bandobras> crash
<ubequitz> hmm [05:01]
<ubequitz> interesting
<ubequitz> what about
<ubequitz> entering another arbitrary mission
<Bandobras> I&#039;ll check [05:02]
<ubequitz> that crash could only happen if aircraft
was null? [05:04]
<ubequitz> aircraft =
CL_AircraftGetFromIdx(gd.interceptAircraft);
<Bandobras> yes, because the aliens killed all people
in the base [05:05]
<ubequitz> huh?
<ubequitz> oh
<Bandobras> if I go to other mission, nothing wrong happens
<Bandobras> because I have no aircraft [05:06]
<ubequitz> so there are no aircraft
<ubequitz> :)
<Bandobras> actually, make it 77, nop 277
<Bandobras> less waiting
<ubequitz> I dont think that was freakyd&#039;s issue
<ubequitz> that is a good one to find though :P
<Bandobras> yes, sure :)
<ubequitz> that is the problem with defining everything
relative to aircraft
<ubequitz> it is a design error which will involve a
hack to work-around
<ubequitz> because.. if you have no aircraft [05:07]
<ubequitz> how can you equip a team?
<ubequitz> because the game is designed around
"equipping an aircraft"
<Bandobras> ok, so let it be
<Bandobras> yes, you are right
<Bandobras> but, for now, perhaps just loose the mission?
<Bandobras> the base defence
<Bandobras> or just don&#039;t allow entering it
<ubequitz> .... maybe we can loop through all soldiers
<Bandobras> just like I cannot enter other missions
[05:08]
<ubequitz> this is a tough one
<ubequitz> low priority
<Bandobras> yes, it needs design
<Bandobras> mattn has to approve, etc.
<ubequitz> since if you lose an aircraft
<ubequitz> you would not normally play on
<Bandobras> there are already ideas around
<ubequitz> you would load a saved game
<Bandobras> e.g. if you have TeamRoom you can assemple
defence team
<ubequitz> you should be able to equip a team of 4, a
team of 8
<ubequitz> yes
<ubequitz> even a team of 12 [05:09]
<Bandobras> even from soldiers and workers, etc.
<ubequitz> :)
<ubequitz> for multiplayer too
<ubequitz> it would be nice
<ubequitz> to have a team of 4 , team of 6 etc
<ubequitz> but I think that is possible
<Bandobras> but, ubequitz, when you build a new base
<ubequitz> at the moment by saving a set of teams
<Bandobras> it has no aircraft...
<ubequitz> you build a hangar
<Bandobras> so it&#039;s actually common
*** Winterslice
(n=NSLU2-IR@212-127-168-8.cable.quicknet.nl) has quit: Read
error: 113 (No route to host)
<ubequitz> I see
<ubequitz> can you test for the base that is being
attacked [05:10]
<Bandobras> what about not letting me enter the base
defence mission
<Bandobras> if I have no aircraft?
<ubequitz> and change baseCurrent = aircraft->homebase;
<ubequitz> to baseCurrent = base under attack...
<ubequitz> I dont know the variables
<Bandobras> I think so :0
<ubequitz> surely the game knows the base under attack
<ubequitz> it shows it on the geoscape
<Bandobras> I think so
<ubequitz> it must be some variable somewhere
<ubequitz> so you need to check... if aircraft is null
<ubequitz> then default to finding a baseattack [05:11]
<ubequitz> or check if mission is baseattack
<ubequitz> and test for that :)
<ubequitz> but only if aircraft is null
<Bandobras> another one-liner I suppose
<ubequitz> since someone could fly an aircraft to a
base attack mission
<ubequitz> yes, it is only a few lines :)
<ubequitz> that is another problem
<ubequitz> if you fly another aircraft to a base attack
<ubequitz> then surely your external team
<ubequitz> could join up with forces already stationed
at the base [05:12]
<ubequitz> to launch a joint defense
<ubequitz> again that is not coded for
<Bandobras> I think we can disregard that
<Bandobras> say, alien ships would not let it happen...
<ubequitz> ok
<Bandobras> for now, at least

===== Comments Ported from Sourceforge =====

====== cassiterite (2006-11-07 05:35:33) ======

Logged In: YES
user_id=1171370

Trunk revision 4019 technically fixes this bug since now the
team for a base-defense is selected from the aircraft menu
(so it should be impossible to enter a base-defense mission
without an aircraft, preventing the crash reported here!).

Of course it opens a new bug... "Can&#039;t defend base without
an aircraft" although if you have no aircraft left in an any
of your bases anyway you are probably in trouble game-wise.
One work-around to this new bug (at least with the current
code-base) would be to create a temporary "virtual aircraft"
and assign up to 8 soldiers present at the base to it
automatically (some code to enter an equipping screen when
selecting this virtual aircraft would be needed so the
player can equip their new squad however). Certainly this
feature would be useful, but ultimately I think only
marginally so (hence low priority, at least in my opinion).
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