Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    UPDATING OLDER MAPS FOR 2.1

    Map Making
    6
    26
    2001
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cernel Moderators @ebbe last edited by

      @ebbe Just a warning: The fact that a map is "running" in 2.1 without errors doesn't necessarily mean that it is correctly coded for or updated to it, because there are items that are not validated or that are deprecated (or both) (and I believe the program is not giving any warning for deprecated elements).

      1 Reply Last reply Reply Quote 0
      • LaFayette
        LaFayette Admin last edited by

        If using an XML element that has been removed, chances are really good schema validation will fail, or if not, map parsing would fail.

        If the element is 'deprecated' but the map still loads, then the engine is doing some backward compatibility magic to translate the 'deprecated' elements to non-deprecated variant.

        C 1 Reply Last reply Reply Quote 1
        • C
          Cernel Moderators @LaFayette last edited by

          @LaFayette said in UPDATING OLDER MAPS FOR 2.1:

          If using an XML element that has been removed, chances are really good schema validation will fail, or if not, map parsing would fail.

          Yes, since most is validated. I was just saying that you cannot be sure. For example, inexistent properties are simply ignored.

          1 Reply Last reply Reply Quote 0
          • LaFayette
            LaFayette Admin last edited by LaFayette

            I'm not aware of any ignored properties. Either a property is going to "do the right thing" and translate itself into modern code, or the XML schema validation will throw a fit because the property is not recognized.

            I'm interested in any counter-examples that you may run across @Cernel . Those are worth addressing in one manner or another.

            C 1 Reply Last reply Reply Quote 0
            • C
              Cernel Moderators @LaFayette last edited by Cernel

              @LaFayette said in UPDATING OLDER MAPS FOR 2.1:

              I'm not aware of any ignored properties. Either a property is going to "do the right thing" and translate itself into modern code, or the XML schema validation will throw a fit because the property is not recognized.

              I'm interested in any counter-examples that you may run across @Cernel . Those are worth addressing in one manner or another.

              @LaFayette As I said, properties are never validated, as far as I know and as far as a non-developer can be sure about it. Having a wrong property simply equals not having it (which, in turn, equals having it false and non-editable). You can test it by mangling the name of a property of whatever game. The result of this should be the same as having deleted the property from the game file (xml).

              1 Reply Last reply Reply Quote 0
              • LaFayette
                LaFayette Admin last edited by LaFayette

                There is a DTD, doc type definition that does enforce which XML entities and properties are allowed.

                I was thinking you meant an XML property as opposed to a TripleA <property> tag. In XML, a property is typically a value after a tag, eg: <tag property=123>

                When parsing in an enforcing mode the DTD defines which properties are valid and which are not.

                Though you are right about property name values. An unrecognized one would go unused. EG: <property name='not-recognized'>

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums