project-navigation
Personal tools

Author Topic: RC4: Wrong status for aircraft  (Read 5465 times)

HaJo

  • Guest
RC4: Wrong status for aircraft
« on: July 30, 2006, 08:07:22 pm »
See screenshot at
https://sourceforge.net/tracker/index.php?func=detail&aid=1531315&group_id=157793&atid=805242

The screenshot shows an aircraft from base#1 (USA)
flying back from a mission resolved with auto-mission.

The shown status is wrong in several ways:

* Box at lower right: "At homebase"
* Box at lower right: Fuel is still at 100/100

* Aircraft-box: Option "Stop-mission" is present
* Aircraft-box: Option "Back to base#2" (instead of #1)

TorF

  • Guest
RC4: Wrong status for aircraft
« Reply #1 on: July 31, 2006, 08:03:16 am »
I'm surprised the aircraft doesn't look like selected (no circle around the aircraft).

Did this information correspond to another aircraft ?

Can you give more details about how this situation occurs ?
end of mission, which aircraft or mission was selected before...

TorF

  • Guest
RC4: Wrong status for aircraft
« Reply #2 on: July 31, 2006, 09:21:15 am »
This problem is supposed to be solved in trunck.

Geoscape can no more display information about an aircraft at home.
Check "if (selectedAircraft->status <= AIR_HOME)" in MAP_DrawMap function in cl_map.c file.

HaJo

  • Guest
RC4: Wrong status for aircraft
« Reply #3 on: July 31, 2006, 11:33:49 am »
Quote from: "TorF"
Did this information correspond to another aircraft ?
Can you give more details about how this situation occurs ?

This is from after the first mission "Revelstoke" of a new game,
i.e. the aircraft is returning to his base#1 as the course indicates.

The other dropship is at home in the second base in europe.
Note the map is zoomed in, so nothing else is in clickable range...

TorF

  • Guest
RC4: Wrong status for aircraft
« Reply #4 on: July 31, 2006, 11:41:24 am »
Thanks for infos.
The aircraft at homebase was considered selected. So information displayed was not wrong.
But this aircraft should not have been selected.

Do you remember what element was selected before mission ?
What is the sequence you use to launch the mission ? (select mission, then give order to aircraft t to move to mission from the intercep popup - or select aircraft, and ask him to move to mission from the aircraft popup - or so...)


This bug will no more occurs (with trunck version), but it could be good to understand how it occured.

HaJo

  • Guest
RC4: Wrong status for aircraft
« Reply #5 on: July 31, 2006, 11:45:06 am »
Quote from: "TorF"
Do you remember what element was selected before mission ?

You can see a screenshot from before the mission (zoomed out) at
https://sourceforge.net/tracker/index.php?func=detail&aid=1531306&group_id=157793&atid=805242

The aircraft from base#2 has only been ordered to start to show the
"returning to base" message not fitting into the messagebox.

TorF

  • Guest
RC4: Wrong status for aircraft
« Reply #6 on: July 31, 2006, 11:47:12 am »
Did the popup automatically open just after the mission ? Or you have done some action ?

HaJo

  • Guest
RC4: Wrong status for aircraft
« Reply #7 on: July 31, 2006, 11:57:03 am »
Quote from: "TorF"
Did the popup automatically open just after the mission ? Or you have done some action ?

Nothing happened automatically - I clicked the aircraft to get its status.

Other than that, I shifted the map / got new status, until everything
were showing nicely for the screenshot (aircraft/base/course/dialogboxes...)

And the only other thing I did was to look at the equipment of those guys,
to see if/how much ammo had been used up during the auto-mission,
who were killed, and what loot they were bringing back... (nothing) ...
but that belongs to another bug.

HaJo

  • Guest
RC4: Wrong status for aircraft
« Reply #8 on: July 31, 2006, 12:08:24 pm »
BTW, it would be useful if the aircraft were given proper ids,
i.e. not just "dropship", but "dropship#1" etc.

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
RC4: Wrong status for aircraft
« Reply #9 on: July 31, 2006, 03:15:25 pm »
Quote from: "HaJo"
BTW, it would be useful if the aircraft were given proper ids,
i.e. not just "dropship", but "dropship#1" etc.


Good idea. TorF, perhaps use aircraft (idx +1) value for that? It is unique and starts from 1...

TorF

  • Guest
RC4: Wrong status for aircraft
« Reply #10 on: July 31, 2006, 04:45:33 pm »
if aircraft.idx is unique, the problem should not occur in last version.

Yes good idea for aircrafts name. You should write this in "sf feature requests". If not there is some risk to lost idea in the darkness of forum. 8)

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
RC4: Wrong status for aircraft
« Reply #11 on: August 01, 2006, 12:09:48 am »
Quote from: "TorF"
if aircraft.idx is unique, the problem should not occur in last version.


What problem? Of course idx is globally, totall unique (as opposed to idx_sample). I made it so via the patch that forced you to write your stuff anew. :D

HaJo

  • Guest
RC4: Wrong status for aircraft
« Reply #12 on: August 01, 2006, 05:52:48 pm »
Quote from: "TorF"
good idea for aircrafts name. You should write this in "sf feature requests".

Done:
https://sourceforge.net/tracker/index.php?func=detail&aid=1532525&group_id=157793&atid=805245