View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002328VCMIMechanics - Objectspublic2015-11-13 23:442016-10-17 17:52
Assigned To 
PlatformOSOS Version
Product Version0.98e 
Target VersionFixed in Version 
Summary0002328: Favorable winds "leaking" outside out of boundaries
DescriptionWhen testing it on my own map I notice weird behaviour that Favorable winds objects cover larger areas than they should. What interesting that only happen when there is some delimiter between water tiles that have favorable winds over it and other one.

I suspect that it's implementation inside "CGameState::randomizeMapObjects" working incorrectly.
TagsNo tags attached.
Attached Files? file icon SXX_Favorable_winds.h3m [^] (1,797 bytes) 2015-11-13 23:44
jpg file icon favorable_winds.jpg [^] (194,645 bytes) 2015-11-13 23:51

- Relationships
related to 0000866closedIvan Graphical bugs on adventure map 
related to 0002557closedIvan instead of the battlefield "Favorable winds" 

-  Notes
SXX (administrator)
2015-11-13 23:53

Uploaded screenshot. White area on it is covered by favorable winds.
SXX (administrator)
2015-11-14 02:17

Find out what exactly cause problem: size of map object is always the same regardless of what type of favorable wind map object is used. Though as I didn't digged into H3M/objects before not sure what way to fix it.
SXX (administrator)
2015-11-14 02:19

Also just note: we still need to get new function lika "getvisiblePos" for object that do about same thing as "getBlockedPos" so it's easier to iterate via tiles used by object.
SXX (administrator)
2015-11-14 02:42

In fact this problem also affect all other magical terrains.
SXX (administrator)
2015-11-14 03:33

Just in case I'm not going to work on this one at least before I'm done with pathfinding, so if someone else know how to fix it fast please do.
SXX (administrator)
2015-11-27 06:02
edited on: 2015-11-27 06:03

Ivan give me hint that issue related to fact that VCMI set biggest possible size for objects by default and main issue is that as result all tiles of an object set as "visible" by default.

Correct data must be available in msk files from assets, but this data is partially incorrect for some objects and caused issues in past: 0000866

So it's may be tricky to fix special terrains without breaking something.

SXX (administrator)
2016-09-07 17:50

This is weird, but feels like something changed now. No idea when that happen.
Still not 100% sure it's work properly.

- Issue History
Date Modified Username Field Change
2015-11-13 23:44 SXX New Issue
2015-11-13 23:44 SXX File Added: SXX_Favorable_winds.h3m
2015-11-13 23:51 SXX File Added: favorable_winds.jpg
2015-11-13 23:53 SXX Note Added: 0006083
2015-11-14 02:17 SXX Note Added: 0006084
2015-11-14 02:19 SXX Note Added: 0006085
2015-11-14 02:42 SXX Note Added: 0006086
2015-11-14 03:33 SXX Note Added: 0006087
2015-11-27 06:02 SXX Note Added: 0006123
2015-11-27 06:03 SXX Note Edited: 0006123 View Revisions
2015-11-27 06:03 SXX Relationship added related to 0000866
2016-09-07 17:50 SXX Note Added: 0006627
2016-10-17 17:52 SXX Relationship added related to 0002557

Site | Forums | Wiki | Slack | GitHub

Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean