Git Product home page Git Product logo

eu4consolepatcher's Introduction

EU4ConsolePatcher

A simple memory patcher which enables the internal developer console in ironman mode

Download

  • Latest pre-compiled binary releases can be found in the release section
  • Basic cheatengine script which does the same as this simple tool can also be found in the release section

Todo

  • Rework everything
  • Add support to wait for target process
  • Add CK2 / CK3 / HOI4 / I:R / Stellaris support

Latest supported EU4 version

  • 1.37.0.0 (Inca)
  • Should work with newer versions too

Build instructions

Requirements

  • Windows 10 or later

Windows (ui)

  • Clone repository
  • Open EU4ConsolePatcher.sln in your Visual Studio IDE
  • Choose either Debug or Release configuration
  • Choose either x86 or x64 platform
  • Run build

Windows (cmdline)

  • Start cmdline
  • Execute vcvarsall.bat [arch]
    • e.g. vcvarsall.bat x64
    • vcvarsall.bat is f.e. located at X:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\ (VS Community 2017)
  • Navigate to EU4ConsolerPatcher project folder
  • Run nmake release or nmake debug

Usage

  • Start Europa Universalis IV
  • Start a new ironman game or load a previously saved game
  • As soon as the game has loaded, start EU4ConsolePatcher.exe
  • Open the ingame console with ^ and enter your commands, e.g. help
  • Have fun
  • Sample video: https://youtu.be/BMrR6EO4OAw

eu4consolepatcher's People

Contributors

steeno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eu4consolepatcher's Issues

Empty archive

Hi Steeno and thanks for your work!

Just wanted to say that the pre-compiled EU4ConsolePatcher-Release-x64-static-v1.0.4.zip and
EU4ConsolePatcher-Release-x86-static-v1.0.4.zip appear to be empty. I can't seem to unzip them.

Have a good day. :)

Doesn't support 1.31.5 and later?

Testing this out against the latest patches gives a pattern not found error. Any chance this could be updated or is it not working from my side only?

Program blocked by antivirus program and does not run

As the title reads. Chrome, windows, and antivirus program warns and does not let me run the program (well, not without forcing myself). It's probably just a bug, and it works perfectly after forcing to run the patcher. I just thought you'd like to know.
Great job. Really appreciated.

Isnt finding eu4

No idea why this isnt working

This is what it says in cmd when loading

eu4.exe process found
Trying to find module eu4.exe
CreateToolhelp32Snapshot failed: 12b
eu4.exe module could not be found, has the target app completely loaded?

Previous versions have worked. This seems to be the case with the premade static as well as ones i assemble using Visual studio. No idea why it is doing this

I'm having trouble creating the .exe and building.

Apologies for my inexperience, but could you say, record a video of how to build. I've experimented with code but never actually built anything. When I try to build it, it has an error saying the Windows SDK version could not be found or something. That I don't have version. 10.0.17134.0

First memory pattern could not be found (EU4 version 1.31.3)

I've been trying to get this to work. I used the precompiled version and compiled the latest version of the EU4ConsolePatcher (v1.30.4.2) myself but no memory pattern could be found.

I'm using Windows 10 and got EU4 from steam. I'm using the latest EU4 version 1.31.3.

This is the console output of the release x64 build

Trying to find process eu4.exe
eu4.exe process found
Trying to find module eu4.exe
eu4.exe module found
Trying to find memory patterns
First memory pattern could not be found
Press any key to continue . . .

This is the console output of the debug x64 build

Trying to enable debug privileges for the current process
Debug privileges enabled
Trying to find process eu4.exe
process name: [System Process]
process name: System
process name: Registry
process name: smss.exe
process name: csrss.exe
process name: wininit.exe
...
  removed most process names because they where not necessary and to reduce the length of this post
...
process name: cmd.exe
process name: conhost.exe
process name: chrome.exe
process name: chrome.exe
process name: eu4.exe
th32ProcessID: 0x402c
th32ModuleID: 0x0
eu4.exe process found
Trying to find module eu4.exe
module name: eu4.exe
modBaseAddress: 0x7ff690460000
modBaseSize: 0x26ec000
eu4.exe module found
Trying to find memory patterns
processHandle: 0x00000000000000B4
BaseAddress: 0x00007FF690460000
RegionSize: 0x1000
PageSize: 0x1000
bytesRead: 26ec000
pattern: 74 ?? C6 44 24 28 00 41 B8 35 00 00 00
offset: 0x0
Pattern not found
First memory pattern could not be found

