Rayoz12's Cheat Panel

Rayoz12's Cheat Panel Mod v0.0.4

Kevroids,
I applied your edits, and so far it looks like all the functions seem to be working.

One issue I notice is that the cntrl-F8 key still does nothing, but I can access the panel by using the "misappropriated" Religion icon at the end of the top left icons, just as I had before 1.2.4.1.
 
Last edited:
Ah, yeah, I've been using the icon since the start instead of the hotkey, and I neglected to try it out. Sorry 'bout that, if I can find out what's causing it I'll reply back, but that's probably beyond my programming expertise now haha
 
Kevroids,

this will sound weird, but after about ~ 30 turns, the fn-F8 key is suddenly working. The only unusual thing I noticed was that I had temporarily lost internet connection, with Steam giving me an alert about online saves etc.
After a while, I connected again, and after that, the F8 has been working.... does not make much sense, but?
 
Your guess is as good as mine, at this point haha. I'm still unsure how hotkeys work with Civ, so hopefully someone with more JavaScript experience will be able to help us out with this one.
 
v0.0.2 - Hotkey Support

Implement Hotkey support. Press F8 to show the cheat panel. This can be changed in input.xml

Thanks for the suggestion @angelodgreat
Any chance this mod will get update after the latest version drop? I enjoy the game but out of all the Civs I have played this one isn't my favorite. It's not bad but I will admit your mod/cheat panel does make it less of a drag at times. Thanks for any info.
 
Just wanted to preface this by saying, I'm not really that knowledgeable with JavaScript, I'm more of a SQL guy and write Python code on the side. So feel free to correct any errors or add anything I may have missed.

So far, the changes I made have been working for me. I'm almost done with the Exploration Era with this mod on.
To make these changes yourself, go to the cheat panel mod directory and then go to the ui folder. You'll need to change a few lines in two files on there.

In cheat-panel/cheat-panel.js, change lines 6 to 10 to the following:
JavaScript:
import { P as Panel } from '/core/ui/panel-support.chunk.js';
import { MustGetElement } from '/core/ui/utilities/utilities-dom.chunk.js';
import FocusManager from '/core/ui/input/focus-manager.js';
import { b as InputEngineEventName } from '/core/ui/input/input-support.chunk.js';
import {N as NavTray } from '/core/ui/navigation-tray/model-navigation-tray.chunk.js';

In sub-system-dock/panel-sub-system-dock.js, change lines 7 to 11 to the following:
JavaScript:
import ContextManager from '/core/ui/context-manager/context-manager.js';
import FocusManager from '/core/ui/input/focus-manager.js';
import { P as Panel } from '/core/ui/panel-support.chunk.js';
import DialogBoxManager from '/core/ui/dialog-box/manager-dialog-box.chunk.js';
import { Icon } from '/core/ui/utilities/utilities-image.chunk.js';
and then change line 342 to:
Code:
                DialogBoxManager.createDialog_Confirm({

And that should be it, hopefully it works for you guys as well
I made the changes, but the F8 doesn't come up. However, the problem with the progress icons is gone. Any ideas?
 
Just wanted to preface this by saying, I'm not really that knowledgeable with JavaScript, I'm more of a SQL guy and write Python code on the side. So feel free to correct any errors or add anything I may have missed.

So far, the changes I made have been working for me. I'm almost done with the Exploration Era with this mod on.
To make these changes yourself, go to the cheat panel mod directory and then go to the ui folder. You'll need to change a few lines in two files on there.

In cheat-panel/cheat-panel.js, change lines 6 to 10 to the following:
JavaScript:
import { P as Panel } from '/core/ui/panel-support.chunk.js';
import { MustGetElement } from '/core/ui/utilities/utilities-dom.chunk.js';
import FocusManager from '/core/ui/input/focus-manager.js';
import { b as InputEngineEventName } from '/core/ui/input/input-support.chunk.js';
import {N as NavTray } from '/core/ui/navigation-tray/model-navigation-tray.chunk.js';

In sub-system-dock/panel-sub-system-dock.js, change lines 7 to 11 to the following:
JavaScript:
import ContextManager from '/core/ui/context-manager/context-manager.js';
import FocusManager from '/core/ui/input/focus-manager.js';
import { P as Panel } from '/core/ui/panel-support.chunk.js';
import DialogBoxManager from '/core/ui/dialog-box/manager-dialog-box.chunk.js';
import { Icon } from '/core/ui/utilities/utilities-image.chunk.js';
and then change line 342 to:
Code:
                DialogBoxManager.createDialog_Confirm({

And that should be it, hopefully it works for you guys as well
 
Your guess is as good as mine, at this point haha. I'm still unsure how hotkeys work with Civ, so hopefully someone with more JavaScript experience will be able to help us out with this one.
Thanks for the fix! It worked for me! Much appreciated!
 
For the hotkey issue, go into ui/input/hotkey-extender.js and then change the first line to:
JavaScript:
import HotkeyManager from '/core/ui/input/hotkey-manager.chunk.js';

Hopefully that solves it!
 
For the hotkey issue, go into ui/input/hotkey-extender.js and then change the first line to:
JavaScript:
import HotkeyManager from '/core/ui/input/hotkey-manager.chunk.js';

Hopefully that solves it!
That fix made it work for me now, thank you.
 
That fix made it work for me now, thank you.
How are you getting around the tabs disappearing? I uninstalled all mods. I uninstalled and reinstalled the game itself. I made all the tweaks listed above including this hotkey one. However, I still do not the panels/menus in the top left corner. Hitting F8 does nothing for me as well. I am running the game on through Steam and with Windows 11. Not sure what I might be missing?
 
I modified the script using ChatGPT, and fixed the menu in its entirety.
Here is the updated file working with the latest update of Civ7.

let me know if you have any issues

1. download file
2. unzip
3. put it in your mods folder.
4. make sure to enable to mod in game.
5. enjoy :)
 

Attachments

How are you getting around the tabs disappearing? I uninstalled all mods. I uninstalled and reinstalled the game itself. I made all the tweaks listed above including this hotkey one. However, I still do not the panels/menus in the top left corner. Hitting F8 does nothing for me as well. I am running the game on through Steam and with Windows 11. Not sure what I might be missing?
I modified the script using ChatGPT, and fixed the menu in its entirety.
Here is the updated file working with the latest update of Civ7.

let me know if you have any issues

1. download file
2. unzip
3. put it in your mods folder.
4. make sure to enable to mod in game.
5. enjoy :)
 
I am using Steam on my win11 desktop PC. I did the fix. The F8 still doesn't work.
I modified the script using ChatGPT, and fixed the menu in its entirety.
Here is the updated file working with the latest update of Civ7.

let me know if you have any issues

1. download file
2. unzip
3. put it in your mods folder.
4. make sure to enable to mod in game.
5. enjoy :)
 
the first time i got it to integrate into the game, i had to wait till i got the religion button to appear before the mod started showing up. and after that time, the game seemed to have picked up everything correctly :) now i can launch the menu as soon as i start the game
 
Back
Top Bottom