Example #1
0
        public override void vmethod_0()
        {
            ZzGenericNode1 @class = _class3180.ZzGetNode1(_gh3Songlist0.Gh3SetlistList[_int0].method_2());

            @class.method_5(new StructurePointerRootNode(_int0))
            .method_8(_gh3Songlist0.Gh3SetlistList[_int0].method_6());
        }
Example #2
0
        public ZzFxBoost(ZzPakNode2 class3181)
        {
            _class3180 = class3181;
            var @class = ((StructureHeaderNode)_class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb")
                          .method_5(new TagStructureNode("event", "star_power_on"))
                          .Parent).method_5(new TagStructureNode("scr"));

            _bool0 = (@class.method_8() == "guitarevent_starpoweron");
        }
Example #3
0
        public override void vmethod_0()
        {
            ZzGenericNode1 @class = _class3180.ZzGetNode1(
                "scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb");

            @class
            .method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" +
                                               (_bool0 ? "gha" : "gh3")))
            .method_8(_gh3Songlist0.method_7());
        }
Example #4
0
        public override void vmethod_0()
        {
            string         text;
            ZzGenericNode1 @class;

            if (!_class3180.method_6(text = "scripts\\guitar\\custom_menu\\guitar_custom_progression.qb"))
            {
                _class3180.method_0(text, new ZzGenericNode1());
                @class = _class3180.ZzGetNode1(text);
                @class.method_3(new IntegerRootNode("custom_setlist_bitmask", text, 0));
            }
            else
            {
                @class = _class3180.ZzGetNode1(text);
            }
            if (_bool0)
            {
                @class.method_3(new StructurePointerRootNode(_int0, text, _gh3Songlist0.Dictionary1[_int0].method_1()));
                @class.method_3(new StructurePointerRootNode(_gh3Songlist0.method_10(_int0), text,
                                                             _gh3Songlist0.method_11(_int0).method_6()));
            }
            else
            {
                try
                {
                    @class.method_5(new StructurePointerRootNode(_int0)).Remove();
                    @class.method_5(new StructurePointerRootNode(_gh3Songlist0.method_10(_int0))).Remove();
                }
                catch
                {
                }
                _gh3Songlist0.CustomBitMask &= ~_gh3Songlist0.method_11(_int0).CustomBit;
                _gh3Songlist0.Gh3SetlistList.Remove(_gh3Songlist0.method_10(_int0));
                _gh3Songlist0.Dictionary1.Remove(_int0);
                _gh3Songlist0.Class2140.Remove(_gh3Songlist0.Class2140.method_0(_int0));
            }
            @class.method_5(new IntegerRootNode("custom_setlist_bitmask")).method_8(_gh3Songlist0.CustomBitMask);
        }
Example #5
0
        public override void vmethod_0()
        {
            var            text   = "scripts\\guitar\\guitar_progression.qb";
            ZzGenericNode1 @class = _class3180.ZzGetNode1(text);

            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_career_songs")));
            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_general_songs")));
            if (!_bool0)
            {
                _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs")));
                _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs_coop")));
            }
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p1_career_progression")));
            if (!_bool0)
            {
                _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_career_progression")));
            }
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("bonus_progression")));
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("download_progression")));
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("general_progression")));
            if (!_bool0)
            {
                _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("generalp2_progression")));
                _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_coop_progression")));
            }
            @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_download.qb");
            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_download_songs")));
            if (!_bool0)
            {
                @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_coop.qb");
                _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_coopcareer_songs")));
            }
            @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\store_data.qb");
            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_bonus_songs")));
            if (_class3180.method_6(text = "scripts\\guitar\\custom_menu\\guitar_custom_progression.qb"))
            {
                @class = _class3180.ZzGetNode1(text);
                var num = @class.method_5(new IntegerRootNode("custom_setlist_bitmask")).method_7();
                for (var i = 0; i < 32; i++)
                {
                    if (num >> i != 0)
                    {
                        _gh3Songlist0.method_4(text,
                                               @class.method_5(new StructurePointerRootNode("gh3_custom" + (i + 1) + "_songs")))
                        .CustomBit = 1 << i;
                        _gh3Songlist0.method_5(text,
                                               @class.method_5(new StructurePointerRootNode("custom" + (i + 1) + "_progression")));
                    }
                }
                _gh3Songlist0.CustomBitMask = num;
            }
            @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb");
            _gh3Songlist0.method_6((StructureArrayNode)@class
                                   .method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" +
                                                                      (_bool0 ? "gha" : "gh3")))
                                   .method_7());
        }
