-
Notifications
You must be signed in to change notification settings - Fork 6
Configuring Perforce
The following server settings are recommended but not required for UnrealGameSync
- Open P4Admin.
- Login into your server using the SuperUser account.
- On the top menu bar go to Administration->Password Security Level... and select 3 (ticket-based authentication required) and press OK.
- Open P4V
- Login as the SuperUser Account. (Do Not Create A Workspace. leave it as default (optional))
- On the top menu bar go to Connection->Enviroment Settings make sure it's set to the SuperUser account and press OK.
- Open CMD (Command Prompt) and enter the following commands.
Disable Public User Account Creation
p4 configure set dm.user.noautocreate=2
If everything was set correctly you should get: For server 'any', configuration variable 'dm.user.noautocreate' set to '2'
Disable Unauthorized Viewing Of Perforce User List
p4 configure set run.users.authorize=1
If everything was set correctly you should get: For server 'any', configuration variable 'run.users.authorize' set to '1'
Disable Unauthorized Viewing Of Perforce Config Settings
p4 configure set dm.keys.hide=2
If everything was set correctly you should get: For server 'any', configuration variable 'dm.keys.hide' set to '2'
If all commands were successful you can close CMD (Command Prompt) and P4V.
In order for Perforce to handle the Unreal Engine Source code correctly, we have to tell it how to handle its files using a typemap.
- Open P4V
- Login as the SuperUser Account. (Do Not Create A Workspace. leave it as default (optional))
- On the top menu bar go to Connection->Enviroment Settings make sure it's set to the SuperUser account and press OK.
- Open CMD (Command Prompt)
- Type:
p4 typemap
and press enter. - It will open a notepad file.
- Copy the text below and paste it into the notepad file.
# Perforce File Type Mapping Specifications.
#
# TypeMap: a list of filetype mappings; one per line.
# Each line has two elements:
#
# Filetype: The filetype to use on 'p4 add'.
#
# Path: File pattern which will use this filetype.
#
# See 'p4 help typemap' for more information.
TypeMap:
binary+w //....exe
binary+w //....dll
binary+w //....lib
binary+w //....app
binary+w //....dylib
binary+w //....stub
binary+w //....ipa
binary+Sw //....pdb
text+w //....DotSettings
text+w //....modules
text+w //....target
text+w //....version
text //....ini
text //....config
text //....cpp
text //....h
text //....c
text //....cs
text //....m
text //....mm
text //....py
text //....json
binary+l //....uasset
binary+l //....umap
binary+l //....upk
binary+l //....udk
binary+l //....ubulk
binary+l //....bmp
binary+l //....fbx
binary+l //....mp4
binary+l //....png
binary+l //....svg
binary+l //....uasset
binary+l //....umap
binary+l //....wmv
- Save and Close.
- You should see the following message in the CMD (Command Prompt) window:
Typemap saved.