support virtools 3.0 file

This commit is contained in:
yyc12345 2023-07-18 20:34:14 +08:00
parent 6101c939f6
commit 1f7d6c0e9e
10 changed files with 1840 additions and 69 deletions

View File

@ -7,7 +7,7 @@ import re
g_EnableDebugging = False g_EnableDebugging = False
g_VirtoolsVersion: tuple[str] = ( g_VirtoolsVersion: tuple[str] = (
'25', '35', '40', '50', '25', '30', '35', '40', '50',
) )
if g_EnableDebugging: if g_EnableDebugging:

BIN
NlpSrc/VT30.nlp Normal file

Binary file not shown.

22
NlpTr/VT30.diff Normal file
View File

@ -0,0 +1,22 @@
i/650
i/1222
i/1223
i/1224
i/1225
i/1226
i/1227
i/1228
i/1229
i/1440
i/1452
i/1646
i/1756
i/1757
i/1758
i/1759
i/1760
i/1761
i/1762
i/1763
i/1764
d/1431

1765
NlpTr/VT30.index Normal file

File diff suppressed because it is too large Load Diff

23
NlpTr/VT30.template.json Normal file
View File

@ -0,0 +1,23 @@
{
"Schematic/Popup/11": "Sort By Activity",
"3D Object Setup/Buttons/3": "Use Hardware Skinning",
"3D Object Setup/Buttons/4": "Bones Mode",
"3D Object Setup/Bones Mode/0": "Local",
"3D Object Setup/Bones Mode/1": "World",
"3D Object Setup/Bones Mode/2": "World View",
"3D Object Setup/Bones Mode/3": "World View Proj",
"3D Object Setup/Bones Info/0": "Bones Count",
"3D Object Setup/Bones Info/1": "Max. Bones per Vertex",
"Mesh Setup/Buttons/20": "Material / Channel Type",
"Mesh Setup/Popup Menu/3": "Fill With...",
"Hierarchy View/Errors/3": "A place can only be a 3D root!",
"TextureType/0": "2d",
"TextureType/1": "Cube",
"TextureType/2": "Volume",
"Channel Extended/0": "Add Extended Channel",
"Channel Extended/1": "Float 1",
"Channel Extended/2": "Float 2",
"Channel Extended/3": "Float 3",
"Channel Extended/4": "Float 4",
"Channel Extended/5": "Channel Type..."
}

23
NlpTr/VT30.zh-cn.json Normal file
View File

@ -0,0 +1,23 @@
{
"Schematic/Popup/11": "按活动排序",
"3D Object Setup/Buttons/3": "使用硬件蒙皮",
"3D Object Setup/Buttons/4": "骨骼模式",
"3D Object Setup/Bones Mode/0": "本地",
"3D Object Setup/Bones Mode/1": "世界",
"3D Object Setup/Bones Mode/2": "世界视图",
"3D Object Setup/Bones Mode/3": "世界视图投影",
"3D Object Setup/Bones Info/0": "骨骼数量",
"3D Object Setup/Bones Info/1": "每个顶点的最大骨骼数",
"Mesh Setup/Buttons/20": "材质 / 通道类型",
"Mesh Setup/Popup Menu/3": "填充...",
"Hierarchy View/Errors/3": "一个位置只能是一个3D根!",
"TextureType/0": "2d",
"TextureType/1": "Cube",
"TextureType/2": "Volume",
"Channel Extended/0": "添加扩展通道",
"Channel Extended/1": "浮点数1",
"Channel Extended/2": "浮点数2",
"Channel Extended/3": "浮点数3",
"Channel Extended/4": "浮点数4",
"Channel Extended/5": "通道类型..."
}

View File

@ -6,36 +6,14 @@ i/264
i/265 i/265
i/607 i/607
i/608 i/608
i/655
i/671 i/671
i/1227
i/1228
i/1229
i/1230
i/1231
i/1232
i/1233 i/1233
i/1234 i/1234
i/1235 i/1235
i/1236 i/1236
i/1237
i/1238
i/1333 i/1333
i/1449 d/1324
i/1461 d/666
i/1655
i/1765
i/1766
i/1767
i/1768
i/1769
i/1770
i/1771
i/1772
i/1773
d/1431
d/1315
d/665
d/603 d/603
d/602 d/602
d/250 d/250

View File

@ -7,31 +7,10 @@
"Main Menu/46": "&Selection", "Main Menu/46": "&Selection",
"Schematic/Dialog/17": "source of parameter <%s> (owner object : <%s>) is not in schematic\\nDo you want to show the setup of <%s> ?", "Schematic/Dialog/17": "source of parameter <%s> (owner object : <%s>) is not in schematic\\nDo you want to show the setup of <%s> ?",
"Schematic/Dialog/18": "source of parameter <%s> (no owner object) is not in schematic\\n", "Schematic/Dialog/18": "source of parameter <%s> (no owner object) is not in schematic\\n",
"Schematic/Popup/11": "Sort By Activity",
"Schematic/Popup/27": "Move'n'Scroll Mode\\tG", "Schematic/Popup/27": "Move'n'Scroll Mode\\tG",
"3D Object Setup/Buttons/3": "Use Hardware Skinning",
"3D Object Setup/Buttons/4": "Bones Mode",
"3D Object Setup/Bones Mode/0": "Local",
"3D Object Setup/Bones Mode/1": "World",
"3D Object Setup/Bones Mode/2": "World View",
"3D Object Setup/Bones Mode/3": "World View Proj",
"3D Object Setup/Bones Mode/4": "Inv Local", "3D Object Setup/Bones Mode/4": "Inv Local",
"3D Object Setup/Bones Mode/5": "Inv World", "3D Object Setup/Bones Mode/5": "Inv World",
"3D Object Setup/Bones Mode/6": "Inv WorldView", "3D Object Setup/Bones Mode/6": "Inv WorldView",
"3D Object Setup/Bones Mode/7": "Inv World View Proj", "3D Object Setup/Bones Mode/7": "Inv World View Proj",
"3D Object Setup/Bones Info/0": "Bones Count", "2D Sprite Setup/Popup Menu/6": "Save slot..."
"3D Object Setup/Bones Info/1": "Max. Bones per Vertex",
"2D Sprite Setup/Popup Menu/6": "Save slot...",
"Mesh Setup/Buttons/20": "Material / Channel Type",
"Mesh Setup/Popup Menu/3": "Fill With...",
"Hierarchy View/Errors/3": "A place can only be a 3D root!",
"TextureType/0": "2d",
"TextureType/1": "Cube",
"TextureType/2": "Volume",
"Channel Extended/0": "Add Extended Channel",
"Channel Extended/1": "Float 1",
"Channel Extended/2": "Float 2",
"Channel Extended/3": "Float 3",
"Channel Extended/4": "Float 4",
"Channel Extended/5": "Channel Type..."
} }

