2019-09-02 15:06:01 +00:00
## Prerequisites
- Visual Studio 2017/2019 (others might work)
- CMake
2019-12-03 23:28:14 +00:00
- Python 3.6 or newer
2019-09-02 15:06:01 +00:00
## Building
2019-12-04 00:21:51 +00:00
Open VS 32-bit command prompt (`vcvars32.bat`) and run the following two commands
2019-02-23 21:44:33 +00:00
2019-09-01 20:45:07 +00:00
```batch
2019-12-04 00:21:51 +00:00
cmake -G"NMake Makefiles" -B build
cmake --build build --target install
2019-02-28 16:50:52 +00:00
```
2019-09-01 20:45:07 +00:00
2019-12-04 10:58:44 +00:00
this will generate `ScrapHack.pyd` in `./build`
2019-09-01 20:54:47 +00:00
2019-12-03 23:28:14 +00:00
## Usage
2019-11-20 19:48:15 +00:00
2019-12-03 23:28:14 +00:00
- create a `lib` folder next to `Scrapland.exe`
- copy `ScrapHack.pyd` into said folder
- open the ingame console (Ctrl+^)
- type `import ScrapHack`
2019-12-04 00:21:51 +00:00
- type `$help`
2019-12-03 23:28:14 +00:00
- Done!
## Notes
2019-12-04 10:59:49 +00:00
(this has only been tested with a (cracked/unpacked/de-obfuscated) `Scrap.exe` v1.0 with a SHA1 checksum of `d2dde960e8eca69d60c2e39a439088b75f0c89fa` , other version will crash if the memory offsets don't match)
2019-11-20 19:48:15 +00:00