Vincernio, post: 47723, member: 17790 wrote:Update:
The money is stored as a float based around silver as the whole integer then the copper as the following decimals - ex 1 silver 25 copper = 1.25 (still haven't seen anyone figure out how gold is stored though...
Math is simple. So is gold. Since silver is in the ones and tenths place, gold is of course in the hundredths place and above.
I would like to point out a save file editing method. This method allows the expansion of inventory size, research point values, item stack size, and I'm sure there's plenty more. The code is pretty awful on the eyes so I don't bother looking for long. I'd like to see what someone else can do with this and if they could potentially expand on this idea further with a proper save file editor. This is just a quote of my previous post
here.
Raeffion, post: 47898, member: 17899 wrote:
While this is in another language, I've found that [Link]was helpful. I didn't really watch much, but it shows a save file editing method around 2:50. Once I saw you could open the file with UltraEdit, I just tinkered around. The video may have shown how to do the things I will list but I'm not sure since I never got past 2:50.
The save file code looks horrendous to navigate but you can change a few values easily enough; such as your red, green, and blue research points. You cannot change the stamina to go above 100, but you can change your inventory to be 100 slots as well as change the quantity of an item already in your inventory. Lots of other edits you can do as well.
Research points/inventory size/etc. Edits
1. Navigate to your save file location, default is C:Users[Username]AppDataLocalLowLazy Bear GamesGraveyard Keeper
2. Open your save file with UltraEdit (There may be alternatives but all I've tried just crash on loading the file, like Atom and Notepad++)
3. Find the string in line 1 that starts with... {"_res_type":["inventory_size","sanity","energy","_sloth","_wrath","_envy","_glut","_lust","_pride",
Remember the position of values you want to change in the string. For instance, if I wanted bigger inventory, inventory_size is the first value, so this will be the first value of the next string I change.
4. Directly after this long string will be a string of numbers that probably looks something like this: "_res_v":[20.0,100.0,100.0,250.0,250.0,250.0,250.0,250.0,250.0,...] Remembering the position of the values in the string, change the number desired.
For me, this would be the first value, from 20.0 to 100.0 or whatever I want.
Research points are known as just "r" "g" and "b" in the string. Rather difficult to spot, but if you don't have them in the string yet then it can be easy (so like, brand new save). Just add "r", "g", "b" to the end of your first string and make the values whatever you want in the next string in the same position.
To dupe items:
1. Navigate to your save file location, default is C:Users[Username]AppDataLocalLowLazy Bear GamesGraveyard Keeper
2. Open your save file with UltraEdit (There may be alternatives but all I've tried just crash on loading the file, like Atom and Notepad++)
3. The simplest way to find each item in your inventory is to press Ctrl+F and type "id":"
The ones in your inventory are usually in the topmost lines (depending on how much you have in your inventory).
4. Find the item name after the highlighted phrase and change the value to whatever you want
5. Load the save in game.
If you change the value of an item above the stack size, it will work. I usually do 1k per item that I want. Be weary that sometimes the items will unstack given improper circumstance so don't aim too high if it's probable that it will unstack. Things that may trigger it to unstack is if you pick up the item in question (this can't happen unless there is inventory room for it to unstack, so it will stay on the floor), if you transfer it via trade or trunk, and some other things I haven't found yet.