虚幻-Preforce协同架设

来源:互联网 发布:帝国cms 东方头条 编辑:程序博客网 时间:2024/06/05 08:38

https://docs.unrealengine.com/latest/CHN/Engine/Basics/SourceControl/Perforce/index.html

  • 下载Preforce核心引擎和可视化界面
  • 解决编码问题
  • 权限管理

下载Preforce核心引擎和可视化界面

https://www.perforce.com/

解决编码问题

主要问题就是要解决编码问题
Preforce核心引擎安装完成设置编码,否则中文无法使用。

切换Unicode模式的方法很简单,就是通过p4d命令行,在当前路径为P4ROOT(Server)的位置执行p4d -xi,

在P4V的客户端打开命令行窗口设置TypeMap
打开控制台

P4 Typemap
在向新的 Depot 添加文件前,应当先设置 P4 Typemap 来让 Perforce 了解如何对待虚幻文件类型。typemap 的设置能够在 Perforce 中控制文件的只读和可写的形式。 然后要做这件事情,需要先在命令行下设置 P4 的环境变量。
p4 set P4USER=your.username
p4 set P4PORT=localhost:1666
将上面相应的部分替换为您的用户名和连接地址,并用下面的命令打开 typemap 设置。
p4 -P YourPassword typemap

# 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    binary+l //depot/....uasset    binary+l //depot/....umap    binary+l //depot/....upk    binary+l //depot/....udk    utf16 //depot/....collection

注意最后一行.collection的设置
设置编码
把这个文件格式改成utf-16

权限管理

http://www.cnblogs.com/itech/archive/2011/08/15/2139695.html

原创粉丝点击