gameboy Posted July 30, 2015 Report Share Posted July 30, 2015 Today I tested the latest SVN16895, a warning message appears: WARNING: JavaScript warning: simulation/ai/petra/garrisonManager.js line 98 reference to undefined property ent.unitAIState(...).split(...)[1] Quote Link to comment Share on other sites More sharing options...
mimo Posted July 30, 2015 Report Share Posted July 30, 2015 As usual, there is nothing we can do without the commands.txt file Quote Link to comment Share on other sites More sharing options...
gameboy Posted July 31, 2015 Author Report Share Posted July 31, 2015 (edited) My old friend, I have uploaded the file, thanks!commands.txt Edited July 31, 2015 by gameboy Quote Link to comment Share on other sites More sharing options...
mimo Posted July 31, 2015 Report Share Posted July 31, 2015 And as usual, that's not the right file. This one creates no warnings. Quote Link to comment Share on other sites More sharing options...
gameboy Posted August 1, 2015 Author Report Share Posted August 1, 2015 I try again the warning again, this warning appears, but commands.txt file cannot be the recorded warning. I'm so sorry, my friend. BTW: this warning comes in: when you're single after the end of the game (timing system after the last second), you lose a game, this warning appears. Quote Link to comment Share on other sites More sharing options...
mimo Posted August 1, 2015 Report Share Posted August 1, 2015 ah, that's important information which would have been useful in the first report, don't you think so.But still, I don't know how to reproduce it. It seems that it needs a lot of conditions: that you attack a AI structure with garrisoned units, and then you loose so that your units pass to gaia owner and one of them is in a state not expected !As you say that you can reproduce it, could youeither save the game just a few seconds before loosing and upload it hereor run with the attach patch and let me know what are the warnings printed.gameboy.patch Quote Link to comment Share on other sites More sharing options...
gameboy Posted August 1, 2015 Author Report Share Posted August 1, 2015 (edited) My dear friend, MIMO.Thank you very much for this patch, I tested again, this warning from appearing again, got more specific warning information, please take a look, maybe this information can help you solve the problem. Thank you!WARNING: PlayerID 2 | gameboy problem with Judean Slinger state INDIVIDUALWARNING: JavaScript warning: simulation/ai/petra/garrisonManager.js line 100 reference to undefined property ent.unitAIState(...).split(...)[1]WARNING: PlayerID 2 | gameboy problem with Nubian Mercenary Archer state INDIVIDUALWARNING: PlayerID 2 | gameboy problem with Judean Slinger state INDIVIDUALWARNING: PlayerID 2 | gameboy problem with Nubian Mercenary Archer state INDIVIDUALEngine exited successfully on 2015-08-01 at 20:27:19 with 818 message(s), 0 error(s) and 5 warning(s). Edited August 1, 2015 by gameboy Quote Link to comment Share on other sites More sharing options...
mimo Posted August 1, 2015 Report Share Posted August 1, 2015 Thanks for making the test. Still I do not understand how units can be in such state INDIVIDUAL.But checking the code, there was an inconsistency in UnitAI.js which should be fixed with the attached patch.May-be that will solve the issue ? could you test it. And if it does not fix it, it would be nice if you could save a game just a few seconds before the end and upload it here so that I can have a look.unitai.patch Quote Link to comment Share on other sites More sharing options...
gameboy Posted August 2, 2015 Author Report Share Posted August 2, 2015 (edited) I tested your patch, the warning still appears, I uploaded my save game, thank you. Edited August 2, 2015 by gameboy Quote Link to comment Share on other sites More sharing options...
gameboy Posted August 2, 2015 Author Report Share Posted August 2, 2015 (edited) This is the archive file, thank you. Please download it. http://we.tl/3boUGOm9ro Edited August 2, 2015 by gameboy Quote Link to comment Share on other sites More sharing options...
mimo Posted August 2, 2015 Report Share Posted August 2, 2015 The saved game was useful: the problem was due to a unit which was cheering while its ownership changed, and that case was not taken into account in UnitAI. In addition, the case of garrisoned units was in principle taken into account, but wrongly. Both cases are fixed in http://trac.wildfiregames.com/changeset/16908Thanks for reporting the issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.