Perforce refuses to work

I’m trying to set up a local server of perforce with the latest version of unreal engine, but it just doesn’t work. after days of a terrible amount of ungrateful, frustrating work, I managed to have unreal recognize it, even update some files on source control, but it doesn’t recognize a lot of files from my project, so i tried to “reconcile” them whatever that means, and they just disappeared from my project. then unreal started crashing every time i opened it, while still on loading. had to verify and repair the engine. happened again, repaired again.

I got my project back since i manually backed it up before trying perforce, but it’s impressive how difficult it is to set up such a simple thing.

So, before I give up, how do you even begin setting up a project? I created a new workspace on perforce, and I don’t know if I need a different workspace for every project, or a single one that encompasses all my projects or a group of projects, and with the workspace set up, I have no idea how to transfer my project files into this workspace.

I tried copy / pasting the folder into the workspace folder, but when I open unreal engine, it doesn’t recognize that these files are supposed to be under source control, even though perforce is recognized in editor, and the files are recognized in p4v.

I’ve seen about all videos about this on youtube and there are none showing all steps, from setting up helix core, to p4v, to using an existing project, and saving it and “uploading” to my perforce server.

any help is appreciated.

Hey @fael097!

Question: When you copy the project into the workspace (also do you have a p4ignore.txt file set up?), do you start the project using the .uproject file in the workspace? Or do you use the launcher? The first time you start it after moving, it needs to be launched from the .uproject.

Then you should be able to attach it through UE5 to Perforce, as long as you have your P4V logged in.

If you do not have your p4ignore.txt set up, I implore you to do that so you don’t add unnecessary files to your depot.

Also once it’s there make sure to make your .uproject file and DefaultSettings.ini writable. Not a problem for you yet but definitely something to do once it’s on there.

Believe me, I’m no stranger to Perforce antics. There’s a reason there’s usually dedicated staff to run it at most companies.

1 Like

Hey, thanks a lot for replying.

I’ve opened it from the epic launcher, from UE splash screen, from the .uproject file in windows explorer, and even from the .uproject file listed inside P4V, but I’m not sure which one I did first. I should try again, I’m assuming you mean double clicking the .uproject file inside windows explorer, not P4V.

I’ve set a p4ignore, except it was a .p4ignore file and not p4ignore.txt, I’ve read somewhere of doing it that way so I wouldn’t need to deal with command line. I’m not exactly sure how to set the txt file. my other file I had found some default stuff to ignore online, and I also added a third party assets dump folder that I have in my project from stuff I got from the marketplace. I usually manually move the stuff I’m gonna use from that folder into another one, so I thought I should just ignore that one, but I had a lot of files in that “unmanaged” or “to reconcile” thing in unreal engine, and I thought it could be related to my .p4ignore ignoring a lot of stuff.

I suppose I’ll try setting up an empty project before porting this entire game into perforce. get back to you soon, please let me know if there’s anything else I should know.

thanks again

So it turns out that the only way I got the project to work inside unreal, was to add project files using this wizard in p4v:

problem is, this wizard opens when I open p4v for the first time, while the server is empty. so after I add the initial project, it never opens again, I can’t find it in the menus, and there’s no other way to add another project to perforce (that I could figure out).

copying a project folder into the workspace folder, and opening from the .uproject file didn’t help.

I have to uninstall both p4v and helix client to be able to configure almost anything again, and I already reinstalled both more than 20 times in the last couple days, trying to make it work

Hmm. Have you set up your StreamDepot? And then assigned that workspace to a “Main” folder directly beneath that?

I suppose so, yeah

image

now there’s another thing, even though I’ve set a ignore file to ignore my entire third party assets folder, I’m getting a question mark on everything in there:

every time I open a folder inside my ignored asset folder, all the files within get populated with that question mark, and when I click submit, they all get to that list, even though they’re supposed to be ignored. also, i get an error when submitting them.

Guess I’ll just give up

It sounds like they’re not actually added to the .p4ignore.txt, or it isn’t set.

First, make sure your
You need to make sure that is the name of the file and put it at the topmost folder in your workspace, and then in P4V open File → Open Command Prompt Here.

There type “SET p4ignore = .p4ignore”. It might be “SET p4ignore = .p4ignore.txt”, but I forget that part, it’ll give an error if you did it wrong or the file isn’t there.

This is what mine looks like. If you need a specific folder in CONTENT excluded then you need to add:
Content/nameoffolder

Make sure of this stuff and let us know how it goes!

Sorry for the late reply, don’t give up!