Lyra Sample Game, failed to generate project files

I downloaded Lyra from GitHub - nsxt/LyraSample: Lyra Starter Game Sample In UE5. I added the content from the Epic Store.

Project files are not generated.

Error message:

D:\UnrealEngineProjects\LyraStarterGameNsxtVersion\Source\LyraGame.Target.cs(248,13): error CS0246: The type or namespace name ‘JsonParseException’ could not be found (are you missing a using directive or an assembly reference?)

Expecting to find a type to be declared in a target rules named ‘LyraClientTarget’. This type must derive from the ‘TargetRules’ type defined by UnrealBuildTool.

I’m running UE 5.5.1.

Lyra project (LyraStarterGame.uproject) seems to require 5.5 as well.

What do I do?

hi,

The git hub version is 5.3 you need the 5.5 version
from
Lyra Starter Game 5.5 | Fab

I downloaded the project from https://www.fab.com/listings/93faede1-4434-47c0-85f1-bf27c0820ad0.

In the project file (LyraStarterGame.uproject) I read:

"FileVersion": 3,
	"EngineAssociation": "5.5",

I opened it with my UE Editor 5.5.1 (double click on the project file).

(just a small difference, 5.5 to 5.5.1)

It works! :rofl:

Thank you!

I wasn’t expecting it to.

Just adding a step I made that was decisive.

I deleted Epic Games Launcher cache.

I suspect I had there an old version of Lyra Starter Game.

@esantanche’s solution worked for me. Installing newer versions of UE via Launcher does not seem to prompt it to retrieve newer versions of Lyra if an older version is already present, with no way to download a new one without telling it to remove the existing one.

I observed this by looking at the VaultCache directory (located at “C:\ProgramData\Epic\EpicGamesLauncher\VaultCache” for me) and finding that there was initially only one version of Lyra, “Lyra_5.3”, despite my attempts to create a project from it for 5.4.

Hitting the dropdown arrow on Lyra in the launcher and selecting “Remove Local Content” let me remove it and then re-download it and pick the editor version I wanted for, which resulted in the “Lyra_5.4” cache being created and is now usable in my 5.4 installation.

The original folder for Lyra_5.3 is still there, so it seems like removing it doesn’t happen immediately, contrary to other assets.

“…the solution is to change JsonParseException to just Exception in LyraGame.Target.cs”

After that change, it finished making the VS solution file… “LyraStarterGame.sln”.

The, after opening that solution into VS it suggested the correct MSVC build tools, etc to install in the VS Installer.