Darkwood

Darkwood

Not enough ratings
How to mod Darkwood (basic)
By Meep
This guide is aimed to help players looking to lightly mod the game, whether that be through the save file or asset files.
I will explain how to mod the resource file with UABEA (Unity Asset Bundle Extractor Advanced) and how to mod the save file.
This my first guide on steam, so please leave feedback on what I can improve on this.
   
Award
Favorite
Favorited
Unfavorite
What to install
Please note: this program is just what I use, but you might be able to use other programs too. This guide is also only meant for Windows, but it might work for Mac and Linux.

If you want to mod the resource file, you will need to download UABEA.
UABEA[github.com]

Modding the save file
This section is basically just Scofa's guide but a little more in depth

How to get into the save file: Look into Scofa's guide.

**When messing around with the save file, always remember to create a backup save, lest you corrupt your precious save file and lose all your progress.**

**If you don't know already, press ctrl + f and type in the word you are looking for into the box, it will then highlight the word for you to see, this is especially useful due to the clutter that is this save file**



The save file should look like a wall of text:



I will explain the most important parts of this wall of text, from top to bottom.



By default, you do not have any health or stamina upgrades, but you can get 1 health upgrade after getting the vitality skill via the oven.

- Health upgrades increase your maximum health, they work in increments of 1/2 a health bar per upgrade. Your total health by default is 100 (2 bars of 50 health = 100 health) and you're adding 25 max health (1/2 a health bar) per upgrade

- Stamina upgrades increase your maximum stamina, they work in increments of 1 bar per upgrade

- Lifes are the amount of lives you have (only applies to hard mode and above)



- iS is the inventory of the container, whether that be the player, a wardrobe, or a corpse

- hS is the hotbar of the player

- slotCount is the total slots in the container, increase the value of this to add more slots, giving you more storage. Do note that increasing the slot count of your inventory and hotbar will continuously add rows of 1 and 2 slots respectively until the slots go off the screen, the max is 18 slots for the hotbar and 36 slots for the inventory, though it will depend on the resolution and size of your screen. Also, you can change the storage size of workbenches up to 108




- slotId is the id of a slot in the inventory starting from 0, these will be important for spawning in and finding items

- type is the item in the slot, for example: "type" : "ammo_single_shotgun" is a shotgun shell, use this field to input the name of the item you want, though you must input its "code" name and not the name in game, you will have to do some digging to find it.

Here is a list of all firearms and ammo in the game:

weapon_pistol_01_pellet (pellet pistol)
weapon_pistol_02_semi (pistol)
weapon_pistol_03_oneShot (homemade pistol)
weapon_shotgun_01_breakAction_Double (double barrel shotgun)
weapon_shotgun_02_pumpAction (pump action shotgun)
weapon_shotgun_03_singleShot (single barrel shotgun)
weapon_shotgun_04_fullAuto_ZePSUTY (pump action shotgun but with no pump and full auto)
weapon_shotgun_05_oneShot (homemade double barrel shotgun)
weapon_rifle_02_boltAction (hunting rifle)
weapon_rifle_01_pellet (pellet rifle)
weapon_submachine_01_full (submachine gun)
weapon_assault_01_burst (assault rifle)
weapon_flamethrower_military (broken)(the flamethrower you use to burn the being)
weapon_flamethrower_homeMade (broken?)

ammo_clip_mediumCal (rifle mag)
ammo_clip_smallCal (pistol mag)
ammo_single_pellet (pellet)
ammo_single_shotgun (shotgun shell)
ammo_single_mediumCal (rifle round)

- durability is the durability of a melee weapon and the "lifespan" of a lighting item (e.g. the amount of time a flashlight or torch gives off light before it burns out or runs out of battery), or the amount of gasoline in a gas can, set this value between 0 and 999 to get a *nearly* unbreakable melee weapon or a lantern that will take *nearly* forever to burn out

- amount is the amount of items in the slot and the amount ammo in a gun set this value between 1 and 999, do know that items that can stack above their regular limit, but you can't put items into a stack above that item's stack limit, unless you install the Item stacks 999 mod on Nexus mods or change the value yourself *(see Modding ASSETS files for more information)*. Change this amount to get a gun with an *almost* bottomless mag.

- currentTime is the current time in the game, change this value to give yourself more time in the day, I don't know what the exact value to time ratio is, but "currentTime" :826 = 17:16 in game

-workbenchLevel is the upgrade level of the workbench, set this value between 1 to 8




Combinations are the 4 digit codes to locked containers/ doors. You can find the combination to anything within the save file, just hit ctrl + f , type in "combination" and search for the code by looking at the name associated with the code.

*I don't know which combination is correct, just try both and see which one works
Modding ASSETS files
**When messing around with game files, always remember to create a backup file, lest you corrupt your game.**

Now, I will be showing you how to modify the resources file. For now, I only know how to modify MonoBehaviors and GameObjects, so that is what I will be showing. Hopefully, you'll be able to do more with this knowledge.

To demonstrate, I will change the damage value of the shovel from 25 to 30

Step 1. Open UABEA







Step 2. Click "File" in UABEA and open the "resources" file located in "Darkwood_Data" located in the game folder






Step 3. Click "view", then "filter", then "deselect all", and then click only "GameObject" and "MonoBehavior" as these are the only files we will be touching, remember to click the x and exit out of the filter to apply it. The filter should look like this:




Step 4. Now that there are only GameObject and MonoBehavior files, press ctrl + f and type in "GameObject shovel" exactly, otherwise you will not find it. If done correctly, you should see this:




Step 5. Now that you've found the GameObject file, select it and click "View Data" on the panel on the right, this window should popup:




Step 6. In this window:
- open (double click on or click on the arrow next to it) "vector m_Component"
- then open "Array Array (size 4)", then "1", then "ComponentPair data"
- then "PPtr<Component> component"
- after all that, find "SInt64 m_PathID" and the number next to it, memorize or write down that number, its what we want.




Step 7. Exit out of "View Data", click "View", then "Go to asset" and put in the number from before into "Path ID". It should look like this:



Step 8. Click "Ok", now you should see this:




Step 9. Click "Edit Data" on the right side panel to open up the MonoBehavior file, you should see this:



Step 10 (the best part). Scroll down until you find "0 int damage" and change the value, for now, I will change the damage to 30. If done right, you should see this:



Step 11. Click "OK" on the window to save your changes, click "File", and then "Save" to save the changes made in the resource folder.




Step 12. Close out of the UABEA program and start up Darkwood, if done correctly, your shovel will now do more damage.

Congratulations! you have successfully modded the game.

With this knowledge, you can now modify the values of any object in the game! Do with it what you will.

For those who are wondering why Steps 7-10 are needed, here is why:
During my experimentation and research, I found out that you can't edit GameObject files directly, but you can edit their components, that being the MonoBehavior. So I looked at the MonoBehaviors and saw that they don't have specific labels, so you can't tell them apart. That meant you would need to get the file ID of the MonoBehavior correspondent to the GameObject (Step 6 & 7) to find the specific MonoBehavior. After that, you could edit any value you wanted and save the changes. Its complex, but not that hard.
End
Credits:

Scofa - helped me understand the save files - check their guide out.

Savalige - introduced me to UABE and UABEA, the programs I use to mod - check their mod[www.nexusmods.com] out .

MeepDeCruzo - asked me how I made my mod