Jump to content

elexis

WFG Retired
  • Posts

    3.644
  • Joined

  • Days Won

    59

Posts posted by elexis

  1. Is it intended to restart the exact same match again? If you randomize the "Seed" value, you should get another generation of the same random map. (Also the "matchID" should be unique for every game.). (And you should also make sure to call EndGame() or whatever is used currently to exit the game properly (without killing the application (in case that isn't already done by the starting of a new game)).

  2. About #3993 (broken tech requrements in the structure tree of non-vanilla 0 A.D.):

    For the tech tree issue (tech requirements) there is a patch in http://trac.wildfiregames.com/ticket/3993https://github.com/s0600204/0ad/commits/3993_notciv, that one function is just a bit ugly (14 layers of nesting). @fatherbushido said he also has some other ugly hack that he hates if you're looking for some temporary workaround.

    Everytime the tech requirements logic was changed in the simulation, it broke the tech tree and the AI since these 3 places each copy the logic instead of reusing the same function. The aim of the ticket was to unify that code in the globalscripts directory. (However the proposed solution moves a bit too much structure tree specific code to globalscripts, as the AI and simulation only need a very short check).

    If the code is not unified, every further change to the tech requirements logic will break the AI code and the tech tree code again, as most coders are unaware of how these code mazes work (it's also not obvious that the other places have this duplication at all).

     

    • Like 1
×
×
  • Create New...