的笔记

随时随地编辑

Unreal Engine 4 开发记录



编码环境修改

为了编码效率而为之,依照官网说明,修改了:
  • 解决方案配置选项窗口宽度
  • 显示平台选项
  • 关闭错误窗口
  • 官网修改说明:https://docs.unrealengine.com/latest/INT/Programming/QuickStart/1/index.html

    BP节点接口颜色说明

    一切类型都有对应的接口!通过不同颜色的小圆圈表示对象。具体见官网文档:
  • Unreal Engine 4 Variables

  • 控制台命令行

    Command-Line Arguments
  • 显示FPS: stat fps

  • 编辑器

  • WASD导航:Editor Preferences --> Level Editor --> viewport --> Controls
  • 关闭编辑器操作音:Editor Preferences --> Level Editor --> Miscellaneous --> Enable...
  • 永久修改:
    D:\Program Files\Epic Games\4.5\Engine\Config\BaseEditorUserSettings.ini
    4.9后变更:
    D:\Program Files\Epic Games\4.9\Engine\Config\BaseEditorPerProjectUserSettings.ini
  • FlightCameraControlType=WASD_Always
  • bEnableEditorSounds=False
  • BP显示箭头:Eitor preference --> Blueprint Editor ---> Draw arrow...

  • Unreal Tournament 玩记录

    哪里下客户端,如何进服务器,哪里找码
  • 官网的讨论,这里可以找到别人编译好的最近的包
  • 猿哥们的服务器和登录器

  • Profile

    https://docs.unrealengine.com/latest/INT/Engine/Performance/Profiler/index.html

    安装相关

    一大坨缓存,将Launcher和所有版本都卸载后,仍不会自动删除,截止目前4.6有5GB左右.升级后不需要的版本缓存要从这里手动删除掉.SSD仍然很慢,是否因为从C盘加载了缓存数据呢?
  • C:\Users\Administrator\AppData\Local\UnrealEngine
  • 编译模块日志

  • C:\Users\Administrator\AppData\Roaming\Unreal Engine\UnrealBuildTool
  • C:\Users\Administrator\AppData\Roaming\Unreal Engine\AutomationTool
  • 打包错误出错,看这里:C:\Users\Administrator\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+4.7\Cook.txt

    Launcher相关

    Launcher官方权威问题解决WIKI: Troubleshooting Launcher Problems
  • Launch卸载后,会删除Launch和所有已经安装的引擎版本

  • 配置引擎版本信息
  • C:\ProgramData\Epic\UnrealEngineLauncher
  • Launcher运行日志
  • C:\Users\Administrator\AppData\Local\UnrealEngineLauncher
  • 各种诊断

    Windows Launcher issues
    • D:\Users\USER.NAME\AppData\Local\UnrealEngineLauncher\Saved\Logs
    Mac Launcher issues
    • /Users/USER.NAME/Library/Logs/Unreal Engine/UnrealEngineLauncher
    Editor crash
    • D:\Users\UserName\AppData\Local\Microsoft\Windows\WER\ReportQueue
    MSI (Windows only) installation issues
    Place the msi on the root of C drive
    WindowsKey+R and enter:
    msiexec /i D:\UnrealEngineInstaller.msi /L*V C:\UnrealEngineInstallerLog.txt
    Replacing “UnrealEngineInstaller.msi” with the actual msi filename
    UE4/Content download problems
    Navigate to the DefaultEngine.ini file
    D:\Program Files\Unreal Engine\Launcher\Engine\Programs\NoRedist\UnrealEngineLauncher\Config\DefaultEngine.ini
    Open in a text file and add to the very end of it:
    [Core.Log]
    LogHttp=log
    LogOnline=veryverbose
    

    优化编译速度

    Boost Compile Times
    cd UnrealEngine\Engine
    mklink /J Intermediate C:\UE4\PR\Intermediate
    mklink /J Source C:\UE4\PR\Source

  • <占位项2>
  • 优化VC内存占用

    Visual Studio 2013 : vcpkgsrv.exe 这是个神马啊,突然就飙出来一大堆,没个都耗掉几百MB内存
  • "Tools->Options->Text Editor->C/C++->Advanced-->Auto Tune Max Cached Translation Units" 设为false
  • 同上"Max Cached Translation Units"设为2

  • 听说将插件删光了,也能降低这个东西的耗费,不现实

    优化磁盘速度和占用

    AppData目录("C:\Users\Administrator\AppData\Local\UnrealEngine")会占用大量磁盘,并且在运行时生成大量临时文件(DerivedDataCache).重定向到SSD:
    cd C:\Users\Administrator\AppData\Local
    mklink /J UnrealEngine I:\Link_AppData_Local\UnrealEngine
  • <占位项1>


  • Input导入导出造成Joystick无法恢复的异常

    从另外一个工程里导入input到当前工程,Joystick就不再显示了,试了半天无法恢复。下次还是别用了,老老实实一个个添加吧。
    另外如果如果Set Cinematic Mode,也会隐藏Joystick

    Android崩溃查询

  • 运行:C:\NVPACK\android-sdk-windows\tools\monitor.bat
  • Logcat增加一个Filter。名字填"UE4"。 By log Tag填"UE4|Debug"。

  • Unreal engine 4.10/4.11 创建 Behavior Tree

    从4.10开始,Behavior Tree移动到“Artificial Intelligence”菜单上了,并且这个菜单默认情况在Add New主菜单里是隐藏起来的,需要滚动到菜单的最下面,这点很坑!
  • 点击Add New后向下滚动菜单,Artificial Interlligence才会滚出来


  • 修改记录

  • 2014-05-02 创建
  • 2014.7.13 增加BP中节点接口颜色的官方说明
  • 2014.9.6 编辑器的声音和导航键
  • <占位项2>

  • 升级到VS2015 Update3后源码编译问题

  • command line argument number does not match precompiled header
  • Build Failed with VS 2015 update 3。解决方式
  • 下载Fixed程序然后运行即可。Current Available Quick-Fix Solutions
  • 本质还是对VS2015编译警告进行屏蔽处理:
  • https://issues.unrealengine.com/issue/UE-32588
  • 引用补丁到源码即可: VS2015 Update 3 fix for UE4.11


    Error:Unsupported major.minor version 52.0

    原因:AndroidWorks升级后,使用了java1.8,但是环境变量设置的是1.7

    Fix:

    下载java1.8:

  • http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-windows-x64.exe?AuthParam=1479955184_3d52302468e8ee9463944fcb7c4eae08
  • setx JAVA_HOME=C:\Program Files\Java\jdk1.8.0_112

  • 编译单个文件

    4.13开始支持编译单个文件
  • -安装UnrealVS
  • I:\ProgramFiles_EpicGames\4.14\Engine\Extras\UnrealVS\VS2015\ UnrealVS.vsix
  • -绑定快捷键
  • New: The UnrealVS Visual Studio extension now exposes the "UnrealVS.CompileSingleFile" command. Binding to a shortcut key (eg. Ctrl-F7) from the Visual Studio options dialog allows quickly compiling the current file without linking binaries.
  • Error:
  • C:\Program' is not recognized as an internal or external command, operable program or batch file.

    <占位标题>

    <占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述>
  • <占位项1>
  • <占位项2>

  • <占位标题>

    <占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述>
  • <占位项1>
  • <占位项2>

  • <占位标题>

    <占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述>
  • <占位项1>
  • <占位项2>

  • <占位标题>

    <占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述>
  • <占位项1>
  • <占位项2>

  • <占位标题>

    <占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述占位描述>
  • <占位项1>
  • <占位项2>

  • posted on 2014-05-02 11:21 的笔记 阅读(5202) 评论(0)  编辑 收藏 引用


    只有注册用户登录后才能发表评论。
    网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理