Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #singleinstance force
- softname = Rocksmith 2014 Guitar Maker
- buildversion = 1.0.0.5
- FileCreateDir, %A_ScriptDir%\ressources
- FileCreateDir, %A_ScriptDir%\ressources\images
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\icon.png, %A_ScriptDir%\ressources\images\icon.png
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\inlay_preview.png, %A_ScriptDir%\ressources\images\inlay_preview.png
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\inlay_template.png, %template%
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\rocksmith_2014_logo.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo.png
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\images\rocksmith_2014_logo_graded.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
- FileCreateDir, %A_ScriptDir%\ressources\imgtool
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\animate.exe, %A_ScriptDir%\ressources\imgtool\animate.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\atl100.dll, %A_ScriptDir%\ressources\imgtool\atl100.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\coder.xml, %A_ScriptDir%\ressources\imgtool\coder.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\colors.xml, %A_ScriptDir%\ressources\imgtool\colors.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\compare.exe, %A_ScriptDir%\ressources\imgtool\compare.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\composite.exe, %A_ScriptDir%\ressources\imgtool\composite.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\configure.xml, %A_ScriptDir%\ressources\imgtool\configure.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\conjure.exe, %A_ScriptDir%\ressources\imgtool\conjure.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\convert.exe, %A_ScriptDir%\ressources\imgtool\convert.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_bzlib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_bzlib_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_glib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_glib_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_jbig_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_jbig_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_jp2_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_jp2_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_jpeg_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_jpeg_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_lcms_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_lcms_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_libxml_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_libxml_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_lqr_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_lqr_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_Magick++_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_Magick++_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_magick_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_magick_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_pango_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_pango_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_png_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_png_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_tiff_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_tiff_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_ttf_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_ttf_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_wand_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_wand_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_webp_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_webp_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_xlib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_xlib_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\CORE_RL_zlib_.dll, %A_ScriptDir%\ressources\imgtool\CORE_RL_zlib_.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\dcraw.exe, %A_ScriptDir%\ressources\imgtool\dcraw.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\delegates.xml, %A_ScriptDir%\ressources\imgtool\delegates.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\DevIL.dll, %A_ScriptDir%\ressources\imgtool\DevIL.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\display.exe, %A_ScriptDir%\ressources\imgtool\display.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\emfplus.exe, %A_ScriptDir%\ressources\imgtool\emfplus.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\english.xml, %A_ScriptDir%\ressources\imgtool\english.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\hp2xx.exe, %A_ScriptDir%\ressources\imgtool\hp2xx.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\identify.exe, %A_ScriptDir%\ressources\imgtool\identify.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ILU.dll, %A_ScriptDir%\ressources\imgtool\ILU.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ILUT.dll, %A_ScriptDir%\ressources\imgtool\ILUT.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ImageMagick.ico, %A_ScriptDir%\ressources\imgtool\ImageMagick.ico
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\ImageMagick.rdf, %A_ScriptDir%\ressources\imgtool\ImageMagick.rdf
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\imdisplay.exe, %A_ScriptDir%\ressources\imgtool\imdisplay.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\import.exe, %A_ScriptDir%\ressources\imgtool\import.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\License.txt, %A_ScriptDir%\ressources\imgtool\License.txt
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\locale.xml, %A_ScriptDir%\ressources\imgtool\locale.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\log.xml, %A_ScriptDir%\ressources\imgtool\log.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\magic.xml, %A_ScriptDir%\ressources\imgtool\magic.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\mfc100.dll, %A_ScriptDir%\ressources\imgtool\mfc100.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\mime.xml, %A_ScriptDir%\ressources\imgtool\mime.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\mogrify.exe, %A_ScriptDir%\ressources\imgtool\mogrify.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\montage.exe, %A_ScriptDir%\ressources\imgtool\montage.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\msvcp100.dll, %A_ScriptDir%\ressources\imgtool\msvcp100.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\msvcr100.dll, %A_ScriptDir%\ressources\imgtool\msvcr100.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\policy.xml, %A_ScriptDir%\ressources\imgtool\policy.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\sRGB.icc, %A_ScriptDir%\ressources\imgtool\sRGB.icc
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\stream.exe, %A_ScriptDir%\ressources\imgtool\stream.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\thresholds.xml, %A_ScriptDir%\ressources\imgtool\thresholds.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\type-ghostscript.xml, %A_ScriptDir%\ressources\imgtool\type-ghostscript.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\type.xml, %A_ScriptDir%\ressources\imgtool\type.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\vcomp100.dll, %A_ScriptDir%\ressources\imgtool\vcomp100.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\X11.dll, %A_ScriptDir%\ressources\imgtool\X11.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\imgtool\Xext.dll, %A_ScriptDir%\ressources\imgtool\Xext.dll
- FileCreateDir, %A_ScriptDir%\ressources\packer
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\7za.exe, %A_ScriptDir%\ressources\packer\7za.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\NDesk.Options.dll, %A_ScriptDir%\ressources\packer\NDesk.Options.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\packer.exe, %A_ScriptDir%\ressources\packer\packer.exe
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\packer.pdb, %A_ScriptDir%\ressources\packer\packer.pdb
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\RocksmithToolkitLib.dll, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\RocksmithToolkitLib.pdb, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.pdb
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\X360.dll, %A_ScriptDir%\ressources\packer\X360.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\X360.xml, %A_ScriptDir%\ressources\packer\X360.xml
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\ZLIB.dll, %A_ScriptDir%\ressources\packer\ZLIB.dll
- Fileinstall, E:\Softwares\AutoHotkey\SourceGuitarCreator\Makers\RS2014GuitarMakerUI\ressources\packer\zlib.net.dll, %A_ScriptDir%\ressources\packer\zlib.net.dll
- IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- If RS2014DIR = ERROR
- {
- IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- GuiControl,, rs2014dirtext, Undefinied.
- } else {
- IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- }
- If RS2014DIR =
- {
- IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- GuiControl,, rs2014dirtext, Undefinied.
- } else {
- IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- }
- IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
- IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
- If ccg = ERROR
- {
- IniWrite, 0, CustomGuitarList.ini, NumberInstance, NumberSet
- IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
- } else {
- IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
- }
- If ccg2 = ERROR
- {
- IniWrite, 90000, CustomGuitarList.ini, NumberInstance, NumberGuitar
- IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
- } else {
- IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
- }
- IDString = a0b1c2d3e4f5a6b7c8d9e0f
- Random, RDM1, 0x00F000000, 0x00fffffff
- ID1 = %IDString%%RDM1%
- StringUpper, ID1MAJ, ID1
- guitarname = English Default name
- guitarname1 = French name
- guitarname2 = Spanish name
- guitarname3 = Italian name
- guitarname4 = German name
- guitarname5 = Japanese name
- DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
- DDSI512files = %A_ScriptDir%\ressources\images\icon.png
- textprogress = Ready to go !
- creator = Creator Name
- RandomName(MinLength=4, MaxLength=0)
- {
- ;This is a table of probabilities of given letter combinations.
- ;Each list is the probability of any letter coming after the letter that is the variable name.
- ;The 27th value is the probability that the word ends with the current letter.
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- ;This allows numerical values to easily be converted to letters.
- Alphabet = ABCDEFGHIJKLMNOPQRSTUVWXYZ
- Loop
- {
- ;Checks for the previous letter to determine which set of probabilities to use.
- If (!Word)
- Previous = Start
- Else
- Previous := SubStr(Word, 0, 1)
- ;Randomly chooses the next letter, based on the probabilities listed above.
- Random, rand, 0.0, 1.0
- Sum = 0
- Next =
- Loop, parse, %Previous%, |
- {
- Sum += A_LoopField
- If (rand<Sum)
- {
- Next := SubStr(Alphabet, A_Index, 1)
- Break
- }
- }
- ;Finishes the word if the word randomly ends or reaches the maximum length.
- If ((!Next AND StrLen(Word)>=MinLength) OR (MaxLength AND StrLen(Word)=MaxLength))
- Break
- Word .= Next
- }
- StringLower, Word, Word, T
- Return, Word
- }
- RandomName = % RandomName(6,6)
- StringLower, RandomName, RandomName
- guitarnamesix = %RandomName%
- Gui, Add, Picture, x102 y9 w610 h120 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
- Gui, Add, Text, x712 y109 w90 h20 , Version : %buildversion%
- Gui, Add, Button,gRS2014D vRS2014DB x272 y119 w100 h30, RS2014 Directory
- Gui, Add, Text,vrs2014dirtext x22 y129 w240 h30, %RS2014DIR%
- Gui, Add, Text,vidmaster x22 y163 w240 h30 , %ID1MAJ%
- Gui, Add, Text,vguitarid x272 y163 w100 h30 , %ccg2%
- Gui, Add, Button,gloadguitar vlg x162 y189 w100 h30 , Load
- Gui, Add, Button,gsaveguitar vsg x272 y189 w100 h30 , Save
- Gui, Add, Text, x22 y197 w140 h30 , Custom Guitars templates :
- Gui, Add, Text, x22 y239 w150 h30 , English name :
- Gui, Add, Edit, vnewenglishname x182 y239 w190 h30 , %guitarname%
- Gui, Add, Text, x22 y279 w150 h30 , French name :
- Gui, Add, Edit, vnewfrenchname x182 y279 w190 h30 , %guitarname1%
- Gui, Add, Text, x22 y319 w150 h30 , Spanish name :
- Gui, Add, Edit, vnewspanishname x182 y319 w190 h30 , %guitarname2%
- Gui, Add, Text, x22 y359 w150 h30 , Italian name :
- Gui, Add, Edit, vnewitalianname x182 y359 w190 h30 , %guitarname3%
- Gui, Add, Text, x22 y399 w150 h30 , German name :
- Gui, Add, Edit, vnewgermanname x182 y399 w190 h30 , %guitarname4%
- Gui, Add, Text, x22 y439 w150 h30 , Japanese name :
- Gui, Add, Edit, vnewjapanesename x182 y439 w190 h30 , %guitarname5%
- Gui, Add, Picture,gnewiconfiles vnewicon x382 y119 w150 h150 , %DDSI512files%
- Gui, Add, Text,vdefaultname x542 y139 w200 h30 , %guitarname%
- Gui, Add, Text,vdefault6name Limit6 x542 y169 w200 h30 , %RandomName%
- Gui, Add, CheckBox,vcoloredinlay x542 y199 w200 h30, Colored Inlay
- Gui, Add, Edit,vcreatorname x542 y229 w200 h40 , %creator%
- Gui, Add, Picture,gnewinlayfiles vnewinlay x382 y289 w420 h150 , %DDSInlayfiles%
- Gui, Add, Button,ggetemplate vgetemplateB x702 y449 w100 h30 , Get the template
- Gui, Add, Text, x382 y449 w310 h30 , %ccg% custom guitars have been created already.
- Gui, Add, Text,vtxtprogress x12 y509 w680 h20 , %textprogress%
- Gui, Add, Progress,vprogressbar x12 y479 w680 h30 , %progress%
- Gui, Add, Button,gparse vparseB x702 y489 w100 h30 , Create it !
- Gui, Show, h535 w816, %softname%
- Gui, Add, Button,gabout vaboutB x712 y79 w90 h30 , About
- SetTimer, Refreshmahname, 10
- return
- about:
- Gui, 2:Add, Picture, x2 y-1 w450 h120 +Center, %A_ScriptDir%\ressources\images\rocksmith_2014_logo.png
- Gui, 2:Add, Text, x122 y109 w200 h30 +Center, Version : %buildversion%
- Gui, 2:Add, Text,gbaoulettes x122 y129 w200 h30 +Center, Made by : Baoulettes
- Gui, 2:Add, Text, x122 y169 w200 h30 +Center, - Credits -
- Gui, 2:Add, Text, x2 y209 w200 h30 +Center, - Psarc packer/unpacker -
- Gui, 2:Add, Button,ggooglegroups x42 y239 w120 h40 +Center, Open Tool Google Groups
- Gui, 2:Add, Text, x2 y319 w200 h30 +Center, - ImageMagick -
- Gui, 2:Add, Button,gimagemagick x42 y349 w120 h40 +Center, Open imageMagick
- Gui, 2:Add, Text, x252 y209 w200 h30 +Center, - 7zip packer/unpacker -
- Gui, 2:Add, Button,g7zip x292 y239 w120 h40 +Center, Open 7zip website
- Gui, 2:Add, Text, x252 y319 w200 h30 +Center, AutoHotkey libs
- Gui, 2:Add, Button,gautohotkey x292 y349 w120 h40 +Center, Open Autohotkey website
- Gui, 2:Show,h403 w455, %softname% - About
- return
- googlegroups:
- run, https://groups.google.com/forum/#!forum/rocksmith-custom-song-project
- return
- imagemagick:
- run, http://www.imagemagick.org
- return
- 7zip:
- run, http://www.7-zip.org/
- return
- autohotkey:
- run, http://www.autohotkey.com
- return
- baoulettes:
- run, http://forums.smithyanvil.com/profile.php?id=319
- return
- Refreshmahname:
- GuiControlGet, newenglishname
- GuiControl,, defaultname, %newenglishname%
- return
- RS2014D:
- GuiControl, disable, RS2014DB
- GuiControl, disable, newinlay
- GuiControl, disable, newicon
- GuiControl, disable, coloredinlay
- GuiControl, disable, getemplateB
- GuiControl, disable, newenglishname
- GuiControl, disable, newfrenchname
- GuiControl, disable, newspanishname
- GuiControl, disable, newitalianname
- GuiControl, disable, newgermanname
- GuiControl, disable, newjapanesename
- GuiControl, disable, aboutB
- GuiControl, disable, parseB
- GuiControl, disable, creatorname
- GuiControl, disable, lg
- GuiControl, disable, sg
- FileSelectFolder, RS2014DIR,, 3, Select Rocksmith 2014 Installation folder.
- IniWrite, %RS2014DIR%, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- If RS2014DIR = ERROR
- {
- RS2014DIR = Undefinied.
- GuiControl,, rs2014dirtext, %RS2014DIR%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- } else {
- GuiControl,, rs2014dirtext, %RS2014DIR%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- }
- If RS2014DIR =
- {
- RS2014DIR = Undefinied.
- GuiControl,, rs2014dirtext, %RS2014DIR%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- } else {
- GuiControl,, rs2014dirtext, %RS2014DIR%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- }
- return
- newiconfiles:
- GuiControl, disable, RS2014DB
- GuiControl, disable, newinlay
- GuiControl, disable, newicon
- GuiControl, disable, coloredinlay
- GuiControl, disable, getemplateB
- GuiControl, disable, newenglishname
- GuiControl, disable, newfrenchname
- GuiControl, disable, newspanishname
- GuiControl, disable, newitalianname
- GuiControl, disable, newgermanname
- GuiControl, disable, creatorname
- GuiControl, disable, newjapanesename
- GuiControl, disable, aboutB
- GuiControl, disable, parseB
- GuiControl, disable, lg
- GuiControl, disable, sg
- FileSelectFile, DDSI512files, 3, , Open a Icon 512x512 Image, Rocksmith 2014 Icon 512x512 Image files (*.tga; *.png; *.jpg; *.jpeg; *.bmp; *.dds;)
- If DDSI512files =
- {
- DDSI512files = %A_ScriptDir%\ressources\images\icon.png
- GuiControl,, newicon, %DDSI512files%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- } else {
- GuiControl,, newicon, %DDSI512files%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- }
- If DDSI512files = ERROR
- {
- DDSI512files = %A_ScriptDir%\ressources\images\icon.png
- GuiControl,, newicon, %DDSI512files%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- } else {
- GuiControl,, newicon, %DDSI512files%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- }
- return
- newinlayfiles:
- GuiControl, disable, RS2014DB
- GuiControl, disable, newinlay
- GuiControl, disable, newicon
- GuiControl, disable, coloredinlay
- GuiControl, disable, getemplateB
- GuiControl, disable, newenglishname
- GuiControl, disable, newfrenchname
- GuiControl, disable, newspanishname
- GuiControl, disable, newitalianname
- GuiControl, disable, newgermanname
- GuiControl, disable, newjapanesename
- GuiControl, disable, aboutB
- GuiControl, disable, parseB
- GuiControl, disable, lg
- GuiControl, disable, creatorname
- GuiControl, disable, sg
- FileSelectFile, DDSInlayfiles, 3, , Open a Inlay Image, Rocksmith 2014 Inlay Image files (*.tga; *.png; *.dds)
- If DDSInlayfiles =
- {
- DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
- GuiControl,, newinlay, %DDSInlayfiles%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, creatorname
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- } else {
- GuiControl,, newinlay, %DDSInlayfiles%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, creatorname
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- }
- If DDSInlayfiles = ERROR
- {
- DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
- GuiControl,, newinlay, %DDSInlayfiles%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- } else {
- GuiControl,, newinlay, %DDSInlayfiles%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, creatorname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- }
- return
- loadguitar:
- GuiControl, disable, RS2014DB
- GuiControl, disable, creatorname
- GuiControl, disable, newinlay
- GuiControl, disable, newicon
- GuiControl, disable, coloredinlay
- GuiControl, disable, getemplateB
- GuiControl, disable, newenglishname
- GuiControl, disable, newfrenchname
- GuiControl, disable, newspanishname
- GuiControl, disable, newitalianname
- GuiControl, disable, newgermanname
- GuiControl, disable, newjapanesename
- GuiControl, disable, aboutB
- GuiControl, disable, parseB
- GuiControl, disable, lg
- GuiControl, disable, sg
- FileSelectFile, loadcgm, 3, , Open a Rocksmith 2014 Guitars Maker Template, Rocksmith 2014 CGM (*.cgm)
- if loadcgm =
- {
- msgbox, You need to select a .cgm only.
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, creatorname
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- }
- else
- {
- FileDelete, %A_ScriptDir%\tmp\1.png
- FileDelete, %A_ScriptDir%\tmp\2.png
- FileCreateDir, %A_ScriptDir%\tmpcgm
- FileCreateDir, %A_ScriptDir%\tmpcgm\customguitarmaker
- FileCopy, %loadcgm%, %A_ScriptDir%\tmpcgm\customguitarmaker\1.7z
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe x %A_ScriptDir%\tmpcgm\customguitarmaker\1.7z -o%A_ScriptDir%\tmpcgm\customguitarmaker\*,,Hide
- IfExist, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb
- {
- IniRead, creator, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, creatorname
- IniRead, leng, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname
- IniRead, lfr, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname1
- IniRead, lspa, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname2
- IniRead, lit, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname3
- IniRead, lge, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname4
- IniRead, ljpn, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, guitarname5
- IniRead, lcolored, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.smb, Setup, coloredinlay
- }
- else
- {
- IniRead, creator, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, creatorname
- IniRead, leng, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname
- IniRead, lfr, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname1
- IniRead, lspa, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname2
- IniRead, lit, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname3
- IniRead, lge, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname4
- IniRead, ljpn, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, guitarname5
- IniRead, lcolored, %A_ScriptDir%\tmpcgm\customguitarmaker\1\setup.cgm, Setup, coloredinlay
- }
- FileCreateDir, %A_ScriptDir%\tmp
- FileCopy, %A_ScriptDir%\tmpcgm\customguitarmaker\1\inlay.png, %A_ScriptDir%\tmp\1.png
- FileCopy, %A_ScriptDir%\tmpcgm\customguitarmaker\1\icon.png, %A_ScriptDir%\tmp\2.png
- loadinlay = %A_ScriptDir%\tmp\1.png
- loadicon = %A_ScriptDir%\tmp\2.png
- FileRemoveDir, %A_ScriptDir%\tmpcgm, 1
- DDSI512files = %loadicon%
- DDSInlayfiles = %loadinlay%
- if lcolored = 1
- {
- coloredinlay = 1
- }
- else
- {
- coloredinlay = 0
- }
- GuiControl,, newenglishname, %leng%
- GuiControl,, newfrenchname, %lfr%
- GuiControl,, newspanishname, %lspa%
- GuiControl,, newitalianname, %lit%
- GuiControl,, newgermanname, %lge%
- GuiControl,, newjapanesename, %ljpn%
- GuiControl,, coloredinlay, %coloredinlay%
- GuiControl,, newinlay, %DDSInlayfiles%
- GuiControl,, newicon, %DDSI512files%
- GuiControl,, creatorname, %creator%
- If creator =
- {
- creator = NoNameExist
- GuiControl,, creatorname, %creator%
- loaded = The guitar %leng% has been loaded !
- }
- else
- {
- loaded = The guitar %leng% made by %creator% has been loaded !
- }
- If creator = ERROR
- {
- creator = NoNameExist
- GuiControl,, creatorname, %creator%
- loaded = The guitar %leng% has been loaded !
- }
- else
- {
- loaded = The guitar %leng% made by %creator% has been loaded !
- }
- msgbox, %loaded%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- }
- return
- saveguitar:
- GuiControl, disable, RS2014DB
- GuiControl, disable, newinlay
- GuiControl, disable, newicon
- GuiControl, disable, creatorname
- GuiControl, disable, coloredinlay
- GuiControl, disable, getemplateB
- GuiControl, disable, newenglishname
- GuiControl, disable, newfrenchname
- GuiControl, disable, newspanishname
- GuiControl, disable, newitalianname
- GuiControl, disable, newgermanname
- GuiControl, disable, newjapanesename
- GuiControl, disable, aboutB
- GuiControl, disable, parseB
- GuiControl, disable, lg
- GuiControl, disable, sg
- FileSelectFolder, CGMDIR,, 3, Select folder for custom guitars.
- if CGMDIR =
- {
- msgbox, You need to select a folder to save your templace (ex: Desktop.)
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, creatorname
- GuiControl, enable, lg
- GuiControl, enable, sg
- }
- else
- {
- GuiControlGet, coloredinlay
- GuiControlGet, creatorname
- GuiControlGet, newenglishname
- GuiControlGet, newfrenchname
- GuiControlGet, newspanishname
- GuiControlGet, newitalianname
- GuiControlGet, newgermanname
- GuiControlGet, newjapanesename
- FileCreateDir, %A_ScriptDir%\tmp
- FileCreateDir, %A_ScriptDir%\tmp\images
- Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %DDSInlayfiles% -resize 1024x512! %A_ScriptDir%\tmp\images\inlay.png,,Hide
- Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %DDSI512files% -resize 512x512! %A_ScriptDir%\tmp\images\icon.png,,Hide
- inlay = %A_ScriptDir%\tmp\images\inlay.png
- icon = %A_ScriptDir%\tmp\images\icon.png
- FileCreateDir, %CGMDIR%\RS2014CG
- FileCreateDir, %CGMDIR%\RS2014CG\%ccg2%
- FileCopy, %DDSI512files%, %CGMDIR%\RS2014CG\%ccg2%\icon.png
- FileCopy, %DDSInlayfiles%, %CGMDIR%\RS2014CG\%ccg2%\inlay.png
- IniWrite, %creatorname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, creatorname
- IniWrite, %newenglishname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname
- IniWrite, %newfrenchname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname1
- IniWrite, %newspanishname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname2
- IniWrite, %newitalianname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname3
- IniWrite, %newgermanname%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname4
- IniWrite, %newjapanesename%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, guitarname5
- IniWrite, %coloredinlay%, %CGMDIR%\RS2014CG\%ccg2%\setup.smb, Setup, coloredinlay
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe a %CGMDIR%\RS2014CG\%ccg2%.7z %CGMDIR%\RS2014CG\%ccg2%\*,,Hide
- FileRemoveDir, %CGMDIR%\RS2014CG\%ccg2%, 1
- FileCopy, %CGMDIR%\RS2014CG\%ccg2%.7z, %CGMDIR%\RS2014CG\Custom_Guitar_%ccg2%.cgm
- FileDelete, %CGMDIR%\RS2014CG\%ccg2%.7z
- msgbox, Your Rocksmith 2014 custom guitar has been saved here : %CGMDIR%\RS2014CG\Custom_Guitar_%ccg2%.cgm.`n Enjoy sharing it :).
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- }
- return
- parse:
- GuiControl, disable, RS2014DB
- GuiControl, disable, newinlay
- GuiControl, disable, newicon
- GuiControl, disable, coloredinlay
- GuiControl, disable, getemplateB
- GuiControl, disable, newenglishname
- GuiControl, disable, newfrenchname
- GuiControl, disable, newspanishname
- GuiControl, disable, newitalianname
- GuiControl, disable, newgermanname
- GuiControl, disable, newjapanesename
- GuiControl, disable, aboutB
- GuiControl, disable, parseB
- GuiControl, disable, creatorname
- GuiControl, disable, lg
- GuiControl, disable, sg
- GuiControlGet, coloredinlay
- GuiControlGet, newfrenchname
- GuiControlGet, newspanishname
- GuiControlGet, newitalianname
- GuiControlGet, newgermanname
- GuiControlGet, newjapanesename
- GuiControlGet, newinlay
- GuiControlGet, newicon
- guitarname = %newenglishname%
- guitarname1 = %newfrenchname%
- guitarname2 = %newspanishname%
- guitarname3 = %newitalianname%
- guitarname4 = %newgermanname%
- guitarname5 = %newjapanesename%
- if coloredinlay = 0
- {
- nif1 = 47616D656272796F2046696C6520466F726D61742C2056657273696F6E2033302E312E302E330A0300011E010000000049000000000000000B00110000004E694461746153747265616D0131013138110000004E694461746153747265616D0130013138110000004E69537472696E67457874726144617461060000004E694D657368120000004E694D6174657269616C50726F7065727479150000004E69566572746578436F6C6F7250726F70657274790F0000004E69416C70686150726F70657274790F0000004E69536F7572636554657874757265130000004E69546578747572696E6750726F7065727479110000004E695A42756666657250726F7065727479060000004E694E6F64650000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010004000500060007000800090002000300050009000A00710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC0000007100000029000000440000000E0000000F00000024000000280000000E00000008000000BC0000000E0000000E0000009A00000018000000100000000A0000005363656E6520526F6F7407000000696E6C61795F330E0000005573657250726F704275666665720B0000000D0A7A4D6F646531300D0A10000000
- nif2 = 0B0000004D6174657269616C20233205000000494E44455808000000504F534954494F4E08000000544558434F4F524407000000696E6C61795F3407000000696E6C61795F3507000000696E6C61795F3607000000696E6C61795F3707000000696E6C61795F3807000000696E6C61795F3908000000696E6C61795F313008000000696E6C61795F313108000000696E6C61795F313208000000696E6C61795F313308000000696E6C61795F313408000000696E6C61795F313508000000696E6C61795F313608000000696E6C61795F313708000000696E6C61795F31380000000050000000000000000100000000000000040000000200000037040300360402008EDBA1C2D26F80C049382037B18A633FEA6B6F3F01A3A8C2D26F80C06CF22637E7077B3FEA6B6F3F02A3A8C2D36F80406CF22637EB077B3F3A04FB3E8FDBA1C2D36F804049382037B98A633F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000170000000100000002000000FFFFFFFF10009C2727B7B8C850C2A68B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000483FA5C2000080345A952337DC6A8B400200000001000000000100000001000000060000000000000000000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402002DF799C2D26F80C0AF6318374532483FEA6B6F3F1E14A1C2D26F80C065721F37A7D7603FEA6B6F3F1F14A1C2D36F804065721F37AFD7603F3A04FB3E2EF799C2D36F8040AF6318374932483F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000160000000100000006000000FFFFFFFF100021431FB7B8C850C29D8C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000A6859DC2000080340AEB1B376F7A8C400200000005000000000100000001000000060000000000000004000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402001E1A92C2D26F80C0609710372BF32C3FEA6B6F3FBD2F99C2D26F80C0DC9D17373B7F453FEA6B6F3FBE2F99C2D36F8040DD9D17373B7F453F3A04FB3E1E1A92C2D36F80406097103727F32C3F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000015000000010000000A000000FFFFFFFF1000E64517B7B8C850C29A8D5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000EEA495C2000080349E1A1437C0628C40020000000900000000010000000100000006000000000000000800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200C6D489C2D26F80C0E4630837C34A103FEA6B6F3FAE5291C2D26F80C09DD10F3729402A3FEA6B6F3FAE5291C2D36F80409ED10F3725402A3F3A04FB3EC6D489C2D36F8040E6630837BF4A103F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000014000000010000000E000000FFFFFFFF1000F5290FB7B8C850C29C8E5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000BA938DC200008034C11A0C3794BB8D40020000000D00000000010000000100000006000000000000000C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200B88581C2D26F80C0CD2700376301E73EEA6B6F3F560D89C2D26F80C0319E0737B9970D3FEA6B6F3F560D89C2D36F8040339E0737B7970D3F3A04FB3EB88581C2D36F8040CE2700376001E73E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000130000000100000012000000FFFFFFFF1000ECE906B7B8C850C2A58F5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000874985C20000803400E303377FDC8D40020000001100000000010000000100000006000000000000001000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE0372C2D26F80C04E70EF3668FFAB3EEA6B6F3F48BE80C2D26F80C05EC4FE364F9BE13EEA6B6F3F48BE80C2D36F804060C4FE364F9BE13E3A04FB3EC00372C2D36F80405170EF3661FFAB3E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000120000000100000016000000FFFFFFFF1000302CFCB6B8C850C2B2905ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000027C079C200008034571AF736D6918E40020000001500000000010000000100000006000000000000001400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200FC9160C2D26F80C08529DE3681D8693E903B6F3FE07470C2D26F80C036E5ED367D6BA73E8E3B6F3FE27470C2D36F804039E5ED36816BA73E82A3FA3EFE9160C2D36F80408929DE368FD8693E82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000011000000010000001A000000FFFFFFFF10008441EBB6B8C850C2C6915ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF00000000000100006F8368C2000080345F07E636054C8F400200000019000000000100000001000000060000000000000018000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402008F854EC2D26F80C0D54ACC362E36EE3D903B6F3F1E035FC2D26F80C08D9EDC36C6F05F3E903B6F3F20035FC2D36F8040919EDC36CDF05F3E82A3FA3E92854EC2D36F8040D94ACC365A36EE3D82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000010000000010000001E000000FFFFFFFF10004604D9B6B8C850C2E2925ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000058C456C200008034B374D43689629040020000001D00000000010000000100000006000000000000001C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE1E3CC2D26F80C0A514BA366CC2073B903B6F3FB1F64CC2D26F80C001C0CA36C666DA3D903B6F3FB4F64CC2D36F804005C0CA36E366DA3D82A3FA3EC21E3CC2D36F8040A914BA36E4C7073B82A3FA3E010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000F0000000100000022000000FFFFFFFF10006E79C6B6B8C850C205945ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000B98A44C200008034556AC2361C099140020000002100000000010000000100000006000000000000002000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200873A29C2D26F80C02E64A7369CE45E3FA2AFEC3EE08F3AC2D26F80C0FA89B83640387D3FA2AFEC3EE48F3AC2D36F8040FE89B83647387D3F40C08D3C8B3A29C2D36F80403264A736A1E45E3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000E0000000100000026000000FFFFFFFF100043AAB3B6B8C850C230955ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000036E531C20000803416F7AF36C6F4914002000000250000000001000000010000000600000000000000240000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020041CC15C2D26F80C0F72C94368DE53C3FA2AFEC3EA9AB27C2D26F80C0A9D9A536BE2A5C3FA2AFEC3EADAB27C2D36F8040ADD9A536C62A5C3F40C08D3C44CC15C2D36F8040FA2C943693E53C3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000D000000010000002A000000FFFFFFFF1000A987A0B6B8C850C262965ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000F7BB1EC20000803452039D363BFE92400200000029000000000100000001000000060000000000000028000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402005E8201C2D26F80C0B01D80364366193FA2AFEC3E633D14C2D26F80C08FA29236B02B3A3FA2AFEC3E663D14C2D36F804092A29236B62B3A3F40C08D3C618201C2D36F8040B41D80364566193F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000C000000010000002E000000FFFFFFFF1000CCF38BB6B8C850C2A0975ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000E2DF0AC2000080342160893634B19440020000002D00000000010000000100000006000000000000002C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200EF68DAC1D26F80C0141C5836E4BFEB3EA2AFEC3E00E7FFC1D26F80C0EE267D3664AC163FA2AFEC3E06E7FFC1D36F8040F5267D366BAC163F40C08D3CF368DAC1D36F80401A1C5836EBBFEB3E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000B0000000100000032000000FFFFFFFF10003E3270B6B8C850C2E5985ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000FA27EDC10000803484A16A364DB9944002000000310000000001000000010000000600000000000000300000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020077C6AFC1D26F80C04DFE2D36C627A13EA2AFEC3E334BD7C1D26F80C0FC075536294CE63EA2AFEC3E374BD7C1D36F8040010855362F4CE63E40C08D3C7AC6AFC1D36F804052FE2D36C627A13E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000A0000000100000036000000FFFFFFFF10001CD645B6B8C850C2329A5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D788C3C10000803427834136B2CE9640020000003500000000010000000100000006000000000000003400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E4E083C1D26F80C0D1A50236AEB4283EA2AFEC3EBBA8ACC1D26F80C06EEA2A3609B49B3EA2AFEC3EBEA8ACC1D36F804073EA2A360FB49B3E40C08D3CE8E083C1D36F8040D2A50236C6B4283E80C08D3C010C00000000000000010000000000000006000000010000001502010000000100020002000300000001020000000300000009000000010000003A000000FFFFFFFF10006A6F1AB6B8C850C28C9B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D14498C10000803422C8163642259840020000003900000000010000000100000006000000000000003800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E61B2DC1D26F80C0F2D1AB353AB6213CA2AFEC3E28C380C1D26F80C08424FF3540CD1D3EA2AFEC3E2CC380C1D36F80408624FF354CCD1D3E80C08D3CE81B2DC1D36F8040ECD1AB353AB6213C80C08D3C010C000000000000000100000000000000060000000100000015020100020003000000000001000200010500000000000000FFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F0000803F000020410000803FFFFFFFFF00000000FFFFFFFF0000FFFFFFFF00000000FFFFFFFFED1000FFFFFFFF00000000FFFFFFFF0104000000FFFFFFFF060000000100000003000000010000FFFFFFFF00000000FFFFFFFF04000900000001410000000032010000000000000000000000000000FFFFFFFF00000000FFFFFFFF0D000200000003000000010000000100000044000000FFFFFFFF1000705DD8B5B8C850C2F19C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F050000003E0000003F000000400000004200000043000000FFFFFFFF00000000FFFFFFFF00000000000100001F5157C100008034397BD535D3B19940020000003D00000000010000000100000006000000000000003C0000000001000000020000000700000000000000080000000000000000000000FFFFFFFF00000000FFFFFFFF0800FFFFFFFF00000000FFFFFFFF0F000000000000000000FFFFFFFF10010000000000000000000000000000803F0000000000000000000000000000803F0000000000000000000000000000803F0000803F020000004600000047000000FFFFFFFF10000000450000003B00000037000000330000002F0000002B00000027000000230000001F0000001B00000017000000130000000F0000000B0000000700000003000000000000000100000048000000
- }
- else
- {
- nif1 = 47616D656272796F2046696C6520466F726D61742C2056657273696F6E2033302E312E302E330A0300011E010000000049000000000000000B00110000004E694461746153747265616D0131013138110000004E694461746153747265616D0130013138110000004E69537472696E67457874726144617461060000004E694D657368120000004E694D6174657269616C50726F7065727479150000004E69566572746578436F6C6F7250726F70657274790F0000004E69416C70686150726F70657274790F0000004E69536F7572636554657874757265130000004E69546578747572696E6750726F7065727479110000004E695A42756666657250726F7065727479060000004E694E6F64650000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010002000300000001000200030000000100020003000000010004000500060007000800090002000300050009000A0008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC000000710000002900000008000000BC00000071000000290000000F00000024000000280000000E00000008000000BC0000000E0000000E0000009A00000018000000100000000A0000005363656E6520526F6F7407000000696E6C61795F300E0000005573657250726F704275666665720B0000000D0A7A4D6F646531300D0A10000000
- nif2 = 0B0000004D6174657269616C20233205000000494E44455808000000504F534954494F4E08000000544558434F4F524407000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F3007000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300800000000696E6C61795F300000000050000000000000000100000000000000040000000200000037040300360402008EDBA1C2D26F80C049382037B18A633FEA6B6F3F01A3A8C2D26F80C06CF22637E7077B3FEA6B6F3F02A3A8C2D36F80406CF22637EB077B3F3A04FB3E8FDBA1C2D36F804049382037B98A633F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000170000000100000002000000FFFFFFFF10009C2727B7B8C850C2A68B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000483FA5C2000080345A952337DC6A8B400200000001000000000100000001000000060000000000000000000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402002DF799C2D26F80C0AF6318374532483FEA6B6F3F1E14A1C2D26F80C065721F37A7D7603FEA6B6F3F1F14A1C2D36F804065721F37AFD7603F3A04FB3E2EF799C2D36F8040AF6318374932483F3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000160000000100000006000000FFFFFFFF100021431FB7B8C850C29D8C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000A6859DC2000080340AEB1B376F7A8C400200000005000000000100000001000000060000000000000004000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402001E1A92C2D26F80C0609710372BF32C3FEA6B6F3FBD2F99C2D26F80C0DC9D17373B7F453FEA6B6F3FBE2F99C2D36F8040DD9D17373B7F453F3A04FB3E1E1A92C2D36F80406097103727F32C3F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000015000000010000000A000000FFFFFFFF1000E64517B7B8C850C29A8D5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000EEA495C2000080349E1A1437C0628C40020000000900000000010000000100000006000000000000000800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200C6D489C2D26F80C0E4630837C34A103FEA6B6F3FAE5291C2D26F80C09DD10F3729402A3FEA6B6F3FAE5291C2D36F80409ED10F3725402A3F3A04FB3EC6D489C2D36F8040E6630837BF4A103F3A04FB3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000014000000010000000E000000FFFFFFFF1000F5290FB7B8C850C29C8E5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000BA938DC200008034C11A0C3794BB8D40020000000D00000000010000000100000006000000000000000C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200B88581C2D26F80C0CD2700376301E73EEA6B6F3F560D89C2D26F80C0319E0737B9970D3FEA6B6F3F560D89C2D36F8040339E0737B7970D3F3A04FB3EB88581C2D36F8040CE2700376001E73E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000130000000100000012000000FFFFFFFF1000ECE906B7B8C850C2A58F5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000874985C20000803400E303377FDC8D40020000001100000000010000000100000006000000000000001000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE0372C2D26F80C04E70EF3668FFAB3EEA6B6F3F48BE80C2D26F80C05EC4FE364F9BE13EEA6B6F3F48BE80C2D36F804060C4FE364F9BE13E3A04FB3EC00372C2D36F80405170EF3661FFAB3E3A04FB3E010C000000000000000100000000000000060000000100000015020100020003000000000001000200010200000003000000120000000100000016000000FFFFFFFF1000302CFCB6B8C850C2B2905ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000027C079C200008034571AF736D6918E40020000001500000000010000000100000006000000000000001400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200FC9160C2D26F80C08529DE3681D8693E903B6F3FE07470C2D26F80C036E5ED367D6BA73E8E3B6F3FE27470C2D36F804039E5ED36816BA73E82A3FA3EFE9160C2D36F80408929DE368FD8693E82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000011000000010000001A000000FFFFFFFF10008441EBB6B8C850C2C6915ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF00000000000100006F8368C2000080345F07E636054C8F400200000019000000000100000001000000060000000000000018000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402008F854EC2D26F80C0D54ACC362E36EE3D903B6F3F1E035FC2D26F80C08D9EDC36C6F05F3E903B6F3F20035FC2D36F8040919EDC36CDF05F3E82A3FA3E92854EC2D36F8040D94ACC365A36EE3D82A3FA3E010C00000000000000010000000000000006000000010000001502010002000300000000000100020001020000000300000010000000010000001E000000FFFFFFFF10004604D9B6B8C850C2E2925ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000058C456C200008034B374D43689629040020000001D00000000010000000100000006000000000000001C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200BE1E3CC2D26F80C0A514BA366CC2073B903B6F3FB1F64CC2D26F80C001C0CA36C666DA3D903B6F3FB4F64CC2D36F804005C0CA36E366DA3D82A3FA3EC21E3CC2D36F8040A914BA36E4C7073B82A3FA3E010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000F0000000100000022000000FFFFFFFF10006E79C6B6B8C850C205945ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000B98A44C200008034556AC2361C099140020000002100000000010000000100000006000000000000002000000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200873A29C2D26F80C02E64A7369CE45E3FA2AFEC3EE08F3AC2D26F80C0FA89B83640387D3FA2AFEC3EE48F3AC2D36F8040FE89B83647387D3F40C08D3C8B3A29C2D36F80403264A736A1E45E3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000E0000000100000026000000FFFFFFFF100043AAB3B6B8C850C230955ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF000000000001000036E531C20000803416F7AF36C6F4914002000000250000000001000000010000000600000000000000240000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020041CC15C2D26F80C0F72C94368DE53C3FA2AFEC3EA9AB27C2D26F80C0A9D9A536BE2A5C3FA2AFEC3EADAB27C2D36F8040ADD9A536C62A5C3F40C08D3C44CC15C2D36F8040FA2C943693E53C3F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000D000000010000002A000000FFFFFFFF1000A987A0B6B8C850C262965ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000F7BB1EC20000803452039D363BFE92400200000029000000000100000001000000060000000000000028000000000100000002000000070000000000000008000000000000000000000050000000000000000100000000000000040000000200000037040300360402005E8201C2D26F80C0B01D80364366193FA2AFEC3E633D14C2D26F80C08FA29236B02B3A3FA2AFEC3E663D14C2D36F804092A29236B62B3A3F40C08D3C618201C2D36F8040B41D80364566193F40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000C000000010000002E000000FFFFFFFF1000CCF38BB6B8C850C2A0975ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000E2DF0AC2000080342160893634B19440020000002D00000000010000000100000006000000000000002C00000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200EF68DAC1D26F80C0141C5836E4BFEB3EA2AFEC3E00E7FFC1D26F80C0EE267D3664AC163FA2AFEC3E06E7FFC1D36F8040F5267D366BAC163F40C08D3CF368DAC1D36F80401A1C5836EBBFEB3E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000B0000000100000032000000FFFFFFFF10003E3270B6B8C850C2E5985ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000FA27EDC10000803484A16A364DB9944002000000310000000001000000010000000600000000000000300000000001000000020000000700000000000000080000000000000000000000500000000000000001000000000000000400000002000000370403003604020077C6AFC1D26F80C04DFE2D36C627A13EA2AFEC3E334BD7C1D26F80C0FC075536294CE63EA2AFEC3E374BD7C1D36F8040010855362F4CE63E40C08D3C7AC6AFC1D36F804052FE2D36C627A13E40C08D3C010C0000000000000001000000000000000600000001000000150201000200030000000000010002000102000000030000000A0000000100000036000000FFFFFFFF10001CD645B6B8C850C2329A5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D788C3C10000803427834136B2CE9640020000003500000000010000000100000006000000000000003400000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E4E083C1D26F80C0D1A50236AEB4283EA2AFEC3EBBA8ACC1D26F80C06EEA2A3609B49B3EA2AFEC3EBEA8ACC1D36F804073EA2A360FB49B3E40C08D3CE8E083C1D36F8040D2A50236C6B4283E80C08D3C010C00000000000000010000000000000006000000010000001502010000000100020002000300000001020000000300000009000000010000003A000000FFFFFFFF10006A6F1AB6B8C850C28C9B5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F0500000042000000400000003F0000003E00000043000000FFFFFFFF00000000FFFFFFFF0000000000010000D14498C10000803422C8163642259840020000003900000000010000000100000006000000000000003800000000010000000200000007000000000000000800000000000000000000005000000000000000010000000000000004000000020000003704030036040200E61B2DC1D26F80C0F2D1AB353AB6213CA2AFEC3E28C380C1D26F80C08424FF3540CD1D3EA2AFEC3E2CC380C1D36F80408624FF354CCD1D3E80C08D3CE81B2DC1D36F8040ECD1AB353AB6213C80C08D3C010C000000000000000100000000000000060000000100000015020100020003000000000001000200010500000000000000FFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F0000803F000020410000803FFFFFFFFF00000000FFFFFFFF0000FFFFFFFF00000000FFFFFFFFED1000FFFFFFFF00000000FFFFFFFF0104000000FFFFFFFF060000000100000003000000010000FFFFFFFF00000000FFFFFFFF04000900000001410000000032010000000000000000000000000000FFFFFFFF00000000FFFFFFFF0D000200000003000000010000000100000044000000FFFFFFFF1000705DD8B5B8C850C2F19C5ABC000080B4000080B3000080BF000080BF0000000000004034000080330000803F000000B40000803F050000003E0000003F000000400000004200000043000000FFFFFFFF00000000FFFFFFFF00000000000100001F5157C100008034397BD535D3B19940020000003D00000000010000000100000006000000000000003C0000000001000000020000000700000000000000080000000000000000000000FFFFFFFF00000000FFFFFFFF0800FFFFFFFF00000000FFFFFFFF0F000000000000000000FFFFFFFF10010000000000000000000000000000803F0000000000000000000000000000803F0000000000000000000000000000803F0000803F020000004600000047000000FFFFFFFF10000000450000003B00000037000000330000002F0000002B00000027000000230000001F0000001B00000017000000130000000F0000000B0000000700000003000000000000000100000048000000
- }
- FileCreateDir, %A_ScriptDir%\tmp
- FileCreateDir, %A_ScriptDir%\tmp\images
- progress = 5
- textprogress = 5`% - Created temporary folders.
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.*
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.*
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.*
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.*
- FileCopy, %DDSInlayfiles%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*
- progress = 10
- textprogress = 10`% - Copied Icon & Inlay to temporary folder.
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- Runwait, %A_ScriptDir%\ressources\imgtool\convert.exe %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.* -resize 1024x512! %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds,,Hide
- 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
- 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
- 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
- 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
- progress = 20
- textprogress = 20`% - Convert & resized Icons and Inlay.
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- FileCopy, %RS2014DIR%\cache.psarc, %A_ScriptDir%\backup\cache.psarc
- FileCopy, %RS2014DIR%\guitars.psarc, %A_ScriptDir%\backup\guitars.psarc
- FileCopy, %RS2014DIR%\static.psarc, %A_ScriptDir%\backup\static.psarc
- progress = 25
- textprogress = 20`% - Copied needed PSARC to backup folder /!\
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- RunWait, %A_ScriptDir%\ressources\packer\packer.exe --unpack --input=%A_ScriptDir%\backup --output=%A_ScriptDir%\tmp,,Hide
- progress = 35
- textprogress = 20`% - unpacked needed PSARC to temporary folder
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe x tmp\cache_Pc\cache4.7z -otmp\cache_Pc\cache4,,Hide
- FileAppend, %ccg2%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`n, %A_ScriptDir%\tmp\cache_Pc\cache4\localization\maingame.csv
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe a tmp\cache_Pc\cache4.7z .\tmp\cache_Pc\cache4\*,,Hide
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe x tmp\cache_Pc\cache7.7z -otmp\cache_Pc\cache7,,Hide
- FileRead, guitarshsan, %A_ScriptDir%\tmp\cache_Pc\cache7\manifests\guitars\guitars.hsan
- 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" : {
- FileDelete, %A_ScriptDir%\tmp\cache_Pc\cache7\manifests\guitars\guitars.hsan
- FileAppend, %guitarshsannew%, %A_ScriptDir%\tmp\cache_Pc\cache7\manifests\guitars\guitars.hsan
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe a tmp\cache_Pc\cache7.7z .\tmp\cache_Pc\cache7\*,,Hide
- progress = 50
- textprogress = 50`% - Modified - cache.psarc - sources
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- 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
- FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitar_%guitarnamesix%.json
- FileRead, guitarshsan2, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitars.hsan
- 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" : {
- FileDelete, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitars.hsan
- FileAppend, %guitarshsannew2%, %A_ScriptDir%\tmp\guitars_Pc\manifests\guitars\guitars.hsan
- 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
- FileAppend, %newfilesxblock%, %A_ScriptDir%\tmp\guitars_Pc\gamexblocks\nguitars\guitar_%guitarnamesix%.xblock
- FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\guitars_Pc\assets\gameplay\inlay\inlay_%guitarnamesix%.dds
- TestString = inlay_%guitarnamesix%.dds
- Output := StringToHex(TestString)
- Ootput = %Output%
- newhexname = %Output%
- StringReplace newhexname, newhexname, %A_Space%, , All
- filenifname = %guitarnamesix%.nif
- StringToHex(String)
- {
- local Old_A_FormatInteger, CharHex, HexString
- ;Return '0' if the string was blank
- If !String
- Return 0
- ;Save the current Integer format
- Old_A_FormatInteger := A_FormatInteger
- ;Set the format of integers to their Hex value
- SetFormat, INTEGER, H
- ;Parse the String
- Loop, Parse, String
- {
- ;Get the ASCII value of the Character (will be converted to the Hex value by the SetFormat Line above)
- CharHex := Asc(A_LoopField)
- ;Comment out the following line to leave the '0x' intact
- StringTrimLeft, CharHex, CharHex, 2
- ;Build the return string
- HexString .= CharHex . " "
- }
- ;Set the integer format to what is was prior to the call
- SetFormat, INTEGER, %Old_A_FormatInteger%
- ;Return the string to the caller
- Return HexString
- }
- /*
- BinReadWrite.ahk
- Routines to read and write binary data from/to files.
- Based on original functions written by Laszlo
- http://www.autohotkey.com/forum/viewtopic.php?t=4604
- TODO: Perhaps set a lastError variable to explicit the errors.
- // by Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
- // File/Project history:
- 1.03.000 -- 2006/02/15 (PL) -- Moved Bin2Hex & Hex2Bin to DllCallStruct, apply code rules.
- 1.02.000 -- 2006/01/24 (PL) -- Slight change of the API: all functions return -1 if error.
- Integrated Laszlo suggestions on improving Bin2Hex and Hex2Bin.
- 1.01.000 -- 2006/01/23 (PL) -- Declaration of the local variables, to get access to global
- WinAPI constants, and for consistency.
- 1.00.000 -- 2006/01/19 (PL) -- Rewrote the functions to separate opening and closing,
- allowing efficient multiple operations.
- */
- ; WinAPI constants
- INVALID_HANDLE_VALUE = -1
- INVALID_FILE_SIZE = 0xFFFFFFFF
- FILE_BEGIN = 0
- FILE_CURRENT = 1
- FILE_END = 2
- /*
- // Open the file for reading.
- // Return the file handle to provide in further read operations and in the final close operation,
- // or INVALID_HANDLE_VALUE if an error was found.
- */
- OpenFileForRead(_filename)
- {
- local handle
- handle := DllCall("CreateFile"
- , "Str", _filename ; lpFileName
- , "UInt", 0x80000000 ; dwDesiredAccess (GENERIC_READ)
- , "UInt", 3 ; dwShareMode (FILE_SHARE_READ|FILE_SHARE_WRITE)
- , "UInt", 0 ; lpSecurityAttributes
- , "UInt", 3 ; dwCreationDisposition (OPEN_EXISTING)
- , "UInt", 0 ; dwFlagsAndAttributes
- , "UInt", 0) ; hTemplateFile
- If (handle = INVALID_HANDLE_VALUE or handle = 0)
- {
- ErrorLevel = -1
- }
- IfNotEqual ErrorLevel, 0, Return INVALID_HANDLE_VALUE ; Couldn't open the file
- Return handle
- }
- /*
- // Open the file for writing.
- // Return the file handle to provide in further write operations and in the final close operation,
- // or INVALID_HANDLE_VALUE if an error was found.
- */
- OpenFileForWrite(_filename)
- {
- local handle
- handle := DllCall("CreateFile"
- , "Str", _filename ; lpFileName
- , "UInt", 0x40000000 ; dwDesiredAccess (GENERIC_WRITE)
- , "UInt", 3 ; dwShareMode (FILE_SHARE_READ|FILE_SHARE_WRITE)
- , "UInt", 0 ; lpSecurityAttributes
- , "UInt", 4 ; dwCreationDisposition (OPEN_ALWAYS: create if not exists)
- , "UInt", 0 ; dwFlagsAndAttributes
- , "UInt", 0) ; hTemplateFile
- If (handle = INVALID_HANDLE_VALUE or handle = 0)
- {
- ErrorLevel = -1
- }
- IfNotEqual ErrorLevel, 0, Return INVALID_HANDLE_VALUE ; Couldn't open the file
- Return handle
- }
- /*
- // Close the file.
- */
- CloseFile(_handle)
- {
- local result
- result := DllCall("CloseHandle"
- , "UInt", _handle)
- If (result = 0)
- {
- ErrorLevel = -1
- }
- }
- /*
- // Get the size of the opened file, in bytes.
- // Limited to 4GB, so it is more limited that AHK's FileGetSize.
- // It is here for consistency, and because it accepts a file handle instead of a path.
- //
- // Return the size in bytes, -1 if there was an error.
- */
- GetFileSize(_handle)
- {
- local fileSize
- fileSize := DllCall("GetFileSize"
- , "UInt", _handle
- , "UInt", 0)
- If (fileSize = INVALID_FILE_SIZE)
- {
- ErrorLevel = -1
- }
- IfNotEqual ErrorLevel, 0, Return -1
- Return fileSize
- }
- /*
- // Move the file pointer in the file to the given offset relative to moveMethod.
- //
- // moveMethod can be FILE_BEGIN, FILE_CURRENT or FILE_END.
- // If moveMethod is -1, nothing is done (default, for operations at current position).
- // To get the current position, call this function with just FILE_CURRENT (null offset).
- // offset can be positive (toward end of the file) or negative (toward start of the file).
- //
- // Return -1 if there was an error, the new file pointer position if OK.
- // Note: Currently it doesn't work for files larger than 2GB...
- */
- MoveInFile(_handle, _moveMethod=-1, _offset=0)
- {
- local result
- result = %INVALID_FILE_SIZE%
- if (_moveMethod != -1)
- {
- result := DllCall("SetFilePointer"
- , "UInt", _handle ; hFile
- , "Int", _offset ; lDistanceToMove
- , "UInt", 0 ; lpDistanceToMoveHigh
- , "UInt", _moveMethod) ; dwMoveMethod
- if (result = -1) ; INVALID_SET_FILE_POINTER
- {
- ErrorLevel = -1
- }
- IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
- }
- Return result
- }
- /*
- // Write in a file opened for writing.
- //
- // Move to position given by moveMethod and offset
- // (by default stand at current position) and
- // write byteNb bytes from data (all data if byteNb = 0;
- // data contains binary bytes that can be a string or
- // raw bytes generated from hexa data with the Hex2Bin routine).
- //
- // moveMethod, defaulting to -1 (no move, write at current position),
- // can also be FILE_BEGIN, FILE_CURRENT or FILE_END.
- // offset can be positive (toward end of file) or negative (toward beginning of file).
- //
- // Return the number of bytes written (-1 if there was an error).
- */
- WriteInFile(_handle, ByRef @data, _byteNb=0, _moveMethod=-1, _offset=0)
- {
- local dataSize, result, written
- _offset := MoveInFile(_handle, _moveMethod, _offset)
- IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
- dataSize := VarSetCapacity(@data) ; Get the capacity (>= used length!)
- If (_byteNb < 1 or _byteNb > dataSize)
- {
- byteNb := dataSize
- }
- result := DllCall("WriteFile"
- , "UInt", _handle ; hFile
- , "Str", @data ; lpBuffer
- , "UInt", _byteNb ; nNumberOfBytesToWrite
- , "UInt *", written ; lpNumberOfBytesWritten
- , "UInt", 0) ; lpOverlapped
- if (result = 0 or written < _byteNb)
- {
- ErrorLevel = -2
- }
- IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't write in the file
- Return written
- }
- /*
- // Read from a file opened for reading.
- //
- // Move to position given by moveMethod and offset
- // (by default stand at current position) and
- // read byteNb bytes in data (the whole file if byteNb = 0;
- // data contains binary bytes that can be a string or
- // raw bytes that can be converted to hex digits with the Bin2Hex routine).
- //
- // moveMethod, defaulting to -1 (no move, read at current position),
- // can also be FILE_BEGIN, FILE_CURRENT or FILE_END.
- // offset can be positive (toward end of file) or negative (toward beginning of file).
- //
- // Return the number of bytes read (-1 if there was an error), which can be less
- // than requested if end-of-file is meet.
- */
- ReadFromFile(_handle, ByRef @data, _byteNb=0, _moveMethod=-1, _offset=0)
- {
- local fileSize, granted, result, read
- _offset := MoveInFile(_handle, _moveMethod, _offset)
- IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
- if (_byteNb = 0)
- {
- ; Read whole file (or less if file pointer isn't at start)
- fileSize := GetFileSize(_handle)
- IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't get the file size
- _byteNb := fileSize
- }
- granted := VarSetCapacity(@data, _byteNb, 0)
- if (granted < _byteNb)
- {
- ; Cannot allocate enough memory
- ErrorLevel = Mem=%granted%
- Return -1
- }
- result := DllCall("ReadFile"
- , "UInt", _handle ; hFile
- , "Str", @data ; lpBuffer
- , "UInt", _byteNb ; nNumberOfBytesToRead
- , "UInt *", read ; lpNumberOfBytesRead
- , "UInt", 0) ; lpOverlapped
- if (result = 0)
- {
- ErrorLevel = -2
- }
- ;~ MsgBox fileSize: %fileSize% - offset: %_offset% - byteNb: %_byteNb% - granted: %granted% - read: %read%
- IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't read the file
- ; Note that we can have read less data than requested,
- ; eg. if end of file has been meet
- Return read
- }
- /*
- // Convert raw bytes stored in a variable to a string of hexa digit pairs.
- // Convert either byteNb bytes or, if null, the whole content of the variable.
- //
- // Return the number of converted bytes, or -1 if error (memory allocation)
- */
- Bin2Hex(ByRef @hex, ByRef @bin, _byteNb=0)
- {
- local intFormat, dataSize, dataAddress, granted, x
- ; Save original integer format
- intFormat = %A_FormatInteger%
- ; For converting bytes to hex
- SetFormat Integer, Hex
- ; Get size of data
- dataSize := VarSetCapacity(@bin)
- If (_byteNb < 1 or _byteNb > dataSize)
- {
- _byteNb := dataSize
- }
- dataAddress := &@bin
- ; Make enough room (faster)
- granted := VarSetCapacity(@hex, _byteNb * 2)
- if (granted < _byteNb * 2)
- {
- ; Cannot allocate enough memory
- ErrorLevel = Mem=%granted%
- Return -1
- }
- Loop %_byteNb%
- {
- ; Get byte in hexa
- x := *dataAddress + 0x100
- StringRight x, x, 2 ; 2 hex digits
- StringUpper x, x
- @hex = %@hex%%x%
- dataAddress++ ; Next byte
- }
- ; Restore original integer format
- SetFormat Integer, %intFormat%
- Return _byteNb
- }
- /*
- // Convert a string of hexa digit pairs to raw bytes stored in a variable.
- // Convert either byteNb bytes or, if null, the whole content of the variable.
- //
- // Return the number of converted bytes, or -1 if error (memory allocation)
- */
- Hex2Bin(ByRef @bin, _hex, _byteNb=0)
- {
- local dataSize, granted, dataAddress, x
- ; Get size of data
- x := StrLen(_hex)
- dataSize := Ceil(x / 2)
- if (x = 0 or dataSize * 2 != x)
- {
- ; Invalid string, empty or odd number of digits
- ErrorLevel = Param
- Return -1
- }
- If (_byteNb < 1 or _byteNb > dataSize)
- {
- _byteNb := dataSize
- }
- ; Make enough room
- granted := VarSetCapacity(@bin, _byteNb, 0)
- if (granted < _byteNb)
- {
- ; Cannot allocate enough memory
- ErrorLevel = Mem=%granted%
- Return -1
- }
- dataAddress := &@bin
- Loop Parse, _hex
- {
- if (A_Index & 1) ; Odd
- {
- x = %A_LoopField% ; Odd digit
- }
- else
- {
- ; Concatenate previous x and even digit, converted to hex
- x := "0x" . x . A_LoopField
- ; Store integer in memory
- DllCall("RtlFillMemory"
- , "UInt", dataAddress
- , "UInt", 1
- , "UChar", x)
- dataAddress++
- }
- }
- Return _byteNb
- }
- HexString=
- ( Join
- %nif1%%newhexname%%nif2%
- )
- Tfh := OpenFileForWrite(filenifname)
- l := Hex2Bin(data, HexString)
- WriteInFile(Tfh, data, l)
- CloseFile(Tfh)
- FileCopy,%A_ScriptDir%\%filenifname%, %A_ScriptDir%\tmp\guitars_Pc\assets\gameplay\inlay\%filenifname%
- FileDelete,%A_ScriptDir%\%filenifname%
- progress = 80
- textprogress = 80`% - Modified - guitars.psarc - sources
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- FileAppend, %ccg2%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`,%guitarname%`n, %A_ScriptDir%\tmp\static_Pc\localization\maingame.csv
- FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_512.dds
- FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_256.dds
- FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_128.dds
- FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds, %A_ScriptDir%\tmp\static_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_64.dds
- progress = 90
- textprogress = 90`% - Modified - static.psarc - sources
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- FileRemoveDir, %A_ScriptDir%\tmp\cache_Pc\cache7, 1
- FileRemoveDir, %A_ScriptDir%\tmp\cache_Pc\cache4, 1
- RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input=%A_ScriptDir%\tmp\cache_Pc --output=%A_ScriptDir%\output\cache.psarc,,Hide
- sleep 600
- progress = 94
- textprogress = 94`% - packed - cache.psarc - sources
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input=%A_ScriptDir%\tmp\guitars_Pc --output=%A_ScriptDir%\output\guitars.psarc,,Hide
- sleep 600
- progress = 96
- textprogress = 96`% - packed - guitars.psarc - sources
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input=%A_ScriptDir%\tmp\static_Pc --output=%A_ScriptDir%\output\static.psarc,,Hide
- FileRemoveDir, %A_ScriptDir%\tmp, 1
- progress = 98
- textprogress = 98`% - packed - static.psarc - sources - almost done.
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- 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.
- IfMsgBox Yes
- FileDelete, %RS2014DIR%\static.psarc
- FileDelete, %RS2014DIR%\guitars.psarc
- FileDelete, %RS2014DIR%\cache.psarc
- FileCopy, %A_ScriptDir%\output\static.psarc, %RS2014DIR%\static.psarc
- FileCopy, %A_ScriptDir%\output\guitars.psarc, %RS2014DIR%\guitars.psarc
- FileCopy, %A_ScriptDir%\output\cache.psarc, %RS2014DIR%\cache.psarc
- IniWrite, %RS2014DIR%, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
- IniWrite, %ccg2% - %guitarname%, CustomGuitarList.ini, GuitarList, %ID1%
- IniWrite, %ID1%, CustomGuitarList.ini, CustomGuitarMasterID, MasterID%ccg%
- IniWrite, %ccg2%, CustomGuitarList.ini, CustomGuitarLinkToID, %ID1%
- IniWrite, %guitarname%, CustomGuitarList.ini, CustomGuitarNameList, Guitar%ccg%
- ccg++
- ccg2++
- IniWrite, %ccg%, CustomGuitarList.ini, NumberInstance, NumberSet
- IniWrite, %ccg2%, CustomGuitarList.ini, NumberInstance, NumberGuitar
- progress = 100
- textprogress = 100`% - Work done -> check %A_ScriptDir%\output directory !
- GuiControl,, txtprogress, %textprogress%
- GuiControl,, progressbar, %progress%
- 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 :)
- GuiControl,, progressbar, %progress%
- GuiControl, enable, RS2014DB
- GuiControl, enable, newinlay
- GuiControl, enable, newicon
- GuiControl, enable, coloredinlay
- GuiControl, enable, newenglishname
- GuiControl, enable, newfrenchname
- GuiControl, enable, newspanishname
- GuiControl, enable, newitalianname
- GuiControl, enable, newgermanname
- GuiControl, enable, newjapanesename
- GuiControl, enable, getemplateB
- GuiControl, enable, aboutB
- GuiControl, enable, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- progress = 0
- GuiControl,, progressbar, %progress%
- IDString = a0b1c2d3e4f5a6b7c8d9e0f
- Random, RDM1, 0x00F000000, 0x00fffffff
- ID1 = %IDString%%RDM1%
- StringUpper, ID1MAJ, ID1
- GuiControl,, idmaster, %ID1MAJ%
- GuiControl,, guitarid, %ccg2%
- return
- getemplate:
- templatehexa = 89504E470D0A1A0A0000000D49484452000004000000020008060000001CCD1EB9000000097048597300000EC300000EC301C76FA864000000206348524D00007A25000080830000F9FF000080E9000075300000EA6000003A980000176F925FC54600001EE84944415478DAECDD4F6C24597D07F05F555933873DA09EC35E42126DAF18F6100492474AE03402CF82049CC086AC360790620FA74D42900DA73D256E2116B8C08C23ED5ED00A6C20F719271929D2EE652C252207B2D278A525A73D6C0BA439CCC8DD9D4377B3634F5575BBDDFFEBF3915AC0B4DD6E5E55BD7AEFFBFE54F2C27BBFEE04000000B0D452450000000002000000004000000000000800000000000100000000200000000000C624E9743C0590E9EBACAC9C3AF192939344A9E09CC3798573079C23383798DCF962060000000054800000000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010002802000000100000000000020000000040000000000008000000000001000000002000000000000400000000800000000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000040000000000002000000004000000000000800000000000100000000200000000000040000000080000000000010000000008000000000001000000000000200000000400000000000080000000000010000000020000000000004000000002000000000000400000000800000000000100000000000020000000040000000000008000000000001000000002000000000000100000000200000000000040000000080000000000010000000000063B6A2080000005804AD567BD08F6C46442D22D67AAFB30EFBAF2C4B8FAA567E49A7D3711631759D959553275E72729228159C7338AF70EE2C55237D3D22F667F0A70FB32CBDE11C41FD51A900A01611DBBDD7B9EA8B886864597A5895F3C51200000026A1AE088029D88C880F46E8FC47746708DC6DB5DADB55292C4B0000009884D519FDDD63450F957137F2A7F99FD76EABD5AE6559BAB3EC05660600000093308B1900C711B1A3E8A112EE8FA9F3DFB75D85990002000000266116330036B22C6D2A7A587AFB03EA98C3E88681C999D756441C0C0801967AF99200000080B16AB5DAB3E8FC37AAB8A33754D07644AC97BCBF11113722A291F3DE5E96A51BBD20204F7F33C1A5E5290017BFC195BDBD16DD646AB5E0243D8E88BD88686659BA57A572B3B32DCEB985A9E3F607DC642FE2CAA28FD439AF70EE4CA4FD54A6A84E3ACAB2F49A7304F5C7D2D71DF5E84EFDAF15FCC8B588280D02B32CED7FD67644ECE6FC4833229E5F96D9449E02301D9B11F120BA9B52EC96349EEBBDF76FB75AED4E95769F0416C6A446F19AA6E90223B4AF8ADA545B8A072A61BBA4F3BF35A8F37F26086844FEA6A1B518EFDE02734500305EFD44EA768CB6F1CD6EABD5BEBFECEB4E80C5D06AB56B31B94DBC0E9530700EB5C81FA98B88D831F51F2AD32ED92C69578C32A3BA683F80D5652D4701C0F8ACF63AFFABE3F89C19AD9D0398D6CDCF63BA80F3B81DF9A37E47BD513C60F96D96BC376A3D7024006054B5289E8E32CA67EDF7522E80650C008CD601C35A8FE2A9FF1B8A072ADF2E398ED16716162D475CDA19D90280F1E93F6AE2EC09B51311CFC7E9C74F5C8BC1CFA8AD4779CA0530694537BF8D2C4BCF3E56E7BCAF03C50B0CA116DDD1FF3C3B59969A4D04D551B42E5F9B420030338D274EC0BD88B8D2FBB7B337A7A3DEBF3F1FE5A36036050466A92C6907980653FF81FEA3458B66479B55280098A9AD275E831C4777EA5AD1D4939ABD0080390B009A36DB02A6C4D47FA0AF3EA04F3589CF15003094669C6307CADED4B5B29F5F53A4C0B495848F46FF816918B4EBBFBA0804004FF6BFC6FDB94B5BC70800E683D13460DE1405001EDF074CC36E41C3BCBF8C12601C9DF5A2C1D6E6B2169600603E3415013067EAEA2B6046D6A27823E42DC5038C43EF896B959BF1280000208F1900C02C94EDFADF08B32681A78DBA8EBFEC896B660030F19B5D686C030B100058770B4CD2764163FE384CFD872A6B8ED06629D41BFD2F7BE2DAD2868D0280F96E68DB6D1B98BA56AB5D8FE2C76E5902004CB23D54D420DF094B90A0CACAFA44A36C9A5EF4885101005351F4881B493730AB46789EE35E40B0D96AB5B723A293F3DA8DF2441DA0C87EC1BF1FF45E4045F506458B42C0CD38C72C805E1B66BDACF3BFCC031E0280196BB5DA9B913FD5ED5C8F130418A3A2B574B556ABFD20BAA979D1E3B9B67BEF75A27C6D1DC0D9BAA3A83DB4A37880281F1CDD8FC17B01D47A3FB73BE0E7963A701400CCD66AC909B865AA2D30C3BA29CF5A9C6FA39DDB117137CAA7D801D44BDA438DB0F708D0B517C5B300EA11F120BA61E2D976C77AAF8EF920CA47FEFB967A0FB6A49D651DE7D2F4751A8DE8FCDDDFE71F945FFD3292975E5248C04CB47FF77F11CF3E3BBE0F7CF7DD485FF8B88205F2DB44F78FA2F3894FA83B800BF5A1B45986B3E2349AEE091B1FF9487436BE16F1CC333AFFC0FCB97A75BC9DFF8888E79E8BCE9B6FAADB80FCC67C5EE73F22921FFD480101A7EB85EDED6E7FEA1BDF9CCCE7DFFB8FA52F4301C084B53F681676F69FBED1FDB07B5203CCAA31FED9CF3DFD8F0F1F46B2FF8B88DFFFFEA93AAA73F35B115FFC62745E7CB1FC73BFF2D5889BFF19C9AD9F2A64A0EBEAD5E8FC6DFE5621C99D3BEA0B20BF7EB879B3DBB618350478FFFDFCC18E870F2379EDB5A52F3F7B004CD2F5EB4375FE933B7722FDFC8B3AFFC0EC7DEA93A7EBA7375E8FF44A2D929B3773EBA8E4D64F23F9F297227DF9E5EE0DB5CCD7BFA67C813FEAFCE0B5FC76D2C387917CFB1F1410501A0224AFBC12F1EEBBC3FFCEDB6F757FA760A663B2FF8B8877DE59FEB2B307C0046F6CDFFD5E745E7DB5F467D2CFBF1871EF9EC20216DFF5EBD1FEF5BF96069FE927FEA212375760401BE9E6B7A2F3E31FE7374EDF78FD8F237C00C3D427F1A94FE62EB34EDE7E2BE2B7BF8DE4E73F8FB8772F3AF7EE45E7D39F79FA431E3E8CF4AFFE5200C0054FC65BB7869A9A92DCB9D34DBA358A8145AFF7066CCE93BCF28A69BD40F166A3EFBF1FE99F7E540101E36FA3940CCE5629784C3A1DFDFF8B68B5DA656FEFC7708F9A88E83ED2E24696A54795B80057564E9D78C9C949E26CC239B734F5DF83287E5CE056741FE31359963AAF502755F0DC69B5DADB51FCD8BF8D18E219DCCB507F3847706E4CA4FF55A41E11F723FFD1C4C759963E5F95F3C51E0093B5111149EFB513DD67D916A945C4DD56ABBDAAD880057730A0AE032AAAD56AD74B3AFF87C374FE0146B05FD206D9AA52410800A6A7D10B01AEF46E70450DE37D45052CB863450014B85DF2DE96E20126D4F92F1A646D64597A280060929A1171238A13EE7AABD5DE544C8000005826BDF6CD5AC1DB7BEA0E600276A37849F65196A53B552B1001C0EC949D6CEB8A0758524D450095ECFCD72262BBA45E68282560CCB607D43B1B552C1401C0EC1C47F12C00FB00008BAC260000721AE2459B8336C2E83F305E9B51BCDF4844C45696A595AC770400B355B4E37FADB7490E8000005868BD364DD928DC9E5202C6DCF92FDB6F6427CBD2CA6E382A00982D0D61A06A0180513EA89EB28678437B089862E77F2FCBD24A2F39120000306E45CB989A0200A89656ABBD1EC51BFF1D87B5FFC0F86C0FE8FC1F84A78D080066CCF3B0816554D4D83F54345039656B7075FE817176FECBEA9BC3A8E8A67F67AD2882992ADCECAFAA9B52004BD1F92F0A378F140F5447ABD52EDBF8EF38ACFD07C6633FCA9FA27618DDC7B0136600CC43435923195826836EC040353AFF658FFD8B30FA0F5C5C3D22EE0F687BECE9FC0B00E6C566148F9219FD0716F546BC5952AF0937413BA75F1F18FD072E5AC7DC8FF2C7A7EF8435FF4FB1046076CA5271A364C0222A5B7BA7B10F15D17BEC9FB5FFC024EA97D55EFDB256F263C7BD8EBF3E550E330046B8A9B55AEDFB636824D74BDE3F50D2C094EBB65AEFA63AAAED289E82E739DF502D65831CC75996AA0F809164597A14E51BA9EF45C4359D7F01C0B86F6AABAD56FB7E6F7DDB289DFFB21BE35E96A59E870B4CDB6644DC6DB5DA6B23FEEEA0D13EF51A54406FF47F73407D0070111B39ED8AFE467F5BDA1C028049DDD45623E2C1809BDC935623E2EE80CE7FD38D1198610050EB8500B787FC9D5A749FB75BF6F347EA35A814A3FFC0A41D47777D7FB3F79FD77A9D7FA3FE43483A9D8E52183E00B81BF9EB4DFA9BD91CC4E90DFC6ABD46F56A94EF4ED9B7936569251ACA9D959553275E72729238C370CECDAC6EDB2CE8C43722E228CBD2839C9FAF0F68E8F7EBC61B51B0B16996A5CE2BD449CE1D9C23383798E6F9220018BA81BC16DD11FC49696459BAA3E202E7DC0CEAB741BBE88EE238BA53F40A77FE1700A04E72EEE01CC1B9C174CF174B00CED7989DD4E3F976AAD4F907E6AAF3BF3681CEFF517447FE3DF60F00608E0800869465E9F1041AB4471171A32AD3FE81B9743CE67AADBF16EF58D102000800163A04C8B2F45A7CB8E9C4A8F6A23B35F65A96A536AB0016BD5EEB6FC693840DFF0000E6963D002EA0D56AAF477723ACFE8658450DE3FE8EB747716677CA6558033B0A6B9770CECD7DBDB616F99B9EF6EBB2FEC6807BA30607F600409DE4DCC139827383299F2F0200545C38E7C079857307E708CE0D96FF7CB104000000002A4000000000000200000000400000000000080000000000010000000020000000000004000000008000000000001000000000800000000000100000000000020000000040000000000008000000000001000000002000000000000400000000200000000000040000000080000000000010000000000002000000004000000000000800000000000100000000080014010000000800000000000100000000200000000000040000000080000000000010000000000002000000004000000000000200000000400000000000080000000000010000000020000000000004000000008000000000001000000000800000000000100000000000020000000040000000000008000000000001000000002000000000000400000000200000000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000300DC97B2F7CA1A31800000060B999010000000002000000004000000000000800000000000100000000200000000000C625E9743C0510000000969D1900000000200000000000040000000080000000000010000000000002000000004000000000000800000000000100000000544AF2DE5FBFD0510C000000B0DCCC000000000001000000002000000000000400000000800000000000100000000000E392743A9E02B80C3A2B2BA70E647272929C795F21CDC30577721225C7E5ECC59828B1C5B904CBAE3F16BB3E752D2ECFB5E958AA6B17AC2E720DE2FA63ECCC0000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000200000000000040000000080000000000004008A000000000400000000800000000000100000000000020000000040000000000008000000000001000000002000000000000100000000200000000000040000000080000000000010000000000002000000004000000000000800000000400000000000080000000000010000000020000000000004000000008000000000001000000000000200000000100000000000020000000040000000000008000000000001000000002000000000000400000000800000000000100000000080000000000010000000000002000000004000000000000800000000000100000000200000000000040000000020000000000004000000008000000000001000000000000200000000400000000000080000000000010000000008000000000001000000002000000000000400000000800000000000100000000000020000000040000000000008000000004000000000000800000000000100000000305756140130AAF6A3C7FDFF5A8F88FB11518B88E723E2784C7F62FB89FFACE5BC7F1C117B1111E9E54B0D470458C0FA7318E3AC63F723627D42FFB7AEA4972F351D5D2AD07E59EF5D4BD376985EBE74C311440000CC523D22EEF66E9ECD3174FE577B1DFEF521FFF66EEF66BE1B110711D1482F5F3A725800756C611D3B094D9D7F2A746DD5151F8BCA1200601C37CFFE8DF0A21DEFEDE826F1A38E4EAD47C4FD5E1800A08E3DAD36C18ECBA1C34585AEADD5197DEF63870E01003013ED478FD77A9DF5271B9317699CDE8EDE68FE186CB71F3DDE7794800536EE3A76D29D161D13AAD47E99C50C80E388D87104110000B3B8796EC787D3E69E34EAF4CFED88D81CF3D75C3713005850E3AE63A71100587A4595DA2FB39801B061990D020060DA37CED5F6A3C7F7A378A47E9406603DCA47FE0F23622B229233AF9D183CE574BBFDE8B1757AC0A2588DEEC8E438EBD8B3F56D6EC722A78E2D7DA5972F9D7D1D387C54A4FD328BCEBFFD8D10000053BF79EEF61AA66537BE516E4EDB25EF6D44C48DE8EDF49F7333BCD17BBF2C11DF74F4800530A93A76988E8BE9FB68BF0CEF28CE1998C5E0002D89EE46C6B97F2FBD7CC9D47F0400C0D46E9C9BED478F3F18D051EF372047999A7650D0F8BC517233FCB012BB7CE9B0F7B345D61D45608E6D46C424EBD8410140334CDF47FBA539EBEF5AD25ED97234110000D3BA713E88EEE67CB5217E65D406E461445C3BD3D91F667AFF9321C0514958506F3F7A5C73448139ECF84FA38E2DEBFCF73B3FA0FD32BBEF5B8BE2A5093BA6FE336E2B8A00387323EA6FC877DEB5F317694436A33BDD7FBDF76A8CF01947519C9EF79FF10B50C53AB62C00F0F83E5C5BB35514541CA5972F351C590400C0A46F9EA3EE9C3F8E84FA208698F65F122200A863F3D5D59DB8B626D67E19F57BF7073EF26C38B2080080491B949A37A2782DDDAC13F4C2697EE9E54BA6B80255AF63CD005830C9C9C9C2FF7FE8ACAC54E1DA1AB5F35F8BEEE87F9E1D6D1726C51E00C0300DC446445C89F2D1F9A339FDEED6CE01EA587B00E0DA9AB7F68BA9FFCC841900C093EA3937CE467AF9523322A2FDE8F1DA3C76B27B297AD1143AA35BC05CD7B1F1E134FC49D5B1F5A28E46580280F6CB2CDA2DA6FE23000066ABD789AEE5DD389F5034CD7ED623489B25EF1D38BAC03CD6B1399DEF49D5B18346FF377B7F3B6F0D75FF7B1A9144FB653C06EDFA6F560E0200602A562362AF77F3699EB31139CB0D746A51BCAEEFD0E3738079AC63DB8F1E4FB38EAD9774441E44F9FAE97EFDBA1BDDE791EF399468BF5CC86EC13567EA3F0200607AD2CB970E63F074F9795C43BA1DC5C9BE1B29A08E2DFEDCB5737ECEEDE84E5BDE084B07706D8D622D8A672D6E399A4C43D2E9742222A2B3B2D2511C40A1AB57A3FD9BFFC9BFF97EFEC5887BF7A6FF9DD637A2FDB39FE5576E6FBF15C9F5EB8E1B50F93AB6FDBBFF8B78F6D9F17DD777DF8DF4858F3B6668BF9CF77BFCDBBFE75E8BC9AF7E19C94B2F39564CBEF37F7292780A003094CE57BE9AFFC6C387B3E9FC5FBD1AEDD75E2BFC4EC9ABAF3A68803AF6EAD5F176FE23229E7B2E3A6FBEE9A0A1FD729EEFF1EAABF9D7E2FBEF6BB33055020060387FFE67B9FF9C1CCF66F67FE707AF15366A93FD5FCC26940098B33AB6F3D9CFE5767C92375E8FE4473F8CF4F2A553AFE4955722B97367A84E55E7E6B71C37B45F86B1BE511844243FF949C43BEF384E08008039F3271FCDFFF777FE77FA9DFFEF7E2F3A2FBE987F23FDCD6F22B979D3F102D4B111119FFAE4E93AF28DD723BD528BE4E6CD48B69FDE3F35B9F5D348BEFCA5485F7E39E2FDF7CB3FFBEB5F73DCD07E1942D18CC5E4EDB722F9E77F728C100000F3A7F3B18FE5BFF1873F4CF78B5CBF1E9DEF7C27FFBD870F23F9C76F3B58803AB6DFC1B879F3F408FFB001E9C17EA47FF372779A74D177FEF467BA4B0C40FBA5F8EFDFBA953F63D172450400C05C2B5A43FA5FFF3DD5AFD1BE753BE29967F21BBADFFFBEA9FF803A765CEEDD8BE45FCA9FFA97BBC4005C5B5DD7AF47E71BDFCC6FB358AEC88CFCF129002CB6B34F71484E4E12A5E2188E4BABD55E8D88FB056F5F89E93D0E6A3FBA8FA0CAD3C8B274C7B1C3F16441EAD527FFE7BCD4B1451E44FE73CB2322B6B22CDD736D328FC76C0EDA2F7723FF719B4759965E732C9905330080611435FC8EA7D830DD2EE9FC1FCDAAF30FB024756C998392F76A0E1FAEAD5C9B059DFF88086D160400C042DE408FA6F4F7572362B7E4267EC32102D4B11373EC10E1DA3A975A49BB652FCBD2438706010030CF5667D828AC47770A5D918D2C4B9B0E11A08E1500C09C5C5BBB913F3BA61946FF1100000B7C039DC6E8D47E144F31DDC9B2F4C8E101D4B1332380C5B575DA5A74A7FFE769B86610000073ADD56AD7A27C0DDD24ED96DCBC0FB22C6D3842C0829B651D7B9EEF280040FB6538B74BFEA6760B020060EED54BDE9B6482BEDD7B15FDDD2D870650C70A00608EAEADED92BF6BEA3F02006021CC62FA5CD9A67FCD88D8D0E804D4B1731100D81F00D75657BDA4ED7218E54FD30001003037A63D7DAE16DD75FF45B634380175EC5C74A49A5996AA8F716D75DD1ED076010100B010A69DA0DF2DB9693742820EA863A7ADE859E61E65866BAB6BB3E43AD90B031708008025B8814EE26656B6E9DF61583F07A86367D1F9AF4DB123058B766DD5A278CFA266D8F80F0100B0287A3BE84EABE1B75E72033D8EEEBA7F806532CD3AF6227573113300D07E29DFF8AF1146FF1100000BA4683ADBB8D77DAE46F9BA7F9BFE0195AA63E7A4D3508FE2E7991F67596A0600556FBFD4A37CF47FCFA14000002C92696CA03368D3BF9D30CD1450C7CEC26EC97B3A36B8B6CA37FE6B84C10B0400C092DC40C739EDF376C9DF39086BE70075EC286A51BC067A18DB513CFDDFC826DA2FDDEBA368A6C1B1F60B02006011AD9634FEC661B7A4817914D6FD03EAD8516D46F7A92A6B23FE6ED9E87F23CB52239B54B9FD1283AE1187000100B088EA259DF38B2ADBF4AFA9F30FA8632F1C00D47A21C0ED217FA7D6FBD9B29F3FD2B9A1E2D75644F9C67FC761860C020060D1B45AEDD598DC0EBAF5010DCC5A443C88884ED9ABD56A97BDB61D45608E4DB28EDD3CD339D9ECD59B45B3AEFA23FE1F44F1A67FFD8E8D70962AB75FFA6D94B23686808CB9B6A20880924E7A6E03F082533FFB2352B5097F7F1B07020B59C7C6C5A7291775E22F128CF63BFF1E694655DB2F4F5E5FB592EBC4E83F73CD0C00E0BC37D08B76ACCB36FD130000EAD88B598B8B6DFE57F49D6EA857A9F8B5D5FF6C6BFF1100004BA9A8017991D19F7A146FFA374E4D1B540115AC63FBBF3FCE8EFA4E445C0B23FFB8B622CA67D118FD470000B881CE88512AA0CA01C0B55EC7BD7981CFD88988248C68E2DAEAAB47F91E19AE1516823D0080A7B45AED5A4C7E075D0100A08E9D5CFDD5E8BDD67B7F6B2D8A1F0978141107BDFFBE17E37D541A2CCBB565F49FA590743A1DA5B0043A2B2BA70E647272922815C710C70EC7D3B1742C1D4F1C331C4BFA2C0100000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000200000000000040000000080000000000004008A00000000040000000080000000000010000000000002000000004000000000000800000000000100000000200000000000010000000020000000000004000000008000000000001000000000000200000000400000000000080000000040000000000008000000000001000000002000000000000400000000800000000000100000000000020000000010000000000002000000004000000000000800000000000100000000200000000000040000000080000000000010000000008000000000001000000000000200000000400000000000080000000000010000000020000000000004000000002000000000000400000000800000000000100000000000020000000040000000000008000000000001000000000800000000000100000000200000000000040000000080000000000010000000000002000000006038C97B2F7CA1A31800000060B999010000000002000000004000000000000800000000000100000000200000000000C625E9743C0570197456564E1DC8E4E42439F3BE429A870BEEE4244A8ECBD98B3151628B7309965D7F2C767DEA5A5C9E6BD3B154D7A23EC5F5577566000000008000000000001000000000000200000000400000000000080000000000010000000020000000000004000000002000000000000400000000800000000000100000000000020000000040000000000008000000000001000000000800000000000100000000200000000000040000000080000000000010000000000002000000004000000000000200450000000002000000004000000000000800000000000100000000301DFF3F0094A27689ABEED0670000000049454E44AE426082
- FileSelectFile, savetemplate, S16, Template.png, Save File
- IfExist, %savetemplate%
- FileDelete, %savetemplate%
- HexString=
- ( Join
- %templatehexa%
- )
- Tfh := OpenFileForWrite(savetemplate)
- l := Hex2Bin(data, HexString)
- WriteInFile(Tfh, data, l)
- CloseFile(Tfh)
- return
- GuiClose:
- FileRemoveDir, %A_ScriptDir%\ressources\images, 1
- FileRemoveDir, %A_ScriptDir%\ressources\imgtool, 1
- FileRemoveDir, %A_ScriptDir%\ressources\packer, 1
- FileRemoveDir, %A_ScriptDir%\tmp, 1
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement