Beetlezombie wrote:
* Does the art in prebuiltart need to be rebuilt? Ever? I would guess not right?
Hypothetically, it should never need to be rebuilt by a player. And if you're a modder, distributing a modified copy of PreBuiltArt is probably unnecessary. (Unless, perhaps, you're doing something like a total conversion mod, in which case... replacing people's PreBuiltArt is maybe a good idea?)
Beetlezombie wrote:
* Why wouldn't the metadata in drawers not match the output images in prebuiltart? Is the assumtion that the prebuiltart is static for the 8 stock empires/races wrong?
The contents of PreBuiltArt are generated from source data in Lua state\Drawers. If I update the source art, and push a patch, that patch should also include an update to PreBuiltArt that corrects any impacted assets to match the new specs.
However, the scripts I use to rebuild PreBuiltArt aren't perfect, and they do miss a few things (usually weapon recolors and certain ship submodule art). Because of those "holes", players will also have an ArtCache dir that holds whatever stuff they've encountered in-game that PreBuiltArt is missing.
Beetlezombie wrote:
* Artcache files are rebuilt anytime the source drawers data changes. When does that happen without modding? When the game randomly generates color schemes for lesser races. Or when you generate a large galaxy with max empires?
Technically ArtCache files are generated any time the game needs an asset that it can't yet find in PreBuiltArt. So, you could trigger it while live-coding, if you tried to display a ship with a color scheme that isn't included in the PreBuiltArt files. Or during normal gameplay, anytime you encounter a place where my caching scripts have overlooked an asset that the game needs. (Usually, that happens when captured ships need to be displayed with unusual color schemes.)
Note that the engine will always trust that any asset in PreBuiltArt is up to date with the source art, but, it won't make the same assumption about assets in ArtCache. So, if you're going to be actively changing source art in Drawers, you may need to delete your copy of PreBuiltArt, so that it won't inhibit auto-generation of assets.
As I said in that other thread, I don't run the game using a PreBuiltArt folder, instead I rely on auto-generation to keep my copy of ArtCache up to date, and then my dev machine's ArtCache becomes everyone else's PreBuiltArt anytime I roll out a patch.
If you're going to do a total conversion, the way to do it might be to imitate that setup. Delete PreBuiltArt from your dev machine entirely, just work with the source assets by changing the data in Lua state/Drawers, rely on autogeneration to keep a relatively complete ArtCache directory on your own machine, and then setup your mod installer to replace people's PreBuiltArt dir with a copy of your own ArtCache.
Um, yes, it is all probably more awkward and confusing than it needs to be. But if you start really digging deep, you'll discover that there are Photoshop scripting utilities built into the game that you can use to convert PSD files into assets for Lua state\Drawers. So... if you have source art in Photoshop, there are actually tools included inside the game itself that you can use to import that art into the game.