0abc / 0abc-a23

0abc, a modification of “0 A.D. Empires Ascendant”, version 0.0.23 “Alpha XXIII: Ken Wood”
GNU General Public License v3.0
4 stars 1 forks source link

ERROR: Invalid trading goods #1

Open ramgp opened 5 years ago

ramgp commented 5 years ago

WARNING: JavaScript warning: simulation/ai/petra/tradeManager.js line 193 reference to undefined property tradingGoods[res]

ERROR: Invalid trading goods: ({silver:NaN, metal:NaN}) ERROR: Invalid trading goods: ({silver:NaN, food:NaN}) ERROR: Invalid trading goods: ({silver:NaN, metal:NaN}) ERROR: Invalid trading goods: ({silver:NaN, metal:10, food:NaN}) ERROR: Invalid trading goods: ({silver:NaN, metal:15, food:NaN}) ERROR: Invalid trading goods: ({silver:NaN, metal:15, food:NaN}) ERROR: Invalid trading goods: ({silver:10, metal:NaN, food:NaN})

0abc commented 5 years ago

Thank you for your message! You're actually the first to post an issue here :) I rarely look at this github page, I check the forum thread ( https://wildfiregames.com/forum/index.php?/topic/22779-0abc-mod/ ) more frequently.

As for the issue reported, I'm aware of it, having encountered it myself more than once. I suspect it was introduced by d16a8b27021eb37b9cb8991bc19a20affc9cfdb6 Unfortunately I've not yet identified what exactly causes it and how it can be solved.

0abc commented 5 years ago

@ramgp, those errors should now be solved, thanks to Freagarach and Angen at https://code.wildfiregames.com/D1846