Genghis.Khan
Person
Visual Tech Tree keeps crashing
<GameData>
<Technologies>
<Delete />
</Technologies>
</GameData>
Ok, my solution:
1. Delete all Technologies with an .xml file
Code:<GameData> <Technologies> <Delete /> </Technologies> </GameData>
2. Load the .xml file you just created to Indie Stone Visual Tech Tree Editor
3. Load ...\assets\DLC\Expansion\Gameplay\XML\Technologies\CIV5Technologies
4. Done!
however if anyone has a working build I can't imagine it'd be too hard to decompile the sources using Reflector to make a new version that works with G&K (assuming from this thread it doesn't).
This works great, except some images aren't loaded in (which is not an issue to me).
Thank you lemmy & binky for a great program, I hope you can come back from the burglary.
So... where can we get the latest version?
I wasn't around to use it, and all the tutorial pictures are dead links. But, when I ran it, it didn't crash but was confusing. There was two of everything like iron for example. Moving iron to an early tech worked but left one of the two irons back at the original tech.
I don't know for sure, but since I didn't set any directories or put it anyplace special it probably is scanning the base directory inward and getting what it needs. Finding duplicates of everything under the expansion DLC is confusing it.
Complete guesses though.
private void LoadDir(string s)
{
string[] files = Directory.GetFiles(s);
string[] array = files;
for (int i = 0; i < array.Length; i++)
{
string text = array[i];
if (text.ToLower().Contains(".xml") && !text.ToLower().Contains("civ5artdefines_") && !text.ToLower().Contains("scenario"))
{
this.loadList.Add(text);
}
}
string[] directories = Directory.GetDirectories(s);
string[] array2 = directories;
for (int j = 0; j < array2.Length; j++)
{
string text2 = array2[j];
if (!text2.ToLower().Contains("\\lua") && !text2.ToLower().Contains("scenario") && !text2.ToLower().Contains("ja_jp"))
{
this.LoadDir(text2);
}
}
}
Does anyone know if all vanilla game files can be ignored and everything loaded from the G&K directory?
Swap 2) with 1) perhaps? Then you can keep a list of files loaded already and ignore then easily in the vanilla scan.1) Recursively scan the vanilla folder and load any file that doesn't have a corresponding file in the G&K folder structure
2) Recusively scan the G&K folder structure and load every file in there
No. G&K only replaces those files it changed, so the logic is
1) Recursively scan the vanilla folder and load any file that doesn't have a corresponding file in the G&K folder structure
2) Recusively scan the G&K folder structure and load every file in there
Swap 2) with 1) perhaps? Then you can keep a list of files loaded already and ignore then easily in the vanilla scan.