seregadushka Posted January 22 Report Share Posted January 22 (edited) Winter Is Coming(5) 0A. D. 27rc1-27645_alpha_win32 Replays MAP: Author -- Alexandra Winter Is Coming(5).zip Edited January 22 by seregadushka version, author Quote Link to comment Share on other sites More sharing options...
seregadushka Posted January 22 Author Report Share Posted January 22 (edited) 0.0.27.zip Edited January 22 by seregadushka zip REPLAYS Quote Link to comment Share on other sites More sharing options...
Norse_Harold Posted January 26 Report Share Posted January 26 (edited) I am able to reproduce the problem, even on version alpha 26. Steps to reproduce. Extract the Winter Is Coming(5).zip file to the mods/user/maps/scenarios folder in your 0ad game data folder. Load the scenario Winter Is Coming(5). Slot yourself as player 1, and slot 4 AI in the remaining slots. In fact, you can't change any of the starting parameters. Civs are forced to random. Use the cheat "gift from the gods" (type it in chat) to get p3, a lot of resources, and fast building. Build a stable and produce 50 champ cavalry. Send the champ cavalry to attack another player, generally at the cardinal directions of the map. After fighting with an AI-controlled opponent for several seconds, the error should appear. Here is the repeating error message that I see when I test the map with 0ad version alpha 26. During the test, I was Britons and the player that I attacked was Hans. Quote WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/civil_centre with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/crannog with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/military_colony with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/house with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/ice_house with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/pyramid_small with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/apartment with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/storehouse with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/farmstead with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/field with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/corral with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/dock with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/barracks with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/stable with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/elephant_stable with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/forge with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/temple with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/market with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/ministry with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/outpost with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/sentry_tower with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/defense_tower with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/arsenal with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/academy with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/fortress with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wallset_palisade with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wallset_siege with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wallset_stone with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/theater with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/apadana with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wonder with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/civil_centre with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/crannog with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/military_colony with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/house with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/ice_house with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/pyramid_small with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/apartment with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/storehouse with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/farmstead with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/field with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/corral with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/dock with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/barracks with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/stable with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/elephant_stable with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/forge with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/temple with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/market with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/ministry with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/outpost with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/sentry_tower with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/defense_tower with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/arsenal with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/academy with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/fortress with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wallset_palisade with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wallset_siege with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wallset_stone with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/theater with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/apadana with count < 0 WARNING: PlayerID 3 | Petra error in incrementBuilderCounters for structures/han/wonder with count < 0 ERROR: JavaScript error: simulation/ai/petra/defenseArmy.js line 572 orderData is undefined PETRA.DefenseArmy.prototype.update@simulation/ai/petra/defenseArmy.js:572:7 PETRA.DefenseManager.prototype.checkEnemyArmies@simulation/ai/petra/defenseManager.js:275:25 PETRA.DefenseManager.prototype.update@simulation/ai/petra/defenseManager.js:61:7 PETRA.HQ.prototype.update@simulation/ai/petra/headquarters.js:2271:22 PETRA.PetraBot.prototype.OnUpdate@simulation/ai/petra/_petrabot.js:118:11 m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:7 I made a modified version of the map, where I deleted all entities except one civic center and 4 women for each player. The warning and error messages then did not occur with that modified map. A hypothesis is that the symptoms are triggered by certain entities in the map. Edited January 26 by Norse_Harold Quote Link to comment Share on other sites More sharing options...
Alexandra Posted January 30 Report Share Posted January 30 On 27/01/2024 at 1:21 AM, Norse_Harold said: I made a modified version of the map, where I deleted all entities except one civic center and 4 women for each player. The warning and error messages then did not occur with that modified map. A hypothesis is that the symptoms are triggered by certain entities in the map. Oh, how great it is! I'm going to edit this map. Now I will know that the main thing is not to put anything extra at stake? Quote Link to comment Share on other sites More sharing options...
Norse_Harold Posted January 31 Report Share Posted January 31 10 hours ago, Alexandra said: Oh, how great it is! I'm going to edit this map. Now I will know that the main thing is not to put anything extra at stake? Don't edit the map yet. I have an idea for how to find out which entities are triggering the problem. I'll let you know what I find out soon, probably tomorrow. 1 Quote Link to comment Share on other sites More sharing options...
Norse_Harold Posted January 31 Report Share Posted January 31 (edited) Okay, I think that I know what entities trigger the symptoms: the hostile animals (brown bears and wolfhounds) that are owned by AI-controlled players. I used a technique similar to the binary search algorithm, specifically the generalization to graphs, by making multiple edits of the map file in order to narrow down the possible entities causing the problem. Then I guessed that AI-controlled hostile animals could trigger the symptoms, so I edited the map to only change the hostile fauna to be owned by player 0 instead of players 2, 3, 4, or 5. It seems to be correct so far, but long-term testing with this fixed version would be wise. Winter Is Coming(5).zip In the future, when you place animals, especially hostile animals, ensure that Gaia is selected as the owning player at the bottom of the scenario editor window. Also, I consider it a bug in the game for these symptoms to occur when AI controls a hostile animal. Or, it's a bug in the game to allow the user to create a map that is able to trigger these symptoms. I have reported this on Trac with a minimal test case. Edited January 31 by Norse_Harold Quote Link to comment Share on other sites More sharing options...
Alexandra Posted February 1 Report Share Posted February 1 17 hours ago, Norse_Harold said: In the future, when you place animals, especially hostile animals, ensure that Gaia is selected as the owning player at the bottom of the scenario editor window. The thing is, I did it on purpose. I wanted to see "what would happen if...". It turned out that there would be a mistake in the end. How interesting. Now I know I shouldn't do that. 1 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted February 2 Report Share Posted February 2 Thanks for the report, and @Norse_Harold for the investigation! I've patched SVN with https://trac.wildfiregames.com/changeset/28025. 2 1 Quote Link to comment Share on other sites More sharing options...
Norse_Harold Posted February 2 Report Share Posted February 2 2 hours ago, Freagarach said: I've patched SVN with https://trac.wildfiregames.com/changeset/28025 Hey, that was quick. Thanks! 1 Quote Link to comment Share on other sites More sharing options...
seregadushka Posted April 1 Author Report Share Posted April 1 thanx, dudes ! 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.