ScrapHacks/ScrapHacks/README.md

34 lines
709 B
Markdown
Raw Normal View History

## Prerequisites
- Visual Studio 2017/2019 (others might work)
- CMake
- Python 3.6 or newer
## Building
Open VS 32-bit command prompt (`vcvars32.bat`)
2019-02-23 21:44:33 +00:00
2019-09-01 20:45:07 +00:00
```batch
mkdir build
cd build
2019-11-20 19:48:15 +00:00
cmake -G"NMake Makefiles" ..
mkdir bin
cd bin
cmake --build .. --target install
2019-02-28 16:50:52 +00:00
```
2019-09-01 20:45:07 +00:00
this will drop the compiled files into `./build/bin`
## Usage
2019-11-20 19:48:15 +00:00
- create a `lib` folder next to `Scrapland.exe`
- copy `ScrapHack.pyd` into said folder
- open the ingame console (Ctrl+^)
- type `import ScrapHack`
- Done!
## Notes
(this has only been tested with a (cracked/de-obfuscated) `Scrap.exe` v1.0 with a SHA1 checksum of `d2dde960e8eca69d60c2e39a439088b75f0c89fa`, other version might crash if the memory offsets don't match)
2019-11-20 19:48:15 +00:00