3dm_15299031 发表于 2020-4-23 11:15

求助各位大佬1.5.3版本怎么开控制台

求助各位大佬1.5.3版本怎么开控制台

一只双眼皮 发表于 2020-4-23 21:51

1.53 移除了控制台相关代码和字段。以前经由控制台实现的功能,均需完全重制代码。
如果以后不恢复,那以前的控制台功能就只能慢慢琢磨着一项项的来恢复

3dm_15299031 发表于 2020-4-23 22:04

一只双眼皮 发表于 2020-4-23 21:51
1.53 移除了控制台相关代码和字段。以前经由控制台实现的功能,均需完全重制代码。
如果以后不恢复,那以前 ...

这么恶心么{:3_184:}

一只双眼皮 发表于 2020-4-23 22:09

3dm_15299031 发表于 2020-4-23 22:04
这么恶心么

移步https://bbs.3dmgame.com/thread-6037258-1-1.html
每天修复一点点。
事,就这样成了

mrh121 发表于 2020-4-23 22:11

搜索ItemsManager.UpdateDebug
在private void UpdateDebug()下面添加
        {
                if (Input.GetKey(KeyCode.LeftControl))
                {
                        if (Input.GetKeyDown(KeyCode.F1))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugItem));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F2))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugScenario));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F3))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugSpawners));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F4))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugSkills));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F5))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugAI));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F6))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugWounds));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F7))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugDialogs));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F9))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugLog));
                                return;
                        }
                        if (Input.GetKeyDown(KeyCode.F11))
                        {
                                MenuInGameManager.Get().ShowScreen(typeof(MenuDebugScenarioDialogs));
                        }
                }
                if (this.m_DebugSpawnID != ItemID.None && Input.GetKeyDown(KeyCode.I) && Input.GetKey(KeyCode.LeftControl))
                {
                        Vector3 forward = Player.Get().GetHeadTransform().forward;
                        Vector3 vector = Player.Get().GetHeadTransform().position + 0.5f * forward;
                        RaycastHit raycastHit;
                        vector = (Physics.Raycast(vector, forward, out raycastHit, 3f) ? raycastHit.point : (vector + forward * 2f));
                        this.CreateItem(this.m_DebugSpawnID, true, vector - forward * 0.2f, Player.Get().transform.rotation);
                }
                if (Input.GetKeyDown(KeyCode.P))
                {
                        this.UnlockItemInNotepad(ItemID.Logs_Bed);
                }
                if (Input.GetKey(KeyCode.U) && Input.GetKey(KeyCode.LeftControl))
                {
                        this.UnlockAllItemsInNotepad();
                        PlayerDiseasesModule.Get().UnlockAllDiseasesInNotepad();
                        PlayerDiseasesModule.Get().UnlockAllDiseasesTratmentInNotepad();
                        PlayerDiseasesModule.Get().UnlockAllSymptomsInNotepad();
                        PlayerDiseasesModule.Get().UnlockAllSymptomTreatmentsInNotepad();
                        PlayerInjuryModule.Get().UnlockAllInjuryState();
                        PlayerInjuryModule.Get().UnlockAllInjuryStateTreatment();
                        PlayerInjuryModule.Get().UnlockAllKnownInjuries();
                        this.UnloackAllConsumed();
                        this.UnlockAllCrafted();
                        this.UnlockAllBoiledData();
                        this.UnlockAllCollected();
                        this.UnlockAllItemInfos();
                        MapTab mapTab = (MapTab)MenuNotepad.Get().m_Tabs;
                        if (mapTab == null)
                        {
                                return;
                        }
                        mapTab.UnlockAll();
                }
按左CTRL+F1/F2/F3以此类推来实现打开Debug菜单,但是经过测试物品菜单为空求大神解决下

mrh121 发表于 2020-4-24 00:47

mrh121 发表于 2020-4-23 22:11
搜索ItemsManager.UpdateDebug
在private void UpdateDebug()下面添加
        {


搜索MenuDebugItem,把1.5.2版本MenuDebugItem里面的信息复制到新版本MenuDebugItem里面就解决了,能打开DEBUG ITEMS了

mrh121 发表于 2020-4-24 00:49

mrh121 发表于 2020-4-24 00:47
搜索MenuDebugItem,把1.5.2版本MenuDebugItem里面的信息复制到新版本MenuDebugItem里面就解决了,能打开 ...

参考了几个大神的帖子只记住了这个https://bbs.3dmgame.com/thread-5985422-1-1.html


页: [1]
查看完整版本: 求助各位大佬1.5.3版本怎么开控制台