Light Style© by Fisana

Jump to content


Photo

Qbot undefined property reference


  • Please log in to reply
8 replies to this topic

#1 WhiteTreePaladin

WhiteTreePaladin

    Primus Pilus

  • WFG Retired
  • 1,658 posts

Posted 14 April 2012 - 10:44 PM

WARNING: JavaScript warning: simulation/ai/qbot/worker.js line 13 reference to undefined property this.ent.unitAIOrderData().type

Here are the the logs:

Attached File  commands.txt   112.13KB   50 downloads
Attached File  interestinglog.html   2.07KB   59 downloads
Attached File  mainlog.html   93.68KB   46 downloads
  • 0

Brian [aka WhiteTreePaladin]

0 A.D. Gameplay and UI Developer


#2 quantumstate

quantumstate

    Primus Pilus

  • WFG Retired
  • 1,150 posts

Posted 18 April 2012 - 10:25 AM

Thanks for the report, it should now be fixed.
  • 0

Jonathan Waller [ aka quantumstate ]

Wildfire Games Programmer
Contact me: jonathanmarkwaller at gmail dot com


Support Wildfire Games!


#3 FeXoR

FeXoR

    Centurio

  • Community Members
  • PipPipPipPipPip
  • 938 posts

Posted 18 April 2012 - 10:44 AM

While were at it there's another issue. I don't think I need to add another topic for it though.

If there's no stone left on the map QBot or the common-api-v2 warns that no stone is found on the map. Since that is not unnatural to appear I think a bot should be able to deal with that even if there's no stone or other resource present at the beginning.

Another thing is that QBot spams warnings on the scenario sicilia: http://fexor.dyndns....a_walrnings.jpg
  • 0

#4 quantumstate

quantumstate

    Primus Pilus

  • WFG Retired
  • 1,150 posts

Posted 18 April 2012 - 01:10 PM

While were at it there's another issue. I don't think I need to add another topic for it though.

If there's no stone left on the map QBot or the common-api-v2 warns that no stone is found on the map. Since that is not unnatural to appear I think a bot should be able to deal with that even if there's no stone or other resource present at the beginning.

Another thing is that QBot spams warnings on the scenario sicilia: http://fexor.dyndns....a_walrnings.jpg


Can you test this again. I can't reproduce it, I think my recent changes have fixed it.
  • 0

Jonathan Waller [ aka quantumstate ]

Wildfire Games Programmer
Contact me: jonathanmarkwaller at gmail dot com


Support Wildfire Games!


#5 FeXoR

FeXoR

    Centurio

  • Community Members
  • PipPipPipPipPip
  • 938 posts

Posted 18 April 2012 - 01:28 PM

Can you test this again. I can't reproduce it, I think my recent changes have fixed it.

I did with SVN revision 11547.

Still the no resource warnings tested on new_rms_test (game and atlas):
qbot_resource_not_found_warnings.jpg
qbot_resource_not_found_warnings_atlas.jpg

...and the Sicilia errors:
qbot_sicilia_errors.jpg

In Atlas the Sicilia scenario seams to run fine though.

There where no custom content accessible to the game while I tested and both where tested with default settings (but reveal map and small size for new_rms_test).

I have Alpha 9 installed as well but I don't think it interacts with the SVN version and I made sure I user the SVN version ofc ;).

Edited by FeXoR, 18 April 2012 - 01:41 PM.

  • 0

#6 quantumstate

quantumstate

    Primus Pilus

  • WFG Retired
  • 1,150 posts

Posted 18 April 2012 - 02:09 PM

I didn't fix the no resources warning. I left that because it needs fixing properly, currently running out a resource type will cause the queues to start getting blocked and the AI won't play well.

I still can't get that Sicilia error, I just tried on a clean svn. Can you get the whole of interestinglog.html and see if there are any other errors? Also if you could put warn(uneval(type)); in gamestate.js at line 41 that would be helpful I think.
  • 0

Jonathan Waller [ aka quantumstate ]

Wildfire Games Programmer
Contact me: jonathanmarkwaller at gmail dot com


Support Wildfire Games!


#7 FeXoR

FeXoR

    Centurio

  • Community Members
  • PipPipPipPipPip
  • 938 posts

Posted 18 April 2012 - 04:02 PM

I didn't fix the no resources warning. I left that because it needs fixing properly, currently running out a resource type will cause the queues to start getting blocked and the AI won't play well.

I still can't get that Sicilia error, I just tried on a clean svn. Can you get the whole of interestinglog.html and see if there are any other errors? Also if you could put warn(uneval(type)); in gamestate.js at line 41 that would be helpful I think.


Added the additional warning and it's indeed the problem:
qbot_resource_not_found_warnings_added.jpg
interestinglog.html
mainlog.html

Still in atlas there are no warnings but no unit is moved by qbot and he don't seam to produce anything as well.

Edited by FeXoR, 18 April 2012 - 04:08 PM.

  • 0

#8 quantumstate

quantumstate

    Primus Pilus

  • WFG Retired
  • 1,150 posts

Posted 20 April 2012 - 10:41 AM

This should be fixed now since Mythos transferred the units from internal to public. (The resource warning is still there.)
  • 0

Jonathan Waller [ aka quantumstate ]

Wildfire Games Programmer
Contact me: jonathanmarkwaller at gmail dot com


Support Wildfire Games!


#9 FeXoR

FeXoR

    Centurio

  • Community Members
  • PipPipPipPipPip
  • 938 posts

Posted 20 April 2012 - 10:57 AM

This should be fixed now since Mythos transferred the units from internal to public. (The resource warning is still there.)


Confirmed (y)
  • 0