TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    UPDATING OLDER MAPS FOR 2.1

    Scheduled Pinned Locked Moved Map Making
    26 Posts 6 Posters 4.4k Views 6 Watching
    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.
    • ebbeE Offline
      ebbe @RogerCooper
      last edited by

      @RogerCooper Okej, I realize: my programming skils are limited and still I try to solve issues , asking for trouble... haha... ( forgive me the disturbance ) I managed to adapt the 1.8 files to be theoretically running in 2.1 : stilll I got this error... blocking my progress. and no clue what it could be ... anyone an idea?
      Error.png

      1 Reply Last reply Reply Quote 0
      • wc_sumptonW Offline
        wc_sumpton
        last edited by

        @ebbe "attatchTo" needs to be changed to "attachTo".

        ebbeE 1 Reply Last reply Reply Quote 0
        • ebbeE Offline
          ebbe @wc_sumpton
          last edited by

          @wc_sumpton OFCOURSE... ! I fixed only the attachment not attachTo's thnxs 😲 💩

          1 Reply Last reply Reply Quote 0
          • wc_sumptonW Offline
            wc_sumpton
            last edited by

            @ebbe Sorry to ask this but did you start with the latest download for "World War II Global 1940 2nd Edition", because I just re-downloaded it and the map seem to run fine. I am of the opinion that the map was already updated for 1.9 and runs fine on 2.1.

            If I looking at the wrong map please forgive this inquiry and let me know what base map you are working with.

            Cheers...

            ebbeE 1 Reply Last reply Reply Quote 0
            • ebbeE Offline
              ebbe @wc_sumpton
              last edited by

              @wc_sumpton Indeed, but I started from the original 1.8 workfiles I had... so if I get completely stuck a transfer all adaptions to the latest WWIIG '40 2nd ed.

              1 Reply Last reply Reply Quote 0
              • wc_sumptonW Offline
                wc_sumpton
                last edited by

                @ebbe ok, no problem. That is where my confusion was coming from.

                Cheers...

                1 Reply Last reply Reply Quote 0
                • ebbeE Offline
                  ebbe
                  last edited by

                  Up and running in 2.1.... GREAT !!!! so I come back in some weeks with progress... if anyone knows how to reach Veqruin except for triplAdev forum.. I still have to ask him permission to use his work for an alternative version if I want to share it here... thnxs everybody... for the next weeks I'll be alligning Soviet fleet and armies on all Territories ... aaaaahh.....

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    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
                    • LaFayetteL Online
                      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 Offline
                        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
                        • LaFayetteL Online
                          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 Offline
                            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
                            • LaFayetteL Online
                              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

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 1
                              • 2
                              • 1 / 2
                              • First post
                                Last post
                              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums