private static void ConvertFile(string file, string ffdecPath, string directorPath, string cctPath) { var sprite = Path.GetFileNameWithoutExtension(file); var furniItem = ResolveFurni(sprite); int X = 1; int Y = 1; bool isWallItem = false; if (furniItem == null) { /* * Logging.Log(ConsoleColor.Yellow, "No furnidata entry found for item: " + sprite); * Logging.Log(ConsoleColor.DarkYellow, "Assuming item is a 1x1 floor item."); */ //Logging.Log(ConsoleColor.Red, "No furnidata entry found for item: " + sprite); return; } else { X = furniItem.Length; Y = furniItem.Width; isWallItem = furniItem.Type.ToUpper() == "I"; } try { Logging.Log(ConsoleColor.Blue, "Creating CCT: " + Path.GetFileNameWithoutExtension(file)); var elias = new EliasLibrary.Elias(isWallItem, sprite, file, X, Y, ffdecPath, directorPath, Config.Instance.GetBoolean("generate.small.modern.furni"), Config.Instance.GetBoolean("generate.small.furni")); SaveFiles(elias.Parse(), elias.OUTPUT_PATH, cctPath); ConvertedFurniture.Add(file); } catch (Exception ex) { WriteError(ex.ToString()); ErrorLogging(ex, sprite); } }