Package game name

Hi!

I am doing a small game based on the shooter game, but I would like to change the package name.
I already changed the source folders name so it’s not ShooterGame anymore, however I can’t find a way to change the package name and it’s still being named like that in the content browser.
Also I would like to change it in the config files from:
[/Script/ShooterGame.ShooterGameMode]
to
[/Script/MyGame.MyGameMode]

Thanks!

Check out: How Change the Project Name? - Programming & Scripting - Unreal Engine Forums

Hello JavierRamello,

Was 's answer helpful to you? I would be good to know if you were able to fix your problem or not.

No, sorry. I had already changed the project name. That does not help with the package name which is still named “ShooterGame”

I see. I don’t know how to do this off the top of my head but I am looking into the process. I’ll let you know when I come up with something. In the meantime, the simplest workaround would be to rename the .exe after it is generated.

Unfortunately I can’t find a way to do this directly. Due to this, I’ve placed in a feature request for functionality to be added that will let you change the name of the packaged product. The only way I could think of do this currently involves heavily editing the source to replace many things but even with that I wasn’t able to quite get it to work. For reference, the feature request’s number is UE-27712. I’ll let you know if there are any updates to the report in the future.

Have a nice day!

The executable name is taken from the target name. Rename your game’s .target.cs file under your /Source/ directory, and rename the class defined inside it to match.

That does not change the root folder name under C++ Classes of the content browser, that only changes the executable file name.
There should be an easy way. Come on, who in the hell starts a project by finding a proper name first? :smiley:

Hello ,

Most people actually start their project with a Codename and use that for the project. As far as changing it, I believe to get the actual C++ class folder name to change, you may need to take the steps that are posted by in the post that was linked by previously. It seems that method would affect those folder names.