Go to file
t0stiman 2574aea703 update readme again 2024-01-15 18:58:14 +01:00
ItemBundleBuilder initial commit 2024-01-05 14:38:32 +01:00
items/Blahaj initial commit 2024-01-05 14:38:32 +01:00
.gitattributes initial commit 2024-01-05 14:38:32 +01:00
.gitignore update gitignore 2024-01-08 17:24:59 +01:00
LICENSE initial commit 2024-01-05 14:38:32 +01:00
README.MD update readme again 2024-01-15 18:58:14 +01:00
info.json update the Jasons 2024-01-05 16:45:16 +01:00
package.ps1 initial commit 2024-01-05 14:38:32 +01:00
repository.json update the Jasons 2024-01-05 16:45:16 +01:00
screenshot.png initial commit 2024-01-05 14:38:32 +01:00

README.MD

Blåhaj

This mod adds Blåhaj to Derail Valley.

screenshot.png

How to install

  1. install Unity Mod Manager(UMM)
  2. install Custom Item Mod
  3. download this mods zip from the Releases tab and manually extract it into DV's mod folder

After installing, you can buy the item in the shops.

How to create your own custom item

You can use this project as an example. In a nutshell, these are the steps you need to take:

  1. Download this repository.
  2. The ItemBundleBuilder folder is a Unity project. Open it with Unity Hub.
  3. Replace the assets with your own.
  4. Open Assets/DontBuildThis/SampleScene.
  5. Click on the Script object.
  6. In the inspector -> Bundle Builder, fill in a bundle name and set the export folder to <your mod folder>/items/Blahaj/.
  7. Click the button to build the asset bundle. Note: files in the DontBuildThis folder will not be included in the bundle.
  8. Edit <your mod folder>/items/Blahaj/item_info.json to your liking.

Name = the name of your custom item
Description = description of the item (shown in the shops)
Amount = How many of this item the player can buy. If they buy this amount, the item will be out of stock.
Price = price in DV dollars
AssetBundleName = name of the asset bundle (from step 6)
PrefabPath = path to the prefab of the item
IconStandardPath = Path to the standard icon. This will be the icon of the item in the players inventory.
IconDroppedPath = Path to the dropped icon. This icon will be shown in your inventory when you've dropped the item. For vanilla game items, this is a blue (#72A2B3) silhouette of the item.

  1. Go to <your mod folder>/items and rename the Blahaj folder to the name of your item (doesn't have to be an exact match).
  2. To copy the required files to DV's mod folder, you can use the package.ps1 PowerShell script. Before you execute it, set your DV installation folder in the first line of the script.
    If you don't know how to use PowerShell, you can also manually copy the files over. Just replicate the file structure of this mods zip.

Credits

"Blahaj" (https://skfb.ly/oGwQt) by Kaine_G is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).