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
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