chickensoft-games / GameDemo

The Chickensoft Game Demo — a fully tested, third-person 3D game built with Godot and C#. Now with saving and loading!
https://chickensoft.games
MIT License
322 stars 20 forks source link

bug: Will not run on godot 4.2.2 #14

Closed zc0rp10 closed 4 months ago

zc0rp10 commented 4 months ago

Trying to run the game in editor version 4.2.2 will not work, black screen and error messages in debugger. I suggest adding a note in the important section of the Readme, as this might be non-intuitive for people that don't troubleshoot code on a daily basis and used to checking global.json 😅 Important Be sure to run git lfs pull to resolve the binary files.

image

jolexxa commented 4 months ago

It will run on Godot 4.2.2, but you have to update the dependencies that also require GodotSharp, like GodotNodeInterfaces. I'm working on an update for the GameDemo that will upgrade the dependencies to the required versions.

Make sure the global.json is up-to-date

{
  "msbuild-sdks": {
    "Godot.NET.Sdk": "4.2.2"
  },
  "sdk": {
    "rollForward": "major",
    "version": "8.0.100"
  }
}

Make sure the .csproj file does not specify a GodotSharp version in the Project tag

<Project Sdk="Godot.NET.Sdk">

And lastly, you'll want to use the correct version of GodotNodeInterfaces for 4.2.2

<PackageReference Include="Chickensoft.GodotNodeInterfaces" Version="2.1.41" />