Page MenuHomeWildfire Games

Units demo fixes
AbandonedPublic

Authored by Langbart on Apr 4 2022, 7:41 AM.

Details

Reviewers
None
Trac Tickets
#6486
Summary

Several issues

  1. The height of the terrain has been changed so that the polygon is no longer misaligned (ref #6116 )
  2. The map was enlarged and the distances between units increased, this solves the problem with the Viking Longship (ref #6486) and some objects were sitting too close to each other.
  3. The starting position of the first unit was increased, the previous values were too low, some objects appeared only partly. See image below.

Furthermore
The terrain texture has been changed to whiteness, now the units appear the same as in the Actor Viewer. It just looks better.

Test Plan

Open units demo map.

Event Timeline

Langbart created this revision.Apr 4 2022, 7:41 AM
Owners added a subscriber: Restricted Owners Package.Apr 4 2022, 7:41 AM
Langbart edited the summary of this revision. (Show Details)Apr 4 2022, 7:42 AM
Vulcan added a comment.Apr 4 2022, 7:50 AM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/6989/display/redirect

Vulcan added a comment.Apr 4 2022, 7:57 AM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/5898/display/redirect

Langbart requested review of this revision.Apr 4 2022, 7:57 AM

this solves the problem with the Viking Longship (ref #6486) and some objects were sitting too close to each other.

I believe it doesn't solve the issue but hides it. It seems if someone would make a test when the ship is pushed (or vice versa) the test might fail for the same reason.

Silier added a subscriber: Silier.Apr 4 2022, 7:52 PM
Silier added inline comments.
binaries/data/mods/public/maps/scenarios/units_demo.js
75

just mental note: this should jumpTo not moveTo

Langbart updated this revision to Diff 20054.Apr 5 2022, 5:19 AM
Langbart edited the summary of this revision. (Show Details)

Replace "MoveTo" with "JumpTo"; Remove unnecessary whitespace

Vulcan added a comment.Apr 5 2022, 5:23 AM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/6993/display/redirect

this solves the problem with the Viking Longship (ref #6486) and some objects were sitting too close to each other.

I believe it doesn't solve the issue but hides it. It seems if someone would make a test when the ship is pushed (or vice versa) the test might fail for the same reason.

@wraitii can you help to adjust the bounds check in the .cpp code?

[16:58:45] elexis for #6486 I wanted to ask if that ship might happen to be close to the map border, seems to be the case, D4589
[16:59:44] elexis if the viking ship was just too close to the map border, then perhaps wraitii just forgot some bounds check
[16:59:54] elexis or wrote one that wasn't right
Vulcan added a comment.Apr 5 2022, 5:35 AM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/5902/display/redirect

Honestly, I think gray or brown would look nicer than plain white, but the other improvements are really nice.

Silier added a comment.Apr 5 2022, 4:23 PM

The starting position of the first unit was increased, the previous values were too low, some objects appeared only partly. See image below.

Entities are moved half of their width so the issue is that the size in template does not fit the graphic model and this is just workaround.
To fix height/depth, that should be accounted too when placing so ideally every entity would be centered. Yes, there might be bigger gaps but who cares about aesthetic here.

Langbart abandoned this revision.Apr 12 2022, 6:45 AM