Rayoz12's Cheat Panel

Rayoz12's Cheat Panel Mod v0.0.4

After edit those codes, the pigeon appear on the screen, but no menu seen clicking on the pigeon. Also, pressing F8 no reaction.
I am also having the same issue after making the suggested changes to the panel-sub-system-dock.js file. The second dove/pigeon icon appears but nothing happens when clicking on it, F8 also has no reaction. Any ideas @Kevroids ?
 
Not yet......
I am also having the same issue after making the suggested changes to the panel-sub-system-dock.js file. The second dove/pigeon icon appears but nothing happens when clicking on it, F8 also has no reaction. Any ideas @Kevroids ?

Hey all, I was able to get it to work by taking the most recent release from Rayoz12 and first doing this:

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

And then this:

What got it to work for me was a 1 line change to my original edits.

Go to your Cheat Panel mod folder, then go to ui\sub-system-dock. Open up the panel-sub-system-dock.js file in notepad or a text editor and make this edit at line 10:

JavaScript:
import { a as DialogBoxManager} from '/core/ui/dialog-box/manager-dialog-box.chunk.js';

So the 5 import statements at the top should look like:

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 { a as DialogBoxManager} from '/core/ui/dialog-box/manager-dialog-box.chunk.js';
import { Icon } from '/core/ui/utilities/utilities-image.chunk.js';

Hope it works out for yous!

Instructions per posts from @Kevroids earlier in the thread, in that order. Let me know if it works for ya 👍
 
Does anyone have a working version of this Mod, i followed the instructions above and it works fine but it removes the Global Relations Panel and the City-State Bonuses Panel from the game. Does anyone know how to stop that from happening.
 
Hi,

Here is the fix for the Gold Button.
Modules > UI > cheat-panel > Edit cheat-panel.js

Scroll down till you find the class addMoney and replace it with

JavaScript:
addMoney() {
        const player = Players.get(GameContext.localPlayerID);
        if(player) {
            Players.grantYield(player.id, YieldTypes.YIELD_GOLD, 1000);
        }
    }


1.3.2 gold button is not working.... please fix.... :worship::worship::worship:
 
Fix gold button:
No need to change anything but add an -1 parameter to the existing.

Line 115:
treasury.changeGoldBalance(50000,-1);

Should look like this:
addMoney() {
console.error("cheat-panel: Money Button");
const player = Players.get(GameContext.localPlayerID);
if(player) {
const treasury = player.Treasury;
console.error(`[Cheat Panel] Gold Balance: ${treasury.goldBalance}`);
treasury.changeGoldBalance(50000,-1);
}
}
 
Fix gold button:
No need to change anything but add an -1 parameter to the existing.

Line 115:
treasury.changeGoldBalance(50000,-1);

Should look like this:
addMoney() {
console.error("cheat-panel: Money Button");
const player = Players.get(GameContext.localPlayerID);
if(player) {
const treasury = player.Treasury;
console.error(`[Cheat Panel] Gold Balance: ${treasury.goldBalance}`);
treasury.changeGoldBalance(50000,-1);
}
}
Thank you for the expert help...
 
Back
Top Bottom