Z1_Contributing - tigert2173/VSFartMod GitHub Wiki

I will go through how users can contribute to the project.

Contribute

Prerequisites:

Additional Recommended Tools:

Setting Up The Unity Project (Initial Creation)

  1. Launch Asset Ripper.
  2. Click File > Open Folder, then select VS48R1 PCFULL\Virtual Succubus_Data.
  3. Wait for the files to load.
  4. View Loaded Files.
  5. Click Export > Export All Files.
  6. Create a new folder for the exported files (e.g., VSExportedAssets).
  7. Select the folder (this will be your Unity project folder).
  8. Click Export Unity Project.

Importing Project Into Unity

  1. Ensure you have the 2022.3.8f1 Editor Version Installed.
  2. Add >> Add project From disk >> Navigate to location of VSExportedAssets\ExportedProject >> Add Project
  3. Launch Project, Error are normal here, we will not be able to rebuild the game, we are just wanting the Assets to modify them and know the locations. 4. After it loads you may likely need to delete the Library Folder and have Unity reconstruct it because of an error.

Setting Up The Unity Project (Asset Bundle Creations)

Create a script in Unity at:

Assets/Editor/CreateAssetBundles.cs

Paste the following code into the script:

using UnityEditor;
using System.IO;

public class CreateAssetBundles
{
    [MenuItem("Assets/Build AssetBundles")]
    static void BuildAllAssetBundles()
    {
        string assetBundleDirectory = "Assets/AssetBundles";
        if (!Directory.Exists(assetBundleDirectory))
        {
            Directory.CreateDirectory(assetBundleDirectory);
        }
        BuildPipeline.BuildAssetBundles(assetBundleDirectory, 
                                        BuildAssetBundleOptions.None, 
                                        BuildTarget.StandaloneWindows);
    }
}

###Building An AssetBundle Click on an asset go to left Inspector >> Down at the bottom click on AssetBundle >> new >> vsfartmod_username (username so you can only set your changes to this asset bundle, this prevents you needing to rebuild everything I've already done.) On Top Bar >> Assets >> Build AssetBundles.