Page MenuHomeWildfire Games

Template organization: kennel
ClosedPublic

Authored by Nescio on Nov 14 2017, 9:48 PM.

Details

Summary

Created a generic template for the kennel, as it's not inconceivable other factions might have them in the future (cf. elephant stables).

Test Plan

Test if everything works

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

Nescio created this revision.Nov 14 2017, 9:48 PM
Owners added a subscriber: Restricted Owners Package.Nov 14 2017, 9:48 PM
Vulcan added a subscriber: Vulcan.Nov 14 2017, 11:40 PM

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

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...
Relax-NG validity error : Extra element props in interleave
/public/art/actors/structures/carthaginians/stable_elephant.xml:0: Relax-NG validity error : Element variant failed to validate content
/public/art/actors/structures/carthaginians/stable_elephant.xml:0: Relax-NG validity error : Element group has extra content: variant
Relax-NG validity error : Extra element group in interleave
/public/art/actors/structures/carthaginians/stable_elephant.xml:0: Relax-NG validity error : Element actor failed to validate content
bb added a subscriber: bb.Nov 17 2017, 1:12 PM

I suppose this patch could be useful for modders.

binaries/data/mods/public/simulation/templates/template_structure_military_kennel.xml
4–10 ↗(On Diff #4188)

no idea why, but we seem to be using the convention to put .0 behind those values, probably it is some random artefact though

19–20 ↗(On Diff #4188)

the original parent template had a metal cost too, so that should be added here

41 ↗(On Diff #4188)

some classes like military are added, not a problem imo (as stables and stuff are military too, this seems rather military too)
no changes required

bb added inline comments.Nov 17 2017, 1:18 PM
binaries/data/mods/public/simulation/templates/structures/brit_kennel.xml
37 ↗(On Diff #4188)

Specific name can stay here

bb added inline comments.Nov 17 2017, 1:20 PM
binaries/data/mods/public/simulation/templates/template_structure_military_kennel.xml
46 ↗(On Diff #4188)

also wondering why there is no selectiongroupname

Nescio added inline comments.Nov 17 2017, 2:35 PM
binaries/data/mods/public/simulation/templates/structures/brit_kennel.xml
37 ↗(On Diff #4188)

It has no added value, as it's identical to the parent's generic name. But if you think it should stay, I'll add it here.

binaries/data/mods/public/simulation/templates/template_structure_military_kennel.xml
4–10 ↗(On Diff #4188)

If it's a convention, it's not done consistently, cf. template_structure_civic_civil_centre.xml

19–20 ↗(On Diff #4188)

Good point! I'll correct this.

46 ↗(On Diff #4188)

Structure templates don't have a selectiongroupname, cf. template_structure_military_barracks.xml
Typically civ-specific unit templates which increase in rank do.

bb added inline comments.Nov 17 2017, 2:44 PM
binaries/data/mods/public/simulation/templates/structures/brit_kennel.xml
37 ↗(On Diff #4188)

It should since the specific name is the name in the civs language, its just coincidence the is the same as the genericname (maybe it is even the wrong word but then ppl know where to change it)

binaries/data/mods/public/simulation/templates/template_structure_military_kennel.xml
4–10 ↗(On Diff #4188)

I assume it is a ancient remnant of the times with discrete health and stuff, and thus can be removed => ok

46 ↗(On Diff #4188)

So brit_kennel.xml should have one?

Nescio added inline comments.Nov 17 2017, 2:48 PM
binaries/data/mods/public/simulation/templates/structures/brit_kennel.xml
37 ↗(On Diff #4188)

OK, then I'll reinsert this line.

binaries/data/mods/public/simulation/templates/template_structure_military_kennel.xml
46 ↗(On Diff #4188)

No, “unit”; the kennel is a structure and can't promote. brit_war_dog_b.xml should have (and has; that file isn't affected by this patch).

bb added inline comments.Nov 17 2017, 2:51 PM
binaries/data/mods/public/simulation/templates/template_structure_military_kennel.xml
46 ↗(On Diff #4188)

Ahh right, getting it => ok

bb accepted this revision.Dec 12 2017, 9:56 PM

Those two things are easy enough to fix while committing, thx for the patch

This revision is now accepted and ready to land.Dec 12 2017, 9:56 PM
This revision was automatically updated to reflect the committed changes.