Jump to content

Mod Tool/Scripting: Difference between revisions

m
version, license, progam bit version
mNo edit summary
m (version, license, progam bit version)
Line 1: Line 1:
===build an vbs executable===
===General===
logmessage license
logmessage version
' examples:
' INFO : Softimage
' INFO : 13.0.114.0
' INFO : Mod Tool
' INFO : 7.5.203.0
 
logmessage XSIUtils.ResolvePath("$XSI_USERHOME/")
' directory to addons and exported resources
logmessage XSIUtils.ResolvePath("$XSI_HOME/")
' directory to a few imported core files that must be modified (Model.vbs, ModStartup.js, ...)
' example:
' INFO : C:\Users\Paradox-01\Autodesk\Softimage_2015\
' INFO : C:\Program Files\Autodesk\Softimage 2015\
' INFO : C:\Users\Paradox-01\Autodesk\Softimage_Mod_Tool_7.5\
' INFO : C:\Softimage\Softimage_Mod_Tool_7.5\
 
logmessage XSIUtils.ResolvePath("$XSI_CPU/")
' shows programm bit version
' example:
' for 64-bit
' INFO : nt-x86-64\
' for 32-bit
' INFO : nt-x86\
 
 
===Build an vbs executable===
[[Image:VbsEdit_for_scripting_and_compiling.png|thumb]]
[[Image:VbsEdit_for_scripting_and_compiling.png|thumb]]
Executable, app(lication), program. Whatever you call it, sometimes it might be necessary to compile the script into an actual program.
Executable, app(lication), program. Whatever you call it, sometimes it might be necessary to compile the script into an actual program.
Line 40: Line 74:




===read file===
===Read file===
====binary====
====Binary====
  scan_AKEV_file_table
  scan_AKEV_file_table
   
   
Line 138: Line 172:




===modify file===
===Modify file===
====binary====
====Binary====
[[Image:Before_and_after_binary_patching_with_vbs.png|thumb|400px|Before and after patching.]]
[[Image:Before_and_after_binary_patching_with_vbs.png|thumb|400px|Before and after patching.]]
Change FilePath and in case of binary patching use function "StringToByteArray".
Change FilePath and in case of binary patching use function "StringToByteArray".
8,452

edits