-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from IlliaYalovoi/major-code-rewrite
Major code rewrite
- Loading branch information
Showing
10 changed files
with
133 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
all: build-windows | ||
|
||
# Not powershell compatible. Meant to be used from unix shell | ||
build-windows: | ||
env GOOS=windows GOARCH=amd64 go build -o ./build/universal-checksum-patcher-windows.exe *.go | ||
env GOOS=windows GOARCH=amd64 go build -o ./build/universal-checksum-patcher.exe *.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# Universal Paradox games checksum patcher | ||
|
||
This is a lightweight patch, that forces game ignore checksum when starting and loading ironman game. | ||
This is a patch, that forces game ignore checksum when starting and loading ironman game. | ||
|
||
In other words, yes, it gives you the ability to get achievements with mods enabled. And not giving you ability to use game console or connect to servers with other checksum. | ||
|
||
# Installation | ||
|
||
1. Download latest binary of patcher from releases (or build it in case you know what you doing) | ||
2. Unzip it in game directory (rightclick on game on steam > Manage > Browse local files) | ||
3. Run paradox-checksum-patcher.exe or paradox-checksum-patcher | ||
1. Download latest binary of patcher from releases (or build it if you know what you doing) | ||
2. Unzip it in game directory (right click on game on steam > Manage > Browse local files) | ||
3. Run universal-checksum-patcher.exe | ||
|
||
Conrats, you done! In case you see unsupported version error most likely Paradox broke something and all you can do is wait until i update patch. Most likely i'll update patch when i decide to play, so feel free to get needed byte code and modify source code (i'll merge your pull request if you decide to do that. Or create fork, i don't care) | ||
Congrats, you're done! In case you see unsupported version error most likely Paradox broke something and all you can do is wait until I update patch. Most likely i'll update patch when I decide to play, so feel free to get needed byte code and modify source code (I'll merge your pull request if you decide to do that. Or create fork, I don't care) | ||
|
||
# Supported games and platforms | ||
| | Windows | Linux | MacOS | | ||
|-----------------------|------------------------|------------------------|--------| | ||
| Europa Universalis IV | Yes :heavy_check_mark: | No :x: | No :x: | | ||
| Hearts of Iron IV | Yes :heavy_check_mark: | No :x: | No :x: | | ||
| | Windows | Linux(native) | MacOS | | ||
|-----------------------|------------------------|---------------|--------| | ||
| Europa Universalis IV | Yes :heavy_check_mark: | No :x: | No :x: | | ||
| Hearts of Iron IV | Yes :heavy_check_mark: | No :x: | No :x: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package main | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrNoMatch = errors.New("cannot detect bytes pattern to patch. Most likely patcher are outdated due to game updates") | ||
ErrCantLocate = errors.New("cannot locate file in current directory") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package main | ||
|
||
const ( | ||
limit = 14 | ||
startLength = 3 | ||
endLength = 6 | ||
) | ||
|
||
var ( | ||
start1 = []byte{0x48, 0x8B, 0x12} | ||
start2 = []byte{0x48, 0x8D, 0x0D} | ||
start3 = []byte{0x48, 0x8B, 0xD0} | ||
|
||
end = []byte{0x85, 0xC0, 0x0F, 0x94, 0xC3, 0xE8} | ||
replacement = []byte{0x31, 0xC0, 0x0F, 0x94, 0xC3, 0xE8} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.