Modding Discussion SMAPI error linux path finding

Discussion in 'Mods' started by Spickes, Dec 7, 2016.

  1. Spickes

    Spickes Void-Bound Voyager

    I have a problem to find the path of Stardew Valle. I get this error
    Error: /home/chiliturtle/Dokumente/Mono Scribts/Stardew_modding/Stardew_Valley/Stardew_Valley.csproj: ../packages/Pathoschild.Stardew.ModBuildConfig.1.2.0/build/Pathoschild.Stardew.ModBuildConfig.targets: Project file could not be imported, it was being imported by /home/chiliturtle/Dokumente/Mono Scribts/Stardew_modding/Stardew_Valley/Stardew_Valley.csproj: Invalid element 'GamePath' in project file '/home/chiliturtle/Dokumente/Mono Scribts/Stardew_modding/packages/Pathoschild.Stardew.ModBuildConfig.1.2.0/build/Pathoschild.Stardew.ModBuildConfig.targets'. (Stardew_Valley)

    I copy and paste my path

    <GamePath>$(HOME)/.local/PlayOnLinux's virtual drives/Games_on_Steam/drive_c/Program Files/Steam/steamapps/common/Stardew Valley</GamePath>

    in there
    </PropertyGroup>

    <!--######
    ##selectgame path
    #######-->

    <PropertyGroup>


    WHOLE CODE FOR CONTEXT
    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <!--######
    ##selecttarget OS
    #######-->
    <PropertyGroup>
    <!--fromoverride-->
    <GamePlatformCondition="$(GamePlatform)!='Linux'AND$(GamePlatform)!='Mac'AND$(GamePlatform)!='Windows'"></GamePlatform>
    <GamePlatformCondition="$(DefineConstants.Contains('GAME_PLATFORM_LINUX'))">Linux</GamePlatform>
    <GamePlatformCondition="$(DefineConstants.Contains('GAME_PLATFORM_MAC'))">Mac</GamePlatform>
    <GamePlatformCondition="$(DefineConstants.Contains('GAME_PLATFORM_WINDOWS'))">Windows</GamePlatform>

    <!--fromOS-->
    <GamePlatformCondition="$(GamePlatform)==''AND$(OS)=='Unix'">Linux</GamePlatform>
    <GamePlatformCondition="$(GamePlatform)==''AND$(OS)=='OSX'">Mac</GamePlatform>
    <GamePlatformCondition="$(GamePlatform)==''AND$(OS)=='Windows_NT'">Windows</GamePlatform>
    </PropertyGroup>

    <!--######
    ##selectgame path
    #######-->
    <PropertyGroup>
    <!--injectedbySilverplum-->
    <GamePathCondition="!Exists('$(GamePath)')">$(STARDEWVALLEY_DIR)</GamePath>

    <!--Linux-->
    <GamePathCondition="!Exists('$(GamePath)')">$(HOME)/GOG Games/Stardew Valley/game</GamePath>
    <GamePathCondition="!Exists('$(GamePath)')">$(HOME)/.local/share/Steam/steamapps/common/Stardew Valley</GamePath>

    <!--Mac-->
    <GamePathCondition="!Exists('$(GamePath)')">$(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS</GamePath>

    <!--Windows-->
    <GamePathCondition="!Exists('$(GamePath)')">C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath>
    <GamePathCondition="!Exists('$(GamePath)')">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath>
    </PropertyGroup>

    <!--######
    ##setup configuration
    #######-->
    <Choose>
    <WhenCondition="$(GamePlatform)=='Windows'">
    <!--references-->
    <ItemGroup>
    <ReferenceInclude="Microsoft.Xna.Framework,Version=4.0.0.0,Culture=neutral,PublicKeyToken=842cf8be1de50553,processorArchitecture=x86">
    <Private>false</Private>
    </Reference>
    <ReferenceInclude="Microsoft.Xna.Framework.Game,Version=4.0.0.0,Culture=neutral,PublicKeyToken=842cf8be1de50553,processorArchitecture=x86">
    <Private>false</Private>
    </Reference>
    <ReferenceInclude="Microsoft.Xna.Framework.Graphics,Version=4.0.0.0,Culture=neutral,PublicKeyToken=842cf8be1de50553,processorArchitecture=x86">
    <Private>false</Private>
    </Reference>
    <ReferenceInclude="StardewValley">
    <HintPath>$(GamePath)\Stardew Valley.exe</HintPath>
    <Private>false</Private>
    </Reference>
    <ReferenceInclude="StardewModdingAPI">
    <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath>
    <Private>false</Private>
    </Reference>
    <ReferenceInclude="xTile,Version=2.0.4.0,Culture=neutral,processorArchitecture=x86">
    <HintPath>$(GamePath)\xTile.dll</HintPath>
    <Private>false</Private>
    <SpecificVersion>False</SpecificVersion>
    </Reference>
    </ItemGroup>

    <!--launchgamefordebugging-->
    <PropertyGroup>
    <StartAction>Program</StartAction>
    <StartProgram>$(GamePath)\StardewModdingAPI.exe</StartProgram>
    <StartWorkingDirectory>$(GamePath)</StartWorkingDirectory>
    </PropertyGroup>
    </When>
    <Otherwise>
    <!--references-->
    <ItemGroup>
    <ReferenceInclude="MonoGame.Framework">
    <HintPath>$(GamePath)\MonoGame.Framework.dll</HintPath>
    <Private>false</Private>
    <SpecificVersion>False</SpecificVersion>
    </Reference>
    <ReferenceInclude="StardewValley">
    <HintPath>$(GamePath)\StardewValley.exe</HintPath>
    <Private>false</Private>
    </Reference>
    <ReferenceInclude="StardewModdingAPI">
    <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath>
    <Private>false</Private>
    </Reference>
    <ReferenceInclude="xTile">
    <HintPath>$(GamePath)\xTile.dll</HintPath>
    <Private>false</Private>
    </Reference>
    </ItemGroup>
    </Otherwise>
    </Choose>

    <!--######
    ## validate
    #######-->
    <TargetName="BeforeBuild">
    <!--ifgamepathisinvalid,showoneuser-friendlyerrorinsteadofaslewofreferenceerrors-->
    <ErrorCondition="!Exists('$(GamePath)')"Text="Failedtofindthegameinstallpathautomatically;editthe*.csprojfileandmanuallyadda&lt;GamePath&gt;settingwiththefulldirectorypathcontainingtheStardewValleyexecutable."/>
    </Target>
    </Project>
     

    Share This Page