直至验证
otv的Python项目详细描述
有没有:
- 建立了几十个,如果不是数百个正交4xp瓷砖,但现在得到 当风景试图加载时神秘的崩溃?
- 你的ORTHO4XP程序在晚上崩溃了,不知道是哪一个 瓷砖是否成功完成?
是的。所以我写了一个实用程序来扫描所有的Ortho4xP瓷砖 验证它们,报告任何有错误的磁贴,以便我可以修复它们 正交4xp。
开始
有三种运行程序的方法:
如果通过pip3安装程序安装,则 名为otv的可执行文件可用,因此您应该能够:
- CD到您的Ortho4XP目录中
- 运行otv
从下载最新版本 PyPi或 GitHub并将其提取到 文件夹。从命令行运行:
python3 bin/otv YourOrtho4XPdir
(显然,将“yourOrtho4xpDir”更改为存储 正交瓷砖)
如果您在Windows上,并且更喜欢EXE,请下载最新版本 来自GitHub或 PyPi,然后:
- 解压缩包(文件系统中的任何位置)
- 从桌面上的bin/otv.exe创建快捷方式(必须be 一条捷径)。
- 转到shortcut的properties并更改“start” 在“字段中指向您的ORTHO4XP目录。
然后,您只需双击快捷方式即可运行该实用程序 任何时候。
更多信息
在没有任何额外参数的情况下运行otv将为您提供帮助 消息:
usage: Ortho4XP Tile Validator [-q | -v] [-p | --no-pause] [--no-progress] [-h] [--version] [tile_directory] Scan all Ortho4XP Tiles and report any problems positional arguments: tile_directory Directory where Tiles are stored (usually your Ortho4XP dir) - If not provided; will use the current directory display output: -q, --quiet Suppresses all output; exit value indicates errors found -v, -V, --verbose Increase verbosity (repeat to increase verbosity more) alter defaults: -p, -P, --pause Pause the program before exiting (default for Windows) --no-pause Disable auto-pause --no-progress Disables the progress bar display help and information: -h, --help show this help message and exit --version show program's version number and exit
目前,它会检查以下内容:
- 缺少或空的数据目录(地球导航数据,地形, 纹理)
- 每个地形文件中缺少对纹理的引用
- 纹理,但不从地形
OTV目前处于测试阶段,如果你感兴趣,请尝试一下 告诉我这对你有什么用。如有任何反馈和/或 错误报告。
已知问题
- 在Windows上,该实用程序每次运行后都会暂停,即使运行 从命令行。这是因为大多数windows用户将 从快捷方式运行util,因此需要暂停 必须特别添加它。您可以使用--no-pause选项 禁用此功能