Happy Thursday, everyone! I hope you’re all doing well.
I have a few questions about setting up Perforce. I’m a small developer with a few people helping me out sporadically, and I’ve been wrestling with Perforce for a while. I think I’m close to getting it set up, but I’m running into a few issues that I haven’t been able to resolve online.
- Is it recommended to have a separate depot with a stream specifically for the engine, and then another depot for the project that sources the engine stream? Why would we do this instead of just having a single depot with a stream that includes both the engine and the project?
- I believe I’ve set up my Type Map and P4 Ignore correctly, but I keep getting errors about files with wildcards in their names. From what I understand, this should be fine—is that correct?
- I’m also getting errors for files ending in
.rc
. I can bypass this by setting the file type to “text,” but is this the right approach? Why isn’t this being handled by the Type Map?
Thanks for any insights you can provide!
here is an example of the RC error
Translation of file content failed near line 1 file C:\QuantumWinter\UnrealEngine-release\Engine\Source\ThirdParty\nvTextureTools\nvTextureTools-2.0.6\src\project\vc8\nvzoom\nvzoom.rc
Here is my p4 ignore
Saved/
LocalBuilds/
*.csproj.*
*.vs/*
*.pdb
*.suo
*.opensdf
*.sdf
*.tmp
*.mdb
obj/
*.vcxproj
*.vsconfig
*.sln
*-Debug.*
*FileOpenOrder/
*.xcworkspace
*.xcodeproj
*./Makefile
*./CMakeLists.txt
.ue4dependencies
*Samples/*
*FeaturePacks/*
*Engine/Documentation/*
# Engine intermediates
*Engine/Intermediate/*
*Intermediate/
# Intermediate folders for programs should not be checked in
*Engine\Programs\*\Intermediate\*
# Intermediate folders created for various C# programs
*Engine\Source\Programs\*\obj\*
# Saved folders for programs should not be checked in
*Engine\Programs\*\Saved\*
*Engine\Programs\UnrealBuildTool\*
# Derived data cache should never be checked in
*Engine/DerivedDataCache/*
# Ignore any build receipts
*Engine/Build/Receipts/*
# Ignore personal workspace vars
*p4config.txt
# Ignore Unix backup files
*~
# Ignore Mac desktop services store files
*.DS_Store
# Ignore crash reports
*crashinfo--*
# Ignore linux project files
*.user
*.pro
*.pri
*.kdev4
# Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
# Ignore documentation generated for C# tools
*Engine/Binaries/DotNET/UnrealBuildTool.xml
*Engine/Binaries/DotNET/AutomationScripts/BuildGraph.Automation.xml
# Ignore version files in the Engine/Binaries directory created by UBT
*/Engine/Binaries/**/*.version
# Ignore exp files in the the Engine/Binaries directory as they aren't C/C++ source files
*/Engine/Binaries/**/*.exp
# Ignore Swarm local save files
*Engine/Binaries/DotNET/SwarmAgent.DeveloperOptions.xml
*Engine/Binaries/DotNET/SwarmAgent.Options.xml
# Intermediary Files
*.target.xml
*.exe.config
*.exe.manifest
# Ignore project-specific files
*/Build/Receipts/*
*/DerivedDataCache/*
*/Binaries/*
*/Binaries
*/Intermediate/*
*/Plugins/Developer*
# idea
# Default ignored files
*/shelf/*
*/workspace.xml
*/.idea/*
*.idea*
# vs code
*/.vs/
.vs/
.vs/*
*/.vscode/
.vscode/
.vscode/*
*/.name/*
*.swp
# no tmp directory
*tmp*
# User-specific folders
*Build/*
*Builds/*
*FileOpenOrder/*
here is my type map
# 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 //depot/....exe
binary+w //depot/....dll
binary+w //depot/....lib
binary+w //depot/....app
binary+w //depot/....dylib
binary+w //depot/....stub
binary+w //depot/....ipa
binary //depot/....bmp
text //depot/....ini
text //depot/....config
text //depot/....cpp
text //depot/....h
text //depot/....c
text //depot/....cs
text //depot/....m
text //depot/....mm
text //depot/....py
text //depot/....rc
binary+l //depot/....uasset
binary+l //depot/....umap
binary+l //depot/....upk
binary+l //depot/....udk
binary+l //depot/....ubulk