Exemple #1
0
        static void Main(string[] args)
        {
//			testAuth();
//			return;
            var detectInstall = new DetectInstall();


            try {
//				testLoadE1P();

/*
 *                              if (args.Length == 0) {
 *                                      Console.WriteLine("Usage: Program [dir]");
 *                                      return;
 *                              }
 *                              testLoadPartsAssemblerSubdir(args[0]);
 */
//				testLoadL2P(detectInstall);
                testLoadL3P(detectInstall);
//				testLoadSuf();
//				testLoadAtr();
//				testLoadIni(pathInstalled);

//				testLoadPaletteAtr(detectInstall);
//				testLoadPaletteAtr2(detectInstall);

//				testYanagisawaPic2();
            } catch (Exception ex) {
                Console.WriteLine("Error: " + ex);
            }
        }
Exemple #2
0
        static void testLoadPaletteAtr2(DetectInstall detectInstall)
        {
            var tableNamesProduct = new string[] {
                @"PLAYAnimation_ENU",
                @"TOTEKAN2",
                @"DOGA-E1",
                @"DOGA-L3",
                @"DOGA-L3PRO",
                @"DOGA-L2",
                // @"DOGA-L1"
            };



            foreach (var nameProduct in tableNamesProduct)
            {
                if (!detectInstall.tableInfosInstall.ContainsKey(nameProduct))
                {
                    continue;
                }
                var infoInstall = detectInstall.tableInfosInstall[nameProduct];
                var infoAtr     = new DoGAAtrInfo(nameProduct, infoInstall.pathInstalled + infoInstall.pathRelativeExe, infoInstall.profiles);
            }

/*			var atr0 = infoAtr.getAtrFromPalette("bodym", "c20", "no", "m4");
 *                      var atr1 = infoAtr.getAtrFromPalette("bodym", "c10b", "no", "m1"); // no texture
 *                      var atr2 = infoAtr.getAtrFromPalette("bodym", "c10b", "t10", "m1"); // meisai
 *                      var atr3 = infoAtr.getAtrFromPalette("bodym", "c10b", "t28", "m4"); // hana
 *
 *                      var name = atr0.name;
 */
        }
 public void detectInstall()
 {
     if (this.detectedInstall == null)
     {
         this.detectedInstall = new DetectInstall();
         this.worker          = new ImportWorker(this.detectedInstall);
     }
 }
Exemple #4
0
        static void testLoadL2P(DetectInstall detectInstall)
        {
            var            nameFile = @"c:\home\tomotaco-doga\Unity\work\data\unity3d\testdir\dogal2-sample\mecha\l2_samp\human\gal1\GAL_1HD.L2P";
            var            context  = TotekanParse.parseE1P(nameFile);
            DoGAE1PVisitor visitor  = new DoGAE1PVisitor(Path.GetDirectoryName(nameFile));

            visitor.Visit(context as IParseTree);
            var listSufObjs = visitor.listSufObjs;
            var mapAtrs     = visitor.mapAtrsPalette;
        }
Exemple #5
0
        static void testLoadPaletteAtr(DetectInstall detectInstall)
        {
            var nameProduct = @"TOTEKAN2";
            // var nameProduct = "PLAYAnimation";
            var infoInstall = detectInstall.tableInfosInstall[nameProduct];
            var infoAtr     = new DoGAAtrInfo(nameProduct, infoInstall.pathInstalled + infoInstall.pathRelativeExe, infoInstall.profiles);

//          var atr = infoAtr.getAtrFromPalette("BodyM".ToLower(), "RGB_FFF716".ToLower(), "NO".ToLower(), "Mechanic".ToLower());
//			var atr = infoAtr.getAtrFromPalette("bodym", "material02silver", "material02silver", "material02silver");
//			var atr = infoAtr.getAtrFromPalette("bodym", "pattern02redcheck", "pattern02redcheck", "pattern02redcheck");
            //, nameAtrInSuf=
//			var atr = infoAtr.getAtrFromPalette("bodyd", "rgb_4f2b23", "rough", "m4");
//			var atr = infoAtr.getAtrFromPalette("bodym", null, null, null);
            var atr = infoAtr.getAtrFromPalette("grayg", "rgb_e1e1e1", "no", "m1");



            var path = atr.path;
        }
Exemple #6
0
        static void testLoadL3P(DetectInstall detectInstall)
        {
//			var nameFileL3P = @"D:\home\tomotaco-doga\Unity\work\data\dogal3\l3_samp\parts\ball_particle_samp.L3P";
//			var nameFileL3P = @"C:\home\tomotaco-doga\Unity\work\data\unity3d\testdir\dogal3-sample\animation\demo1data\base.l3p";
//			var nameFileL3P = @"C:\home\tomotaco-doga\Unity\work\data\texture\doga-tank.l3p";
//			var nameFileL3P = @"D:\Home\tomotaco-doga\Unity\work\data\bugreport\20141018-texture-test\texture\doga-tank.l3p";
//			var nameFileL3P = @"C:\H\VRW\背景作成\objs\back\river.l3p";
//			var nameFileL3P = @"C:\H\VRW\背景作成\objs\back\riverbridge.l3p";
            var            nameFileL3P = @"C:\H\VRW\背景作成\objs\back\tree.l3p";
            var            context     = TotekanParse.parseE1P(nameFileL3P);
            DoGAE1PVisitor visitor     = new DoGAE1PVisitor(Path.GetDirectoryName(nameFileL3P));

            visitor.Visit(context as IParseTree);
            var listSufObjs = visitor.listSufObjs;
            var mapAtrs     = visitor.mapAtrsPalette;

            var nameProduct = "DOGA-L3";
            var infoInstall = detectInstall.tableInfosInstall[nameProduct];
            var infoAtr     = new DoGAAtrInfo(nameProduct, infoInstall.pathInstalled + infoInstall.pathRelativeExe, infoInstall.profiles);

//			var atr0 = infoAtr.getAtrFromPalette("bodym", "c20", "no", "m4");
            var atr0    = infoAtr.getAtrFromPalette("grayg", "#01", "no", "m4", mapAtrs);
            var pathAtr = atr0.path;
        }
Exemple #7
0
 public ImportWorker(DetectInstall detectedInstall)
 {
     this.detectedInstall = detectedInstall;
 }