MantisBT - VCMI
View Issue Details
0000734VCMIMechanics - Battlespublic2011-05-29 11:542014-05-30 17:40
Zamolxis 
Warmonger 
normalmajoralways
closedfixed 
AMD 5600+WindowsXP SP3
0.84 
0.85 
0000734: If no town defenders set by map editor, VCMI autogenerates some, with extra buggy behaviour afterwards since 0.84b
Take Inteus in the map attached to 0000707:

A. The closest town above him is Dungeon. In map editor there's no Customize setting for defenders. Bugs:
> In 0.84, you'll find autogenerated defenders as normal stack (we see them already if we r-click on the town before attacking)
> In 0.84b & 0.85c, there are further bugs, see below:
- When attacking, they have no stack size box, and they are shown as 0 in stack queue
- If we defeat them, we get 0 experience and defender had 0 casualties
- If we enter town afterwards we find them there again, with 0 in stack
- We can select them in town's garrison and move them in our army
- We can then go into battles with them as part of our army
- If we protect them until the end of the battle, or have them killed, either way the game doesn't crash :)

B. The next town to the left is a Rampart. That one has the Customize box checked in Map Editor, but no creatures actually given.
- The only bug here is that VCMI autogenerates defenders, only this time there's a real stack, which behaves normally (once we kill it, it's really gone)

If by any chance my version of the map changed since I uploaded it to 0000707, you can also take the saved game attached here (0.84b compatible).
No tags attached.
jpg 2011-05-29_0 Defenders 1.jpg (280,120) 2011-05-29 11:54
https://bugs.vcmi.eu/file_download.php?file_id=719&type=bug
jpg

jpg 2011-05-29_0 Defenders 2.jpg (93,690) 2011-05-29 11:54
https://bugs.vcmi.eu/file_download.php?file_id=720&type=bug
jpg

jpg 2011-05-29_0 Defenders 3.jpg (89,235) 2011-05-29 11:55
https://bugs.vcmi.eu/file_download.php?file_id=721&type=bug
jpg

jpg 2011-05-29_0 Defenders 4.jpg (48,819) 2011-05-29 11:55
https://bugs.vcmi.eu/file_download.php?file_id=722&type=bug
jpg

jpg 2011-05-29_0 Defenders 5.jpg (28,095) 2011-05-29 11:56
https://bugs.vcmi.eu/file_download.php?file_id=723&type=bug
jpg

7z 2011-05-29_0 Defenders.7z (82,536) 2011-05-29 11:57
https://bugs.vcmi.eu/file_download.php?file_id=724&type=bug
Issue History
2011-05-29 11:54ZamolxisNew Issue
2011-05-29 11:54ZamolxisStatusnew => assigned
2011-05-29 11:54ZamolxisAssigned To => Tow dragon
2011-05-29 11:54ZamolxisFile Added: 2011-05-29_0 Defenders 1.jpg
2011-05-29 11:54ZamolxisFile Added: 2011-05-29_0 Defenders 2.jpg
2011-05-29 11:55ZamolxisFile Added: 2011-05-29_0 Defenders 3.jpg
2011-05-29 11:55ZamolxisReproducibilityhave not tried => always
2011-05-29 11:55ZamolxisFile Added: 2011-05-29_0 Defenders 4.jpg
2011-05-29 11:56WarmongerAssigned ToTow dragon => Warmonger
2011-05-29 11:56ZamolxisFile Added: 2011-05-29_0 Defenders 5.jpg
2011-05-29 11:57ZamolxisFile Added: 2011-05-29_0 Defenders.7z
2011-05-29 12:04ZamolxisProduct Version0.84c => 0.84
2011-05-29 12:04ZamolxisSummaryIf no town defenders set by map editor, VCMI autogenerates some since 0.84b, with buggy behaviour afterwards => If no town defenders set by map editor, VCMI autogenerates some, with buggy behaviour afterwards since 0.84b
2011-05-29 12:04ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=1323#r1323
2011-05-29 12:05ZamolxisSummaryIf no town defenders set by map editor, VCMI autogenerates some, with buggy behaviour afterwards since 0.84b => If no town defenders set by map editor, VCMI autogenerates some, with extra buggy behaviour afterwards since 0.84b
2011-05-29 12:10ZamolxisNote Added: 0001746
2011-05-29 12:40WarmongerNote Added: 0001748
2011-05-29 12:40WarmongerStatusassigned => resolved
2011-05-29 12:40WarmongerFixed in Version => 0.89
2011-05-29 12:40WarmongerResolutionopen => fixed
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0001746)
Zamolxis   
2011-05-29 12:10   
There are actually 2 bugs in this report (noticed after creating it):
- old bug: VCMI autogenerates defenders even if it shouldn't
- new (0.84b) bug: the defenders can be 0 in stack, with further buggy behaviour afterwards

If you can fix both now, I'll leave it as it is. If you can fix only the new bug, then I'll create another report for the old bug.
(0001748)
Warmonger   
2011-05-29 12:40   
Fixed in r 2156.

Someone added additional condition which returned 0 growth if there was no apropriate dwelling. Makes sense, but it still worked fine before this change.