Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Link's Awakening DX HD

PC Version of The Legend of Zelda: Link's Awakening DX · By linksawakeningdxhd

Can't compile source, fails at "The command "dotnet [...] exited with code 1""

A topic by Dekirai created Dec 14, 2023 Views: 914 Replies: 4
Viewing posts 1 to 3

That's the command in MonoGame.Content.Builder.Task.targets:

    <Exec

      Condition="'%(ContentReference.FullPath)' != ''"

      Command="$(DotnetCommand) $(MGCBCommand) $(MonoGameMGCBAdditionalArguments) /@:"%(ContentReference.FullPath)" /platform:$(MonoGamePlatform) /outputDir:"%(ContentReference.ContentOutputDir)" /intermediateDir:"%(ContentReference.ContentIntermediateOutputDir)" /workingDir:"%(ContentReference.FullDir)""

      WorkingDirectory="$(MSBuildProjectDirectory)" />


Any help regarding this is appreciated!

(+1)

Yeah I have no idea how this project is set up because it's apparently not using MonoGame as NuGet packages even though MonoGame versions after 3.8 *only* ship as NuGet packages. I managed to get the source code building by installing the Visual Studio MonoGame extension, creating a new Windows DirectX MonoGame template project and using the .csproj file as a reference to reconstruct the ProjectZ.csproj file.

Here's a .csproj and dotnet-tools setup that gets ProjectZ building with the latest version of MonoGame. I hope. You might need to commandline run dotnet restore in the project folder to make sure the content builder works (that's why the build fails, it can't find MGCB, the content builder).

Thanks, can build it now!
My wip german translation works fine aswell. :p


(+1)

This worked great, seems to have fixed most of the issues I had when just building the packages.config directly and does seem to correctly invoke mgcb. All I had to do was recreate the config/dotnet-tools.json manually as visual studio would not accept it when being downloaded from elsewhere.

Do note that if you run the game in debug mode it will frequently crash when trying to load a save file, probably a race condition for initializing render targets that doesn't seem to happen in release builds.

You are a godsend man!