Page MenuHomeWildfire Games

Add footprint and obstruction sizes in skirmish farmstead fixing rP20202
ClosedPublic

Authored by bb on Sep 18 2017, 9:00 PM.

Details

Summary

Following rP20202 the skirmish farmstead is broken, since it doesn't have a footprint nor obstruction size. These values were removed from the parent template, but not readded to all childs.

Now adding the biggest (rome width, pers depth) sizes in this template.

Test Plan

Make sure the front stops falling off.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

bb created this revision.Sep 18 2017, 9:00 PM
Owners added a subscriber: Restricted Owners Package.Sep 18 2017, 9:00 PM
Vulcan added a subscriber: Vulcan.Sep 18 2017, 9:49 PM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...

http://jenkins-master:8080/job/phabricator/2053/ for more details.

Executing section Default...
Executing section Source...
Executing section JS...
Executing section XML GUI...
Executing section Python...
Executing section Perl...

http://jenkins-master:8080/job/phabricator_lint/537/ for more details.

temple added a comment.EditedSep 19 2017, 4:27 PM

Rome is the widest footprint at 22x18, but Persia is the deepest at 20x20. So we should use a 22x20 footprint (and a 20x18 obstruction). Otherwise looks good.
Edit: Also put Obstruction before SkirmishReplacer.

(@bb: You point out an interesting thing, did you yet test what happens when we place a skirmish place holder whose replacer won't fit. Else the natural choice would have been the placeholder visual actor footprint and obstruction)

bb added a comment.Sep 20 2017, 12:44 PM

Atlas doesn't care about obstruction, it only makes the building red when overlapping, but you can still place the building (ofc they will visually overlap now). This happens the same with the skirmish replace, you can place it everywhere, also on top of eachother and then the buildings will ingame just be visible as overlapping.

To me setting the values for the visualActor seem a bit random (as the visualActor is just random), I rather want the map maker to know that a building of that type will be overlapping when placing it so we avoid collisions as much as possible.

bb updated this revision to Diff 3745.Sep 22 2017, 3:49 PM
bb edited the summary of this revision. (Show Details)

Change according temple comment

Executing section Default...
Executing section Source...
Executing section JS...
Executing section XML GUI...
Executing section Python...
Executing section Perl...

http://jenkins-master:8080/job/phabricator_lint/542/ for more details.

bb updated this revision to Diff 3746.Sep 22 2017, 3:50 PM

read edit also

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...

http://jenkins-master:8080/job/phabricator/2062/ for more details.

Executing section Default...
Executing section Source...
Executing section JS...
Executing section XML GUI...
Executing section Python...
Executing section Perl...

http://jenkins-master:8080/job/phabricator_lint/543/ for more details.

fatherbushido accepted this revision.Sep 22 2017, 5:00 PM

That policy seems fine. (Perhaps you opened a Pandora's box, so it would be nice to close that ;-))
(The option to let that in the parent seems fine to me too, to have a model of what is needed for a farmstead, even if it's replaced in child. No pref from my side)

This revision is now accepted and ready to land.Sep 22 2017, 5:00 PM
bb added a comment.Sep 22 2017, 5:03 PM

Certainly a pandora box, parts of it can/will be done in those temple' patches, others might get an own patch.

Thx for the yelling and review!

temple accepted this revision.Sep 22 2017, 5:16 PM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (307 tests)...................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...

http://jenkins-master:8080/job/phabricator/2063/ for more details.

This revision was automatically updated to reflect the committed changes.