MantisBT - VCMI
View Issue Details
0002040VCMIMechanics - Objectspublic2015-01-11 17:062016-09-25 09:16
normalminorhave not tried
0002040: After build fort image in map not change
After build fort image in map not change
No tags attached.
duplicate of 0001944resolved SXX After building a Fort castle on adventure map doesn't change it's sprite 
related to 0002514resolved SXX now fort on map looks as town 
png Fort.PNG (943,000) 2015-01-11 17:07

png fort update.PNG (982,238) 2016-04-01 10:23
Issue History
2015-01-11 17:06PovelitelNew Issue
2015-01-11 17:07PovelitelFile Added: Fort.PNG
2015-01-23 21:21FayNote Added: 0005389
2015-03-12 21:18SXXRelationship addedduplicate of 0001944
2015-03-13 01:48SXXNote Added: 0005644
2016-01-23 06:34vmarkovtsevNote Added: 0006352
2016-01-23 06:34vmarkovtsevAssigned To => vmarkovtsev
2016-01-23 06:34vmarkovtsevStatusnew => feedback
2016-04-01 10:23PovelitelNote Added: 0006484
2016-04-01 10:23PovelitelStatusfeedback => assigned
2016-04-01 10:23PovelitelFile Added: fort update.PNG
2016-04-01 11:20vmarkovtsevNote Added: 0006485
2016-08-24 01:17SXXRelationship addedchild of 0002464
2016-08-24 01:25SXXRelationship deletedchild of 0002464
2016-08-24 03:54SXXAssigned Tovmarkovtsev => SXX
2016-08-24 03:54SXXNote Added: 0006587
2016-08-24 03:54SXXStatusassigned => resolved
2016-08-24 03:54SXXFixed in Version => 0.98g
2016-08-24 03:54SXXResolutionopen => fixed
2016-08-24 03:55SXXFixed in Version0.98g => 0.99
2016-09-25 09:16PovelitelRelationship addedrelated to 0002514

2015-01-23 21:21   
I have researched this problem a bit and found out the reason and a possible solution.
There seems to be a mismatch in object template names: factions define .defs for "village", "fort" and "capitol" (in /config/factions/[name].json/[name]/town/mapObject/templates), but the templates that resolve when to use these .defs (in /config/objects/moddables.json/town/base/filters) define "village", "castle" and "capitol". In the game, the templates don't match and appearance isn't updated.

Setting either "fort" to "castle" or the other way around in these configs seems to fix this issue. However I haven't checked for any side effects.
2015-03-13 01:48   
This is clearly dupe of 0001944, but I don't wanna close it as there is really interesting answer from @Fay.

Also when you built fort from inside the town screen then icons change properly, but on sprite don't change. Though if town upgraded via "vcmiarmenelos" then sprite change on map, but icons don't change.
2016-01-23 06:34   
I was not able to reproduce this with latest git. Sprite updates. Does it work for anybody else?
2016-04-01 10:23   
0,98g в меню городов обновляется, на карте нет
0,98g cities in the menu is updated on the map no
2016-04-01 11:20   
They say it is because I have Hota mod
2016-08-24 03:54   
This one is resolved by same fix as 0001911: [^]