WerWolv / EdiZon_CheatsConfigsAndScripts

The official EdiZon Editor Config and Editor Script repository.
478 stars 259 forks source link

Knights of Pen and Paper 2 #63

Open Conan179 opened 5 years ago

Conan179 commented 5 years ago

Would that be possible to add 2 for knights of pen and paper? Just changing the gold value would take me a long time.

WerWolv commented 5 years ago

Probably but definitely not without a save dump. Provide some more information and data and you'll get more help

Conan179 commented 5 years ago

No problem, Write me what you need and I'll send it to you. My English is not the best, i speaking German.

WerWolv commented 5 years ago

To get started with anything we need you to dump your save file and send it to us. Also write down some values from your save file (Like item count, coin count, etc.)

Conan179 commented 5 years ago

Here is the Export from Sav with Checkpoint

2019021518381300-73c3a2494c7b6fee83d5006250c6a6b1

Its calld "Gold" i have maked on the Screenshot.

WerWolv commented 5 years ago

Research

The majority of the save file is zlib compressed. The compressed section goes from 0x04 to 0x30E0 which decompresses into a 4MB save file.

Integer Key-Values

[KEY_STRING_LENGTH][KEY_STRING][DATA]

String Key-Values

[KEY_STRING_LENGTH][KEY_STRING][VALUE_STRING_SIZE][VALUE_STRING]

String List

[KEY_STRING_LENGTH][KEY_STRING][??LIST_LENGTH??][LIST_STRINGS] LIST_STRINGS is separated by the | (Pipe) symbol.

Conan179 commented 5 years ago

Oh ok

Conan179 commented 5 years ago

Is the question allowed, if any information is missing?

WerWolv commented 5 years ago

I made a small python script that unpacks and repacks the save file. Didn't look much further into it though because I'm working on some new stuff for edizon itself. After that I should hopefully have some time again for this game

Conan179 commented 5 years ago

😢