Every time I package my game it outputs and plays fine. but it appends the name of the Pak file with “WindowsNoEditor” or something. Like “MyGame-WindowsNoEditor.pak”. I just want “MyGame.pak”
I have the source so if i need to edit that id like to know where to look. Thanks
Very sorry about the lack of a response to this post. I just wanted to check in with you and see if this error is still occurring for you. Please let me know when you get the chance so that I help with this issue.
Hello. Its not really an error. more of a question on controlling the precise naming of the PAK file generated. (See original example) I understand that Its simply appending the name of the build type to the name, but it seems arbitrary and all I want to do is be able to change the text “WindowsNoEditor” to something else. I tried looking through the source code for maybe a simple string to change but wow, its hard coded in tightly. My reasons for wanting control of that are both cosmetic and for some unique file manipulation ideas I have involving games sharing data.
That said. I kind of wish I had more control over the overall “Packaged” game folder structure. It would only be relevant to windows or similar platforms. I know certain structures are required but the option to change it or even make ones own schemes seems more obvious a design than being so hard coded.
Any way everything else is just fine. :3 Great engine and Thanks for getting to my question.
I believe the line you are looking for is CopyBuildToStagingDirectory.Automation.cs ln 558.
This is where the pak file gets it’s name.
Just incase the line numbers don’t match it’s Project::CreatePak the line looks like this
var OutputRelativeLocation = CombinePaths(SC.RelativeProjectRootForStage, “Content/Paks/”, PakName + “-” + SC.FinalCookPlatform + “.pak”);
I’m not sure on all the repercussions in changing this. I believe it will actually be ok as the game searches for *.pak files and also the deploy just deploys everything in the staging directory so it might just work however I haven’t tested it.
I’ve just tried removing the “-WindowsNoEditor” from the pak name and the game just opens with no problems. So I assume that you can change the name without the “-WindowsNoEditor” and ship it.
But for instance, if you change the name of a buyed game (Steam, Epic Store) the names will eventually be restored (if not duplicated) if they update.
Note: I’ve tried it in games with both one pak file and many pak files.
Note II: Tests i’ve done were made only with UE4’s games.