View File

@ -7,31 +7,10 @@
"Main Menu/46": "选择", "Main Menu/46": "选择",
"Schematic/Dialog/17": "参数<%s>的源(拥有者对象:<%s>)不在原理图中\\n您要显示<%s> 的设置吗?", "Schematic/Dialog/17": "参数<%s>的源(拥有者对象:<%s>)不在原理图中\\n您要显示<%s> 的设置吗?",
"Schematic/Dialog/18": "参数<%s>的源(无拥有者对象)不在原理图中\\n", "Schematic/Dialog/18": "参数<%s>的源(无拥有者对象)不在原理图中\\n",
"Schematic/Popup/11": "按活动排序",
"Schematic/Popup/27": "移动滚动模式\\tG", "Schematic/Popup/27": "移动滚动模式\\tG",
"3D Object Setup/Buttons/3": "使用硬件蒙皮",
"3D Object Setup/Buttons/4": "骨骼模式",
"3D Object Setup/Bones Mode/0": "本地",
"3D Object Setup/Bones Mode/1": "世界",
"3D Object Setup/Bones Mode/2": "世界视图",
"3D Object Setup/Bones Mode/3": "世界视图投影",
"3D Object Setup/Bones Mode/4": "反本地", "3D Object Setup/Bones Mode/4": "反本地",
"3D Object Setup/Bones Mode/5": "反世界", "3D Object Setup/Bones Mode/5": "反世界",
"3D Object Setup/Bones Mode/6": "反世界视图", "3D Object Setup/Bones Mode/6": "反世界视图",
"3D Object Setup/Bones Mode/7": "反世界视图投影", "3D Object Setup/Bones Mode/7": "反世界视图投影",
"3D Object Setup/Bones Info/0": "骨骼数量", "2D Sprite Setup/Popup Menu/6": "保存槽..."
"3D Object Setup/Bones Info/1": "每个顶点的最大骨骼数",
"2D Sprite Setup/Popup Menu/6": "保存槽...",
"Mesh Setup/Buttons/20": "材质 / 通道类型",
"Mesh Setup/Popup Menu/3": "填充...",
"Hierarchy View/Errors/3": "一个位置只能是一个3D根!",
"TextureType/0": "2d",
"TextureType/1": "Cube",
"TextureType/2": "Volume",
"Channel Extended/0": "添加扩展通道",
"Channel Extended/1": "浮点数1",
"Channel Extended/2": "浮点数2",
"Channel Extended/3": "浮点数3",
"Channel Extended/4": "浮点数4",
"Channel Extended/5": "通道类型..."
} }

View File

@ -1,10 +1,12 @@
./NlpCodec/out/NlpCodec decode NlpSrc/VT25.nlp NlpSrc/VT25.txt ./NlpCodec/out/NlpCodec decode NlpSrc/VT25.nlp NlpSrc/VT25.txt
./NlpCodec/out/NlpCodec decode NlpSrc/VT30.nlp NlpSrc/VT30.txt
./NlpCodec/out/NlpCodec decode NlpSrc/VT35.nlp NlpSrc/VT35.txt ./NlpCodec/out/NlpCodec decode NlpSrc/VT35.nlp NlpSrc/VT35.txt
./NlpCodec/out/NlpCodec decode NlpSrc/VT40.nlp NlpSrc/VT40.txt ./NlpCodec/out/NlpCodec decode NlpSrc/VT40.nlp NlpSrc/VT40.txt
./NlpCodec/out/NlpCodec decode NlpSrc/VT50.nlp NlpSrc/VT50.txt ./NlpCodec/out/NlpCodec decode NlpSrc/VT50.nlp NlpSrc/VT50.txt
cd NlpParser cd NlpParser
java NlpRunner ../NlpSrc/VT25.txt ../NlpSrc/VT25.json java NlpRunner ../NlpSrc/VT25.txt ../NlpSrc/VT25.json
java NlpRunner ../NlpSrc/VT30.txt ../NlpSrc/VT30.json
java NlpRunner ../NlpSrc/VT35.txt ../NlpSrc/VT35.json java NlpRunner ../NlpSrc/VT35.txt ../NlpSrc/VT35.json
java NlpRunner ../NlpSrc/VT40.txt ../NlpSrc/VT40.json java NlpRunner ../NlpSrc/VT40.txt ../NlpSrc/VT40.json
java NlpRunner ../NlpSrc/VT50.txt ../NlpSrc/VT50.json java NlpRunner ../NlpSrc/VT50.txt ../NlpSrc/VT50.json