MaFi-Games / Captain-of-industry-modding

Official modding resource for video game Captain of Industry.
https://www.captain-of-industry.com
MIT License
41 stars 40 forks source link

Build Asset Bundles Error #2

Open altmank opened 2 years ago

altmank commented 2 years ago

It looks like I was getting an error in unity using the Build Asset Bundles command due to not having "Unity.Postprocessing.Runtime.dll". I added this DLL and the error went away. Might be needed as well in the DLL list.

JamieRCHI commented 2 years ago

I found that the file as mentioned in the above post is not required.

The DLLs needed to compile the AssetBundle files correctly are shown in the following Batch file. (I changed the original batch file to create Symlinks instead of Hardlinks to allow one to place their Source code on a different drive from the drive that contains the original files.)

create_dll_symlinks.bat:

@echo off

if "%COI_ROOT%" == "" (
    echo Environmental variable COI_ROOT is not defined
    goto :done
)

for %%s in ("Mafi.dll" "Mafi.Core.dll" "Mafi.Base.dll" "Mafi.Unity.dll" "Mafi.ModsAuthoringSupport.dll") do (
    del "%~dp0\%%s"
    mklink "%~dp0\%%s" "%COI_ROOT%\Captain of Industry_Data\Managed\%%s"
)
:done