From 58a55338476637174709488ba6c238bd89032670 Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Tue, 10 Sep 2024 12:29:12 +0800 Subject: [PATCH] vault backup: 2024-09-10 12:29:12 --- .../various-complements/histories.json | 2 +- 01-Diary/周小结/2024.9.md | 8 ----- .../VPS服务部署/Perforce Helix Core搭建.md | 31 +++++++++++++++++-- 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/.obsidian/plugins/various-complements/histories.json b/.obsidian/plugins/various-complements/histories.json index d2931fe..dd42d6a 100644 --- a/.obsidian/plugins/various-complements/histories.json +++ b/.obsidian/plugins/various-complements/histories.json @@ -1 +1 @@ -{"Multicast":{"Multicast":{"currentFile":{"count":1,"lastUpdated":1723785247956}}},"TODO清单":{"TODO清单":{"internalLink":{"count":1,"lastUpdated":1724606531953}}},"婚礼布置:2W。老妈去谈。":{"婚礼布置:2W。老妈去谈。":{"currentFile":{"count":1,"lastUpdated":1725803390742}}}} \ No newline at end of file +{"Multicast":{"Multicast":{"currentFile":{"count":1,"lastUpdated":1723785247956}}},"TODO清单":{"TODO清单":{"internalLink":{"count":1,"lastUpdated":1724606531953}}},"婚礼布置:2W。老妈去谈。":{"婚礼布置:2W。老妈去谈。":{"currentFile":{"count":1,"lastUpdated":1725803390742}}},"如下所示:":{"如下所示:":{"currentFile":{"count":1,"lastUpdated":1725940732272}}}} \ No newline at end of file diff --git a/01-Diary/周小结/2024.9.md b/01-Diary/周小结/2024.9.md index d52afaa..d058258 100644 --- a/01-Diary/周小结/2024.9.md +++ b/01-Diary/周小结/2024.9.md @@ -11,14 +11,6 @@ 6. [ ] 曹老师切换LiveArea时RootMotion 问题。(切换前需要换回enable RootMotion,并在切换后再禁用) 7. [x] 所有手机APP部署一次FaceMask。 8. [ ] P4触发器 - 1. [ ] https://www.perforce.com/manuals/p4sag/Content/P4SAG/scripting.triggers.variables.html - 2. [ ] https://www.cnblogs.com/itech/archive/2011/08/17/2141310.html - 3. [ ] https://www.perforce.com/manuals/p4sag/Content/P4SAG/scripting.triggers.command.html - 4. [ ] Python检查代码: https://gist.github.com/cmcginty/8d99e0eac345e06dc1ba - 5. [ ] [创建 Perforce 表单触发器以更改多行默认描述](https://stackoverflow.com/questions/76824451/creating-a-perforce-form-trigger-to-change-default-description-with-multi-lines) https://stackoverflow.com/questions/76824451/creating-a-perforce-form-trigger-to-change-default-description-with-multi-lines - 6. [ ] ## Case Sensitivity: https://portal.perforce.com/s/article/3081 - 7. [ ] https://swarm.workshop.perforce.com/files/guest/perforce_software/sdp/dev/Unsupported/Samples/triggers/CheckCaseTrigger.py?v=%40%3D29027 - 8. [ ] https://swarm.workshop.perforce.com/files/guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/triggers/CheckCaseTrigger.py?v=4 # 问题 1. 功能测试问题: diff --git a/03-UnrealEngine/流程管理与部署/VPS服务部署/Perforce Helix Core搭建.md b/03-UnrealEngine/流程管理与部署/VPS服务部署/Perforce Helix Core搭建.md index 499dfda..a6043a3 100644 --- a/03-UnrealEngine/流程管理与部署/VPS服务部署/Perforce Helix Core搭建.md +++ b/03-UnrealEngine/流程管理与部署/VPS服务部署/Perforce Helix Core搭建.md @@ -197,6 +197,7 @@ Version: 2024.1-2596294~focal - [UnrealEnigne源码构建&Perforce&(UnrealGameSync)开发版本控制基础部署](https://zhuanlan.zhihu.com/p/362276094) - [打通UE4美术资源版本控制关节](https://zhuanlan.zhihu.com/p/261692804) - [UE5+Perforce+阿里云ECS版本控制搭建流程与工作流程](https://zhuanlan.zhihu.com/p/640743305) + - 解决大小写问题 :[P4服务器部署、配置、备份流程详解](https://zhuanlan.zhihu.com/p/676332084) - 视频 - [ [英文直播]版本控制基础 | Version Control Fundamental(真实字幕组)](https://www.bilibili.com/video/BV1tp4y1C7f8/?spm_id_from=333.337.search-card.all.click&vd_source=d47c0bb42f9c72fd7d74562185cee290) - [配置管理软件Perforce代码版本管理中分支和标签应用示例—4.Local库的分支](https://www.bilibili.com/video/BV14z411b7VB/?spm_id_from=333.999.0.0&vd_source=d47c0bb42f9c72fd7d74562185cee290) @@ -686,11 +687,37 @@ Launcher\Engine\Binaries\Win64\UnrealVersionSelector.exe # Perforce问题解决 ## 大小写问题解决 -我想到一个解决方案,就是删除这个文件夹,之后分别以为大写与小写文件名,再拉新就可以把资产都拉下来。 +官方的相关解释: +- [Changing the Case of a Filename](https://portal.perforce.com/s/article/3448) +- [Case Sensitivity](https://portal.perforce.com/s/article/3081) +我想到一个解决方案,就是删除这个文件夹,之后分别以为大写与小写文件名,再拉新就可以把资产都拉下来。 1. 删除文件夹。 2. 新建 Nailin_Birthday2024_V02,拉新备份后比较效果。 3. 新建 NaiLin_Birthday2024_V02,拉新备份后比较效果。 4. 替换旧与错误资产。 5. 删除服务器上的Nailin_Birthday2024_V02与NaiLin_Birthday2024_V02文件夹。 -6. 重新上传。 \ No newline at end of file +6. 重新上传。 + +## 使用Trigger进行检查 +参考:[P4服务器部署、配置、备份流程详解](https://zhuanlan.zhihu.com/p/676332084) + +- 官方文档 + - [trigger.table.fields](https://www.perforce.com/manuals/p4sag/Content/P4SAG/scripting.trigger.table.fields.html) + - [triggers.variables](https://www.perforce.com/manuals/p4sag/Content/P4SAG/scripting.triggers.variables.html) + - 中文解析: https://www.cnblogs.com/itech/archive/2011/08/17/2141310.html + - [triggers.command](https://www.perforce.com/manuals/p4sag/Content/P4SAG/scripting.triggers.command.html) +- 案例 + 1. [ ] Python检查代码: https://gist.github.com/cmcginty/8d99e0eac345e06dc1ba + 3. [ ] https://swarm.workshop.perforce.com/files/guest/perforce_software/sdp/dev/Unsupported/Samples/triggers/CheckCaseTrigger.py?v=%40%3D29027 + 4. [ ] https://swarm.workshop.perforce.com/files/guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/triggers/CheckCaseTrigger.py?v=4 + +### 添加一个Trigger +字段名称(例如`Triggers:`)必须左对齐(不缩进)并且必须以冒号结尾。字段值(即您添加的一组行,每个触发器一行)必须在字段名称下方的行上使用空格或制表符缩进。 + +表单`p4 triggers`如下所示: +```bash +Triggers: + relnotecheck change-submit //depot/bld/... "/usr/bin/rcheck.pl %user%" + verify_jobs change-submit //depot/... "/usr/bin/job.py %change%" +``` \ No newline at end of file