MantisBT - VCMI
View Issue Details
0002321VCMIGUI - Town screenpublic2015-11-01 01:242023-04-12 23:24
SXX 
 
normalminoralways
newreopened 
0.98d 
0.99 
0002321: If any building dependency is disabled then building should be considered disabled too
Currently in VCMI on Town screen when there is building that require another building (e.g City Hall require Tovern) is disabled it's still shows in red color.

H3 behaviour is different:
 - If any of dependencies are disabled building shown as disabled too.
 - H3 also don't show dependencies of disabled building, but I think we shouldn't reproduce this behaviour.

In practice this doesn't change anything except building have gray border instead of red.
No tags attached.
related to 0001734closed SXX City Hall/Capitol can be built if Tavern is unavailable for the town 
Issue History
2015-11-01 01:24SXXNew Issue
2015-11-01 01:24SXXStatusnew => assigned
2015-11-01 01:24SXXAssigned To => Ivan
2015-11-01 01:24SXXRelationship addedrelated to 0001734
2015-11-01 01:35SXXSummaryIf any building dependencies are disabled it's should be considered disabled too => If any building dependency is disabled then should be considered disabled too
2015-11-01 01:36SXXDescription Updatedbug_revision_view_page.php?rev_id=3020#r3020
2015-11-02 21:46SXXSummaryIf any building dependency is disabled then should be considered disabled too => If any building dependency is disabled then building should be considered disabled too
2016-09-10 17:42chNote Added: 0006637
2016-09-10 17:59AVSNote Added: 0006638
2016-09-13 21:46SXXNote Added: 0006671
2016-09-13 21:46SXXStatusassigned => resolved
2016-09-13 21:46SXXFixed in Version => 0.99
2016-09-13 21:46SXXResolutionopen => fixed
2016-09-13 21:46SXXAssigned ToIvan =>
2016-10-14 20:50AVSNote Added: 0006828
2016-10-14 20:50AVSStatusresolved => feedback
2016-10-14 20:50AVSResolutionfixed => reopened
2016-10-15 01:45AVSNote Added: 0006829
2016-10-15 06:27misioklesNote Added: 0006830
2016-10-15 06:29misioklesNote Added: 0006831
2023-04-12 23:24IvanStatusfeedback => new

Notes
(0006637)
ch   
2016-09-10 17:42   
I prepared patch for this issue: https://github.com/Chocimier/vcmi/commit/4000346 [^]
Do anything need to be changed before merging?
(0006638)
AVS   
2016-09-10 17:59   
Thank you for patch. Make pull request please.
(0006671)
SXX   
2016-09-13 21:46   
Fixed by @Chocimier in PR211:
https://github.com/vcmi/vcmi/pull/211 [^]
(0006828)
AVS   
2016-10-14 20:50   
Features of https://github.com/vcmi/vcmi/pull/211 [^] were actually disabled due to regression.
(0006829)
AVS   
2016-10-15 01:45   
Less dirty fix was applied. More tests needed.
(0006830)
misiokles   
2016-10-15 06:27   
@Chocimier.
Till 0.98g version there was possibility to make mod with alternate buildings and creatures like in Heroes4. Your fix was fine to get town screen closer to vanilla H3 but somehow broke possibility to get alt buildings.
There's work-in-progress mod that will bring one alternate building in every standard h3 town. Alpha version worked in 0.98g, but causes crashes when trying to enter town hall after your fix.
Here's placeholder version to test:
http://www86.zippyshare.com/v/D6B17vnA/file.html [^]
1. Enable mod.
2. Launch any map with Twer as starting town.

3. Enter town hall - now game crashes

But earlier was next:

4. You can build Cloud Temple or Factory as 7 tier dwelling.
5. When you choose Cloud Temple/Factory then Factory/Cloud Temple building is blocked.

I hope your fix can be rewrited and allow to built alt buildings.
(0006831)
misiokles   
2016-10-15 06:29   
Little spoiler of Fortress alt build:
http://www.hota.acidcave.net/sphinx/160522223050cytadela.png [^]