City Of Brass [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Upload your cheat tables here (No requests)
Post Reply
User avatar
SunBeam
Administration
Administration
Posts: 4932
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 4630

City Of Brass [Engine:Unreal 4.21] - Console enabler, Dumper and more..

Post by SunBeam »

[ 14 Apr 20 - First Release ]

Game Name: City Of Brass
Game Vendor: Epic
Game Version: 1.6.2
Game Process: COB-Win64-Shipping.exe
Game File Version: 4.21.2.0

[Link]

Hello folks.

Attached below is a DLL that will do the following:
  • Run threaded UE4 code to create the UConsole UObject, member of GameViewportClient; you may then use Tilde (~) key to open up the console. As far as what you can or can't do with the console, well.. I'm not the game developer :) You'll have to google around for commands, test stuff out and return with feedback. As opposed to just asking "what are the commands?" and doing shit about it, waiting to be spoon-fed.
  • Will dump the UE4 FNameArray and UObjectArray, along with their addresses. What this means is you can then know what the fuck you're looking at in memory, when debugging/tracing or mapping structures, and come up with your own conclusions. Just like I did with my table below.
CityOfBrass_Console_Dumper.rar
pass: sunbeam
(181.72 KiB) Downloaded 80 times

Instructions:
  • Download the archive; extract content to a folder of your choice.
  • Run the game, get to main menu.
  • Run IGCSInjector.exe. You can close it when asked.
  • Takes 1-2 seconds for the DLL to find the stuff, StaticCreate the Console UObject and dump Names/Objects to disk in the Win64 folder.
  • You may then use Tilde (~) key to open up the console in-game.

Notes:
  • The dump location is your game folder (e.g.: C:\Games\CityOfBrass\COB\Binaries\Win64). You will find 2 files there: NamesDump.txt and ObjectsDump.txt. You'll be very interested in the 2nd one :)
  • The .txt files are generated at "run-time". What this means is if you transition in-game from one map to another or from main menu to game world and backwards, you need to re-dump them. Why? UE4 destroys and recreates UObjects; re-initialization. To re-dump the .txt files press Numpad / (no, key can't be changed).
  • If Tilde (~) key doesn't work then you need to head to %LocalAppData%\COB\Saved_EGS\Config\WindowsNoEditor folder. Folder might be a bit different if you're not playing the Epic Store version ('Saved_EGS' might be just 'Saved'). Just press WinKey+R and paste the path in, then Enter to go there. You will see a file here called Input.ini. Open it and paste the two lines below:
    [/Script/Engine.InputSettings]
    ConsoleKey=Tilde
    You may change Tilde to any key you like (e.g.: F10). Save the file and you're done.
Commands:
  • god
    Makes you invulnerable. You'll need to re-enable it if you exit to main menu, then back in-game, load a save/quicksave or transition in any other way that makes the loading screen show up. Why; re-initialization. The god flag is a BOOL within your Character structure. When you reload the game, all structure are re-initialized by the Engine and their default statuses set in place. Which means your god bool will be reset. NOTE that if you enable god and save your game with it enabled, the next time you reload, it will be enabled :P State seems to be saved in the save file.
  • slomo <float>
    Slows down, accelerates or sets game speed back to normal, depending on the value you give it. (e.g.: slomo 0.5; slomo 1; slomo 1.5)
  • teleport
    Will teleport your character to the location appointed by your mouse pointer. Simply aim some spot, then ~ and teleport [Enter]. You'll instantly get to your targeted location.
  • playersonly
    Currently is designed to freeze any AI in place, including yourself. In older versions of the Engine, this was freezing everything but you. Guess Epic changed their mind. Could probably be tweaked through code hooks to exclude the player Character from the list of frozen entities.
  • toggledebugcamera
    This will detach current camera from the player (in reality, it changes controller to the newly created camera UObject) letting you fly around and explore the area. You can use it together with 'teleport', for example, to move your player to the location where the camera is pointing. Just type it in the console once you've decided for the spot.

Image

Also a table that allows you to do several things:
  • [ Enable ]
    Main hook, you need this active for the rest to work.
  • Hook UCheatManager execs (execFly, execGhost, execWalk, execGod)
    The script restores the core of fly, ghost, walk console commands. You need this enabled for the subsequent scripts underneath it to work. Also, if you plan on using "god" command, the script has to be enabled (the developers removed UCheatManager::execGod, so I bypassed it).
  • Scripts
    • God Mode
      Flips the bCanBeDamaged BoolProperty, thus emulating the effect of the "god" console command. You get to be immune to any kind of damage.
    • Unlimited Map Time
      Gets TotalLevelTime + CampaignTick and writes it to RemainingLevelTime. Meaning instant freeze of the current map timer.
    • Multi-Jump (press Space multiple times)
      Allows multiple jumps if Space bar is pressed by increasing JumpMaxCount IntProperty to 999 (yeah, chose this value; bite me :P).
  • For anything else, see [ Debug ] section. Please, no "what does this one do?" questions. Test them yourself to get the answer. Some are just tracking values, some can be changed.
COB-Win64-Shipping.CT
1.0
(43.6 KiB) Downloaded 87 times

BR,
Sun

How to use this cheat table?
  1. Install Cheat Engine
  2. Double-click the .CT file in order to open it.
  3. Click the PC icon in Cheat Engine in order to select the game process.
  4. Keep the list.
  5. Activate the trainer options by checking boxes or setting values from 0 to 1

Post Reply

Who is online

Users browsing this forum: admantx, anarchyangel, DotBot, Google [Bot], Google Adsense [Bot], Nerroth, snailsmog, ThukkataAB, vatruska, YandexBot