Example #6
0
        public override void vmethod_0()
        {
            Console.WriteLine("-=- " + ToString() + " -=-");
            ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_cheats.qb");

            foreach (var current in @class.method_5(new ArrayPointerRootNode("guitar_hero_cheats"))
                     .method_7()
                     .method_8 <StructureHeaderNode>())
            {
                var flag   = current.method_5(new TagStructureNode("name", "unlockall")) != null;
                var flag2  = current.method_5(new TagStructureNode("name", "unlockalleverything")) != null;
                var class2 = current.method_5(new ArrayPointerNode("unlock_pattern")).method_8() as IntegerArrayNode;
                if (class2.Nodes.Count == 1)
                {
                    _bool0 = true;
                    Console.WriteLine("QB Database is already edited.");
                    break;
                }
                class2.method_12(new[]
                {
                    flag ? 4096 : (flag2 ? 256 : 65536)
                });
            }
        }
Example #7
0
        public override void vmethod_0()
        {
            ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb");

            ((StructureHeaderNode)@class.method_5(new TagStructureNode("event", "star_power_on")).Parent)
            .method_5(new TagStructureNode("scr"))
            .method_9(_bool0 ? "guitarevent_starpoweroff" : "guitarevent_starpoweron");
            if (!_bool0)
            {
                @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 =
                    QbSongClass1.AddKeyToDictionary("hit_note_fx_empty");
                @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_empty");
                @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_empty");
                @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 =
                    QbSongClass1.AddKeyToDictionary("first_gem_fx_empty");
                @class.method_5(new ScriptRootNode("hit_note_fx_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("hit_note_fx");
                @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus");
                @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned");
                @class.method_5(new ScriptRootNode("first_gem_fx_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("first_gem_fx");
                return;
            }
            @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 =
                QbSongClass1.AddKeyToDictionary("hit_note_fx_original");
            @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 =
                QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_original");
            @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 =
                QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_original");
            @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 =
                QbSongClass1.AddKeyToDictionary("first_gem_fx_original");
            var class2 = @class.method_5(new ScriptRootNode("hit_note_fx_empty"));

            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("hit_note_fx");
            }
            else
            {
                @class.method_3(new ScriptRootNode("hit_note_fx", "scripts\\guitar\\guitar_events.qb",
                                                   new QbScriptNode()));
            }
            class2 = @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_empty"));
            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus");
            }
            else
            {
                @class.method_3(new ScriptRootNode("guitarevent_starsequencebonus", "scripts\\guitar\\guitar_events.qb",
                                                   new QbScriptNode()));
            }
            class2 = @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_empty"));
            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned");
            }
            else
            {
                @class.method_3(new ScriptRootNode("guitarevent_multiplier4xon_spawned",
                                                   "scripts\\guitar\\guitar_events.qb", new QbScriptNode()));
            }
            class2 = @class.method_5(new ScriptRootNode("first_gem_fx_empty"));
            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("first_gem_fx");
                return;
            }
            @class.method_3(new ScriptRootNode("first_gem_fx", "scripts\\guitar\\guitar_events.qb",
                                               new QbScriptNode()));
        }
