offset round="0"
-
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
-
@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.
-
@cernel right on thanks. I'll look at what Frostion did
-
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.
-
@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