Jump to content


WFG Programming Team
  • Posts

  • Joined

  • Last visited

  • Days Won


Freagarach last won the day on December 30 2022

Freagarach had the most liked content!


About Freagarach

Profile Information

  • Location
  • Interests
    Sports, Chemistry, teaching

Recent Profile Visitors

3.776 profile views

Freagarach's Achievements

Primus Pilus

Primus Pilus (7/14)



  1. What mods do you have that could cause this? If it can be triggered without mods (that doesn't seem the case) or from the GUI we should find out how to reproduce and fix it. Glad to be of service! :)
  2. You should ditch the warn("player"); and add the if-statement at "AddResourceGatherer". But the rest should still be called. Snap is annoying. But using a mod should work. I get an OOS at turn 20, so can't use that replay? Do you get the crash when watching that replay?
  3. Do you have a replay that reproduces the error? The "undefined:NaN" is the problem here, I can try to help you debug it. Did you add a resource to the game? Can you check with an if-statement (if (type === undefined)) at https://code.wildfiregames.com/source/0ad/browse/ps/trunk/binaries/data/mods/public/simulation/components/Player.js$263 the stacktrace what called that function? (warn(new Error().stack))
  4. For a modder, yes, quite possible (and relatively easy). With the linked patch: no, that is just a boost for everyone.
  5. It 'teaches' the PetraAI how to upgrade stuff and includes the sentry tower as an example.
  6. https://trac.wildfiregames.com/wiki/GettingStartedReinforcementLearning#Scenario
  7. (We're still looking for an AI dev.)
  8. Might keep in mind: https://code.wildfiregames.com/D1819.
  9. Sounds like we want it to be a user-choice. ^^ (spread-attack or focus fire, not limited to structures) Just sad it is hard to get user-preferred default values in the simulation properly (e.g. stances).
  10. https://code.wildfiregames.com/D1905
  11. The summary screen in-game doesn't show your adversaries, if you're merely paused. Upon disconnection, yes, the game is considered 'finished' and you can see the stats. I can tell you, there are easier ways to find victory than disconnect/reconnect every minute or so.
  12. Do you have a replay?
  13. Sort of intended/bug. See https://trac.wildfiregames.com/ticket/3201 and https://code.wildfiregames.com/D1997.
  14. Hello @Helicity and thank you for your feedback, attack-move is indeed partly broken, there have been several attempts at fixing it, but there can be quite some edge cases we need to work with. We would love seeing the solution either as a mod or a patch submitted on Phabricator. Here is the most recent file: https://code.wildfiregames.com/source/0ad/browse/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js, where "WALKINGANDFIGHTING" is attack-move. As for the preference to certain units, you can define those in the templates in the Attack component. See also e.g. https://code.wildfiregames.com/D3853 for an attempt at improving walk-and-fight behaviour. This is not merged because the method used is very expensive, computationally.
  15. You can mod out the ability to make enemy/neutral: https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/gui/session/diplomacy/DiplomacyDialog.xml#L53. (censorship to the max) Or just vanquish them whenever they break alliances, I guess that works better.
  • Create New...