Advertisement
Baoulettes

Rocksmith 2014 Guitars Maker (ui) V1.0.0.5

Nov 23rd, 2013
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.87 KB | None | 0 0
  1. #singleinstance force
  2. softname = Rocksmith 2014 Guitar Maker
  3. buildversion = 1.0.0.5
  4. FileCreateDir, %A_ScriptDir%\ressources
  5. FileCreateDir, %A_ScriptDir%\ressources\images
  6. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\icon.png, %A_ScriptDir%\ressources\images\icon.png
  7. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\inlay_preview.png, %A_ScriptDir%\ressources\images\inlay_preview.png
  8. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\inlay_template.png, %template%
  9. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\rocksmith_2014_logo.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo.png
  10. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\rocksmith_2014_logo_graded.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
  11. FileCreateDir, %A_ScriptDir%\ressources\imgtool
  12. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\animate.exe, %A_ScriptDir%\ressources\imgtool\animate.exe
  13. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\atl100.dll, %A_ScriptDir%\ressources\imgtool\atl100.dll
  14. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\coder.xml, %A_ScriptDir%\ressources\imgtool\coder.xml
  15. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\colors.xml, %A_ScriptDir%\ressources\imgtool\colors.xml
  16. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\compare.exe, %A_ScriptDir%\ressources\imgtool\compare.exe
  17. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\composite.exe, %A_ScriptDir%\ressources\imgtool\composite.exe
  18. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\configure.xml, %A_ScriptDir%\ressources\imgtool\configure.xml
  19. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\conjure.exe, %A_ScriptDir%\ressources\imgtool\conjure.exe
  20. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\convert.exe, %A_ScriptDir%\ressources\imgtool\convert.exe
  21. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_bzlib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_bzlib_.dll
  22. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_glib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_glib_.dll
  23. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_jbig_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_jbig_.dll
  24. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_jp2_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_jp2_.dll
  25. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_jpeg_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_jpeg_.dll
  26. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_lcms_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_lcms_.dll
  27. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_libxml_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_libxml_.dll
  28. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_lqr_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_lqr_.dll
  29. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_Magick++_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_Magick++_.dll
  30. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_magick_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_magick_.dll
  31. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_pango_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_pango_.dll
  32. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_png_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_png_.dll
  33. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_tiff_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_tiff_.dll
  34. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_ttf_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_ttf_.dll
  35. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_wand_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_wand_.dll
  36. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_webp_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_webp_.dll
  37. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_xlib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_xlib_.dll
  38. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_zlib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_zlib_.dll
  39. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\dcraw.exe, %A_ScriptDir%\ressources\imgtool\dcraw.exe
  40. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\delegates.xml, %A_ScriptDir%\ressources\imgtool\delegates.xml
  41. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\DevIL.dll, %A_ScriptDir%\ressources\imgtool\DevIL.dll
  42. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\display.exe, %A_ScriptDir%\ressources\imgtool\display.exe
  43. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\emfplus.exe, %A_ScriptDir%\ressources\imgtool\emfplus.exe
  44. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\english.xml, %A_ScriptDir%\ressources\imgtool\english.xml
  45. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\hp2xx.exe, %A_ScriptDir%\ressources\imgtool\hp2xx.exe
  46. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\identify.exe, %A_ScriptDir%\ressources\imgtool\identify.exe
  47. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ILU.dll, %A_ScriptDir%\ressources\imgtool\ILU.dll
  48. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ILUT.dll, %A_ScriptDir%\ressources\imgtool\ILUT.dll
  49. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ImageMagick.ico, %A_ScriptDir%\ressources\imgtool\ImageMagick.ico
  50. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ImageMagick.rdf, %A_ScriptDir%\ressources\imgtool\ImageMagick.rdf
  51. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\imdisplay.exe, %A_ScriptDir%\ressources\imgtool\imdisplay.exe
  52. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\import.exe, %A_ScriptDir%\ressources\imgtool\import.exe
  53. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\License.txt, %A_ScriptDir%\ressources\imgtool\License.txt
  54. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\locale.xml, %A_ScriptDir%\ressources\imgtool\locale.xml
  55. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\log.xml, %A_ScriptDir%\ressources\imgtool\log.xml
  56. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\magic.xml, %A_ScriptDir%\ressources\imgtool\magic.xml
  57. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\mfc100.dll, %A_ScriptDir%\ressources\imgtool\mfc100.dll
  58. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\mime.xml, %A_ScriptDir%\ressources\imgtool\mime.xml
  59. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\mogrify.exe, %A_ScriptDir%\ressources\imgtool\mogrify.exe
  60. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\montage.exe, %A_ScriptDir%\ressources\imgtool\montage.exe
  61. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\msvcp100.dll, %A_ScriptDir%\ressources\imgtool\msvcp100.dll
  62. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\msvcr100.dll, %A_ScriptDir%\ressources\imgtool\msvcr100.dll
  63. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\policy.xml, %A_ScriptDir%\ressources\imgtool\policy.xml
  64. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\sRGB.icc, %A_ScriptDir%\ressources\imgtool\sRGB.icc
  65. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\stream.exe, %A_ScriptDir%\ressources\imgtool\stream.exe
  66. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\thresholds.xml, %A_ScriptDir%\ressources\imgtool\thresholds.xml
  67. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\type-ghostscript.xml, %A_ScriptDir%\ressources\imgtool\type-ghostscript.xml
  68. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\type.xml, %A_ScriptDir%\ressources\imgtool\type.xml
  69. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\vcomp100.dll, %A_ScriptDir%\ressources\imgtool\vcomp100.dll
  70. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\X11.dll, %A_ScriptDir%\ressources\imgtool\X11.dll
  71. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\Xext.dll, %A_ScriptDir%\ressources\imgtool\Xext.dll
  72. FileCreateDir, %A_ScriptDir%\ressources\packer
  73. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\7za.exe, %A_ScriptDir%\ressources\packer\7za.exe
  74. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\NDesk.Options.dll, %A_ScriptDir%\ressources\packer\NDesk.Options.dll
  75. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\packer.exe, %A_ScriptDir%\ressources\packer\packer.exe
  76. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\packer.pdb, %A_ScriptDir%\ressources\packer\packer.pdb
  77. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\RocksmithToolkitLib.dll, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.dll
  78. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\RocksmithToolkitLib.pdb, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.pdb
  79. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\X360.dll, %A_ScriptDir%\ressources\packer\X360.dll
  80. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\X360.xml, %A_ScriptDir%\ressources\packer\X360.xml
  81. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\ZLIB.dll, %A_ScriptDir%\ressources\packer\ZLIB.dll
  82. Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\zlib.net.dll, %A_ScriptDir%\ressources\packer\zlib.net.dll
  83.  
  84. IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  85. If RS2014DIR = ERROR
  86. {
  87. IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  88. IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  89. GuiControl,, rs2014dirtext, Undefinied.
  90.  
  91. } else {
  92. IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  93.  
  94. }
  95. If RS2014DIR =
  96. {
  97. IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  98. IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  99. GuiControl,, rs2014dirtext, Undefinied.
  100. } else {
  101. IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  102.  
  103. }
  104. IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
  105. IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
  106.  
  107. If ccg = ERROR
  108. {
  109. IniWrite, 0, CustomGuitarList.ini, NumberInstance, NumberSet
  110. IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
  111. } else {
  112. IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
  113. }
  114. If ccg2 = ERROR
  115. {
  116. IniWrite, 90000, CustomGuitarList.ini, NumberInstance, NumberGuitar
  117. IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
  118. } else {
  119. IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
  120. }
  121. IDString = a0b1c2d3e4f5a6b7c8d9e0f
  122. Random, RDM1, 0x00F000000, 0x00fffffff
  123. ID1 = %IDString%%RDM1%
  124. StringUpper, ID1MAJ, ID1
  125. guitarname = English Default name
  126. guitarname1 = French name
  127. guitarname2 = Spanish name
  128. guitarname3 = Italian name
  129. guitarname4 = German name
  130. guitarname5 = Japanese name
  131. DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
  132. DDSI512files = %A_ScriptDir%\ressources\images\icon.png
  133. textprogress = Ready to go !
  134. creator = Creator Name
  135. RandomName(MinLength=4, MaxLength=0)
  136. {
  137.  
  138. ;This is a table of probabilities of given letter combinations.
  139. ;Each list is the probability of any letter coming after the letter that is the variable name.
  140. ;The 27th value is the probability that the word ends with the current letter.
  141.  
  142. A=0.005129|0.020532|0.038276|0.031753|0.005903|0.009913|0.027038|0.014457|0.023527|0.003511|0.021702|0.086397|0.045315|0.192551|0.002685|0.014491|0.001136|0.142056|0.059445|0.043698|0.041322|0.018312|0.010774|0.001824|0.020584|0.010240|0.107428
  143. B=0.184518|0.021072|0.000500|0.002564|0.243982|0.000125|0.000188|0.002564|0.076033|0.001313|0.001563|0.055274|0.000875|0.002376|0.132933|0.000063|0.000000|0.133683|0.009192|0.000313|0.090977|0.000188|0.000125|0.000000|0.022447|0.000313|0.016820
  144. C=0.131713|0.001253|0.042204|0.003536|0.053348|0.001566|0.008727|0.275689|0.051557|0.000090|0.154493|0.028375|0.003849|0.004117|0.123255|0.001343|0.002954|0.036744|0.002506|0.003043|0.028419|0.000806|0.001343|0.000000|0.004699|0.017678|0.016694
  145. D=0.103809|0.005881|0.001079|0.024765|0.256609|0.003345|0.017266|0.006367|0.102029|0.000701|0.002968|0.027085|0.008849|0.007985|0.107424|0.000432|0.000432|0.046833|0.019208|0.017427|0.044783|0.001619|0.007068|0.000000|0.020557|0.005288|0.160192
  146. E=0.031341|0.012931|0.019802|0.020976|0.022773|0.007726|0.014163|0.010930|0.034414|0.002392|0.012409|0.104894|0.023455|0.108561|0.004291|0.007973|0.000464|0.239084|0.062957|0.042633|0.006958|0.011727|0.010582|0.001363|0.039371|0.008379|0.137452
  147. F=0.111275|0.000369|0.000985|0.000246|0.170236|0.139463|0.000985|0.000985|0.112752|0.000492|0.003570|0.058961|0.004677|0.004677|0.114476|0.000246|0.000123|0.100197|0.011324|0.021295|0.041113|0.000369|0.000246|0.000000|0.003570|0.000862|0.096504
  148. G=0.140257|0.004596|0.000919|0.003493|0.199694|0.002145|0.030944|0.064951|0.064767|0.000551|0.000919|0.053922|0.006311|0.020282|0.084191|0.000551|0.000368|0.083027|0.019179|0.012316|0.063725|0.000797|0.004718|0.000245|0.003309|0.000123|0.133701
  149. H=0.214954|0.004703|0.001599|0.001035|0.189466|0.002116|0.000564|0.002069|0.102610|0.000658|0.003621|0.037903|0.020973|0.022384|0.124759|0.000329|0.000000|0.032683|0.006207|0.021067|0.054221|0.000517|0.009358|0.000000|0.009828|0.000141|0.136233
  150. I=0.044717|0.012847|0.076362|0.026840|0.088736|0.009884|0.035604|0.003560|0.000896|0.001320|0.015511|0.082586|0.027886|0.216811|0.031571|0.012474|0.001270|0.031247|0.081889|0.054502|0.004158|0.011802|0.001494|0.002938|0.001245|0.009262|0.112588
  151. J=0.333844|0.000510|0.012251|0.006126|0.211843|0.000000|0.001021|0.003063|0.059214|0.001021|0.010720|0.002552|0.003063|0.009188|0.197550|0.000000|0.000000|0.000000|0.002552|0.007657|0.110260|0.000000|0.001021|0.000000|0.000510|0.001531|0.024502
  152. K=0.105301|0.002453|0.000239|0.000658|0.194089|0.001615|0.000120|0.013522|0.166507|0.000838|0.003889|0.046787|0.009633|0.017470|0.101412|0.000299|0.000060|0.036078|0.023932|0.001137|0.039069|0.000897|0.004786|0.000239|0.025009|0.000179|0.203781
  153. L=0.142144|0.012700|0.007785|0.033484|0.190748|0.007136|0.004641|0.004666|0.115222|0.000499|0.010554|0.157140|0.017815|0.003019|0.079568|0.004042|0.000549|0.002146|0.023429|0.022031|0.025599|0.007884|0.002770|0.000075|0.015320|0.004292|0.104743
  154. M=0.313971|0.039109|0.071357|0.001102|0.144316|0.001552|0.001502|0.001252|0.093991|0.000300|0.003756|0.007561|0.032849|0.001753|0.110366|0.030796|0.000451|0.004507|0.016475|0.000701|0.039509|0.000150|0.001052|0.000000|0.007161|0.000801|0.073660
  155. N=0.061413|0.016703|0.021091|0.069684|0.122481|0.004871|0.078736|0.008455|0.062562|0.000942|0.020976|0.004802|0.002481|0.042114|0.058036|0.001011|0.000712|0.003538|0.053877|0.050017|0.007168|0.001746|0.003331|0.000000|0.007099|0.011970|0.284182
  156. O=0.008524|0.017299|0.028237|0.027181|0.024717|0.015061|0.013377|0.013477|0.008725|0.002338|0.011843|0.083101|0.033291|0.169068|0.030248|0.016394|0.000654|0.114958|0.060421|0.038018|0.047975|0.020140|0.041337|0.002791|0.010611|0.008725|0.151492
  157. P=0.176699|0.000875|0.001459|0.000972|0.201984|0.015365|0.000292|0.038802|0.113099|0.000097|0.010503|0.051055|0.002334|0.003209|0.103958|0.076145|0.000000|0.074492|0.021103|0.010114|0.033064|0.000194|0.000875|0.000000|0.007002|0.000097|0.056209
  158. Q=0.006831|0.001366|0.000000|0.001366|0.000000|0.000000|0.000000|0.000000|0.005464|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0.000000|0.001366|0.000000|0.000000|0.968579|0.001366|0.000000|0.000000|0.000000|0.000000|0.013661
  159. R=0.107889|0.012734|0.012774|0.039466|0.114066|0.005515|0.027955|0.005334|0.100509|0.000762|0.014499|0.017507|0.018449|0.029038|0.095937|0.004171|0.001043|0.037882|0.037180|0.049252|0.031785|0.005475|0.003068|0.000160|0.020154|0.005715|0.201681
  160. S=0.063337|0.009701|0.073814|0.002910|0.097763|0.001774|0.001525|0.060925|0.050808|0.000554|0.061286|0.020318|0.015134|0.008482|0.067384|0.021426|0.002328|0.001663|0.053885|0.132300|0.016797|0.001247|0.011808|0.000000|0.003964|0.007429|0.211437
  161. T=0.091587|0.001630|0.012519|0.000347|0.159384|0.001595|0.001769|0.072652|0.074005|0.001283|0.006208|0.018484|0.009294|0.007352|0.110522|0.000555|0.000069|0.065543|0.026564|0.109169|0.024691|0.000763|0.005098|0.000000|0.013525|0.036447|0.148946
  162. U=0.021849|0.032911|0.052449|0.040176|0.074243|0.017281|0.047056|0.012163|0.041827|0.002862|0.015190|0.084205|0.058118|0.084810|0.006219|0.021354|0.001101|0.136984|0.111833|0.065658|0.000881|0.005449|0.002367|0.008806|0.007320|0.013979|0.032911
  163. V=0.281558|0.000162|0.000647|0.001293|0.327461|0.000162|0.000323|0.000162|0.251657|0.000485|0.001616|0.010991|0.000162|0.003071|0.078390|0.000000|0.000000|0.012769|0.007435|0.000323|0.004687|0.000162|0.000323|0.000000|0.007112|0.000485|0.008566
  164. W=0.204323|0.006032|0.003770|0.009801|0.191380|0.000880|0.001131|0.037824|0.200804|0.000000|0.005278|0.018472|0.003644|0.016210|0.092109|0.000377|0.000126|0.013948|0.074265|0.004398|0.007665|0.000628|0.000628|0.000000|0.015582|0.000628|0.090098
  165. X=0.063694|0.022293|0.004777|0.001592|0.081210|0.012739|0.000000|0.011146|0.065287|0.000000|0.001592|0.039809|0.014331|0.014331|0.044586|0.001592|0.000000|0.004777|0.033439|0.078025|0.007962|0.000000|0.014331|0.003185|0.004777|0.001592|0.472930
  166. Y=0.061443|0.012165|0.011753|0.016289|0.072062|0.003505|0.004845|0.004845|0.003505|0.000206|0.016907|0.026495|0.018763|0.042268|0.032680|0.003711|0.000206|0.014330|0.026186|0.011856|0.008763|0.001443|0.004021|0.000206|0.000412|0.002887|0.598247
  167. Z=0.165246|0.006787|0.005366|0.004261|0.174085|0.000947|0.004261|0.003946|0.121370|0.000000|0.014205|0.018466|0.017045|0.009154|0.066761|0.000789|0.001578|0.001578|0.004104|0.000631|0.035827|0.000631|0.008996|0.000000|0.034722|0.058396|0.240846
  168. Start=0.037129|0.091544|0.068008|0.055260|0.020789|0.036464|0.052670|0.058435|0.006802|0.012894|0.051228|0.053638|0.085992|0.020597|0.016318|0.052275|0.002725|0.047647|0.109494|0.038852|0.004460|0.023480|0.036127|0.000180|0.006261|0.010732
  169.  
  170.  
  171. ;This allows numerical values to easily be converted to letters.
  172. Alphabet = ABCDEFGHIJKLMNOPQRSTUVWXYZ
  173.  
  174. Loop
  175. {
  176. ;Checks for the previous letter to determine which set of probabilities to use.
  177. If (!Word)
  178. Previous = Start
  179. Else
  180. Previous := SubStr(Word, 0, 1)
  181.  
  182.  
  183. ;Randomly chooses the next letter, based on the probabilities listed above.
  184. Random, rand, 0.0, 1.0
  185. Sum = 0
  186. Next =
  187. Loop, parse, %Previous%, |
  188. {
  189. Sum += A_LoopField
  190. If (rand<Sum)
  191. {
  192. Next := SubStr(Alphabet, A_Index, 1)
  193. Break
  194. }
  195. }
  196.  
  197.  
  198. ;Finishes the word if the word randomly ends or reaches the maximum length.
  199. If ((!Next AND StrLen(Word)>=MinLength) OR (MaxLength AND StrLen(Word)=MaxLength))
  200. Break
  201.  
  202. Word .= Next
  203. }
  204.  
  205. StringLower, Word, Word, T
  206. Return, Word
  207. }
  208. RandomName = % RandomName(6,6)
  209. StringLower, RandomName, RandomName
  210. guitarnamesix = %RandomName%
  211.  
  212. Gui, Add, Picture, x102 y9 w610 h120 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
  213. Gui, Add, Text, x712 y109 w90 h20 , Version : %buildversion%
  214.  
  215. Gui, Add, Button,gRS2014D vRS2014DB x272 y119 w100 h30, RS2014 Directory
  216. Gui, Add, Text,vrs2014dirtext x22 y129 w240 h30, %RS2014DIR%
  217.  
  218. Gui, Add, Text,vidmaster x22 y163 w240 h30 , %ID1MAJ%
  219. Gui, Add, Text,vguitarid x272 y163 w100 h30 , %ccg2%
  220.  
  221.  
  222. Gui, Add, Button,gloadguitar vlg x162 y189 w100 h30 , Load
  223. Gui, Add, Button,gsaveguitar vsg x272 y189 w100 h30 , Save
  224. Gui, Add, Text, x22 y197 w140 h30 , Custom Guitars templates :
  225.  
  226. Gui, Add, Text, x22 y239 w150 h30 , English name :
  227. Gui, Add, Edit, vnewenglishname x182 y239 w190 h30 , %guitarname%
  228. Gui, Add, Text, x22 y279 w150 h30 , French name :
  229. Gui, Add, Edit, vnewfrenchname x182 y279 w190 h30 , %guitarname1%
  230. Gui, Add, Text, x22 y319 w150 h30 , Spanish name :
  231. Gui, Add, Edit, vnewspanishname x182 y319 w190 h30 , %guitarname2%
  232. Gui, Add, Text, x22 y359 w150 h30 , Italian name :
  233. Gui, Add, Edit, vnewitalianname x182 y359 w190 h30 , %guitarname3%
  234. Gui, Add, Text, x22 y399 w150 h30 , German name :
  235. Gui, Add, Edit, vnewgermanname x182 y399 w190 h30 , %guitarname4%
  236. Gui, Add, Text, x22 y439 w150 h30 , Japanese name :
  237. Gui, Add, Edit, vnewjapanesename x182 y439 w190 h30 , %guitarname5%
  238.  
  239. Gui, Add, Picture,gnewiconfiles vnewicon x382 y119 w150 h150 , %DDSI512files%
  240. Gui, Add, Text,vdefaultname x542 y139 w200 h30 , %guitarname%
  241. Gui, Add, Text,vdefault6name Limit6 x542 y169 w200 h30 , %RandomName%
  242. Gui, Add, CheckBox,vcoloredinlay x542 y199 w200 h30, Colored Inlay
  243. Gui, Add, Edit,vcreatorname x542 y229 w200 h40 , %creator%
  244.  
  245. Gui, Add, Picture,gnewinlayfiles vnewinlay x382 y289 w420 h150 , %DDSInlayfiles%
  246. Gui, Add, Button,ggetemplate vgetemplateB x702 y449 w100 h30 , Get the template
  247.  
  248. Gui, Add, Text, x382 y449 w310 h30 , %ccg% custom guitars have been created already.
  249.  
  250. Gui, Add, Text,vtxtprogress x12 y509 w680 h20 , %textprogress%
  251. Gui, Add, Progress,vprogressbar x12 y479 w680 h30 , %progress%
  252. Gui, Add, Button,gparse vparseB x702 y489 w100 h30 , Create it !
  253. Gui, Show, h535 w816, %softname%
  254. Gui, Add, Button,gabout vaboutB x712 y79 w90 h30 , About
  255. SetTimer, Refreshmahname, 10
  256. return
  257.  
  258. about:
  259. Gui, 2:Add, Picture, x2 y-1 w450 h120 +Center, %A_ScriptDir%\ressources\images\rocksmith_2014_logo.png
  260. Gui, 2:Add, Text, x122 y109 w200 h30 +Center, Version : %buildversion%
  261. Gui, 2:Add, Text,gbaoulettes x122 y129 w200 h30 +Center, Made by : Baoulettes
  262. Gui, 2:Add, Text, x122 y169 w200 h30 +Center, - Credits -
  263. Gui, 2:Add, Text, x2 y209 w200 h30 +Center, - Psarc packer/unpacker -
  264. Gui, 2:Add, Button,ggooglegroups x42 y239 w120 h40 +Center, Open Tool Google Groups
  265. Gui, 2:Add, Text, x2 y319 w200 h30 +Center, - ImageMagick -
  266. Gui, 2:Add, Button,gimagemagick x42 y349 w120 h40 +Center, Open imageMagick
  267. Gui, 2:Add, Text, x252 y209 w200 h30 +Center, - 7zip packer/unpacker -
  268. Gui, 2:Add, Button,g7zip x292 y239 w120 h40 +Center, Open 7zip website
  269. Gui, 2:Add, Text, x252 y319 w200 h30 +Center, AutoHotkey libs
  270. Gui, 2:Add, Button,gautohotkey x292 y349 w120 h40 +Center, Open Autohotkey website
  271. Gui, 2:Show,h403 w455, %softname% - About
  272. return
  273.  
  274. googlegroups:
  275. run, https://groups.google.com/forum/#!forum/rocksmith-custom-song-project
  276. return
  277.  
  278. imagemagick:
  279. run, http://www.imagemagick.org
  280. return
  281.  
  282. 7zip:
  283. run, http://www.7-zip.org/
  284. return
  285.  
  286. autohotkey:
  287. run, http://www.autohotkey.com
  288. return
  289.  
  290. baoulettes:
  291. run, http://forums.smithyanvil.com/profile.php?id=319
  292. return
  293.  
  294. Refreshmahname:
  295. GuiControlGet, newenglishname
  296. GuiControl,, defaultname, %newenglishname%
  297. return
  298.  
  299. RS2014D:
  300. GuiControl, disable, RS2014DB
  301. GuiControl, disable, newinlay
  302. GuiControl, disable, newicon
  303. GuiControl, disable, coloredinlay
  304. GuiControl, disable, getemplateB
  305. GuiControl, disable, newenglishname
  306. GuiControl, disable, newfrenchname
  307. GuiControl, disable, newspanishname
  308. GuiControl, disable, newitalianname
  309. GuiControl, disable, newgermanname
  310. GuiControl, disable, newjapanesename
  311. GuiControl, disable, aboutB
  312. GuiControl, disable, parseB
  313. GuiControl, disable, creatorname
  314. GuiControl, disable, lg
  315. GuiControl, disable, sg
  316. FileSelectFolder, RS2014DIR,, 3, Select Rocksmith 2014 Installation folder.
  317. IniWrite, %RS2014DIR%, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  318. If RS2014DIR = ERROR
  319. {
  320. RS2014DIR = Undefinied.
  321. GuiControl,, rs2014dirtext, %RS2014DIR%
  322. GuiControl, enable, RS2014DB
  323. GuiControl, enable, newinlay
  324. GuiControl, enable, newicon
  325. GuiControl, enable, coloredinlay
  326. GuiControl, enable, newenglishname
  327. GuiControl, enable, newfrenchname
  328. GuiControl, enable, newspanishname
  329. GuiControl, enable, newitalianname
  330. GuiControl, enable, newgermanname
  331. GuiControl, enable, newjapanesename
  332. GuiControl, enable, getemplateB
  333. GuiControl, enable, aboutB
  334. GuiControl, enable, parseB
  335. GuiControl, enable, lg
  336. GuiControl, enable, creatorname
  337. GuiControl, enable, sg
  338. } else {
  339. GuiControl,, rs2014dirtext, %RS2014DIR%
  340. GuiControl, enable, RS2014DB
  341. GuiControl, enable, newinlay
  342. GuiControl, enable, newicon
  343. GuiControl, enable, coloredinlay
  344. GuiControl, enable, newenglishname
  345. GuiControl, enable, newfrenchname
  346. GuiControl, enable, newspanishname
  347. GuiControl, enable, newitalianname
  348. GuiControl, enable, newgermanname
  349. GuiControl, enable, newjapanesename
  350. GuiControl, enable, getemplateB
  351. GuiControl, enable, aboutB
  352. GuiControl, enable, parseB
  353. GuiControl, enable, lg
  354. GuiControl, enable, creatorname
  355. GuiControl, enable, sg
  356. }
  357. If RS2014DIR =
  358. {
  359. RS2014DIR = Undefinied.
  360. GuiControl,, rs2014dirtext, %RS2014DIR%
  361. GuiControl, enable, RS2014DB
  362. GuiControl, enable, newinlay
  363. GuiControl, enable, newicon
  364. GuiControl, enable, coloredinlay
  365. GuiControl, enable, newenglishname
  366. GuiControl, enable, newfrenchname
  367. GuiControl, enable, newspanishname
  368. GuiControl, enable, newitalianname
  369. GuiControl, enable, newgermanname
  370. GuiControl, enable, newjapanesename
  371. GuiControl, enable, getemplateB
  372. GuiControl, enable, aboutB
  373. GuiControl, enable, parseB
  374. GuiControl, enable, lg
  375. GuiControl, enable, creatorname
  376. GuiControl, enable, sg
  377. } else {
  378. GuiControl,, rs2014dirtext, %RS2014DIR%
  379. GuiControl, enable, RS2014DB
  380. GuiControl, enable, newinlay
  381. GuiControl, enable, newicon
  382. GuiControl, enable, coloredinlay
  383. GuiControl, enable, newenglishname
  384. GuiControl, enable, newfrenchname
  385. GuiControl, enable, newspanishname
  386. GuiControl, enable, newitalianname
  387. GuiControl, enable, newgermanname
  388. GuiControl, enable, newjapanesename
  389. GuiControl, enable, getemplateB
  390. GuiControl, enable, aboutB
  391. GuiControl, enable, parseB
  392. GuiControl, enable, lg
  393. GuiControl, enable, creatorname
  394. GuiControl, enable, sg
  395. }
  396. return
  397.  
  398. newiconfiles:
  399. GuiControl, disable, RS2014DB
  400. GuiControl, disable, newinlay
  401. GuiControl, disable, newicon
  402. GuiControl, disable, coloredinlay
  403. GuiControl, disable, getemplateB
  404. GuiControl, disable, newenglishname
  405. GuiControl, disable, newfrenchname
  406. GuiControl, disable, newspanishname
  407. GuiControl, disable, newitalianname
  408. GuiControl, disable, newgermanname
  409. GuiControl, disable, creatorname
  410. GuiControl, disable, newjapanesename
  411. GuiControl, disable, aboutB
  412. GuiControl, disable, parseB
  413. GuiControl, disable, lg
  414. GuiControl, disable, sg
  415. FileSelectFile, DDSI512files, 3, , Open a Icon 512x512 Image, Rocksmith 2014 Icon 512x512 Image files (*.tga; *.png; *.jpg; *.jpeg; *.bmp; *.dds;)
  416. If DDSI512files =
  417. {
  418. DDSI512files = %A_ScriptDir%\ressources\images\icon.png
  419. GuiControl,, newicon, %DDSI512files%
  420. GuiControl, enable, RS2014DB
  421. GuiControl, enable, newinlay
  422. GuiControl, enable, newicon
  423. GuiControl, enable, coloredinlay
  424. GuiControl, enable, newenglishname
  425. GuiControl, enable, newfrenchname
  426. GuiControl, enable, newspanishname
  427. GuiControl, enable, newitalianname
  428. GuiControl, enable, newgermanname
  429. GuiControl, enable, newjapanesename
  430. GuiControl, enable, getemplateB
  431. GuiControl, enable, aboutB
  432. GuiControl, enable, parseB
  433. GuiControl, enable, lg
  434. GuiControl, enable, sg
  435. GuiControl, enable, creatorname
  436. } else {
  437. GuiControl,, newicon, %DDSI512files%
  438. GuiControl, enable, RS2014DB
  439. GuiControl, enable, newinlay
  440. GuiControl, enable, newicon
  441. GuiControl, enable, coloredinlay
  442. GuiControl, enable, newenglishname
  443. GuiControl, enable, newfrenchname
  444. GuiControl, enable, newspanishname
  445. GuiControl, enable, newitalianname
  446. GuiControl, enable, newgermanname
  447. GuiControl, enable, newjapanesename
  448. GuiControl, enable, getemplateB
  449. GuiControl, enable, aboutB
  450. GuiControl, enable, parseB
  451. GuiControl, enable, lg
  452. GuiControl, enable, sg
  453. GuiControl, enable, creatorname
  454. }
  455. If DDSI512files = ERROR
  456. {
  457. DDSI512files = %A_ScriptDir%\ressources\images\icon.png
  458. GuiControl,, newicon, %DDSI512files%
  459. GuiControl, enable, RS2014DB
  460. GuiControl, enable, newinlay
  461. GuiControl, enable, newicon
  462. GuiControl, enable, coloredinlay
  463. GuiControl, enable, newenglishname
  464. GuiControl, enable, newfrenchname
  465. GuiControl, enable, newspanishname
  466. GuiControl, enable, newitalianname
  467. GuiControl, enable, newgermanname
  468. GuiControl, enable, newjapanesename
  469. GuiControl, enable, getemplateB
  470. GuiControl, enable, aboutB
  471. GuiControl, enable, parseB
  472. GuiControl, enable, lg
  473. GuiControl, enable, sg
  474. GuiControl, enable, creatorname
  475. } else {
  476. GuiControl,, newicon, %DDSI512files%
  477. GuiControl, enable, RS2014DB
  478. GuiControl, enable, newinlay
  479. GuiControl, enable, newicon
  480. GuiControl, enable, coloredinlay
  481. GuiControl, enable, newenglishname
  482. GuiControl, enable, newfrenchname
  483. GuiControl, enable, newspanishname
  484. GuiControl, enable, newitalianname
  485. GuiControl, enable, newgermanname
  486. GuiControl, enable, newjapanesename
  487. GuiControl, enable, getemplateB
  488. GuiControl, enable, aboutB
  489. GuiControl, enable, parseB
  490. GuiControl, enable, lg
  491. GuiControl, enable, creatorname
  492. GuiControl, enable, sg
  493. }
  494. return
  495.  
  496. newinlayfiles:
  497. GuiControl, disable, RS2014DB
  498. GuiControl, disable, newinlay
  499. GuiControl, disable, newicon
  500. GuiControl, disable, coloredinlay
  501. GuiControl, disable, getemplateB
  502. GuiControl, disable, newenglishname
  503. GuiControl, disable, newfrenchname
  504. GuiControl, disable, newspanishname
  505. GuiControl, disable, newitalianname
  506. GuiControl, disable, newgermanname
  507. GuiControl, disable, newjapanesename
  508. GuiControl, disable, aboutB
  509. GuiControl, disable, parseB
  510. GuiControl, disable, lg
  511. GuiControl, disable, creatorname
  512. GuiControl, disable, sg
  513. FileSelectFile, DDSInlayfiles, 3, , Open a Inlay Image, Rocksmith 2014 Inlay Image files (*.tga; *.png; *.dds)
  514. If DDSInlayfiles =
  515. {
  516. DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
  517. GuiControl,, newinlay, %DDSInlayfiles%
  518. GuiControl, enable, RS2014DB
  519. GuiControl, enable, newinlay
  520. GuiControl, enable, newicon
  521. GuiControl, enable, coloredinlay
  522. GuiControl, enable, newenglishname
  523. GuiControl, enable, newfrenchname
  524. GuiControl, enable, newspanishname
  525. GuiControl, enable, newitalianname
  526. GuiControl, enable, newgermanname
  527. GuiControl, enable, newjapanesename
  528. GuiControl, enable, getemplateB
  529. GuiControl, enable, creatorname
  530. GuiControl, enable, aboutB
  531. GuiControl, enable, parseB
  532. GuiControl, enable, lg
  533. GuiControl, enable, sg
  534. } else {
  535. GuiControl,, newinlay, %DDSInlayfiles%
  536. GuiControl, enable, RS2014DB
  537. GuiControl, enable, newinlay
  538. GuiControl, enable, newicon
  539. GuiControl, enable, coloredinlay
  540. GuiControl, enable, newenglishname
  541. GuiControl, enable, newfrenchname
  542. GuiControl, enable, newspanishname
  543. GuiControl, enable, newitalianname
  544. GuiControl, enable, newgermanname
  545. GuiControl, enable, newjapanesename
  546. GuiControl, enable, getemplateB
  547. GuiControl, enable, aboutB
  548. GuiControl, enable, creatorname
  549. GuiControl, enable, parseB
  550. GuiControl, enable, lg
  551. GuiControl, enable, sg
  552. }
  553. If DDSInlayfiles = ERROR
  554. {
  555. DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
  556. GuiControl,, newinlay, %DDSInlayfiles%
  557. GuiControl, enable, RS2014DB
  558. GuiControl, enable, newinlay
  559. GuiControl, enable, newicon
  560. GuiControl, enable, coloredinlay
  561. GuiControl, enable, newenglishname
  562. GuiControl, enable, newfrenchname
  563. GuiControl, enable, newspanishname
  564. GuiControl, enable, newitalianname
  565. GuiControl, enable, newgermanname
  566. GuiControl, enable, newjapanesename
  567. GuiControl, enable, getemplateB
  568. GuiControl, enable, aboutB
  569. GuiControl, enable, parseB
  570. GuiControl, enable, lg
  571. GuiControl, enable, creatorname
  572. GuiControl, enable, sg
  573. } else {
  574. GuiControl,, newinlay, %DDSInlayfiles%
  575. GuiControl, enable, RS2014DB
  576. GuiControl, enable, newinlay
  577. GuiControl, enable, newicon
  578. GuiControl, enable, coloredinlay
  579. GuiControl, enable, newenglishname
  580. GuiControl, enable, newfrenchname
  581. GuiControl, enable, newspanishname
  582. GuiControl, enable, newitalianname
  583. GuiControl, enable, newgermanname
  584. GuiControl, enable, creatorname
  585. GuiControl, enable, newjapanesename
  586. GuiControl, enable, getemplateB
  587. GuiControl, enable, aboutB
  588. GuiControl, enable, parseB
  589. GuiControl, enable, lg
  590. GuiControl, enable, sg
  591. }
  592. return
  593.  
  594. loadguitar:
  595. GuiControl, disable, RS2014DB
  596. GuiControl, disable, creatorname
  597. GuiControl, disable, newinlay
  598. GuiControl, disable, newicon
  599. GuiControl, disable, coloredinlay
  600. GuiControl, disable, getemplateB
  601. GuiControl, disable, newenglishname
  602. GuiControl, disable, newfrenchname
  603. GuiControl, disable, newspanishname
  604. GuiControl, disable, newitalianname
  605. GuiControl, disable, newgermanname
  606. GuiControl, disable, newjapanesename
  607. GuiControl, disable, aboutB
  608. GuiControl, disable, parseB
  609. GuiControl, disable, lg
  610. GuiControl, disable, sg
  611. FileSelectFile, loadcgm, 3, , Open a Rocksmith 2014 Guitars Maker Template, Rocksmith 2014 CGM (*.cgm)
  612. if loadcgm =
  613. {
  614. msgbox, You need to select a .cgm only.
  615. GuiControl, enable, RS2014DB
  616. GuiControl, enable, newinlay
  617. GuiControl, enable, newicon
  618. GuiControl, enable, coloredinlay
  619. GuiControl, enable, newenglishname
  620. GuiControl, enable, newfrenchname
  621. GuiControl, enable, newspanishname
  622. GuiControl, enable, newitalianname
  623. GuiControl, enable, newgermanname
  624. GuiControl, enable, newjapanesename
  625. GuiControl, enable, getemplateB
  626. GuiControl, enable, aboutB
  627. GuiControl, enable, creatorname
  628. GuiControl, enable, parseB
  629. GuiControl, enable, lg
  630. GuiControl, enable, sg
  631. }
  632. else
  633. {
  634. FileDelete, %A_ScriptDir%\tmp\1.png
  635. FileDelete, %A_ScriptDir%\tmp\2.png
  636. FileCreateDir, %A_ScriptDir%\tmpcgm
  637. FileCreateDir, %A_ScriptDir%\tmpcgm\customguitarmaker
  638. FileCopy, %loadcgm%, %A_ScriptDir%\tmpcgm\customguitarmaker\1.7z
  639. RunWait, %A_ScriptDir%\ressources\packer\7za.exe x %A_ScriptDir%\tmpcgm\customguitarmaker\1.7z -o%A_ScriptDir%\tmpcgm\customguitarmaker\*,,Hide
  640. IfExist, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb
  641. {
  642. IniRead, creator, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, creatorname
  643. IniRead, leng, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname
  644. IniRead, lfr, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname1
  645. IniRead, lspa, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname2
  646. IniRead, lit, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname3
  647. IniRead, lge, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname4
  648. IniRead, ljpn, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname5
  649. IniRead, lcolored, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, coloredinlay
  650. }
  651. else
  652. {
  653. IniRead, creator, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, creatorname
  654. IniRead, leng, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname
  655. IniRead, lfr, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname1
  656. IniRead, lspa, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname2
  657. IniRead, lit, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname3
  658. IniRead, lge, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname4
  659. IniRead, ljpn, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname5
  660. IniRead, lcolored, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, coloredinlay
  661. }
  662. FileCreateDir, %A_ScriptDir%\tmp
  663. FileCopy, %A_ScriptDir%\tmpcgm\customguitarmaker\1\inlay.png, %A_ScriptDir%\tmp\1.png
  664. FileCopy, %A_ScriptDir%\tmpcgm\customguitarmaker\1\icon.png, %A_ScriptDir%\tmp\2.png
  665. loadinlay = %A_ScriptDir%\tmp\1.png
  666. loadicon = %A_ScriptDir%\tmp\2.png
  667. FileRemoveDir, %A_ScriptDir%\tmpcgm, 1
  668. DDSI512files = %loadicon%
  669. DDSInlayfiles = %loadinlay%
  670. if lcolored = 1
  671. {
  672. coloredinlay = 1
  673. }
  674. else
  675. {
  676. coloredinlay = 0
  677. }
  678. GuiControl,, newenglishname, %leng%
  679. GuiControl,, newfrenchname, %lfr%
  680. GuiControl,, newspanishname, %lspa%
  681. GuiControl,, newitalianname, %lit%
  682. GuiControl,, newgermanname, %lge%
  683. GuiControl,, newjapanesename, %ljpn%
  684. GuiControl,, coloredinlay, %coloredinlay%
  685. GuiControl,, newinlay, %DDSInlayfiles%
  686. GuiControl,, newicon, %DDSI512files%
  687. GuiControl,, creatorname, %creator%
  688. If creator =
  689. {
  690. creator = NoNameExist
  691. GuiControl,, creatorname, %creator%
  692. loaded = The guitar %leng% has been loaded !
  693. }
  694. else
  695. {
  696. loaded = The guitar %leng% made by %creator% has been loaded !
  697. }
  698. If creator = ERROR
  699. {
  700. creator = NoNameExist
  701. GuiControl,, creatorname, %creator%
  702. loaded = The guitar %leng% has been loaded !
  703. }
  704. else
  705. {
  706. loaded = The guitar %leng% made by %creator% has been loaded !
  707. }
  708. msgbox, %loaded%
  709. GuiControl, enable, RS2014DB
  710. GuiControl, enable, newinlay
  711. GuiControl, enable, newicon
  712. GuiControl, enable, coloredinlay
  713. GuiControl, enable, newenglishname
  714. GuiControl, enable, newfrenchname
  715. GuiControl, enable, newspanishname
  716. GuiControl, enable, newitalianname
  717. GuiControl, enable, newgermanname
  718. GuiControl, enable, newjapanesename
  719. GuiControl, enable, getemplateB
  720. GuiControl, enable, aboutB
  721. GuiControl, enable, parseB
  722. GuiControl, enable, lg
  723. GuiControl, enable, creatorname
  724. GuiControl, enable, sg
  725. }
  726. return
  727.  
  728. saveguitar:
  729. GuiControl, disable, RS2014DB
  730. GuiControl, disable, newinlay
  731. GuiControl, disable, newicon
  732. GuiControl, disable, creatorname
  733. GuiControl, disable, coloredinlay
  734. GuiControl, disable, getemplateB
  735. GuiControl, disable, newenglishname
  736. GuiControl, disable, newfrenchname
  737. GuiControl, disable, newspanishname
  738. GuiControl, disable, newitalianname
  739. GuiControl, disable, newgermanname
  740. GuiControl, disable, newjapanesename
  741. GuiControl, disable, aboutB
  742. GuiControl, disable, parseB
  743. GuiControl, disable, lg
  744. GuiControl, disable, sg
  745. FileSelectFolder, CGMDIR,, 3, Select folder for custom guitars.
  746. if CGMDIR =
  747. {
  748. msgbox, You need to select a folder to save your templace (ex: Desktop.)
  749. GuiControl, enable, RS2014DB
  750. GuiControl, enable, newinlay
  751. GuiControl, enable, newicon
  752. GuiControl, enable, coloredinlay
  753. GuiControl, enable, newenglishname
  754. GuiControl, enable, newfrenchname
  755. GuiControl, enable, newspanishname
  756. GuiControl, enable, newitalianname
  757. GuiControl, enable, newgermanname
  758. GuiControl, enable, newjapanesename
  759. GuiControl, enable, getemplateB
  760. GuiControl, enable, aboutB
  761. GuiControl, enable, parseB
  762. GuiControl, enable, creatorname
  763. GuiControl, enable, lg
  764. GuiControl, enable, sg
  765. }
  766. else
  767. {
  768. GuiControlGet, coloredinlay
  769. GuiControlGet, creatorname
  770. GuiControlGet, newenglishname
  771. GuiControlGet, newfrenchname
  772. GuiControlGet, newspanishname
  773. GuiControlGet, newitalianname
  774. GuiControlGet, newgermanname
  775. GuiControlGet, newjapanesename
  776. FileCreateDir, %A_ScriptDir%\tmp
  777. FileCreateDir, %A_ScriptDir%\tmp\images
  778. Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %DDSInlayfiles% -resize 1024x512! %A_ScriptDir%\tmp\images\inlay.png,,Hide
  779. Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %DDSI512files% -resize 512x512! %A_ScriptDir%\tmp\images\icon.png,,Hide
  780. inlay = %A_ScriptDir%\tmp\images\inlay.png
  781. icon = %A_ScriptDir%\tmp\images\icon.png
  782. FileCreateDir, %CGMDIR%\RS2014CG
  783. FileCreateDir, %CGMDIR%\RS2014CG\%ccg2%
  784. FileCopy, %DDSI512files%, %CGMDIR%\RS2014CG\%ccg2%\icon.png
  785. FileCopy, %DDSInlayfiles%, %CGMDIR%\RS2014CG\%ccg2%\inlay.png
  786. IniWrite, %creatorname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, creatorname
  787. IniWrite, %newenglishname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname
  788. IniWrite, %newfrenchname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname1
  789. IniWrite, %newspanishname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname2
  790. IniWrite, %newitalianname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname3
  791. IniWrite, %newgermanname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname4
  792. IniWrite, %newjapanesename%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname5
  793. IniWrite, %coloredinlay%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, coloredinlay
  794. RunWait, %A_ScriptDir%\ressources\packer\7za.exe a %CGMDIR%\RS2014CG\%ccg2%.7z %CGMDIR%\RS2014CG\%ccg2%\*,,Hide
  795. FileRemoveDir, %CGMDIR%\RS2014CG\%ccg2%, 1
  796. FileCopy, %CGMDIR%\RS2014CG\%ccg2%.7z, %CGMDIR%\RS2014CG\Custom_Guitar_%ccg2%.cgm
  797. FileDelete, %CGMDIR%\RS2014CG\%ccg2%.7z
  798.  
  799. msgbox, Your Rocksmith 2014 custom guitar has been saved here : %CGMDIR%\RS2014CG\Custom_Guitar_%ccg2%.cgm.`n Enjoy sharing it :).
  800. GuiControl, enable, RS2014DB
  801. GuiControl, enable, newinlay
  802. GuiControl, enable, newicon
  803. GuiControl, enable, coloredinlay
  804. GuiControl, enable, newenglishname
  805. GuiControl, enable, newfrenchname
  806. GuiControl, enable, newspanishname
  807. GuiControl, enable, newitalianname
  808. GuiControl, enable, newgermanname
  809. GuiControl, enable, newjapanesename
  810. GuiControl, enable, getemplateB
  811. GuiControl, enable, aboutB
  812. GuiControl, enable, parseB
  813. GuiControl, enable, lg
  814. GuiControl, enable, creatorname
  815. GuiControl, enable, sg
  816. }
  817. return
  818.  
  819.  
  820. parse:
  821. GuiControl, disable, RS2014DB
  822. GuiControl, disable, newinlay
  823. GuiControl, disable, newicon
  824. GuiControl, disable, coloredinlay
  825. GuiControl, disable, getemplateB
  826. GuiControl, disable, newenglishname
  827. GuiControl, disable, newfrenchname
  828. GuiControl, disable, newspanishname
  829. GuiControl, disable, newitalianname
  830. GuiControl, disable, newgermanname
  831. GuiControl, disable, newjapanesename
  832. GuiControl, disable, aboutB
  833. GuiControl, disable, parseB
  834. GuiControl, disable, creatorname
  835. GuiControl, disable, lg
  836. GuiControl, disable, sg
  837. GuiControlGet, coloredinlay
  838. GuiControlGet, newfrenchname
  839. GuiControlGet, newspanishname
  840. GuiControlGet, newitalianname
  841. GuiControlGet, newgermanname
  842. GuiControlGet, newjapanesename
  843. GuiControlGet, newinlay
  844. GuiControlGet, newicon
  845. guitarname = %newenglishname%
  846. guitarname1 = %newfrenchname%
  847. guitarname2 = %newspanishname%
  848. guitarname3 = %newitalianname%
  849. guitarname4 = %newgermanname%
  850. guitarname5 = %newjapanesename%
  851. if coloredinlay = 0
  852. {
  853. nif1 = 47616D656272796F2046696C6520466F726D61742C2056657273696F6E2033302E312E302E330A0300011E010000000049000000000000000B00110000004E694461746153747265616D0131013138110000004E694461746153747265616D0130013138110000004E69537472696E67457874726144617461060000004E694D657368120000004E694D6174657269616C50726F7065727479150000004E69566572746578436F6C6F7250726F70657274790F0000004E69416C70686150726F70657274790F0000004E69536F7572636554657874757265130000004E69546578747572696E6750726F7065727479110000004E695A42756666657250726F7065727479060000004E694E6F64650000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010004000500060007000800090002000300050009000A00710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC0000007100000029000000440000000E0000000F00000024000000280000000E00000008000000BC0000000E0000000E0000009A00000018000000100000000A0000005363656E6520526F6F7407000000696E6C61795F330E0000005573657250726F704275666665720B0000000D0A7A4D6F646531300D0A10000000
  854. nif2 = 0B0000004D6174657269616C20233205000000494E44455808000000504F534954494F4E08000000544558434F4F524407000000696E6C61795F3407000000696E6C61795F3507000000696E6C61795F3607000000696E6C61795F3707000000696E6C61795F3807000000696E6C61795F3908000000696E6C61795F313008000000696E6C61795F313108000000696E6C61795F313208000000696E6C61795F313308000000696E6C61795F313408000000696E6C61795F313508000000696E6C61795F313608000000696E6C61795F313708000000696E6C61795F31380000000050000000000000000100000000000000040000000200000037040300360402008EDBA1C2D26F80C049382037B18A633FEA6B6F3F01A3A8C2D26F80C06CF22637E7077B3FEA6B6F3F02A3A8C2D36F80406CF22637EB077B3F3A04FB3E8FDBA1C2D36F804049382037B98A633F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000170000000100000002000000FFFFFFFF10009C2727B7B8C850C2A68B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000483FA5C2000080345A952337DC6A8B400200000001000000000100000001000000060000000000000000000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402002DF799C2D26F80C0AF6318374532483FEA6B6F3F1E14A1C2D26F80C065721F37A7D7603FEA6B6F3F1F14A1C2D36F804065721F37AFD7603F3A04FB3E2EF799C2D36F8040AF6318374932483F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000160000000100000006000000FFFFFFFF100021431FB7B8C850C29D8C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000A6859DC2000080340AEB1B376F7A8C400200000005000000000100000001000000060000000000000004000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402001E1A92C2D26F80C0609710372BF32C3FEA6B6F3FBD2F99C2D26F80C0DC9D17373B7F453FEA6B6F3FBE2F99C2D36F8040DD9D17373B7F453F3A04FB3E1E1A92C2D36F80406097103727F32C3F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000015000000010000000A000000FFFFFFFF1000E64517B7B8C850C29A8D5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000EEA495C2000080349E1A1437C0628C40020000000900000000010000000100000006000000000000000800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200C6D489C2D26F80C0E4630837C34A103FEA6B6F3FAE5291C2D26F80C09DD10F3729402A3FEA6B6F3FAE5291C2D36F80409ED10F3725402A3F3A04FB3EC6D489C2D36F8040E6630837BF4A103F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000014000000010000000E000000FFFFFFFF1000F5290FB7B8C850C29C8E5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000BA938DC200008034C11A0C3794BB8D40020000000D00000000010000000100000006000000000000000C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200B88581C2D26F80C0CD2700376301E73EEA6B6F3F560D89C2D26F80C0319E0737B9970D3FEA6B6F3F560D89C2D36F8040339E0737B7970D3F3A04FB3EB88581C2D36F8040CE2700376001E73E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000130000000100000012000000FFFFFFFF1000ECE906B7B8C850C2A58F5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000874985C20000803400E303377FDC8D40020000001100000000010000000100000006000000000000001000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE0372C2D26F80C04E70EF3668FFAB3EEA6B6F3F48BE80C2D26F80C05EC4FE364F9BE13EEA6B6F3F48BE80C2D36F804060C4FE364F9BE13E3A04FB3EC00372C2D36F80405170EF3661FFAB3E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000120000000100000016000000FFFFFFFF1000302CFCB6B8C850C2B2905ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000027C079C200008034571AF736D6918E40020000001500000000010000000100000006000000000000001400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200FC9160C2D26F80C08529DE3681D8693E903B6F3FE07470C2D26F80C036E5ED367D6BA73E8E3B6F3FE27470C2D36F804039E5ED36816BA73E82A3FA3EFE9160C2D36F80408929DE368FD8693E82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000011000000010000001A000000FFFFFFFF10008441EBB6B8C850C2C6915ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF00000000000100006F8368C2000080345F07E636054C8F400200000019000000000100000001000000060000000000000018000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402008F854EC2D26F80C0D54ACC362E36EE3D903B6F3F1E035FC2D26F80C08D9EDC36C6F05F3E903B6F3F20035FC2D36F8040919EDC36CDF05F3E82A3FA3E92854EC2D36F8040D94ACC365A36EE3D82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000010000000010000001E000000FFFFFFFF10004604D9B6B8C850C2E2925ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000058C456C200008034B374D43689629040020000001D00000000010000000100000006000000000000001C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE1E3CC2D26F80C0A514BA366CC2073B903B6F3FB1F64CC2D26F80C001C0CA36C666DA3D903B6F3FB4F64CC2D36F804005C0CA36E366DA3D82A3FA3EC21E3CC2D36F8040A914BA36E4C7073B82A3FA3E010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000F0000000100000022000000FFFFFFFF10006E79C6B6B8C850C205945ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000B98A44C200008034556AC2361C099140020000002100000000010000000100000006000000000000002000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200873A29C2D26F80C02E64A7369CE45E3FA2AFEC3EE08F3AC2D26F80C0FA89B83640387D3FA2AFEC3EE48F3AC2D36F8040FE89B83647387D3F40C08D3C8B3A29C2D36F80403264A736A1E45E3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000E0000000100000026000000FFFFFFFF100043AAB3B6B8C850C230955ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000036E531C20000803416F7AF36C6F4914002000000250000000001000000010000000600000000000000240000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020041CC15C2D26F80C0F72C94368DE53C3FA2AFEC3EA9AB27C2D26F80C0A9D9A536BE2A5C3FA2AFEC3EADAB27C2D36F8040ADD9A536C62A5C3F40C08D3C44CC15C2D36F8040FA2C943693E53C3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000D000000010000002A000000FFFFFFFF1000A987A0B6B8C850C262965ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000F7BB1EC20000803452039D363BFE92400200000029000000000100000001000000060000000000000028000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402005E8201C2D26F80C0B01D80364366193FA2AFEC3E633D14C2D26F80C08FA29236B02B3A3FA2AFEC3E663D14C2D36F804092A29236B62B3A3F40C08D3C618201C2D36F8040B41D80364566193F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000C000000010000002E000000FFFFFFFF1000CCF38BB6B8C850C2A0975ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000E2DF0AC2000080342160893634B19440020000002D00000000010000000100000006000000000000002C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200EF68DAC1D26F80C0141C5836E4BFEB3EA2AFEC3E00E7FFC1D26F80C0EE267D3664AC163FA2AFEC3E06E7FFC1D36F8040F5267D366BAC163F40C08D3CF368DAC1D36F80401A1C5836EBBFEB3E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000B0000000100000032000000FFFFFFFF10003E3270B6B8C850C2E5985ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000FA27EDC10000803484A16A364DB9944002000000310000000001000000010000000600000000000000300000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020077C6AFC1D26F80C04DFE2D36C627A13EA2AFEC3E334BD7C1D26F80C0FC075536294CE63EA2AFEC3E374BD7C1D36F8040010855362F4CE63E40C08D3C7AC6AFC1D36F804052FE2D36C627A13E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000A0000000100000036000000FFFFFFFF10001CD645B6B8C850C2329A5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D788C3C10000803427834136B2CE9640020000003500000000010000000100000006000000000000003400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E4E083C1D26F80C0D1A50236AEB4283EA2AFEC3EBBA8ACC1D26F80C06EEA2A3609B49B3EA2AFEC3EBEA8ACC1D36F804073EA2A360FB49B3E40C08D3CE8E083C1D36F8040D2A50236C6B4283E80C08D3C010C00000000000000010000000000000006000000010000001502010000000100020002000300000001020000000300000009000000010000003A000000FFFFFFFF10006A6F1AB6B8C850C28C9B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D14498C10000803422C8163642259840020000003900000000010000000100000006000000000000003800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E61B2DC1D26F80C0F2D1AB353AB6213CA2AFEC3E28C380C1D26F80C08424FF3540CD1D3EA2AFEC3E2CC380C1D36F80408624FF354CCD1D3E80C08D3CE81B2DC1D36F8040ECD1AB353AB6213C80C08D3C010C000000000000000100000000000000060000000100000015020100020003000000000001000200010500000000000000FFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F0000803F000020410000803FFFFFFFFF00000000FFFFFFFF0000FFFFFFFF00000000FFFFFFFFED1000FFFFFFFF00000000FFFFFFFF0104000000FFFFFFFF060000000100000003000000010000FFFFFFFF00000000FFFFFFFF04000900000001410000000032010000000000000000000000000000FFFFFFFF00000000FFFFFFFF0D000200000003000000010000000100000044000000FFFFFFFF1000705DD8B5B8C850C2F19C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F050000003E0000003F000000400000004200000043000000FFFFFFFF00000000FFFFFFFF00000000000100001F5157C100008034397BD535D3B19940020000003D00000000010000000100000006000000000000003C0000000001000000020000000700000000000000080000000000000000000000FFFFFFFF00000000FFFFFFFF0800FFFFFFFF00000000FFFFFFFF0F000000000000000000FFFFFFFF10010000000000000000000000000000803F0000000000000000000000000000803F0000000000000000000000000000803F0000803F020000004600000047000000FFFFFFFF10000000450000003B00000037000000330000002F0000002B00000027000000230000001F0000001B00000017000000130000000F0000000B0000000700000003000000000000000100000048000000
  855. }
  856. else
  857. {
  858. nif1 = 47616D656272796F2046696C6520466F726D61742C2056657273696F6E2033302E312E302E330A0300011E010000000049000000000000000B00110000004E694461746153747265616D0131013138110000004E694461746153747265616D0130013138110000004E69537472696E67457874726144617461060000004E694D657368120000004E694D6174657269616C50726F7065727479150000004E69566572746578436F6C6F7250726F70657274790F0000004E69416C70686150726F70657274790F0000004E69536F7572636554657874757265130000004E69546578747572696E6750726F7065727479110000004E695A42756666657250726F7065727479060000004E694E6F64650000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010004000500060007000800090002000300050009000A0008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC00000071000000290000000F00000024000000280000000E00000008000000BC0000000E0000000E0000009A00000018000000100000000A0000005363656E6520526F6F7407000000696E6C61795F300E0000005573657250726F704275666665720B0000000D0A7A4D6F646531300D0A10000000
  859. nif2 = 0B0000004D6174657269616C20233205000000494E44455808000000504F534954494F4E08000000544558434F4F524407000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300000000050000000000000000100000000000000040000000200000037040300360402008EDBA1C2D26F80C049382037B18A633FEA6B6F3F01A3A8C2D26F80C06CF22637E7077B3FEA6B6F3F02A3A8C2D36F80406CF22637EB077B3F3A04FB3E8FDBA1C2D36F804049382037B98A633F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000170000000100000002000000FFFFFFFF10009C2727B7B8C850C2A68B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000483FA5C2000080345A952337DC6A8B400200000001000000000100000001000000060000000000000000000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402002DF799C2D26F80C0AF6318374532483FEA6B6F3F1E14A1C2D26F80C065721F37A7D7603FEA6B6F3F1F14A1C2D36F804065721F37AFD7603F3A04FB3E2EF799C2D36F8040AF6318374932483F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000160000000100000006000000FFFFFFFF100021431FB7B8C850C29D8C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000A6859DC2000080340AEB1B376F7A8C400200000005000000000100000001000000060000000000000004000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402001E1A92C2D26F80C0609710372BF32C3FEA6B6F3FBD2F99C2D26F80C0DC9D17373B7F453FEA6B6F3FBE2F99C2D36F8040DD9D17373B7F453F3A04FB3E1E1A92C2D36F80406097103727F32C3F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000015000000010000000A000000FFFFFFFF1000E64517B7B8C850C29A8D5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000EEA495C2000080349E1A1437C0628C40020000000900000000010000000100000006000000000000000800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200C6D489C2D26F80C0E4630837C34A103FEA6B6F3FAE5291C2D26F80C09DD10F3729402A3FEA6B6F3FAE5291C2D36F80409ED10F3725402A3F3A04FB3EC6D489C2D36F8040E6630837BF4A103F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000014000000010000000E000000FFFFFFFF1000F5290FB7B8C850C29C8E5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000BA938DC200008034C11A0C3794BB8D40020000000D00000000010000000100000006000000000000000C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200B88581C2D26F80C0CD2700376301E73EEA6B6F3F560D89C2D26F80C0319E0737B9970D3FEA6B6F3F560D89C2D36F8040339E0737B7970D3F3A04FB3EB88581C2D36F8040CE2700376001E73E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000130000000100000012000000FFFFFFFF1000ECE906B7B8C850C2A58F5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000874985C20000803400E303377FDC8D40020000001100000000010000000100000006000000000000001000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE0372C2D26F80C04E70EF3668FFAB3EEA6B6F3F48BE80C2D26F80C05EC4FE364F9BE13EEA6B6F3F48BE80C2D36F804060C4FE364F9BE13E3A04FB3EC00372C2D36F80405170EF3661FFAB3E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000120000000100000016000000FFFFFFFF1000302CFCB6B8C850C2B2905ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000027C079C200008034571AF736D6918E40020000001500000000010000000100000006000000000000001400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200FC9160C2D26F80C08529DE3681D8693E903B6F3FE07470C2D26F80C036E5ED367D6BA73E8E3B6F3FE27470C2D36F804039E5ED36816BA73E82A3FA3EFE9160C2D36F80408929DE368FD8693E82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000011000000010000001A000000FFFFFFFF10008441EBB6B8C850C2C6915ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF00000000000100006F8368C2000080345F07E636054C8F400200000019000000000100000001000000060000000000000018000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402008F854EC2D26F80C0D54ACC362E36EE3D903B6F3F1E035FC2D26F80C08D9EDC36C6F05F3E903B6F3F20035FC2D36F8040919EDC36CDF05F3E82A3FA3E92854EC2D36F8040D94ACC365A36EE3D82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000010000000010000001E000000FFFFFFFF10004604D9B6B8C850C2E2925ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000058C456C200008034B374D43689629040020000001D00000000010000000100000006000000000000001C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE1E3CC2D26F80C0A514BA366CC2073B903B6F3FB1F64CC2D26F80C001C0CA36C666DA3D903B6F3FB4F64CC2D36F804005C0CA36E366DA3D82A3FA3EC21E3CC2D36F8040A914BA36E4C7073B82A3FA3E010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000F0000000100000022000000FFFFFFFF10006E79C6B6B8C850C205945ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000B98A44C200008034556AC2361C099140020000002100000000010000000100000006000000000000002000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200873A29C2D26F80C02E64A7369CE45E3FA2AFEC3EE08F3AC2D26F80C0FA89B83640387D3FA2AFEC3EE48F3AC2D36F8040FE89B83647387D3F40C08D3C8B3A29C2D36F80403264A736A1E45E3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000E0000000100000026000000FFFFFFFF100043AAB3B6B8C850C230955ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000036E531C20000803416F7AF36C6F4914002000000250000000001000000010000000600000000000000240000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020041CC15C2D26F80C0F72C94368DE53C3FA2AFEC3EA9AB27C2D26F80C0A9D9A536BE2A5C3FA2AFEC3EADAB27C2D36F8040ADD9A536C62A5C3F40C08D3C44CC15C2D36F8040FA2C943693E53C3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000D000000010000002A000000FFFFFFFF1000A987A0B6B8C850C262965ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000F7BB1EC20000803452039D363BFE92400200000029000000000100000001000000060000000000000028000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402005E8201C2D26F80C0B01D80364366193FA2AFEC3E633D14C2D26F80C08FA29236B02B3A3FA2AFEC3E663D14C2D36F804092A29236B62B3A3F40C08D3C618201C2D36F8040B41D80364566193F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000C000000010000002E000000FFFFFFFF1000CCF38BB6B8C850C2A0975ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000E2DF0AC2000080342160893634B19440020000002D00000000010000000100000006000000000000002C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200EF68DAC1D26F80C0141C5836E4BFEB3EA2AFEC3E00E7FFC1D26F80C0EE267D3664AC163FA2AFEC3E06E7FFC1D36F8040F5267D366BAC163F40C08D3CF368DAC1D36F80401A1C5836EBBFEB3E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000B0000000100000032000000FFFFFFFF10003E3270B6B8C850C2E5985ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000FA27EDC10000803484A16A364DB9944002000000310000000001000000010000000600000000000000300000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020077C6AFC1D26F80C04DFE2D36C627A13EA2AFEC3E334BD7C1D26F80C0FC075536294CE63EA2AFEC3E374BD7C1D36F8040010855362F4CE63E40C08D3C7AC6AFC1D36F804052FE2D36C627A13E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000A0000000100000036000000FFFFFFFF10001CD645B6B8C850C2329A5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D788C3C10000803427834136B2CE9640020000003500000000010000000100000006000000000000003400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E4E083C1D26F80C0D1A50236AEB4283EA2AFEC3EBBA8ACC1D26F80C06EEA2A3609B49B3EA2AFEC3EBEA8ACC1D36F804073EA2A360FB49B3E40C08D3CE8E083C1D36F8040D2A50236C6B4283E80C08D3C010C00000000000000010000000000000006000000010000001502010000000100020002000300000001020000000300000009000000010000003A000000FFFFFFFF10006A6F1AB6B8C850C28C9B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D14498C10000803422C8163642259840020000003900000000010000000100000006000000000000003800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E61B2DC1D26F80C0F2D1AB353AB6213CA2AFEC3E28C380C1D26F80C08424FF3540CD1D3EA2AFEC3E2CC380C1D36F80408624FF354CCD1D3E80C08D3CE81B2DC1D36F8040ECD1AB353AB6213C80C08D3C010C000000000000000100000000000000060000000100000015020100020003000000000001000200010500000000000000FFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F0000803F000020410000803FFFFFFFFF00000000FFFFFFFF0000FFFFFFFF00000000FFFFFFFFED1000FFFFFFFF00000000FFFFFFFF0104000000FFFFFFFF060000000100000003000000010000FFFFFFFF00000000FFFFFFFF04000900000001410000000032010000000000000000000000000000FFFFFFFF00000000FFFFFFFF0D000200000003000000010000000100000044000000FFFFFFFF1000705DD8B5B8C850C2F19C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F050000003E0000003F000000400000004200000043000000FFFFFFFF00000000FFFFFFFF00000000000100001F5157C100008034397BD535D3B19940020000003D00000000010000000100000006000000000000003C0000000001000000020000000700000000000000080000000000000000000000FFFFFFFF00000000FFFFFFFF0800FFFFFFFF00000000FFFFFFFF0F000000000000000000FFFFFFFF10010000000000000000000000000000803F0000000000000000000000000000803F0000000000000000000000000000803F0000803F020000004600000047000000FFFFFFFF10000000450000003B00000037000000330000002F0000002B00000027000000230000001F0000001B00000017000000130000000F0000000B0000000700000003000000000000000100000048000000
  860. }
  861. FileCreateDir, %A_ScriptDir%\tmp
  862. FileCreateDir, %A_ScriptDir%\tmp\images
  863. progress = 5
  864. textprogress = 5`% - Created temporary folders.
  865. GuiControl,, txtprogress, %textprogress%
  866. GuiControl,, progressbar, %progress%
  867. FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.*
  868. FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.*
  869. FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.*
  870. FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.*
  871. FileCopy, %DDSInlayfiles%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*
  872. progress = 10
  873. textprogress = 10`% - Copied Icon & Inlay to temporary folder.
  874. GuiControl,, txtprogress, %textprogress%
  875. GuiControl,, progressbar, %progress%
  876. Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.* -resize 1024x512! %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds,,Hide
  877. Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.* -resize 512x512! %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds,,Hide
  878. Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.* -resize 256x256! %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds,,Hide
  879. Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.* -resize 128x128! %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds,,Hide
  880. Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.* -resize 64x64! %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds,,Hide
  881. progress = 20
  882. textprogress = 20`% - Convert & resized Icons and Inlay.
  883. GuiControl,, txtprogress, %textprogress%
  884. GuiControl,, progressbar, %progress%
  885. FileCopy, %RS2014DIR%\cache.psarc, %A_ScriptDir%\backup\cache.psarc
  886. FileCopy, %RS2014DIR%\guitars.psarc, %A_ScriptDir%\backup\guitars.psarc
  887. FileCopy, %RS2014DIR%\static.psarc, %A_ScriptDir%\backup\static.psarc
  888. progress = 25
  889. textprogress = 20`% - Copied needed PSARC to backup folder /!\
  890. GuiControl,, txtprogress, %textprogress%
  891. GuiControl,, progressbar, %progress%
  892. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --unpack --input=%A_ScriptDir%\backup --output=%A_ScriptDir%\tmp,,Hide
  893. progress = 35
  894. textprogress = 20`% - unpacked needed PSARC to temporary folder
  895. GuiControl,, txtprogress, %textprogress%
  896. GuiControl,, progressbar, %progress%
  897. RunWait, %A_ScriptDir%\ressources\packer\7za.exe x tmp\cache_Pc\cache4.7z -otmp\cache_Pc\cache4,,Hide
  898. FileAppend, %ccg2%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`n, %A_ScriptDir%\tmp\cache_Pc\cache4\localization\maingame.csv
  899. RunWait, %A_ScriptDir%\ressources\packer\7za.exe a tmp\cache_Pc\cache4.7z .\tmp\cache_Pc\cache4\*,,Hide
  900. RunWait, %A_ScriptDir%\ressources\packer\7za.exe x tmp\cache_Pc\cache7.7z -otmp\cache_Pc\cache7,,Hide
  901. FileRead, guitarshsan, %A_ScriptDir%\tmp\cache_Pc\cache7\manifests\guitars\guitars.hsan
  902. StringReplace, guitarshsannew, guitarshsan, "F4F8F798ACCB7071F546CB7BD98E18C5" : {, "%ID1MAJ%" : {`n "Attributes" : {`n "DLC" : true`,`n "LocName" : "$[%ccg2%]%guitarname%"`,`n "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%"`,`n "Name" : "%guitarname%"`,`n "PersistentID" : "%ID1MAJ%"`,`n "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"`n }`n }`, `n "F4F8F798ACCB7071F546CB7BD98E18C5" : {
  903. FileDelete, %A_ScriptDir%\tmp\cache_Pc\cache7\manifests\guitars\guitars.hsan
  904. FileAppend, %guitarshsannew%, %A_ScriptDir%\tmp\cache_Pc\cache7\manifests\guitars\guitars.hsan
  905. RunWait, %A_ScriptDir%\ressources\packer\7za.exe a tmp\cache_Pc\cache7.7z .\tmp\cache_Pc\cache7\*,,Hide
  906. progress = 50
  907. textprogress = 50`% - Modified - cache.psarc - sources
  908. GuiControl,, txtprogress, %textprogress%
  909. GuiControl,, progressbar, %progress%
  910. newfilesjson = {`n "Entries": {`n "%ID1MAJ%": {`n "Attributes": {`n "DecorativeInlays": "urn:application:gamebryo-scenegraph:%guitarnamesix%"`,`n "DLC": true`,`n "LocName": "$[%ccg2%]%guitarname%"`,`n "ManifestUrn": "urn:database:json-db:guitar_%guitarnamesix%"`,`n "Name": "%guitarname%",`n "PreviewArt": "urn:image:dds:reward_inlay_%guitarnamesix%"`,`n "PersistentID": "%ID1MAJ%"`n }`n }`n }`,`n "ModelName": "RSEnumerable_Guitar"`,`n "IterationVersion": 2`,`n "InsertRoot": "Static.Guitars.Entries"`n}`n
  911. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitar_%guitarnamesix%.json
  912. FileRead, guitarshsan2, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitars.hsan
  913. StringReplace, guitarshsannew2, guitarshsan2, "F4F8F798ACCB7071F546CB7BD98E18C5" : {, "%ID1MAJ%" : {`n "Attributes" : {`n "DLC" : true`,`n "LocName" : "$[%ccg2%]%guitarname%"`,`n "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%"`,`n "Name" : "%guitarname%"`,`n "PersistentID" : "%ID1MAJ%"`,`n "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"`n }`n }`, `n "F4F8F798ACCB7071F546CB7BD98E18C5" : {
  914. FileDelete, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitars.hsan
  915. FileAppend, %guitarshsannew2%, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitars.hsan
  916. newfilesxblock = <?xml version="1.0" encoding="utf-8"?>`n<game>`n <entitySet>`n <entity id="%ID1%" modelName="RSEnumerable_Guitar" name="%guitarnamesix%" iterations="0">`n <properties>`n <property name="Header">`n <set value="urn:database:hsan-db:guitars" />`n </property>`n <property name="Manifest">`n <set value="urn:database:json-db:guitar_%guitarnamesix%" />`n </property>`n <property name="PreviewArt">`n <set value="urn:image:dds:reward_inlay_%guitarnamesix%" />`n </property>`n <property name="DecorativeInlays">`n <set value="urn:application:gamebryo-scenegraph:%guitarnamesix%" />`n </property>`n </properties>`n </entity>`n </entitySet>`n</game>`n
  917. FileAppend, %newfilesxblock%, %A_ScriptDir%\tmp\guitars_Pc\gamexblocks\nguitars\guitar_%guitarnamesix%.xblock
  918. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\guitars_Pc\assets\gameplay\inlay\inlay_%guitarnamesix%.dds
  919. TestString = inlay_%guitarnamesix%.dds
  920. Output := StringToHex(TestString)
  921. Ootput = %Output%
  922. newhexname = %Output%
  923. StringReplace newhexname, newhexname, %A_Space%, , All
  924. filenifname = %guitarnamesix%.nif
  925. StringToHex(String)
  926. {
  927. local Old_A_FormatInteger, CharHex, HexString
  928.  
  929. ;Return '0' if the string was blank
  930. If !String
  931. Return 0
  932.  
  933. ;Save the current Integer format
  934. Old_A_FormatInteger := A_FormatInteger
  935.  
  936. ;Set the format of integers to their Hex value
  937. SetFormat, INTEGER, H
  938.  
  939. ;Parse the String
  940. Loop, Parse, String
  941. {
  942. ;Get the ASCII value of the Character (will be converted to the Hex value by the SetFormat Line above)
  943. CharHex := Asc(A_LoopField)
  944.  
  945. ;Comment out the following line to leave the '0x' intact
  946. StringTrimLeft, CharHex, CharHex, 2
  947.  
  948. ;Build the return string
  949. HexString .= CharHex . " "
  950. }
  951. ;Set the integer format to what is was prior to the call
  952. SetFormat, INTEGER, %Old_A_FormatInteger%
  953.  
  954. ;Return the string to the caller
  955. Return HexString
  956. }
  957. /*
  958. BinReadWrite.ahk
  959.  
  960. Routines to read and write binary data from/to files.
  961. Based on original functions written by Laszlo
  962. http://www.autohotkey.com/forum/viewtopic.php?t=4604
  963.  
  964. TODO: Perhaps set a lastError variable to explicit the errors.
  965.  
  966. // by Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
  967. // File/Project history:
  968. 1.03.000 -- 2006/02/15 (PL) -- Moved Bin2Hex & Hex2Bin to DllCallStruct, apply code rules.
  969. 1.02.000 -- 2006/01/24 (PL) -- Slight change of the API: all functions return -1 if error.
  970. Integrated Laszlo suggestions on improving Bin2Hex and Hex2Bin.
  971. 1.01.000 -- 2006/01/23 (PL) -- Declaration of the local variables, to get access to global
  972. WinAPI constants, and for consistency.
  973. 1.00.000 -- 2006/01/19 (PL) -- Rewrote the functions to separate opening and closing,
  974. allowing efficient multiple operations.
  975. */
  976.  
  977. ; WinAPI constants
  978. INVALID_HANDLE_VALUE = -1
  979. INVALID_FILE_SIZE = 0xFFFFFFFF
  980. FILE_BEGIN = 0
  981. FILE_CURRENT = 1
  982. FILE_END = 2
  983.  
  984. /*
  985. // Open the file for reading.
  986. // Return the file handle to provide in further read operations and in the final close operation,
  987. // or INVALID_HANDLE_VALUE if an error was found.
  988. */
  989. OpenFileForRead(_filename)
  990. {
  991. local handle
  992.  
  993. handle := DllCall("CreateFile"
  994. , "Str", _filename ; lpFileName
  995. , "UInt", 0x80000000 ; dwDesiredAccess (GENERIC_READ)
  996. , "UInt", 3 ; dwShareMode (FILE_SHARE_READ|FILE_SHARE_WRITE)
  997. , "UInt", 0 ; lpSecurityAttributes
  998. , "UInt", 3 ; dwCreationDisposition (OPEN_EXISTING)
  999. , "UInt", 0 ; dwFlagsAndAttributes
  1000. , "UInt", 0) ; hTemplateFile
  1001. If (handle = INVALID_HANDLE_VALUE or handle = 0)
  1002. {
  1003. ErrorLevel = -1
  1004. }
  1005. IfNotEqual ErrorLevel, 0, Return INVALID_HANDLE_VALUE ; Couldn't open the file
  1006. Return handle
  1007. }
  1008.  
  1009. /*
  1010. // Open the file for writing.
  1011. // Return the file handle to provide in further write operations and in the final close operation,
  1012. // or INVALID_HANDLE_VALUE if an error was found.
  1013. */
  1014. OpenFileForWrite(_filename)
  1015. {
  1016. local handle
  1017.  
  1018. handle := DllCall("CreateFile"
  1019. , "Str", _filename ; lpFileName
  1020. , "UInt", 0x40000000 ; dwDesiredAccess (GENERIC_WRITE)
  1021. , "UInt", 3 ; dwShareMode (FILE_SHARE_READ|FILE_SHARE_WRITE)
  1022. , "UInt", 0 ; lpSecurityAttributes
  1023. , "UInt", 4 ; dwCreationDisposition (OPEN_ALWAYS: create if not exists)
  1024. , "UInt", 0 ; dwFlagsAndAttributes
  1025. , "UInt", 0) ; hTemplateFile
  1026. If (handle = INVALID_HANDLE_VALUE or handle = 0)
  1027. {
  1028. ErrorLevel = -1
  1029. }
  1030. IfNotEqual ErrorLevel, 0, Return INVALID_HANDLE_VALUE ; Couldn't open the file
  1031. Return handle
  1032. }
  1033.  
  1034. /*
  1035. // Close the file.
  1036. */
  1037. CloseFile(_handle)
  1038. {
  1039. local result
  1040.  
  1041. result := DllCall("CloseHandle"
  1042. , "UInt", _handle)
  1043. If (result = 0)
  1044. {
  1045. ErrorLevel = -1
  1046. }
  1047. }
  1048.  
  1049. /*
  1050. // Get the size of the opened file, in bytes.
  1051. // Limited to 4GB, so it is more limited that AHK's FileGetSize.
  1052. // It is here for consistency, and because it accepts a file handle instead of a path.
  1053. //
  1054. // Return the size in bytes, -1 if there was an error.
  1055. */
  1056. GetFileSize(_handle)
  1057. {
  1058. local fileSize
  1059.  
  1060. fileSize := DllCall("GetFileSize"
  1061. , "UInt", _handle
  1062. , "UInt", 0)
  1063. If (fileSize = INVALID_FILE_SIZE)
  1064. {
  1065. ErrorLevel = -1
  1066. }
  1067. IfNotEqual ErrorLevel, 0, Return -1
  1068. Return fileSize
  1069. }
  1070.  
  1071. /*
  1072. // Move the file pointer in the file to the given offset relative to moveMethod.
  1073. //
  1074. // moveMethod can be FILE_BEGIN, FILE_CURRENT or FILE_END.
  1075. // If moveMethod is -1, nothing is done (default, for operations at current position).
  1076. // To get the current position, call this function with just FILE_CURRENT (null offset).
  1077. // offset can be positive (toward end of the file) or negative (toward start of the file).
  1078. //
  1079. // Return -1 if there was an error, the new file pointer position if OK.
  1080. // Note: Currently it doesn't work for files larger than 2GB...
  1081. */
  1082. MoveInFile(_handle, _moveMethod=-1, _offset=0)
  1083. {
  1084. local result
  1085.  
  1086. result = %INVALID_FILE_SIZE%
  1087. if (_moveMethod != -1)
  1088. {
  1089. result := DllCall("SetFilePointer"
  1090. , "UInt", _handle ; hFile
  1091. , "Int", _offset ; lDistanceToMove
  1092. , "UInt", 0 ; lpDistanceToMoveHigh
  1093. , "UInt", _moveMethod) ; dwMoveMethod
  1094. if (result = -1) ; INVALID_SET_FILE_POINTER
  1095. {
  1096. ErrorLevel = -1
  1097. }
  1098. IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
  1099. }
  1100. Return result
  1101. }
  1102.  
  1103. /*
  1104. // Write in a file opened for writing.
  1105. //
  1106. // Move to position given by moveMethod and offset
  1107. // (by default stand at current position) and
  1108. // write byteNb bytes from data (all data if byteNb = 0;
  1109. // data contains binary bytes that can be a string or
  1110. // raw bytes generated from hexa data with the Hex2Bin routine).
  1111. //
  1112. // moveMethod, defaulting to -1 (no move, write at current position),
  1113. // can also be FILE_BEGIN, FILE_CURRENT or FILE_END.
  1114. // offset can be positive (toward end of file) or negative (toward beginning of file).
  1115. //
  1116. // Return the number of bytes written (-1 if there was an error).
  1117. */
  1118. WriteInFile(_handle, ByRef @data, _byteNb=0, _moveMethod=-1, _offset=0)
  1119. {
  1120. local dataSize, result, written
  1121.  
  1122. _offset := MoveInFile(_handle, _moveMethod, _offset)
  1123. IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
  1124.  
  1125. dataSize := VarSetCapacity(@data) ; Get the capacity (>= used length!)
  1126. If (_byteNb < 1 or _byteNb > dataSize)
  1127. {
  1128. byteNb := dataSize
  1129. }
  1130. result := DllCall("WriteFile"
  1131. , "UInt", _handle ; hFile
  1132. , "Str", @data ; lpBuffer
  1133. , "UInt", _byteNb ; nNumberOfBytesToWrite
  1134. , "UInt *", written ; lpNumberOfBytesWritten
  1135. , "UInt", 0) ; lpOverlapped
  1136. if (result = 0 or written < _byteNb)
  1137. {
  1138. ErrorLevel = -2
  1139. }
  1140. IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't write in the file
  1141. Return written
  1142. }
  1143.  
  1144. /*
  1145. // Read from a file opened for reading.
  1146. //
  1147. // Move to position given by moveMethod and offset
  1148. // (by default stand at current position) and
  1149. // read byteNb bytes in data (the whole file if byteNb = 0;
  1150. // data contains binary bytes that can be a string or
  1151. // raw bytes that can be converted to hex digits with the Bin2Hex routine).
  1152. //
  1153. // moveMethod, defaulting to -1 (no move, read at current position),
  1154. // can also be FILE_BEGIN, FILE_CURRENT or FILE_END.
  1155. // offset can be positive (toward end of file) or negative (toward beginning of file).
  1156. //
  1157. // Return the number of bytes read (-1 if there was an error), which can be less
  1158. // than requested if end-of-file is meet.
  1159. */
  1160. ReadFromFile(_handle, ByRef @data, _byteNb=0, _moveMethod=-1, _offset=0)
  1161. {
  1162. local fileSize, granted, result, read
  1163.  
  1164. _offset := MoveInFile(_handle, _moveMethod, _offset)
  1165. IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
  1166.  
  1167. if (_byteNb = 0)
  1168. {
  1169. ; Read whole file (or less if file pointer isn't at start)
  1170. fileSize := GetFileSize(_handle)
  1171. IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't get the file size
  1172. _byteNb := fileSize
  1173. }
  1174. granted := VarSetCapacity(@data, _byteNb, 0)
  1175. if (granted < _byteNb)
  1176. {
  1177. ; Cannot allocate enough memory
  1178. ErrorLevel = Mem=%granted%
  1179. Return -1
  1180. }
  1181.  
  1182. result := DllCall("ReadFile"
  1183. , "UInt", _handle ; hFile
  1184. , "Str", @data ; lpBuffer
  1185. , "UInt", _byteNb ; nNumberOfBytesToRead
  1186. , "UInt *", read ; lpNumberOfBytesRead
  1187. , "UInt", 0) ; lpOverlapped
  1188. if (result = 0)
  1189. {
  1190. ErrorLevel = -2
  1191. }
  1192. ;~ MsgBox fileSize: %fileSize% - offset: %_offset% - byteNb: %_byteNb% - granted: %granted% - read: %read%
  1193. IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't read the file
  1194.  
  1195. ; Note that we can have read less data than requested,
  1196. ; eg. if end of file has been meet
  1197. Return read
  1198. }
  1199. /*
  1200. // Convert raw bytes stored in a variable to a string of hexa digit pairs.
  1201. // Convert either byteNb bytes or, if null, the whole content of the variable.
  1202. //
  1203. // Return the number of converted bytes, or -1 if error (memory allocation)
  1204. */
  1205. Bin2Hex(ByRef @hex, ByRef @bin, _byteNb=0)
  1206. {
  1207. local intFormat, dataSize, dataAddress, granted, x
  1208.  
  1209. ; Save original integer format
  1210. intFormat = %A_FormatInteger%
  1211. ; For converting bytes to hex
  1212. SetFormat Integer, Hex
  1213.  
  1214. ; Get size of data
  1215. dataSize := VarSetCapacity(@bin)
  1216. If (_byteNb < 1 or _byteNb > dataSize)
  1217. {
  1218. _byteNb := dataSize
  1219. }
  1220. dataAddress := &@bin
  1221. ; Make enough room (faster)
  1222. granted := VarSetCapacity(@hex, _byteNb * 2)
  1223. if (granted < _byteNb * 2)
  1224. {
  1225. ; Cannot allocate enough memory
  1226. ErrorLevel = Mem=%granted%
  1227. Return -1
  1228. }
  1229. Loop %_byteNb%
  1230. {
  1231. ; Get byte in hexa
  1232. x := *dataAddress + 0x100
  1233. StringRight x, x, 2 ; 2 hex digits
  1234. StringUpper x, x
  1235. @hex = %@hex%%x%
  1236. dataAddress++ ; Next byte
  1237. }
  1238. ; Restore original integer format
  1239. SetFormat Integer, %intFormat%
  1240.  
  1241. Return _byteNb
  1242. }
  1243.  
  1244. /*
  1245. // Convert a string of hexa digit pairs to raw bytes stored in a variable.
  1246. // Convert either byteNb bytes or, if null, the whole content of the variable.
  1247. //
  1248. // Return the number of converted bytes, or -1 if error (memory allocation)
  1249. */
  1250. Hex2Bin(ByRef @bin, _hex, _byteNb=0)
  1251. {
  1252. local dataSize, granted, dataAddress, x
  1253.  
  1254. ; Get size of data
  1255. x := StrLen(_hex)
  1256. dataSize := Ceil(x / 2)
  1257. if (x = 0 or dataSize * 2 != x)
  1258. {
  1259. ; Invalid string, empty or odd number of digits
  1260. ErrorLevel = Param
  1261. Return -1
  1262. }
  1263. If (_byteNb < 1 or _byteNb > dataSize)
  1264. {
  1265. _byteNb := dataSize
  1266. }
  1267. ; Make enough room
  1268. granted := VarSetCapacity(@bin, _byteNb, 0)
  1269. if (granted < _byteNb)
  1270. {
  1271. ; Cannot allocate enough memory
  1272. ErrorLevel = Mem=%granted%
  1273. Return -1
  1274. }
  1275. dataAddress := &@bin
  1276.  
  1277. Loop Parse, _hex
  1278. {
  1279. if (A_Index & 1) ; Odd
  1280. {
  1281. x = %A_LoopField% ; Odd digit
  1282. }
  1283. else
  1284. {
  1285. ; Concatenate previous x and even digit, converted to hex
  1286. x := "0x" . x . A_LoopField
  1287. ; Store integer in memory
  1288. DllCall("RtlFillMemory"
  1289. , "UInt", dataAddress
  1290. , "UInt", 1
  1291. , "UChar", x)
  1292. dataAddress++
  1293. }
  1294. }
  1295.  
  1296. Return _byteNb
  1297. }
  1298. HexString=
  1299. ( Join
  1300. %nif1%%newhexname%%nif2%
  1301. )
  1302. Tfh := OpenFileForWrite(filenifname)
  1303. l := Hex2Bin(data, HexString)
  1304. WriteInFile(Tfh, data, l)
  1305. CloseFile(Tfh)
  1306. FileCopy,%A_ScriptDir%\%filenifname%, %A_ScriptDir%\tmp\guitars_Pc\assets\gameplay\inlay\%filenifname%
  1307. FileDelete,%A_ScriptDir%\%filenifname%
  1308. progress = 80
  1309. textprogress = 80`% - Modified - guitars.psarc - sources
  1310. GuiControl,, txtprogress, %textprogress%
  1311. GuiControl,, progressbar, %progress%
  1312. FileAppend, %ccg2%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`n, %A_ScriptDir%\tmp\static_Pc\localization\maingame.csv
  1313. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_512.dds
  1314. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_256.dds
  1315. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_128.dds
  1316. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_64.dds
  1317. progress = 90
  1318. textprogress = 90`% - Modified - static.psarc - sources
  1319. GuiControl,, txtprogress, %textprogress%
  1320. GuiControl,, progressbar, %progress%
  1321. FileRemoveDir, %A_ScriptDir%\tmp\cache_Pc\cache7, 1
  1322. FileRemoveDir, %A_ScriptDir%\tmp\cache_Pc\cache4, 1
  1323. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input=%A_ScriptDir%\tmp\cache_Pc --output=%A_ScriptDir%\output\cache.psarc,,Hide
  1324. sleep 600
  1325. progress = 94
  1326. textprogress = 94`% - packed - cache.psarc - sources
  1327. GuiControl,, txtprogress, %textprogress%
  1328. GuiControl,, progressbar, %progress%
  1329. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input=%A_ScriptDir%\tmp\guitars_Pc --output=%A_ScriptDir%\output\guitars.psarc,,Hide
  1330. sleep 600
  1331. progress = 96
  1332. textprogress = 96`% - packed - guitars.psarc - sources
  1333. GuiControl,, txtprogress, %textprogress%
  1334. GuiControl,, progressbar, %progress%
  1335. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input=%A_ScriptDir%\tmp\static_Pc --output=%A_ScriptDir%\output\static.psarc,,Hide
  1336. FileRemoveDir, %A_ScriptDir%\tmp, 1
  1337. progress = 98
  1338. textprogress = 98`% - packed - static.psarc - sources - almost done.
  1339. GuiControl,, txtprogress, %textprogress%
  1340. GuiControl,, progressbar, %progress%
  1341. MsgBox, 4,, Would you like to automatly install guitar?`nOverhide Rocksmith 2014 installation files.`nAlso backup of modded files are in folder Backup.`nalways test in-game before making new guitar.
  1342. IfMsgBox Yes
  1343.  
  1344. FileDelete, %RS2014DIR%\static.psarc
  1345. FileDelete, %RS2014DIR%\guitars.psarc
  1346. FileDelete, %RS2014DIR%\cache.psarc
  1347. FileCopy, %A_ScriptDir%\output\static.psarc, %RS2014DIR%\static.psarc
  1348. FileCopy, %A_ScriptDir%\output\guitars.psarc, %RS2014DIR%\guitars.psarc
  1349. FileCopy, %A_ScriptDir%\output\cache.psarc, %RS2014DIR%\cache.psarc
  1350.  
  1351. IniWrite, %RS2014DIR%, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  1352. IniWrite, %ccg2% - %guitarname%, CustomGuitarList.ini, GuitarList, %ID1%
  1353. IniWrite, %ID1%, CustomGuitarList.ini, CustomGuitarMasterID, MasterID%ccg%
  1354. IniWrite, %ccg2%, CustomGuitarList.ini, CustomGuitarLinkToID, %ID1%
  1355. IniWrite, %guitarname%, CustomGuitarList.ini, CustomGuitarNameList, Guitar%ccg%
  1356. ccg++
  1357. ccg2++
  1358. IniWrite, %ccg%, CustomGuitarList.ini, NumberInstance, NumberSet
  1359. IniWrite, %ccg2%, CustomGuitarList.ini, NumberInstance, NumberGuitar
  1360. progress = 100
  1361. textprogress = 100`% - Work done -> check %A_ScriptDir%\output directory !
  1362. GuiControl,, txtprogress, %textprogress%
  1363. GuiControl,, progressbar, %progress%
  1364. msgbox, Package created.`nTest ingame before creating any other.`nAs the soft make new package from one of Rocksmith 2014 directory if it make from a conrupted files it can't work.`n Enjoy :)
  1365. GuiControl,, progressbar, %progress%
  1366. GuiControl, enable, RS2014DB
  1367. GuiControl, enable, newinlay
  1368. GuiControl, enable, newicon
  1369. GuiControl, enable, coloredinlay
  1370. GuiControl, enable, newenglishname
  1371. GuiControl, enable, newfrenchname
  1372. GuiControl, enable, newspanishname
  1373. GuiControl, enable, newitalianname
  1374. GuiControl, enable, newgermanname
  1375. GuiControl, enable, newjapanesename
  1376. GuiControl, enable, getemplateB
  1377. GuiControl, enable, aboutB
  1378. GuiControl, enable, parseB
  1379. GuiControl, enable, lg
  1380. GuiControl, enable, sg
  1381. GuiControl, enable, creatorname
  1382. progress = 0
  1383. GuiControl,, progressbar, %progress%
  1384. IDString = a0b1c2d3e4f5a6b7c8d9e0f
  1385. Random, RDM1, 0x00F000000, 0x00fffffff
  1386. ID1 = %IDString%%RDM1%
  1387. StringUpper, ID1MAJ, ID1
  1388. GuiControl,, idmaster, %ID1MAJ%
  1389. GuiControl,, guitarid, %ccg2%
  1390. return
  1391.  
  1392. getemplate:
  1393.  
  1394. templatehexa = 89504E470D0A1A0A0000000D49484452000004000000020008060000001CCD1EB9000000097048597300000EC300000EC301C76FA864000000206348524D00007A25000080830000F9FF000080E9000075300000EA6000003A980000176F925FC54600001EE84944415478DAECDD4F6C24597D07F05F555933873DA09EC35E42126DAF18F6100492474AE03402CF82049CC086AC360790620FA74D42900DA73D256E2116B8C08C23ED5ED00A6C20F719271929D2EE652C252207B2D278A525A73D6C0BA439CCC8DD9D4377B3634F5575BBDDFFEBF3915AC0B4DD6E5E55BD7AEFFBFE54F2C27BBFEE04000000B0D452450000000002000000004000000000000800000000000100000000200000000000C624E9743C0590E9EBACAC9C3AF192939344A9E09CC3798573079C23383798DCF962060000000054800000000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010002802000000100000000000020000000040000000000008000000000001000000002000000000000400000000800000000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000040000000000002000000004000000000000800000000000100000000200000000000040000000080000000000010000000008000000000001000000000000200000000400000000000080000000000010000000020000000000004000000002000000000000400000000800000000000100000000000020000000040000000000008000000000001000000002000000000000100000000200000000000040000000080000000000010000000000063B6A2080000005804AD567BD08F6C46442D22D67AAFB30EFBAF2C4B8FAA567E49A7D3711631759D959553275E72729228159C7338AF70EE2C55237D3D22F667F0A70FB32CBDE11C41FD51A900A01611DBBDD7B9EA8B886864597A5895F3C51200000026A1AE088029D88C880F46E8FC47746708DC6DB5DADB55292C4B0000009884D519FDDD63450F957137F2A7F99FD76EABD5AE6559BAB3EC05660600000093308B1900C711B1A3E8A112EE8FA9F3DFB75D85990002000000266116330036B22C6D2A7A587AFB03EA98C3E88681C999D756441C0C0801967AF99200000080B16AB5DAB3E8FC37AAB8A33754D07644AC97BCBF11113722A291F3DE5E96A51BBD20204F7F33C1A5E5290017BFC195BDBD16DD646AB5E0243D8E88BD88686659BA57A572B3B32DCEB985A9E3F607DC642FE2CAA28FD439AF70EE4CA4FD54A6A84E3ACAB2F49A7304F5C7D2D71DF5E84EFDAF15FCC8B588280D02B32CED7FD67644ECE6FC4833229E5F96D9449E02301D9B11F120BA9B52EC96349EEBBDF76FB75AED4E95769F0416C6A446F19AA6E90223B4AF8ADA545B8A072A61BBA4F3BF35A8F37F26086844FEA6A1B518EFDE02734500305EFD44EA768CB6F1CD6EABD5BEBFECEB4E80C5D06AB56B31B94DBC0E9530700EB5C81FA98B88D831F51F2AD32ED92C69578C32A3BA683F80D5652D4701C0F8ACF63AFFABE3F89C19AD9D0398D6CDCF63BA80F3B81DF9A37E47BD513C60F96D96BC376A3D7024006054B5289E8E32CA67EDF7522E80650C008CD601C35A8FE2A9FF1B8A072ADF2E398ED16716162D475CDA19D90280F1E93F6AE2EC09B51311CFC7E9C74F5C8BC1CFA8AD4779CA0530694537BF8D2C4BCF3E56E7BCAF03C50B0CA116DDD1FF3C3B59969A4D04D551B42E5F9B420030338D274EC0BD88B8D2FBB7B337A7A3DEBF3F1FE5A36036050466A92C6907980653FF81FEA3458B66479B55280098A9AD275E831C4777EA5AD1D4939ABD0080390B009A36DB02A6C4D47FA0AF3EA04F3589CF15003094669C6307CADED4B5B29F5F53A4C0B495848F46FF816918B4EBBFBA0804004FF6BFC6FDB94B5BC70800E683D13460DE1405001EDF074CC36E41C3BCBF8C12601C9DF5A2C1D6E6B2169600603E3415013067EAEA2B6046D6A27823E42DC5038C43EF896B959BF1280000208F1900C02C94EDFADF08B32681A78DBA8EBFEC896B660030F19B5D686C030B100058770B4CD2764163FE384CFD872A6B8ED06629D41BFD2F7BE2DAD2868D0280F96E68DB6D1B98BA56AB5D8FE2C76E5902004CB23D54D420DF094B90A0CACAFA44A36C9A5EF4885101005351F4881B493730AB46789EE35E40B0D96AB5B723A293F3DA8DF2441DA0C87EC1BF1FF45E4045F506458B42C0CD38C72C805E1B66BDACF3BFCC031E0280196BB5DA9B913FD5ED5C8F130418A3A2B574B556ABFD20BAA979D1E3B9B67BEF75A27C6D1DC0D9BAA3A83DB4A37880281F1CDD8FC17B01D47A3FB73BE0E7963A701400CCD66AC909B865AA2D30C3BA29CF5A9C6FA39DDB117137CAA7D801D44BDA438DB0F708D0B517C5B300EA11F120BA61E2D976C77AAF8EF920CA47FEFB967A0FB6A49D651DE7D2F4751A8DE8FCDDDFE71F945FFD3292975E5248C04CB47FF77F11CF3E3BBE0F7CF7DD485FF8B88205F2DB44F78FA2F3894FA83B800BF5A1B45986B3E2349AEE091B1FF9487436BE16F1CC333AFFC0FCB97A75BC9DFF8888E79E8BCE9B6FAADB80FCC67C5EE73F22921FFD480101A7EB85EDED6E7FEA1BDF9CCCE7DFFB8FA52F4301C084B53F681676F69FBED1FDB07B5203CCAA31FED9CF3DFD8F0F1F46B2FF8B88DFFFFEA93AAA73F35B115FFC62745E7CB1FC73BFF2D5889BFF19C9AD9F2A64A0EBEAD5E8FC6DFE5621C99D3BEA0B20BF7EB879B3DBB618350478FFFDFCC18E870F2379EDB5A52F3F7B004CD2F5EB4375FE933B7722FDFC8B3AFFC0EC7DEA93A7EBA7375E8FF44A2D929B3773EBA8E4D64F23F9F297227DF9E5EE0DB5CCD7BFA67C813FEAFCE0B5FC76D2C387917CFB1F1410501A0224AFBC12F1EEBBC3FFCEDB6F757FA760A663B2FF8B8877DE59FEB2B307C0046F6CDFFD5E745E7DB5F467D2CFBF1871EF9EC20216DFF5EBD1FEF5BF96069FE927FEA212375760401BE9E6B7A2F3E31FE7374EDF78FD8F237C00C3D427F1A94FE62EB34EDE7E2BE2B7BF8DE4E73F8FB8772F3AF7EE45E7D39F79FA431E3E8CF4AFFE5200C0054FC65BB7869A9A92DCB9D34DBA358A8145AFF7066CCE93BCF28A69BD40F166A3EFBF1FE99F7E540101E36FA3940CCE5629784C3A1DFDFF8B68B5DA656FEFC7708F9A88E83ED2E24696A54795B80057564E9D78C9C949E26CC239B734F5DF83287E5CE056741FE31359963AAF502755F0DC69B5DADB51FCD8BF8D18E219DCCB507F3847706E4CA4FF55A41E11F723FFD1C4C759963E5F95F3C51E0093B5111149EFB513DD67D916A945C4DD56ABBDAAD880057730A0AE032AAAD56AD74B3AFF87C374FE0146B05FD206D9AA52410800A6A7D10B01AEF46E70450DE37D45052CB863450014B85DF2DE96E20126D4F92F1A646D64597A280060929A1171238A13EE7AABD5DE544C8000005826BDF6CD5AC1DB7BEA0E600276A37849F65196A53B552B1001C0EC949D6CEB8A0758524D450095ECFCD72262BBA45E68282560CCB607D43B1B552C1401C0EC1C47F12C00FB00008BAC260000721AE2459B8336C2E83F305E9B51BCDF4844C45696A595AC770400B355B4E37FADB7490E8000005868BD364DD928DC9E5202C6DCF92FDB6F6427CBD2CA6E382A00982D0D61A06A0180513EA89EB28678437B089862E77F2FCBD24A2F39120000306E45CB989A0200A89656ABBD1EC51BFF1D87B5FFC0F86C0FE8FC1F84A78D080066CCF3B0816554D4D83F54345039656B7075FE817176FECBEA9BC3A8E8A67F67AD2882992ADCECAFAA9B52004BD1F92F0A378F140F5447ABD52EDBF8EF38ACFD07C6633FCA9FA27618DDC7B0136600CC43435923195826836EC040353AFF658FFD8B30FA0F5C5C3D22EE0F687BECE9FC0B00E6C566148F9219FD0716F546BC5952AF0937413BA75F1F18FD072E5AC7DC8FF2C7A7EF8435FF4FB1046076CA5271A364C0222A5B7BA7B10F15D17BEC9FB5FFC024EA97D55EFDB256F263C7BD8EBF3E550E330046B8A9B55AEDFB636824D74BDE3F50D2C094EBB65AEFA63AAAED289E82E739DF502D65831CC75996AA0F809164597A14E51BA9EF45C4359D7F01C0B86F6AABAD56FB7E6F7DDB289DFFB21BE35E96A59E870B4CDB6644DC6DB5DA6B23FEEEA0D13EF51A54406FF47F73407D0070111B39ED8AFE467F5BDA1C028049DDD45623E2C1809BDC935623E2EE80CE7FD38D1198610050EB8500B787FC9D5A749FB75BF6F347EA35A814A3FFC0A41D47777D7FB3F79FD77A9D7FA3FE43483A9D8E52183E00B81BF9EB4DFA9BD91CC4E90DFC6ABD46F56A94EF4ED9B7936569251ACA9D959553275E72729238C370CECDAC6EDB2CE8C43722E228CBD2839C9FAF0F68E8F7EBC61B51B0B16996A5CE2BD449CE1D9C23383798E6F9220018BA81BC16DD11FC49696459BAA3E202E7DC0CEAB741BBE88EE238BA53F40A77FE1700A04E72EEE01CC1B9C174CF174B00CED7989DD4E3F976AAD4F907E6AAF3BF3681CEFF517447FE3DF60F00608E0800869465E9F1041AB4471171A32AD3FE81B9743CE67AADBF16EF58D102000800163A04C8B2F45A7CB8E9C4A8F6A23B35F65A96A536AB0016BD5EEB6FC693840DFF0000E6963D002EA0D56AAF477723ACFE8658450DE3FE8EB747716677CA6558033B0A6B9770CECD7DBDB616F99B9EF6EBB2FEC6807BA30607F600409DE4DCC139827383299F2F0200545C38E7C079857307E708CE0D96FF7CB104000000002A4000000000000200000000400000000000080000000000010000000020000000000004000000008000000000001000000000800000000000100000000000020000000040000000000008000000000001000000002000000000000400000000200000000000040000000080000000000010000000000002000000004000000000000800000000000100000000080014010000000800000000000100000000200000000000040000000080000000000010000000000002000000004000000000000200000000400000000000080000000000010000000020000000000004000000008000000000001000000000800000000000100000000000020000000040000000000008000000000001000000002000000000000400000000200000000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000300DC97B2F7CA1A31800000060B999010000000002000000004000000000000800000000000100000000200000000000C625E9743C0510000000969D1900000000200000000000040000000080000000000010000000000002000000004000000000000800000000000100000000544AF2DE5FBFD0510C000000B0DCCC000000000001000000002000000000000400000000800000000000100000000000E392743A9E02B80C3A2B2BA70E647272929C795F21CDC30577721225C7E5ECC59828B1C5B904CBAE3F16BB3E752D2ECFB5E958AA6B17AC2E720DE2FA63ECCC0000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000200000000000040000000080000000000004008A000000000400000000800000000000100000000000020000000040000000000008000000000001000000002000000000000100000000200000000000040000000080000000000010000000000002000000004000000000000800000000400000000000080000000000010000000020000000000004000000008000000000001000000000000200000000100000000000020000000040000000000008000000000001000000002000000000000400000000800000000000100000000080000000000010000000000002000000004000000000000800000000000100000000200000000000040000000020000000000004000000008000000000001000000000000200000000400000000000080000000000010000000008000000000001000000002000000000000400000000800000000000100000000000020000000040000000000008000000004000000000000800000000000100000000305756140130AAF6A3C7FDFF5A8F88FB11518B88E723E2784C7F62FB89FFACE5BC7F1C117B1111E9E54B0D470458C0FA7318E3AC63F723627D42FFB7AEA4972F351D5D2AD07E59EF5D4BD376985EBE74C311440000CC523D22EEF66E9ECD3174FE577B1DFEF521FFF66EEF66BE1B110711D1482F5F3A725800756C611D3B094D9D7F2A746DD5151F8BCA1200601C37CFFE8DF0A21DEFEDE826F1A38E4EAD47C4FD5E1800A08E3DAD36C18ECBA1C34585AEADD5197DEF63870E01003013ED478FD77A9DF5271B9317699CDE8EDE68FE186CB71F3DDE7794800536EE3A76D29D161D13AAD47E99C50C80E388D87104110000B3B8796EC787D3E69E34EAF4CFED88D81CF3D75C3713005850E3AE63A71100587A4595DA2FB39801B061990D020060DA37CED5F6A3C7F7A378A47E9406603DCA47FE0F23622B229233AF9D183CE574BBFDE8B1757AC0A2588DEEC8E438EBD8B3F56D6EC722A78E2D7DA5972F9D7D1D387C54A4FD328BCEBFFD8D10000053BF79EEF61AA66537BE516E4EDB25EF6D44C48DE8EDF49F7333BCD17BBF2C11DF74F4800530A93A76988E8BE9FB68BF0CEF28CE1998C5E0002D89EE46C6B97F2FBD7CC9D47F0400C0D46E9C9BED478F3F18D051EF372047999A7650D0F8BC517233FCB012BB7CE9B0F7B345D61D45608E6D46C424EBD8410140334CDF47FBA539EBEF5AD25ED97234110000D3BA713E88EEE67CB5217E65D406E461445C3BD3D91F667AFF9321C0514958506F3F7A5C73448139ECF84FA38E2DEBFCF73B3FA0FD32BBEF5B8BE2A5093BA6FE336E2B8A00387323EA6FC877DEB5F317694436A33BDD7FBDF76A8CF01947519C9EF79FF10B50C53AB62C00F0F83E5C5BB35514541CA5972F351C590400C0A46F9EA3EE9C3F8E84FA208698F65F122200A863F3D5D59DB8B626D67E19F57BF7073EF26C38B2080080491B949A37A2782DDDAC13F4C2697EE9E54BA6B80255AF63CD005830C9C9C9C2FF7FE8ACAC54E1DA1AB5F35F8BEEE87F9E1D6D1726C51E00C0300DC446445C89F2D1F9A339FDEED6CE01EA587B00E0DA9AB7F68BA9FFCC841900C093EA3937CE467AF9523322A2FDE8F1DA3C76B27B297AD1143AA35BC05CD7B1F1E134FC49D5B1F5A28E46580280F6CB2CDA2DA6FE23000066ABD789AEE5DD389F5034CD7ED623489B25EF1D38BAC03CD6B1399DEF49D5B18346FF377B7F3B6F0D75FF7B1A9144FB653C06EDFA6F560E0200602A562362AF77F3699EB31139CB0D746A51BCAEEFD0E3738079AC63DB8F1E4FB38EAD9774441E44F9FAE97EFDBA1BDDE791EF399468BF5CC86EC13567EA3F0200607AD2CB970E63F074F9795C43BA1DC5C9BE1B29A08E2DFEDCB5737ECEEDE84E5BDE084B07706D8D622D8A672D6E399A4C43D2E9742222A2B3B2D2511C40A1AB57A3FD9BFFC9BFF97EFEC5887BF7A6FF9DD637A2FDB39FE5576E6FBF15C9F5EB8E1B50F93AB6FDBBFF8B78F6D9F17DD777DF8DF4858F3B6668BF9CF77BFCDBBFE75E8BC9AF7E19C94B2F39564CBEF37F7292780A003094CE57BE9AFFC6C387B3E9FC5FBD1AEDD75E2BFC4EC9ABAF3A68803AF6EAD5F176FE23229E7B2E3A6FBEE9A0A1FD729EEFF1EAABF9D7E2FBEF6BB33055020060387FFE67B9FF9C1CCF66F67FE707AF15366A93FD5FCC26940098B33AB6F3D9CFE5767C92375E8FE4473F8CF4F2A553AFE4955722B97367A84E55E7E6B71C37B45F86B1BE511844243FF949C43BEF384E08008039F3271FCDFFF777FE77FA9DFFEF7E2F3A2FBE987F23FDCD6F22B979D3F102D4B111119FFAE4E93AF28DD723BD528BE4E6CD48B69FDE3F35B9F5D348BEFCA5485F7E39E2FDF7CB3FFBEB5F73DCD07E1942D18CC5E4EDB722F9E77F728C100000F3A7F3B18FE5BFF1873F4CF78B5CBF1E9DEF7C27FFBD870F23F9C76F3B58803AB6DFC1B879F3F408FFB001E9C17EA47FF372779A74D177FEF467BA4B0C40FBA5F8EFDFBA953F63D172450400C05C2B5A43FA5FFF3DD5AFD1BE753BE29967F21BBADFFFBEA9FF803A765CEEDD8BE45FCA9FFA97BBC4005C5B5DD7AF47E71BDFCC6FB358AEC88CFCF129002CB6B34F71484E4E12A5E2188E4BABD55E8D88FB056F5F89E93D0E6A3FBA8FA0CAD3C8B274C7B1C3F16441EAD527FFE7BCD4B1451E44FE73CB2322B6B22CDD736D328FC76C0EDA2F7723FF719B4759965E732C9905330080611435FC8EA7D830DD2EE9FC1FCDAAF30FB024756C998392F76A0E1FAEAD5C9B059DFF88086D160400C042DE408FA6F4F7572362B7E4267EC32102D4B11373EC10E1DA3A975A49BB652FCBD2438706010030CF5667D828AC47770A5D918D2C4B9B0E11A08E1500C09C5C5BBB913F3BA61946FF1100000B7C039DC6E8D47E144F31DDC9B2F4C8E101D4B1332380C5B575DA5A74A7FFE769B86610000073ADD56AD7A27C0DDD24ED96DCBC0FB22C6D3842C0829B651D7B9EEF280040FB6538B74BFEA6760B020060EED54BDE9B6482BEDD7B15FDDD2D870650C70A00608EAEADED92BF6BEA3F02006021CC62FA5CD9A67FCD88D8D0E804D4B1731100D81F00D75657BDA4ED7218E54FD30001003037A63D7DAE16DD75FF45B634380175EC5C74A49A5996AA8F716D75DD1ED076010100B010A69DA0DF2DB9693742820EA863A7ADE859E61E65866BAB6BB3E43AD90B031708008025B8814EE26656B6E9DF61583F07A86367D1F9AF4DB123058B766DD5A278CFA266D8F80F0100B0287A3BE84EABE1B75E72033D8EEEBA7F806532CD3AF6227573113300D07E29DFF8AF1146FF1100000BA4683ADBB8D77DAE46F9BA7F9BFE0195AA63E7A4D3508FE2E7991F67596A0600556FBFD4A37CF47FCFA14000002C92696CA03368D3BF9D30CD1450C7CEC26EC97B3A36B8B6CA37FE6B84C10B0400C092DC40C739EDF376C9DF39086BE70075EC286A51BC067A18DB513CFDDFC826DA2FDDEBA368A6C1B1F60B02006011AD9634FEC661B7A4817914D6FD03EAD8516D46F7A92A6B23FE6ED9E87F23CB52239B54B9FD1283AE1187000100B088EA259DF38B2ADBF4AFA9F30FA8632F1C00D47A21C0ED217FA7D6FBD9B29F3FD2B9A1E2D75644F9C67FC761860C020060D1B45AEDD598DC0EBAF5010DCC5A443C88884ED9ABD56A97BDB61D45608E4DB28EDD3CD339D9ECD59B45B3AEFA23FE1F44F1A67FFD8E8D70962AB75FFA6D94B23686808CB9B6A20880924E7A6E03F082533FFB2352B5097F7F1B07020B59C7C6C5A7291775E22F128CF63BFF1E694655DB2F4F5E5FB592EBC4E83F73CD0C00E0BC37D08B76ACCB36FD130000EAD88B598B8B6DFE57F49D6EA857A9F8B5D5FF6C6BFF1100004BA9A8017991D19F7A146FFA374E4D1B540115AC63FBBF3FCE8EFA4E445C0B23FFB8B622CA67D118FD470000B881CE88512AA0CA01C0B55EC7BD7981CFD88988248C68E2DAEAAB47F91E19AE1516823D0080A7B45AED5A4C7E075D0100A08E9D5CFDD5E8BDD67B7F6B2D8A1F0978141107BDFFBE17E37D541A2CCBB565F49FA590743A1DA5B0043A2B2BA70E647272922815C710C70EC7D3B1742C1D4F1C331C4BFA2C0100000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000200000000000040000000080000000000004008A00000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000200000000000040000000080000000000010000000008000000000001000000000000200000000400000000000080000000000010000000020000000000004000000002000000000000400000000800000000000100000000000020000000040000000000008000000000001000000000800000000000100000000200000000000040000000080000000000010000000000002000000006038C97B2F7CA1A31800000060B999010000000002000000004000000000000800000000000100000000200000000000C625E9743C0570197456564E1DC8E4E42439F3BE429A870BEEE4244A8ECBD98B3151628B7309965D7F2C767DEA5A5C9E6BD3B154D7A23EC5F5577566000000008000000000001000000000000200000000400000000000080000000000010000000020000000000004000000002000000000000400000000800000000000100000000000020000000040000000000008000000000001000000000800000000000100000000200000000000040000000080000000000010000000000002000000004000000000000200450000000002000000004000000000000800000000000100000000301DFF3F0094A27689ABEED0670000000049454E44AE426082
  1395. FileSelectFile, savetemplate, S16, Template.png, Save File
  1396. IfExist, %savetemplate%
  1397. FileDelete, %savetemplate%
  1398. HexString=
  1399. ( Join
  1400. %templatehexa%
  1401. )
  1402. Tfh := OpenFileForWrite(savetemplate)
  1403. l := Hex2Bin(data, HexString)
  1404. WriteInFile(Tfh, data, l)
  1405. CloseFile(Tfh)
  1406.  
  1407. return
  1408.  
  1409. GuiClose:
  1410. FileRemoveDir, %A_ScriptDir%\ressources\images, 1
  1411. FileRemoveDir, %A_ScriptDir%\ressources\imgtool, 1
  1412. FileRemoveDir, %A_ScriptDir%\ressources\packer, 1
  1413. FileRemoveDir, %A_ScriptDir%\tmp, 1
  1414. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement