How to properly rename the Lyra project?

Hi there,

I’m still quite new to unreal engine, but I have been tinkering around with the lyra starter project to much success. I wanted to let a friend test out my level and packaged the game. It was at this point I realized, there is no easy way to rename the project from ‘Lyra’ to something else. No matter what I try I am not able to properly rename the project.

There is a talk by the lyra developers who give vague instructions on how to rename the project here: Lyra Walkthrough Q&A | Inside Unreal - YouTube

I have tried following these steps which did not work. I have also tried using various ue c++ renaming tools found online to no success.

Clearly the lyra project is intended to be used as a framework for other games, so renaming the executable seems like something that should be much easier than I have found it to be.

If someone could point me in the direction of a suitable solution, I’d be more than grateful.

Thanks in advance <3

Hey @DekitaRPG! Welcome to the forums!

There is definitely some nuance to renaming projects. :sweat_smile: However, there is a great video from a creator not affiliated with Epic Games that shows you exactly how to change the name of the .exe for lyra games! Here is that video:

Extending LyraGame with your own Game Feature Plugin and changing the EXE name.

I hope the above solution works for you!

4 Likes

Thanks for the welcome, and the link. I did find this video earlier, and I have implemented the ‘fix’ temporarily, but I would ideally be able to change the base name of both exe’s that are generated. The solution given in that video also requires that the project first be built to then edit generated files. This feels somewhat hacky, and its easy enough to edit an exe name after its been generated. I’m hoping to properly change the project name if possible. Honestly really surprised its not easier to change the generated exe name.

3 Likes

Bumping the post since its been almost a week and there is still not a suitable method of renaming the lyra project. (the suggested solution requires the project exe be changed after its initially created ~ this is not a solution imo)

Hope someone can point me in the right direction, because there obviously is a way to rename the project.

3 Likes

Michael Noland explains it here.

1 Like

Yes, I already linked that video, around that exact timestamp in my op. The instructions he gives are incredibly vague, and I have tried to follow them as best I can, but it never works after the fact.

He also states that you can remove the entire shooter core, or shooter maps, or the little bomb game which I havent been able to, as the project doesnt build without them.

A more detailed guide for how to rename the lyra project would be incredibly useful.

5 Likes

Renaming Lyra required me to write a custom tool, it generates hundreds of redirectors and renames hundreds of entries in obscure places all through the project. After that’s done, the actual blueprint content needs a fair bit of work itself even with all redirectors in place.

It is a monumental task. Michael should not have made that throwaway comment about renaming some blank project :smiley:

The answer is - if you have to ask, you’re probably not going to be able to do it. No one could possibly walk you through it.

5 Likes

@Vaei much thanks for your info. I came to a similar conclusion tbh (that I dont yet have the skill/knowledge). Congrats on getting your copy renamed properly though!! Do you intend to release your custom tool? What kind of work did the blueprints need? I’m guessing just more renaming of nodes etc?

Considering the purpose of the project, the fact renaming it is such a task completely defeats the point in using it imo. Its only taken me a few weeks to create a menu system with very similar functionality to lyra, and im a total newb to unreal engine, so I imagine that most people who actually have the knowledge to rename lyra, probably aren’t even using it at all.

I do hope that the lyra team takes this into consideration for future updates. ~ As well as making it easier to actually remove the various plugins from the project.

2 Likes

No matter your level of knowledge Lyra has an incredibly well made foundation and your time is better spent elsewhere. It absolutely does achieve it’s job.

I don’t remember all of the blueprint steps but it’s a lot more than you’re thinking and I spent many hours tracking down everything.

I have no plans to release the tool, someone will probably write a better one long before I’m in any position to deal with that.

Most people have no need to rename it either, it’s best used for learning purposes, unless they’re asset flipping which I don’t wish to support. I spent a long time rewriting Lyra from scratch purely for the purpose of fully understanding how every line of code works. You can’t get far using a pre-existing code base that you don’t understand.

2 Likes

In the Lyra source folder, the first thing is to edit LyraGame.Target.cs, LyraClient.Target.cs, LyraEditor.Target.cs, LyraGameEOS.Target.cs and LyraServer.Target.cs. In each file, do a search and replace, and replace LyraGame with what you want to call your game (for example NewDawn). Save all the files .

Then you can rename the LyraGame.Target.cs to what you are calling your game (for example NewDawn.Target.cs).

Regenerate the Visual Studio solution (right click on the project file and select Generate Visual Studio project files.

Once that is done, fire up the editor, package the project, and both executables will now be called what you are calling your game (for example NewDawn.exe).

3 Likes

This doesn’t work.

I tried following these steps, again, but it failed the same as it had previously when i tried this.

Perhaps this is what you are looking for? This

The video goes through renaming every single thing to your custom executable name. Bit tedious, but effective.

2 Likes