#4743: Structure limit warning on home maps for non-players
----------------------------+-------------------------------------
 Reporter:  Berserk Cyborg  |             Owner:
     Type:  bug             |            Status:  new
 Priority:  normal          |         Milestone:  unspecified
Component:  other           |           Version:  unspecified
 Keywords:                  |        Blocked By:
 Blocking:                  |  Operating System:  All/Non-Specific
----------------------------+-------------------------------------
 For some reason warzone warns about an AI player having too many X on map
 (see setCurrentStructQuantity() in structure.cpp). Only shown on home maps
 where the enemy has an HQ or command relay. Does not affect gameplay from
 what I have seen.

 example output:

 {{{
 info    |04:22:15: [setCurrentStructQuantity:606] Assert in Warzone:
 structure.cpp:606 (asStructureStats[inc].curCount[player] <=
 asStructureStats[inc].upgrade[player].limit), last script event: '<none>'
 }}}

 Now, this does '''not''' happen on the first encounter of a mission with
 such structures, but every one after that will show the above warning.

 On the below save the AI does not have any structures (aside from those it
 absorbs) on this mission. And donateObject() will bail on donating
 HQ/relays/factories to that player (Nexus in this case) since the counts
 are too high.

--
Ticket URL: <http://developer.wz2100.net/ticket/4743>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to