Game file names
-
Hi
Is it possible to alter the way the automatic game file names are constructed?
Now they become "triplea_Jap3.tsvg" for instance. I would prefer that the game turn is located before the nation. That way the files will be ordered in a better chronological order and it will be easier to get an overview.Can I change this myself somewhere or is it impossible?
Thanks!
/Surre
-
@Griito that is specific to each map probably somewhere in the game xml file
-
@Griito I believe you are talking about savegames, but I've no idea where automatic savegames named like "triplea_Jap3.tsvg" are generated. Mine in 2.0 are something like "autosaveAfterPlayerPhase.tsvg".
I also have no idea how this topic can be related in any ways to mapmaking, and doesn't seem specific to any particular Maps or Mods at all, either, so I'm moving it to Player Help, I guess.
-
I believe he is talking about PBF/PBEM save games. That name is auto-generated by TripleA when posting it to the forum. I'll take a look at if it can be changed as I do agree that the round number should come before the nation name for better sorting.
-
@redrum Feature Request then? Also the sorting of the autosaves is terrible, btw. They are an absolute mess to find if you play a lot of different games with many players per game. It would be way better if they are named first with the game name, then with the turn number, then with the player name, then the phase name. Also there is the somewhat random issue that if two different games have a player called the same way, then it is overwritten, otherwise not.
-
@Cernel Yeah this would be a feature request.
Here is the PR changing PBF/PBEM save games to be named triplea_<round><player> for better sorting:https://github.com/triplea-game/triplea/pull/5839
-
@redrum
Correct. I looked through the game xml-file but found nothing connecting to the file names.Absolutely best would be if all files came in the right order. But then it would have to be something like
"triplea_3_4Jap.tsvg"
where 3 is the round and 4 is a constant that is just the number the country has in every turn. That is 1=Rus, 2=Ger etc.
Not so good looking but the files will be in perfect order. -
@redrum i stick my autosaves into folders manually to keep them separate anytime i'm done with a particular matches turn i just dump everything from the autosave into the folder for that match. it's actually pretty easy to do and definitely better than having a bunch of things in one folder even if the naming is very logical.
-
@ubernaut Yeah, I tend to create folders for different maps but it would still be helpful to have them sorted by round then player name within those.
@Griito Yeah, we could add a sort of turn order number as well. For now I just swapped the round and player name which will at least sort saves by round then alphabetical player name which is still a lot better.
-
@redrum Wouldn't be better having 01 or 001, instead of 1, et cetera?
-
@Cernel Possibly. I think most operating systems now properly sort numbers within file names so 1-9 then 10-100, etc.
-
@redrum said in Game file names:
@Cernel Possibly. I think most operating systems now properly sort numbers within file names so 1-9 then 10-100, etc.
Ah, in that case, then, better not having zeros at start. I also don't like it in cases you don't have a max, as, theorically, you can play any TripleA games into round 1000. If 01 or 001, then I think the system should stop taking savegames once you reach round 99 or 999, respectively.
-
What about game ID first, then followed by turn number?
Then the savegames would be sorted not only by turn numbers but by games before, too.
It would be easier to distinugish them when having parallel games going on.
So
triplea_<Game ID><round><player>
?
-
@Panther That is actually already done for PBF games
So PBF used to be triplea_<Game ID><player><round> and is now triplea_<Game ID><round><player>.
-
@redrum Ah yes, sure... I have only local games in my folders, that is why I missed that... then