[Freeciv-tickets] [freeciv] #44594: TECH_UPKEEP_DEBUGGING messing research->techs_researched when future techs involved

Back to archive index
OSDN Ticket System norep****@osdn*****
Fri May 27 18:17:43 JST 2022


#44594: TECH_UPKEEP_DEBUGGING messing research->techs_researched when future techs involved

  Open Date: 2022-05-14 16:13
Last Update: 2022-05-27 12:17

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44594
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44594

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-05-27 12:17 Updated by: cazfi
 * Milestone Update from (None) to 3.0.2

Comment:

Reply To cazfi
In any case we should add also sanitycheck.c check for these counters. It will help in detecting and debugging such problems in the future - maybe even the very case we are facing here.
That's what this ticket is about, now.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.0.2
     Component: Server
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

init_tech() recalculates research->techs_researched when TECH_UPKEEP_DEBUGGING is defined. That recalculation does not consider future techs.
This is one candidate for the cause of various assert failures I'm getting in testing #44419. When number of lost (i.e. ones subtracted from the counter) future techs is same as number of real techs, the counter goes to zero despite player knowing a lot of techs.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44594
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44594



More information about the Freeciv-tickets mailing list
Back to archive index