Anq
Prince
Not sure if this is the place for it, if you ever unpack the arts, try to move it somewhere else before you start the game or otherwise it won't launch!
Just found that it can't be under the entire base folder Mods\Caveman2Cosmos.
I guess something would be has to changed in SVN, so if you use Mods as base folder (SVN checkout) then here two main folders are created.Other suggestion:
\Caveman2Cosmos\
--- \Assets
--- \PrivateMaps
--- \ini file
--- \icon
\SourceC2C
--- \Source
--- \UnpackedArt
--- \Tools
Because Caveman2Cosmos is the mod that BtS loads.
I don't think BtS will consider SourceC2C a valid mod.
The structure I suggested there is what would be inside the folder you do checkout on, regardless of what that checkout folder is named.I guess something would be has to changed in SVN, so if you use Mods as base folder (SVN checkout) then here two main folders are created.
Now I tested it -- it can be, as long as it is outside the ini-or-commandline-configured Mod folder, eg. Mods\Caveman2CosmosAre you sure? i think they can't be anywhere inside Mods\.
Do you mean have this under the same location we currently checkout to? So e.g. if you checkout into Mods dir it would be mod=Mods\Caveman2Cosmos\Caveman2Cosmos?Other suggestion:
No if you need to have the SVN checkout folder inside the BtS mods folder, then with my suggestion you would have to do checkout on the bold folder in this line:Do you mean have this under the same location we currently checkout to? So e.g. if you checkout into Mods dir it would be mod=Mods\Caveman2Cosmos\Caveman2Cosmos?
I gave up on doing it that way very quickly. What is the benefit of doing this? Seems easier to just checkout to Mods.My suggestion kinda took it for granted that everyone does SVN export and have their SVN checkout folder outside the BtS installed Mods path.
The unpacked art would be in SVN so it will be in the SVN workspace to start with. I can't stop Civ exe from indexing everything inside the directory that is specified on the Mod command line. So to fulfill both the unpacked art being in SVN and making sure Civ doesn't index it (very slow) the Mod root can't be the SVN root. What you suggest would work, but it is way more drastic a change than what I am suggestion. It both requires moving the entire repo locally, AND it will delete all other mods, or accidentally add them to SVN.Can't your script zip the unpacked art, or place the unpacked art somewhere else than in the mod folder?
That structure is actually adopted by the AND and RI teams. They have scripts to package their mod into installers, and their Mod proper is one level deeper than their repo root directory.Yep my experiments show the same. If I hide the directory it is not indexed, but SVN doesn't support hidden attribute at all, so it would need to be done locally somehow for everyone to be able to use that.
I would propose a different solution, however it is a big change:
Move the actual mod under a sub-directory, and keep the source code and assets separate. So now you have:
\Caveman2Cosmos\
--- \Assets
--- \Source
--- \PrivateMaps
--- \ini file
--- \icon
--- etc.
Instead you would have:
\Caveman2Cosmos\
--- \Mod\
--- --- \Assets
--- --- \PrivateMaps
--- --- \ini file
--- --- \icon
--- \Source
--- \UnpackedArt
This has other benefits like stopping the game indexing the source directory, keeping a clean distinction in the repo between what the mod loads at run time and what it doesn't, separating source from build etc.
Of course this change means a one time move of a lot of assets in SVN, which probably results in a long fetch and maybe some annoying merges (not sure how well SVN handles file moves), and people would need to update their mod load path from mod\Caveman2Cosmos to mod\Caveman2Cosmos\Mod.
I think this is the best solution in the long term, but of course it requires some (I think modest) effort from everyone to update their paths when (if) it drops.
If we were to move to github (my experiences with sourceforge servers in the last week make it essential in my book), that would be an ideal time to do a change like this.
SVN export isn't much more than copying all files from here to there, though the SVN can mark files so that they will not be exported, like the .svn folder.I gave up on doing it that way very quickly. What is the benefit of doing this? Seems easier to just checkout to Mods.
But if people do export (dunno what this is really), then they can just do packing etc. script at that point right?
If this works then I'm all good with it btw, I only gave the other suggestion in case that wouldn't work.Instead you would have:
\Caveman2Cosmos\
--- \Mod\
--- --- \Assets
--- --- \PrivateMaps
--- --- \ini file
--- --- \icon
--- \Source
--- \UnpackedArt