Example #8
0
        public override void vmethod_0()
        {
            Console.WriteLine("-=- " + ToString() + " -=-");
            ZzGenericNode1 @class = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb");

            string[] array =
            {
                "Invo",
                "tma",
                "TomPudding",
                "MaXKilleR",
                "GameZelda"
            };
            string[] array2 =
            {
                "D. Stowater",
                "Ginkel",
                "Bunny",
                "BMarvs",
                "CVance"
            };
            string[] array3 =
            {
                "C. Ward",
                "Riggs",
                "davidicus",
                "B. Wiuff",
                "Pam D."
            };
            KeyGenerator.smethod_56(array);
            Console.WriteLine("Randomized Names:");
            var num = 0;

            while (num < 5 && !_qbDatabaseAlreadyEdited)
            {
                Console.WriteLine(array[num]);
                var class2 = @class.method_5(new UnicodeStructureNode("name" + (num + 1)));
                if (class2.method_8().Equals(_bool1 ? array3[num] : array2[num]))
                {
                    class2.method_9(array[num]);
                }
                else
                {
                    _qbDatabaseAlreadyEdited = true;
                    Console.WriteLine("QB Database is already edited.");
                }
                num++;
            }
            if (!_qbDatabaseAlreadyEdited)
            {
                ZzGenericNode1 class3 = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_memcard.qb");
                Console.WriteLine("Changing Save File Size to 5MB.");
                class3.method_5(new IntegerStructureNode("fixed_size")).method_9(5242880);
                Console.WriteLine("Changing Save Folder Name.");
                class3.method_5(new UnicodeRootNode("memcard_content_name"))
                .method_8(string.Format("Progress{0}", (new[]
                {
                    "A",
                    "B",
                    "C",
                    "D",
                    "E",
                    "F"
                })[new List <string>(new[]
                {
                    "qb",
                    "qb_f",
                    "qb_i",
                    "qb_s",
                    "qb_g",
                    "qb_k"
                }).IndexOf(KeyGenerator.GetFileNameNoExt(_pakNode.String0))]));
            }
            if (!_qbDatabaseAlreadyEdited)
            {
                ZzGenericNode1 class4 = _pakNode.ZzGetNode1("scripts\\guitar\\menu\\menu_setlist.qb");
                Console.WriteLine("Changing Setlist Scroller.");
                ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("setlist_scroll")));
                Console.WriteLine("Changing Tier Name Display.");
                ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("create_sl_assets")));
            }
            if (!_qbDatabaseAlreadyEdited)
            {
                ZzGenericNode1 node = _pakNode.ZzGetNode1("scripts\\guitar\\guitar.qb");
                node.method_5(new StructurePointerNode("load_z_soundcheck"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Sound Check");
                node.method_5(new StructurePointerNode("load_z_credits"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Guitar Hero Tower");
                node.method_5(new StructurePointerNode("viewer"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Black Background");
                node.method_5(new StructurePointerNode("load_z_viewer"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Black Background");
            }
        }
Example #9
0
        public override void vmethod_0()
        {
            ZzGenericNode1 class308 = _class3180.ZzGetNode1("scripts\\guitar\\songlist.qb");

            _gh3Songlist0.method_13(class308);
        }
Example #10
0
 public override void vmethod_0()
 {
     Console.WriteLine("-=- " + ToString() + " -=-");
     if (!_bool0)
     {
         _bool0 = _class3180.method_6("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb");
     }
     if (!_bool0)
     {
         Console.WriteLine("Creating Custom Menu.");
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_gem_scale.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_gem_scale"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_credits.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_credits"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_cutoff_viewer"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_gfx_options.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_gfx_options"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_setlist_switcher"));
         ZzGenericNode1 @class = _class3180.ZzGetNode1(_bool1
             ? "scripts\\guitar\\menu\\menu_main.qb"
             : "scripts\\guitar\\guitar_menu.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("create_main_menu")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_progression.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("get_progression_globals")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_gems.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("load_venue")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_gem_scroller")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("kill_gem_scroller")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("guitarevent_songwon_spawned")));
         @class = _class3180.ZzGetNode1("scripts\\game\\net\\guitar_net.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("net_write_single_player_stats")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_globaltags")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_songtags")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("push_bandtags")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_credits.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("scrolling_list_add_item")));
         if (!_bool1)
         {
             ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_team_photos")));
         }
         if (_bool1)
         {
             @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb");
             ZzQbScriptZipperClass.smethod_1(
                 @class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_paper")));
             ZzQbScriptZipperClass.smethod_1(
                 @class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_poster")));
         }
         @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\main_menu_flow.qb");
         var class2 = new StructureHeaderNode();
         class2.method_3(new TagStructureNode("action", "select_custom_menu"));
         class2.method_3(new TagStructureNode("flow_state", "custom_menu_fs"));
         class2.method_3(new TagStructureNode(0, "transition_right"));
         @class.method_5(new StructurePointerRootNode("main_menu_fs"))
         .method_5(new ArrayPointerNode("actions"))
         .method_8()
         .method_3(class2);
     }
 }