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
 
Back
Top Bottom