Navigation

    TripleA Logo

    TripleA Forum

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

    offset round="0"

    Map Making
    3
    5
    547
    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.
    • B
      beelee last edited by

      from POS2 "offset is used by the xml exporter to have a game begin in a round other than round 1"

      Not real familiar with this. Is there anyway to use this as a "map option" or is it only for the xml export that would then hardwire it into a different xml ?

      Thanks

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

        @beelee From discussions I had with Veqryn, I believe this item exists soley for tracking the round of the game when creating a game file out of a game in progress (using the "Export game.xml File (Beta)" function). Since then, at least @Frostion used this item in its Age of Tribes map to create late-game scenarios feigning the game has been played up to this point (for example, the first round of "Age of Tribes: Cold War" is 66), but I recall Veqryn was not approving of such usage.

        B 1 Reply Last reply Reply Quote 1
        • B
          beelee @Cernel last edited by

          @cernel right on thanks. I'll look at what Frostion did

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

            The round offset should affect the starting round. Here is the code involved:

              private int round = 1;
              private int roundOffset = 0;
            
              public int getRound() {
                return round + roundOffset;
              }
            

            A round offset of 9 would imply the game starts at round '10' instead of round '1'.

            I'm not sure how overall that would be useful. Though, there could be some non-obvious uses for game export as mentioned that I'm not aware of.

            B 1 Reply Last reply Reply Quote 1
            • B
              beelee @LaFayette last edited by

              @lafayette right on yea I wanted to have a "map option" activate which rd the game would start for games that have multiple scenarios with different start dates. That way I could keep it all in 1 xml and not have to update multiple ones.

              Only way I know of, is to make a trigger for each instance that would need adjusting, which is a lot. I thought if it was possible to only do a couple code lines and bingo, it would be sweet lol

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