If you need more information or log files let me know.

Update:
I've tested the EU4ConsolePatcher on an older version of EU4 (1.30.1) and here it worked just fine. I'll start looking for the EU4 version where it stopped working

worked once, refuses to work again – Windows 11 ARM

worked once on first try, refuses to work again, patch 1.34.5 (Steam)

Windows 11 for ARM, running via Parallels 16 on M1 MacBook Air

this is what I get after running the debug build first time after VM restart:

process name: eu4.exe
th32ProcessID: 0x6a0
th32ModuleID: 0x0
eu4.exe process found
Trying to find module eu4.exe
module name: eu4.exe
modBaseAddress: 0x7ff7e93e0000
modBaseSize: 0x2699000
eu4.exe module found
Trying to find memory patterns
processHandle: 0x000000000000015C
BaseAddress: 0x00007FF7E93E0000
RegionSize: 0x1000
PageSize: 0x1000
bytesRead: 2699000
pattern: 74 ?? C6 44 24 28 00 41 B8 35 00 00 00
offset: 0x1524a87
First memory pattern found
processHandle: 0x000000000000015C
BaseAddress: 0x00007FF7E93E0000
RegionSize: 0x1000
PageSize: 0x1000
bytesRead: 2699000
pattern: 74 ?? C7 04 25 00 00 00 00 39 05 00 00
offset: 0x1524c77
Second memory pattern found
Trying to apply patches
Trying to patch: 0x7ff7ea904a87:1
processHandle: 0x000000000000015C
BaseAddress: 0x00007FF7EA904000
RegionSize: 0x4c3000
PageSize: 0x1000
bytesWritten: 1
Patch applied successfully
Trying to patch: 0x7ff7ea904c77:1
processHandle: 0x0000000000000158
BaseAddress: 0x00007FF7EA904000
RegionSize: 0x4c3000
PageSize: 0x1000
bytesWritten: 1
Patch applied successfully
Press any key to continue . . .

this is what I get when I run the debug build again

process name: eu4.exe
th32ProcessID: 0x6a0
th32ModuleID: 0x0
eu4.exe process found
Trying to find module eu4.exe
module name: eu4.exe
modBaseAddress: 0x7ff7e93e0000
modBaseSize: 0x2699000
eu4.exe module found
Trying to find memory patterns
processHandle: 0x000000000000015C
BaseAddress: 0x00007FF7E93E0000
RegionSize: 0x1000
PageSize: 0x1000
bytesRead: 2699000
pattern: 74 ?? C6 44 24 28 00 41 B8 35 00 00 00
offset: 0x0
Pattern not found
First memory pattern could not be found, using fallback offset
First memory pattern found
processHandle: 0x000000000000015C
BaseAddress: 0x00007FF7E93E0000
RegionSize: 0x1000
PageSize: 0x1000
bytesRead: 2699000
pattern: 74 ?? C7 04 25 00 00 00 00 39 05 00 00
offset: 0x0
Pattern not found
Second memory pattern could not be found, using fallback offset
Second memory pattern found
Trying to apply patches
Trying to patch: 0x7ff7ea892a77:1
processHandle: 0x000000000000015C
BaseAddress: 0x00007FF7EA892000
RegionSize: 0x535000
PageSize: 0x1000
bytesWritten: 1
Patch applied successfully
Trying to patch: 0x7ff7ea892c67:1
processHandle: 0x000000000000015C
BaseAddress: 0x00007FF7EA892000
RegionSize: 0x535000
PageSize: 0x1000
bytesWritten: 1
Patch applied successfully
Press any key to continue . . .

in both cases doesn’t seem to do anything though (console says commands are disabled in ironman or whatever the message is)

when running the release build the window closes itself almost instantaneously, after “First memory pattern found” appears

patcher works fine on a regular x86 windows laptop

Not working with 1.29

Hey buddy, with the 1.29 update ( updated eu4 to 64 bit) this doesnt work anymore. Might be something different but i suppose that it is this. Would be awesome if you would take the time to fix this again.

Console just says "f"

Console worked perfectly for a week and no issues were found, but now whenever I try to use the console it just says "f" whenever I type something in. Ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.