Mod Tool: Difference between revisions

1,577 bytes added ,  2 September 2012
m
i'm back, sorta
mNo edit summary
m (i'm back, sorta)
Line 272: Line 272:
| [18] read txt file
| [18] read txt file
|-
|-
| [19] call CMD, e.g. to use onisplit
| [19] check onisplit version
| [20] building forms in Softimage
| [20] call CMD, e.g. to use onisplit
|
| [21] building forms in ModTool
|}
|}


Line 506: Line 506:
  ' '''[18] read txt file'''
  ' '''[18] read txt file'''


' '''[19] check onisplit version'''
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Mod Tool can't use Wscript.Echo, use logmessage instead
logmessage objFSO.GetFileVersion("F:\Program Files (x86)\Oni\Edition\install\onisplit.exe")
' result looks like this:
' INFO : 0.9.59.0




  ' '''[19] call CMD, e.g. to use onisplit'''
  ' '''[20] call CMD, e.g. to use onisplit'''
' relative path
' a) variable
' b) string
' onisplit location is the same for both methods
' no tripple quote needed here
onisplit_location = "F:\Program Files (x86)\Oni\Edition\install"
' a)
' the GameDataFolder isn't inside the "install" folder
' so we will use ..\ to go one folder backwards
'
' additional quote signs tells the program where the
' paths strings start and end
input_folder = """..\GameDataFolder\level19_Final\ONLVcompound.oni"""
output_folder = """..\GameDataFolder"""
onisplit_action = "cmd /C start OniSplit.exe -extract:xml " & output_folder & " " & input_folder
XSIUtils.LaunchProcess onisplit_action, bBlocking, onisplit_location
logmessage "a) " & onisplit_action
' b)
onisplit_action = "cmd /C start OniSplit.exe -extract:xml " & """..\GameDataFolder""" & " " & """..\GameDataFolder\level19_Final\ONLVcompound.oni"""
XSIUtils.LaunchProcess onisplit_action, bBlocking, onisplit_location
logmessage "b) " & onisplit_action
' expected results:
' INFO : a) cmd /C start OniSplit.exe -extract:xml "..\GameDataFolder" "..\GameDataFolder\level19_Final\ONLVcompound.oni"
' INFO : b) cmd /C start OniSplit.exe -extract:xml "..\GameDataFolder" "..\GameDataFolder\level19_Final\ONLVcompound.oni"






  ' '''[20] building a form'''
  ' '''[21] building a form'''




8,452

edits