Insprill / dv-multiplayer

A Derail Valley mod adding multiplayer to the game.
Apache License 2.0
33 stars 16 forks source link

Add a list of dependencies and how to install them to the readme #32

Closed t0stiman closed 10 months ago

t0stiman commented 10 months ago

I'm trying to build this project and having to guess what dependencies I need based on the code and .csproj. I'm stuck on acquiring I2.Localization, that seems to be a paid Unity plugin...

CODEYXone commented 10 months ago

Hi! This seems to be an issue with the Directory.Build.Targets file. Have you checked that the paths listed in the file are correctly set to their corresponding target?

For example:

<Project>
    <PropertyGroup>
        <DvInstallDir>C:\SteamLibrary\steamapps\common\Derail Valley</DvInstallDir>
        <UnityInstallDir>C:\Program Files\Unity\Hub\Editor\2019.4.40f1\Editor</UnityInstallDir>
        <ReferencePath>
            $(DvInstallDir)\DerailValley_Data\Managed\;
            $(DvInstallDir)\DerailValley_Data\Managed\UnityModManager\;
            $(UnityInstallDir)\Data\Managed\
        </ReferencePath>
        <AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath);</AssemblySearchPaths>
    </PropertyGroup>
</Project>

These are the important ones you need to change:

<DvInstallDir>C:\SteamLibrary\steamapps\common\Derail Valley</DvInstallDir>
<UnityInstallDir>C:\Program Files\Unity\Hub\Editor\2019.4.40f1\Editor</UnityInstallDir>

I2.Localization should be satisfied through $(DvInstallDir)\DerailValley_Data\Managed\

Please make sure that the paths are set correct, as seen in the Building Documentation

t0stiman commented 10 months ago

@CODEYXone thanks, I add re-cloned the repo and forgotten to re-add the Directory.Build.Targets file.