[minor] Neutral combat won but city still neutral

If you find a bug please report it here

[minor] Neutral combat won but city still neutral

Postby Enigmatic » Mon Oct 17, 2011 2:59 am

Its only a minor nuisance which requires reload of the game.

In the game 3728 i captured a neutral city but it did stay gray/neutral after battle. Units in stack had a battle value of "NaN". Moving the stack inside city yielded in a combat but combat screen did not load at all. Reloading the game fixed it.

JS log was showing:

Code: Select all
Uncaught exception: TypeError: Cannot convert 'playercityarr[citycoord]' to object
Error thrown at line 3455, column 8 in <anonymous function: updatecityarr>() in http://www.warbarons.com/beta4/js/city.js:
    playercityarr[citycoord]['availableproduction'] = city.cityobj.availableproduction.slice(0,city.cityobj.availableproduction.length);

called from line 470, column 8 in <anonymous function: savecity>() in http://www.warbarons.com/beta4/js/ajax.js:


CSS had suffered also:

Code: Select all
position:absolute;left:93px;top:NaNpx;width:1px;height:NaNpx;clip:rect(0,1px,NaN
Enigmatic
 
Posts: 25
Joined: Sat Oct 01, 2011 12:38 am

Re: [minor] Neutral combat won but city still neutral

Postby SnotlinG » Mon Oct 17, 2011 5:41 am

Nice to supply the js error :-)

Do you know what the city-name is?
Did the city have any valid production when you captured it?

I assume you had at least 1 or more cities already in your possesion?
SnotlinG
 
Posts: 2148
Joined: Sat Feb 13, 2010 12:42 am


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 14 guests

cron
Not able to open ./cache/data_global.php