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

    offset round="0"

    Scheduled Pinned Locked Moved Map Making
    5 Posts 3 Posters 1.1k Views 3 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.
    • B Online
      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 Offline
        Cernel Moderators Lobby 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 Online
          beelee @Cernel
          last edited by

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

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

              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 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums