Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #singleinstance force
- softname = Rocksmith 2014 Guitar Maker
- buildversion = 2.0.0.0b
- FileCreateDir, %A_ScriptDir%\ressources\images
- FileCreateDir, %A_ScriptDir%\ressources\packer
- TabColors_Tab1=
- TabColors_Tab2=
- TabColors_Tab3=
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\images\icon.png, %A_ScriptDir%\ressources\images\icon.png
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\images\inlay_preview.png, %A_ScriptDir%\ressources\images\inlay_preview.png
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\images\rocksmith_2014_logo.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo.png
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\images\rocksmith_2014_logo_graded.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\images\avatar.gif, %A_ScriptDir%\ressources\images\avatar.gif
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\images\facebook_icon.png, %A_ScriptDir%\ressources\images\facebook_icon.png
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\7za.exe, %A_ScriptDir%\ressources\packer\7za.exe
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\NDesk.Options.dll, %A_ScriptDir%\ressources\packer\NDesk.Options.dll
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\nvdxt.exe, %A_ScriptDir%\ressources\packer\nvdxt.exe
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\packer.exe, %A_ScriptDir%\ressources\packer\packer.exe
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\packer.pdb, %A_ScriptDir%\ressources\packer\packer.pdb
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\RocksmithToolkitLib.dll, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.dll
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\RocksmithToolkitLib.pdb, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.pdb
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\X360.dll, %A_ScriptDir%\ressources\packer\X360.dll
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\X360.xml, %A_ScriptDir%\ressources\packer\X360.xml
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\ZLIB.dll, %A_ScriptDir%\ressources\packer\ZLIB.dll
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\zlib.net.dll, %A_ScriptDir%\ressources\packer\zlib.net.dll
- Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator\ressources\packer\topng.exe, %A_ScriptDir%\ressources\packer\topng.exe
- Gui, Add, Tab, w100 x3 y+2 h25 w800 AltSubmit gTab vTab
- , Creator|DataBase|About
- Gosub, Tab
- Gui, Show, h560 w816, %softname% - v%buildversion%
- 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, 20000, 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
- 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%
- creatorname = InputYourNameHere
- Gui, Tab, 1
- Gui, Add, Picture, x102 y34 w610 h120 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
- Gui, Add, Text, x712 y134 w90 h20 , Version : %buildversion%
- Gui, Add, Button,gRS2014D vRS2014DB x272 y144 w100 h30, RS2014 Directory
- Gui, Add, Text,vrs2014dirtext x22 y154 w240 h30, %RS2014DIR%
- Gui, Add, Text,vidmaster x22 y190 w240 h30 , %ID1MAJ%
- Gui, Add, Text,vguitarid x272 y190 w100 h30 , %ccg2%
- Gui, Add, Button,gloadguitar vlg x162 y214 w100 h30 , Load
- Gui, Add, Button,gsaveguitar vsg x272 y214 w100 h30 , Save
- Gui, Add, Text, x22 y222 w140 h30 , Custom Guitars templates :
- Gui, Add, Text, Color123456 x22 y264 w150 h30, English name :
- Gui, Add, Edit, vnewenglishname x182 y264 w190 h30 , %guitarname%
- Gui, Add, Text, x22 y304 w150 h30 , French name :
- Gui, Add, Edit, vnewfrenchname x182 y304 w190 h30 , %guitarname1%
- Gui, Add, Text, x22 y344 w150 h30 , Spanish name :
- Gui, Add, Edit, vnewspanishname x182 y344 w190 h30 , %guitarname2%
- Gui, Add, Text, x22 y384 w150 h30 , Italian name :
- Gui, Add, Edit, vnewitalianname x182 y384 w190 h30 , %guitarname3%
- Gui, Add, Text, x22 y424 w150 h30 , German name :
- Gui, Add, Edit, vnewgermanname x182 y424 w190 h30 , %guitarname4%
- Gui, Add, Text, x22 y464 w150 h30 , Japanese name :
- Gui, Add, Edit, vnewjapanesename x182 y464 w190 h30 , %guitarname5%
- Gui, Add, Picture,gnewiconfiles vnewicon x382 y144 w150 h150 , %DDSI512files%
- Gui, Add, Text,vdefaultname x572 y154 w200 h30 , %guitarname%
- Gui, Add, Text,vdefault6name Limit6 x572 y184 w200 h30 , %RandomName%
- Gui, Add, Text, x572 y210 w150 h30 , Creator Name :
- Gui, Add, Edit, vcreatorname x572 y230 w190 h30 , %creatorname%
- Gui, Add, CheckBox,vcoloredinlay x572 y274 w200 h30, Colored Inlay
- Gui, Add, Picture,gnewinlayfiles vnewinlay x382 y314 w420 h150 , %DDSInlayfiles%
- Gui, Add, Button,ggetemplate vgetemplateB x702 y474 w100 h30 , Get the template
- Gui, Add, Text, x382 y474 w310 h30 , %ccg% custom guitars have been created already.
- progresstext = Ready to go !
- Gui, Add, Text,vprogresstxt x20 y500 w680 h15 , %progresstext%
- Gui, Add, Progress,vprogressbar x12 y518 w680 h30 , %progress%
- Gui, Add, Button,gparse vparseB x702 y514 w100 h30 , Create it !
- SetTimer, Refreshmahname, 10
- Gui, Tab, 2
- Gui, Add, Picture, x2 y39 w820 h170 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
- Gui Add, ActiveX, x0 y209 w815 h380 vWB, Shell.Explorer
- WB.Navigate("http://rs2014mods.fhero.net/index.php")
- Gui, Tab, 3
- Gui, Add, Picture, x2 y39 w820 h170 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
- Gui, Add, Picture, gbaousmithy x142 y279 w100 h100 , %A_ScriptDir%\ressources\images\avatar.gif
- Gui, Add, Text, x120 y209 w570 h70 +Center, Software revision : %buildversion%`nCreated by : Baoulettes`nThis software is free! if you paid for it claim refund now.`nAll Lib used here (listed soon) remain to there respective owners!
- Gui, Font, S45 C2a2a2a
- Gui, Add, Text,gbaousmithy2 x252 y299 w400 h60, %A_Space%%A_Space%Baoulettes
- Gui, Font, S08 C000000
- Gui, Add, Picture, gfacebookbaou x592 y279 w100 h100 , %A_ScriptDir%\ressources\images\facebook_icon.png
- Gui, Add, Progress,vprogressbar2 x12 y518 w680 h30 , %progress%
- return
- Tab:
- GuiControlGet, Tab
- Gui, Color, % TabColors_Tab%Tab%
- return
- getemplate:
- MsgBox, 4, , This will open your browser.`nWant to continue?,
- IfMsgBox, Yes
- run, http://s21.postimg.org/7ce6pru3b/Cadrillage_2.png
- return
- baousmithy:
- MsgBox, 4, , This will open your browser.`nWant to continue?,
- IfMsgBox, Yes
- run, http://forums.smithyanvil.com/profile.php?id=319
- return
- baousmithy2:
- MsgBox, 4, , This will open your browser.`nWant to continue?,
- IfMsgBox, Yes
- run, http://forums.smithyanvil.com/profile.php?id=319
- return
- facebookbaou:
- MsgBox, 4, , This will open your browser.`nWant to continue?,
- IfMsgBox, Yes
- run, https://www.facebook.com/pages/Baoulettes/258752740926874
- 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, creatorname
- GuiControl, disable, parseB
- 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, creatorname
- GuiControl, enable, parseB
- GuiControl, enable, lg
- 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, creatorname
- GuiControl, enable, parseB
- GuiControl, enable, lg
- 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, creatorname
- GuiControl, enable, parseB
- GuiControl, enable, lg
- 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, creatorname
- GuiControl, enable, parseB
- GuiControl, enable, lg
- 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, newjapanesename
- GuiControl, disable, parseB
- GuiControl, disable, creatorname
- GuiControl, disable, lg
- GuiControl, disable, sg
- FileSelectFile, DDSI512files, 3, , Open a Icon 512x512 Image, Rocksmith 2014 Icon 512x512 Image files (*.tga; *.png)
- 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, parseB
- GuiControl, enable, creatorname
- GuiControl, enable, lg
- GuiControl, enable, sg
- } 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, parseB
- GuiControl, enable, creatorname
- GuiControl, enable, lg
- GuiControl, enable, sg
- }
- 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, parseB
- GuiControl, enable, lg
- GuiControl, enable, creatorname
- GuiControl, enable, sg
- } 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, parseB
- GuiControl, enable, creatorname
- GuiControl, enable, lg
- 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, parseB
- GuiControl, disable, lg
- GuiControl, disable, sg
- GuiControl, disable, creatorname
- FileSelectFile, DDSInlayfiles, 3, , Open a Inlay Image, Rocksmith 2014 Inlay Image files (*.tga; *.png)
- 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, 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, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- }
- 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, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- } 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, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- }
- return
- loadguitar:
- 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, parseB
- GuiControl, disable, lg
- GuiControl, disable, creatorname
- 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, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- }
- else
- {
- progress = 10
- progresstext = Loading .
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- FileRemoveDir, %A_ScriptDir%\tmp\cgm, 1
- FileCreateDir, %A_ScriptDir%\tmp
- FileCreateDir, %A_ScriptDir%\tmp\cgm
- FileCopy, %loadcgm%, %A_ScriptDir%\tmp\cgm\1.7z
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe x "%A_ScriptDir%\tmp\cgm\1.7z" -o"%A_ScriptDir%\tmp\cgm\*",
- IniRead, leng, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, guitarname
- IniRead, lfr, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, guitarname1
- IniRead, lspa, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, guitarname2
- IniRead, lit, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, guitarname3
- IniRead, lge, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, guitarname4
- IniRead, ljpn, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, guitarname5
- IniRead, lcreator, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, creatorname
- IniRead, lcolored, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, coloredinlay
- If lcreator = ERROR
- {
- IniRead, leng, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, guitarname
- IniRead, lfr, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, guitarname1
- IniRead, lspa, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, guitarname2
- IniRead, lit, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, guitarname3
- IniRead, lge, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, guitarname4
- IniRead, ljpn, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, guitarname5
- IniRead, lcreator, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, creatorname
- IniRead, lcolored, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, coloredinlay
- }
- progress = 50
- progresstext = Loading ..
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- RunWait, %A_ScriptDir%\ressources\packer\topng.exe -out png "%A_ScriptDir%\tmp\cgm\1\inlay.dds",,Hide
- progress = 80
- progresstext = Loading ...
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- RunWait, %A_ScriptDir%\ressources\packer\topng.exe -out png "%A_ScriptDir%\tmp\cgm\1\icon.dds",,Hide
- loadinlay = %A_ScriptDir%\tmp\cgm\1\inlay.png
- loadicon = %A_ScriptDir%\tmp\cgm\1\icon.png
- 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%
- If lcreator = ERROR
- {
- GuiControl,, creatorname, UnknowCreator
- msgbox, The guitar %leng% has been loaded !
- }
- If lcreator = UnknowCreator
- {
- GuiControl,, creatorname, UnknowCreator
- msgbox, The guitar %leng% has been loaded !
- }
- else
- {
- GuiControl,, creatorname, %lcreator%
- msgbox, The guitar %leng% made by %lcreator% has been loaded !
- }
- progress = 0
- progresstext = Ready to go !
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- 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, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- }
- return
- saveguitar:
- 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, sg
- GuiControl, disable, creatorname
- FileSelectFolder, CGMDIR,, 3, Select folder to save the 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, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- }
- else
- {
- GuiControlGet, newinlay
- GuiControlGet, newicon
- GuiControlGet, creatorname
- GuiControlGet, coloredinlay
- GuiControlGet, newenglishname
- GuiControlGet, newfrenchname
- GuiControlGet, newspanishname
- GuiControlGet, newitalianname
- GuiControlGet, newgermanname
- GuiControlGet, newjapanesename
- FileCreateDir, %A_ScriptDir%\tmp
- FileRemoveDir, %A_ScriptDir%\tmp\cgmsave, 1
- FileCreateDir, %A_ScriptDir%\tmp\cgmsave
- progress = 10
- progresstext = Saving .
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%DDSInlayfiles%" -prescale 1024 512 -32 dxt5 -dxt5 -overwrite -alpha -output "%A_ScriptDir%\tmp\cgmsave\inlay.dds",,Hide
- progress = 50
- progresstext = Saving . .
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%DDSI512files%" -prescale 512 512 -32 dxt5 -dxt5 -overwrite -output "%A_ScriptDir%\tmp\cgmsave\icon.dds",,Hide
- progress = 70
- progresstext = Saving ..
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- IniWrite, %newenglishname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname
- IniWrite, %newfrenchname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname1
- IniWrite, %newspanishname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname2
- IniWrite, %newitalianname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname3
- IniWrite, %newgermanname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname4
- IniWrite, %newjapanesename%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname5
- IniWrite, %coloredinlay%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, coloredinlay
- IniWrite, %creatorname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, creatorname
- progress = 90
- progresstext = Saving .. .
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- StringReplace, newenglishname2, newenglishname, %A_SPACE%, _, All
- StringReplace, creatorname2, creatorname, %A_SPACE%, _, All
- progress = 100
- progresstext = Saving ...
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe a %CGMDIR%\%newenglishname2%_%creatorname2%_v%buildversion%.cgm "%A_ScriptDir%\tmp\cgmsave\"*,,Hide
- msgbox, Your custom guitar %newenglishname2%_%creatorname2%_v%buildversion%.cgm as been saved here :`n%CGMDIR%`nEnjoy :)
- progress = 0
- progresstext = Ready to go !
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- GuiControl,, progresstxt, %progresstext%
- 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, parseB
- GuiControl, enable, lg
- GuiControl, enable, sg
- GuiControl, enable, creatorname
- }
- 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, lg
- GuiControl, disable, sg
- GuiControl, disable, creatorname
- 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%\backup
- FileCreateDir, %A_ScriptDir%\output
- FileCreateDir, %A_ScriptDir%\tmp\images
- progress = 5
- progresstext = Generating needed images files.
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.png
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.png
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.png
- FileCopy, %DDSI512files%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.png
- FileCopy, %DDSInlayfiles%, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.png
- progress = 10
- progresstext = Converting image to proper size & format
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
- Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.*" -prescale 512 512 -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds",,Hide
- Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.*" -prescale 256 256 -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds",,Hide
- Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.*" -prescale 128 128 -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds",,Hide
- Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.*" -prescale 64 64 -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds",,Hide
- progress = 20
- progresstext = Copying PSARC to Backup folder
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- FileCopy, %A_ScriptDir%\backup\cache.psarc, %A_ScriptDir%\backup\cache.psarc.bak%ccg%
- FileCopy, %A_ScriptDir%\backup\guitars.psarc, %A_ScriptDir%\backup\guitars.psarc.bak%ccg%
- FileCopy, %A_ScriptDir%\backup\static.psarc, %A_ScriptDir%\backup\static.psarc.bak%ccg%
- 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
- progresstext = Unpacking Psarc to TMP folder & cleaning appid files.
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- RunWait, %A_ScriptDir%\ressources\packer\packer.exe --unpack --input="%A_ScriptDir%\backup" --output="%A_ScriptDir%\tmp",,Hide
- FileDelete, %A_ScriptDir%\tmp\cache_Pc\appid.appid
- FileDelete, %A_ScriptDir%\tmp\guitars_Pc\appid.appid
- FileDelete, %A_ScriptDir%\tmp\static_Pc\appid.appid
- progress = 35
- progresstext = Modding Cache psarc sources to new ones.
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- RunWait, %A_ScriptDir%\ressources\packer\7za.exe x "tmp\cache_Pc\cache4.7z" -o"tmp\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" -o"tmp\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
- progresstext = Modding Guitars psarc sources to new ones
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %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
- progresstext = Modding Static PSARC sources to new ones
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %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
- progresstext = Packing new psarc to output folder
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- FileRemoveDir, %A_ScriptDir%\tmp\cache_Pc\cache7, 1
- FileRemoveDir, %A_ScriptDir%\tmp\cache_Pc\cache4, 1
- FileCopy, %A_ScriptDir%\output\cache.psarc, %A_ScriptDir%\output\cache.psarc.bak%ccg%
- FileCopy, %A_ScriptDir%\output\guitars.psarc, %A_ScriptDir%\output\guitars.psarc.bak%ccg%
- FileCopy, %A_ScriptDir%\output\static.psarc, %A_ScriptDir%\output\static.psarc.bak%ccg%
- RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\cache_Pc" --output="%A_ScriptDir%\output\cache.psarc",,Hide
- sleep 600
- RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\guitars_Pc" --output="%A_ScriptDir%\output\guitars.psarc",,Hide
- sleep 600
- 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
- progresstext = Generating required files.
- GuiControl,, progresstxt, %progresstext%
- GuiControl,, progressbar, %progress%
- GuiControl,, progressbar2, %progress%
- 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
- progresstext = Work done check %A_ScriptDir%\output folder for your new PSARC
- GuiControl,, progresstxt, %progresstext%
- 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
- GuiClose:
- FileRemoveDir, %A_ScriptDir%\tmp, 1
- FileRemoveDir, %A_ScriptDir%\ressources, 1
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement