Page MenuHomeWildfire Games

Fix scenario .rnc/.rng validation errors
ClosedPublic

Authored by vladislavbelov on Apr 28 2017, 10:47 PM.

Details

Reviewers
fatherbushido
elexis
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP19500: Fix scenario .rnc/.rng validation errors.
Summary
  • There're few missing elements in Scenario.rnc
  • Fixed FogColour > FogColor in Pathfinding_demo.xml
  • Added WindAngle
  • Added Camera as optional, because one map has it in script settings (I think it's ok, but if not, then it could be fixed)
Test Plan
  1. Run validation of maps
  2. Run the game on the Pathfinding_demo map

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

vladislavbelov edited the summary of this revision. (Show Details)
vladislavbelov edited the summary of this revision. (Show Details)Apr 28 2017, 10:50 PM
Vulcan added a subscriber: Vulcan.Apr 28 2017, 11:32 PM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/911/ for more details.

fatherbushido added inline comments.Apr 29 2017, 7:17 AM
binaries/data/mods/public/maps/scenario.rnc
122 ↗(On Diff #1516)

Perhaps you could already add Rotation

elexis edited edge metadata.Apr 29 2017, 7:50 AM

(Using `trang file.rnc file.rng" one can generate the rng file from the rnc file and thus avoid inconsistencies or bugs (rP19352))

It's ok.
I set accepted but wait for any comments.

This revision is now accepted and ready to land.Apr 29 2017, 8:19 AM
fatherbushido added a comment.EditedApr 29 2017, 8:20 AM
In D391#16167, @elexis wrote:

(Using `trang file.rnc file.rng" one can generate the rng file from the rnc file and thus avoid inconsistencies or bugs (rP19352))

I guess he did, we spoke about that on irc. Did you Vladislav?
(the conversion script is near the validation script anyway)

vladislavbelov added inline comments.Apr 29 2017, 9:34 AM
binaries/data/mods/public/maps/scenario.rnc
122 ↗(On Diff #1516)

It's not supported yet, so I shouldn't add.

In D391#16167, @elexis wrote:

(Using `trang file.rnc file.rng" one can generate the rng file from the rnc file and thus avoid inconsistencies or bugs (rP19352))

I guess he did, we spoke about that on irc. Did you Vladislav?
(the conversion script is near the validation script anyway)

Sure, I used trang. Probably @elexis suggest to make it autobuild on server.

This revision was automatically updated to reflect the committed changes.
fatherbushido added a comment.EditedMay 1 2017, 6:47 PM

It's ok.
I set accepted but wait for any comments.

I could have writen or not, the result would be the same...

It's ok.
I set accepted but wait for any comments.

I could have writen or not, the result would be the same...

Vladislav responded here to both questions. Which comment were you waiting for?

fatherbushido added a comment.EditedOct 11 2017, 7:42 PM

Asking that could have the contrary effect as the one expected...
EDIT: To be more explicit, it's not the place to ask such things. Sometimes it's better to not have answers. Sometimes it's better to let things rip.

Asking that could have the contrary effect as the one expected...

One should expect a response to the actual question.
I do expect abandoning of unrelated patches, so it would be good if the opposite thereof is achieved.

Sometimes it's better to let things rip.

I don't ask for a declaration war, just what "wait for any comments" exactly meant (as the only other comment was answered 15min later).

it's not the place to ask such things

Asking below the review about the review so that the reader can understand it.

I didn't remember. I guess it's better like that.