Advertisement
Baoulettes

Rocksmith 2014 Guitars Maker (ui) V2.0.0.71b

Jan 24th, 2014
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #singleinstance force
  2. softname        =   Rocksmith 2014 Guitar Maker
  3. buildversion    =   2.0.0.71b
  4. Gui, 99:Add, Progress, vloadingbar x12 y49 w520 h30 , 0
  5. Gui, 99:Add, Text, vloadtext x12 y19 w520 h30 , text1.
  6. Gui, 99:Show, x682 y305 h94 w545, %softname% - %buildversion% is loading
  7. lbar = 10
  8. ltext = Generating functions & updating Appids list.
  9. GuiControl,99:,loadingbar, %lbar%
  10. GuiControl,99:,loadtext, %ltext%
  11. UrlDownloadToFile, ftp://baoulettes:shadow123@ftp.drivehq.com/appidlist.sac, %A_ScriptDir%\appidlist.sac
  12. FileRead, File,%A_ScriptDir%\appidlist.sac ;read file to variable
  13. Loop, Parse, File ,`r`n ;loop parse by line
  14.  {
  15.  If (SubStr(A_LoopField,1,1)="[")
  16.   dlcid.="|" A_LoopField ;add it to the list
  17.   StringReplace, dlcid, dlcid, [, , All
  18.   StringReplace, dlcid, dlcid, ], , All
  19.  }
  20.   StringLen, appidlenght, dlcid
  21.   appidlenght--
  22.   StringRight, dlcid, dlcid, %appidlenght%
  23.  
  24. disableUI()
  25. {
  26. GuiControl, disable, fliplr
  27. GuiControl, disable, flipud
  28. GuiControl, disable, tren
  29. GuiControl, disable, trfr
  30. GuiControl, disable, trit
  31. GuiControl, disable, trde
  32. GuiControl, disable, trjp
  33. GuiControl, disable, tres
  34. GuiControl, disable, tren2
  35. GuiControl, disable, trfr2
  36. GuiControl, disable, pcversion
  37. GuiControl, disable, macversion
  38. GuiControl, disable, ps3version
  39. GuiControl, disable, x360version
  40. GuiControl, disable, trit2
  41. GuiControl, disable, trde2
  42. GuiControl, disable, trjp2
  43. GuiControl, disable, 24finlay
  44. GuiControl, disable, tres2
  45. GuiControl, disable, tren3
  46. GuiControl, disable, trfr3
  47. GuiControl, disable, trit3
  48. GuiControl, disable, trde3
  49. GuiControl, disable, trjp3
  50. GuiControl, disable, tres3
  51. GuiControl, disable, parse2B
  52. GuiControl, disable, btnpackloc
  53. GuiControl, disable, RS2014DB
  54. GuiControl, disable, newinlay
  55. GuiControl, disable, newicon
  56. GuiControl, disable, submittostore
  57. GuiControl, disable, coloredinlay
  58. GuiControl, disable, getemplateB
  59. GuiControl, disable, newenglishname
  60. GuiControl, disable, creatorname
  61. GuiControl, disable, parseB
  62. GuiControl, disable, lg
  63. GuiControl, disable, sg
  64. }
  65. enableUI()
  66. {
  67. GuiControl, enable, fliplr
  68. GuiControl, enable, flipud
  69. GuiControl, enable, RS2014DB
  70. GuiControl, enable, btnpackloc
  71. GuiControl, enable, newinlay
  72. GuiControl, enable, newicon
  73. GuiControl, enable, coloredinlay
  74. GuiControl, enable, newenglishname
  75. GuiControl, enable, submittostore
  76. GuiControl, enable, getemplateB
  77. GuiControl, enable, creatorname
  78. GuiControl, enable, parseB
  79. GuiControl, enable, 24finlay
  80. GuiControl, enable, lg
  81. GuiControl, enable, sg
  82. GuiControl, enable, tren
  83. GuiControl, enable, trfr
  84. GuiControl, enable, trit
  85. GuiControl, enable, trde
  86. GuiControl, enable, trjp
  87. GuiControl, enable, tres
  88. GuiControl, enable, tren2
  89. GuiControl, enable, trfr2
  90. GuiControl, enable, trit2
  91. GuiControl, enable, parse2B
  92. GuiControl, enable, trde2
  93. GuiControl, enable, x360version
  94. GuiControl, enable, pcversion
  95. GuiControl, enable, macversion
  96. GuiControl, enable, ps3version
  97. GuiControl, enable, trjp2
  98. GuiControl, enable, tres2
  99. GuiControl, enable, tren3
  100. GuiControl, enable, trfr3
  101. GuiControl, enable, trit3
  102. GuiControl, enable, trde3
  103. GuiControl, enable, trjp3
  104. GuiControl, enable, tres3
  105. }
  106. global dlcid2 := 1, tab1 := 1, tab2 := 1, tab3 := 1, tab4 := 1, tab5 := 1, rs2014dirtextlang := 1, defengname := 1, defcreatorname := 1, folderrs2014btntxt := 1, load := 1, save := 1, custguittemp := 1, engnametxt := 1, creatornametxt := 1, coloreinlaytxt := 1, gtttxt := 1, sumbit2store := 1, cgctxt := 1, parsebuttontxt := 1, parsebuttontxt2 := 1, warn1submit := 1, submitsave1 := 1, submitsave2 := 1, submitsave3 := 1, submitsave4 := 1, submitsave5 := 1, submitedtxt := 1, defstateprogresstxt := 1, browserwarntxt := 1, slttxtrs2014dir := 1, iconopentxt := 1, iconopentxt2 := 1, inlayopentxt := 1, inlayopentxt2 := 1, cgmopentxt := 1, cgmopentxt2 := 1, cgmonlytxt := 1, loadtxt1 := 1, loadtxt2 := 1, loadtxt3 := 1, loadtxtp1 := 1, loadtxtp2 := 1, loadtxtnewp1 := 1, loadtxtnewp2 := 1, loadtxtnewp3 := 1, savecgmtxt := 1, errorsavecgmtxt := 1, txtsave1 := 1, txtsave2 := 1, txtsave3 := 1, txtsave4 := 1, txtsave5 := 1, sucsavetxt1 := 1, sucsavetxt2 := 1, sucsavetxt3 := 1, sucsavetxt4 := 1, sucsavetxt5 := 1, warn1parsetxt := 1, parse1 := 1, parse2 := 1, parse3 := 1, parse3 := 1, doneconfirm1 := 1, doneconfirm2 := 1, packageversiontxt := 1, btnsinpackloc := 1, installingame := 1
  107. changeEN()
  108. {
  109. tab1 = Creator
  110. tab2 = Store
  111. tab3 = About
  112. tab4 = Lobby
  113. tab5 = Loading
  114. rs2014dirtextlang = Undefinied
  115. defengname = Inlay default name
  116. defcreatorname = InputYourNameHere
  117. folderrs2014btntxt = RS2014 Directory
  118. load = Load
  119. save = Save
  120. custguittemp = Custom Guitars templates :
  121. engnametxt = Inlay Name :
  122. creatornametxt = Creator Name :
  123. coloreinlaytxt = Colored Inlay ?
  124. gtttxt = Get the template
  125. sumbit2store = Submit to Store
  126. cgctxt = %ccg% custom guitars created.
  127. parsebuttontxt = Add to Pack
  128. parsebuttontxt2 = Create single
  129. warn1submit = This will send your currently loaded inlay to store.`nIt will require an human verification to prevent immature or forbidden content.`nIt will maintly be done in Weekend.`nWant to continue?
  130. submitsave1 = Saving .
  131. submitsave2 = Saving . .
  132. submitsave3 = Saving ..
  133. submitsave4 = Saving .. .
  134. submitsave5 = Saving ...
  135. submitedtxt = Your inlay has been sent and will be soon be moderated please wait until it.`nYou can send back same inlay with same name / creator name to update pictures in case you need it.
  136. defstateprogresstxt = Ready to go !
  137. browserwarntxt = This will open your browser.`nWant to continue?
  138. slttxtrs2014dir = Select Rocksmith 2014 Installation folder.
  139. iconopentxt = Open a Icon 512x512 Image
  140. iconopentxt2 = Rocksmith 2014 Icon 512x512 Image files
  141. inlayopentxt = Open a Inlay Image
  142. inlayopentxt2 = Rocksmith 2014 Inlay Image files
  143. cgmopentxt = Open a Rocksmith 2014 Guitars Maker Template
  144. cgmopentxt2 = Rocksmith 2014 CGM
  145. cgmonlytxt = You need to select a .cgm only.
  146. loadtxt1 = Loading .
  147. loadtxt2 = Loading ..
  148. loadtxt3 = Loading ...
  149. loadtxtp1 = The guitar
  150. loadtxtp2 = has been loaded !
  151. loadtxtnewp1 = The guitar
  152. loadtxtnewp2 = made by
  153. loadtxtnewp3 = has been loaded !
  154. savecgmtxt = Select folder to save the custom guitars.
  155. errorsavecgmtxt = You need to select a folder to save your templace (ex: Desktop.)
  156. txtsave1 = Saving .
  157. txtsave2 = Saving . .
  158. txtsave3 = Saving ..
  159. txtsave4 = Saving .. .
  160. txtsave5 = Saving ...
  161. sucsavetxt1 = Your custom guitar
  162. sucsavetxt2 = _
  163. sucsavetxt3 = _v
  164. sucsavetxt4 =.cgm as been saved here :
  165. sucsavetxt5 = Enjoy :)
  166. warn1parsetxt = This will add the current Inlay be sure this is correct.`nWant to continue?,
  167. parse1 = Generating needed images files.
  168. parse2 = Converting image to proper size & format
  169. parse3 = Checking existance of multipack.
  170. parse3 = Work done !
  171. doneconfirm1 = Your GuitarInlayPack as been updated !
  172. doneconfirm2 = Your single Guitar Inlay Pack as been created !
  173. packageversiontxt = Select package format (At least one, Else there will be no output.)
  174. btnsinpackloc = Single pack loc ...
  175. installingame = Directly install into the game once done ?
  176. }
  177. changeFR()
  178. {
  179. tab1 = Createur
  180. tab2 = Stock
  181. tab3 = A propos
  182. tab4 = Hall
  183. tab5 = Chargement
  184. rs2014dirtextlang = Non defini
  185. defengname = Nom par defaut
  186. defcreatorname = MettezVotreNomIci
  187. folderrs2014btntxt = Repertoire RS2014
  188. load = Charger
  189. save = Sauvegarder
  190. custguittemp = Guitares personnalisees :
  191. engnametxt = Nom de la Guitare :
  192. creatornametxt = Nom du createur :
  193. coloreinlaytxt = Guitare en couleur ?
  194. gtttxt = Avoir la Template
  195. sumbit2store = Envoyer au Stock
  196. cgctxt = %ccg% guitares personnalisees crees
  197. parsebuttontxt = Ajouter au pack
  198. parsebuttontxt2 = Cree pack simple
  199. warn1submit = Cela va envoyer votre Guitare actuel au Stock.`nIl sera verifier humainement pour eviter tout contenus choquant ou interdit.`nEn general fait durant le WeekEnd.`nVoulez vous continuer?
  200. submitsave1 = Envoi .
  201. submitsave2 = Envoi . .
  202. submitsave3 = Envoi ..
  203. submitsave4 = Envoi .. .
  204. submitsave5 = Envoi ...
  205. submitedtxt = Votre Guitare a ete envoyer et sera sous peu verifier veuillez patientez s`'il vous plais.`nVous pouvez re-envoyez votre Guitare avec le meme nom et nom du createur pour mettre les images utiliser a jour en cas de besoin.
  206. defstateprogresstxt = Sur les starting bloc !
  207. browserwarntxt = Cela ouvriras une fenetre de votre navigateur.`nEtes vous sur?
  208. iconopentxt = Choisissez votre icon au format 512x512
  209. iconopentxt2 = Icon Rocksmith 2014 au format 512x512
  210. inlayopentxt = Ouvrire une image de votre Guitare
  211. inlayopentxt2 = Image pour votre Guitare Rocksmith 2014
  212. cgmopentxt = Ouvrire votre Rocksmith 2014 Guitars Maker Template
  213. cgmopentxt2 = Rocksmith 2014 CGM
  214. cgmonlytxt = Seulement les fichier .CGM son accepter !
  215. loadtxt1 = Chargement .
  216. loadtxt2 = Chargement ..
  217. loadtxt3 = Chargement ...
  218. loadtxtp1 = La guitare
  219. loadtxtp2 = a ete chargee.
  220. loadtxtnewp1 = La guitare
  221. loadtxtnewp2 = cree par
  222. loadtxtnewp3 = a ete chargee !
  223. savecgmtxt = Selectionnez le repertoire pour sauvegarder votre guitare personalisee.
  224. errorsavecgmtxt = Vous devez selectionner un dossier pour sauvegarder votre guitares ! (ex: Bureau.)
  225. txtsave1 = Sauvegarde en cours .
  226. txtsave2 = Sauvegarde en cours . .
  227. txtsave3 = Sauvegarde en cours ..
  228. txtsave4 = Sauvegarde en cours .. .
  229. txtsave5 = Sauvegarde en cours ...
  230. sucsavetxt1 = Votre guitares personalisee
  231. sucsavetxt2 = _
  232. sucsavetxt3 = _v
  233. sucsavetxt4 =.cgm a ete sauvegarder ici :
  234. sucsavetxt5 = Profitez en bien :)
  235. warn1parsetxt = Cela ajouteras le Guitare actuel au jeu.`nEtes vous sur?,
  236. parse1 = Generation des images necessaires.
  237. parse2 = Convertions des images aux bon formats et tailles.
  238. parse3 = Verification de l'existence du Multi-Pack
  239. parse3 = Travail fini !
  240. doneconfirm1 = Votre Multi-pack a ete mise a jour !
  241. doneconfirm2 = Votre pack simple a ete cree
  242. packageversiontxt = Selectionnez la/les version voulu. (Au minimum un choix sinon vous n'aurez pas de resultats.)
  243. btnsinpackloc = Pack simple loc ...
  244. installingame = Installer directement dans le jeu ?
  245. }
  246. changeIT()
  247. {
  248. tab1 = Creatore
  249. tab2 = Depositare
  250. tab3 = Riguardo
  251. tab4 = Atrio
  252. tab5 = Caricamento
  253. rs2014dirtextlang = Indefinito
  254. defengname = Nome predefinito
  255. defcreatorname = InserisciIlNome
  256. folderrs2014btntxt = RS2014 direttorio
  257. load = Caricare
  258. save = Memorizzare
  259. custguittemp = Modelli Chitarre personalizzati :
  260. engnametxt = Nome :
  261. creatornametxt = Creatore nome :
  262. coloreinlaytxt = Colore chitarra
  263. gtttxt = Prendi il modello
  264. sumbit2store = Invia per depositare
  265. cgctxt = %ccg% chitarre personalizzati creati.
  266. parsebuttontxt = Crearlo Pack!
  267. parsebuttontxt2 = Creare singolo
  268. warn1submit = Questo invia il tuo intarsio attualmente caricata per depositare.`nSara necessaria una verifica umano per evitare che il contenuto immaturi o proibito.`nSara generale venire effettuato in Weekend.`nVolete continuare?
  269. submitsave1 = Inviato al tribunale .
  270. submitsave2 = Inviato al tribunale . .
  271. submitsave3 = Inviato al tribunale ..
  272. submitsave4 = Inviato al tribunale .. .
  273. submitsave5 = Inviato al tribunale ...
  274. submitedtxt = La chitarra personalizzata e stato inviato e verra presto moderato attendere fino a che non.`nPotete rispedire stesso intarsio con lo stesso nome nome / creatore di aggiornare le immagini in caso di necessita.
  275. defstateprogresstxt = Vroom Vroom ?!
  276. browserwarntxt = Si aprira il navigatore.`nVolete continuare?
  277. slttxtrs2014dir = Selezionare Rocksmith 2014 cartella di installazione.
  278. iconopentxt = Aprire una icona 512x512 Immagine
  279. iconopentxt2 = Rocksmith 2014 Icona 512x512 file immagine
  280. inlayopentxt = Aprire una chitarra personalizzata Immagine
  281. inlayopentxt2 = Rocksmith 2014 file immagine di chitarra personalizzata
  282. cgmopentxt = Aprire un Rocksmith 2014 Guitars Maker Template
  283. cgmopentxt2 = Rocksmith 2014 CGM
  284. cgmonlytxt = E necessario selezionare un file .cgm solo.
  285. loadtxt1 = Caricamento .
  286. loadtxt2 = Caricamento ..
  287. loadtxt3 = Caricamento ...
  288. loadtxtp1 = La chitarra
  289. loadtxtp2 = e stato caricato!
  290. loadtxtnewp1 = La chitarra
  291. loadtxtnewp2 = fatto da
  292. loadtxtnewp3 = e stato caricato!
  293. savecgmtxt = Select folder to save the custom guitars.
  294. errorsavecgmtxt = You need to select a folder to save your template (ex: Desktop.)
  295. txtsave1 = Salvaguardare .
  296. txtsave2 = Salvaguardare . .
  297. txtsave3 = Salvaguardare ..
  298. txtsave4 = Salvaguardare .. .
  299. txtsave5 = Salvaguardare ...
  300. sucsavetxt1 = La chitarra personalizzata
  301. sucsavetxt2 = _
  302. sucsavetxt3 = _v
  303. sucsavetxt4 =.cgm come sono stati salvati qui :
  304. sucsavetxt5 = Godere :)
  305. warn1parsetxt = Questo aggiungera la chitarra personalizzata corrente essere sicuro che questo sia corretto.`nVolete continuare?,
  306. parse1 = Generazione bisogno di file di immagini.
  307. parse2 = Conversione immagine alla corretta dimensione e formato
  308. parse3 = Controllare l'esistenza di Multi-Pack
  309. parse3 = Lavoro finito!
  310. doneconfirm1 = Multi-pack e stato aggiornato!
  311. doneconfirm2 = Il pacco singolo e stato creato
  312. packageversiontxt = Selezionare il / la versione desiderata. (Almeno una scelta altrimenti non sara possibile ottenere risultati.)
  313. btnsinpackloc = Pacchetto loc singolo ...
  314. installingame = Installato direttamente nel gioco ?
  315. }
  316. changeSP()
  317. {
  318. tab1 = Creador
  319. tab2 = Cobertizo
  320. tab3 = Acerca de
  321. tab4 = Lobby
  322. tab5 = Sobreprima
  323. rs2014dirtextlang = Indefinido
  324. defengname = El nombre por defecto
  325. defcreatorname = PongaSuNombreAqui
  326. folderrs2014btntxt = RS2014 Directorio
  327. load = Carga
  328. save = Guardar
  329. custguittemp = Guitarra de la aduana :
  330. engnametxt = Nombre :
  331. creatornametxt = Nombre del Creador :
  332. coloreinlaytxt = Color de la guitarra ?
  333. gtttxt = Haga que el modelo
  334. sumbit2store = Enviar a arrojar
  335. cgctxt = %ccg% guitarras personalizadas creadas
  336. parsebuttontxt = Lo cree !
  337. parsebuttontxt2 = Crear sola !
  338. warn1submit = Esto enviara su guitarra actual al depositario.`nSe comprobara con humanidad para evitar el contenido chocante o prohibido.`nUsualmente se realiza durante el fin de semana.`nUsted desea continuar?
  339. submitsave1 = Envio .
  340. submitsave2 = Envio . .
  341. submitsave3 = Envio ..
  342. submitsave4 = Envio .. .
  343. submitsave5 = Envio ...
  344. submitedtxt = Su guitarra ha sido enviado y en breve comprobar si te gusto por favor espere.`nSe puede volver a enviar su guitarra con el mismo nombre y el nombre del creador de poner las imagenes utilizadas hasta la fecha en caso de necesidad.
  345. defstateprogresstxt = Listo para despegar !
  346. browserwarntxt = Esto abrira una ventana del navegador.`n?Esta usted en
  347. iconopentxt = Seleccione el icono de formato 512x512
  348. iconopentxt2 = Icono formato Rocksmith 2014 512x512
  349. inlayopentxt = Tome una imagen de su guitarra
  350. inlayopentxt2 = Imagen para su guitarra Rocksmith 2014
  351. cgmopentxt = Tomar su Rocksmith 2014 Guitars Maker Template
  352. cgmopentxt2 = Rocksmith 2014 CGM
  353. cgmonlytxt = Solo .CGM aceptada !
  354. loadtxt1 = Corte .
  355. loadtxt2 = Corte ..
  356. loadtxt3 = Corte ...
  357. loadtxtp1 = Guitarra
  358. loadtxtp2 = fue acusado.
  359. loadtxtnewp1 = Guitarra
  360. loadtxtnewp2 = creado por
  361. loadtxtnewp3 = fue acusado !
  362. savecgmtxt = Seleccione el directorio para guardar su guitarra personalizada.
  363. errorsavecgmtxt = Debe seleccionar una carpeta para guardar las guitarras ! (ex: Oficina.)
  364. txtsave1 = Ahorro .
  365. txtsave2 = Ahorro . .
  366. txtsave3 = Ahorro ..
  367. txtsave4 = Ahorro .. .
  368. txtsave5 = Ahorro ...
  369. sucsavetxt1 = Sus guitarras personalizadas
  370. sucsavetxt2 = _
  371. sucsavetxt3 = _v
  372. sucsavetxt4 =.cgm ha visitado este ahorro :
  373. sucsavetxt5 = Disfruta de una buena :)
  374. warn1parsetxt = Se anadira a la guitarra actual juego.`n?Esta usted en?,
  375. parse1 = Generacion de imagenes necesarias.
  376. parse2 = Conversiones imagenes con buenos formatos y tamanos.
  377. parse3 = Terminado el trabajo!
  378. doneconfirm1 = Su multi-pack ha sido actualizado!
  379. doneconfirm2 = Tu solo paquete fue creado
  380. packageversiontxt = Seleccione el / la liberacion deseada. (Por lo menos una opcion de lo contrario no obtendra resultados.)
  381. btnsinpackloc = Single Pack loc ...
  382. installingame = Instalado directamente en el juego?
  383. }
  384. changeGR()
  385. {
  386. tab1 = Schopfer
  387. tab2 = Speichern
  388. tab3 = uber
  389. tab4 = Lobby
  390. tab5 = Verladung
  391. rs2014dirtextlang = nicht definiert
  392. defengname = Standardname
  393. defcreatorname = IhrNameHier
  394. folderrs2014btntxt = Verzeichnis RS2014
  395. load = Last
  396. save = Sparen
  397. custguittemp = Gitarre personlich :
  398. engnametxt = Namen :
  399. creatornametxt = Name des Schopfers :
  400. coloreinlaytxt = Gitarre Farbe ?
  401. gtttxt = Mit Vorlage
  402. sumbit2store = Senden auf Speichern
  403. cgctxt = %ccg% Gitarre erstellt
  404. parsebuttontxt = Ich sie erstellt
  405. parsebuttontxt2 = Neues Einzel
  406. warn1submit = Dies wird Ihre aktuelle Kanal auf Speichern schicken.`nEs wird uberpruft, um menschenwurdig schockierende Inhalte zu verhindern oder verboten.`nIn der Regel am Wochenende getan.`nSie wollen weiter?
  407. submitsave1 = Sendung .
  408. submitsave2 = Sendung . .
  409. submitsave3 = Sendung ..
  410. submitsave4 = Sendung .. .
  411. submitsave5 = Sendung ...
  412. submitedtxt = Ihre Gitarre wurde gesendet und wird bald nach, wenn Sie mich mogen Bitte warten.`nSie konnen wieder senden Sie Ihre Gitarre mit dem gleichen Namen und den Namen des Schopfers, um die bisher verwendeten Bilder bei Bedarf gestellt.
  413. defstateprogresstxt = Bereit zu arbeiten !
  414. browserwarntxt = Dies soll ein Browser-Fenster offnen.`nSind Sie auf?
  415. iconopentxt = Wahlen Sie Ihre Icon-Grose auf 512x512
  416. iconopentxt2 = Icon Rocksmith 2014 Grose 512x512
  417. inlayopentxt = Ouvrire ein Bild von Ihrer Gitarre
  418. inlayopentxt2 = Bild fur Ihre Gitarre Rocksmith 2014
  419. cgmopentxt = offnen Sie Ihre Rocksmith 2014 Guitars Maker Template
  420. cgmopentxt2 = Rocksmith 2014 CGM
  421. cgmonlytxt = Nur .CGM akzeptieren sein !
  422. loadtxt1 = Verladung .
  423. loadtxt2 = Verladung ..
  424. loadtxt3 = Verladung ...
  425. loadtxtp1 = Die Gitarre war verantwortlich
  426. loadtxtp2 = .
  427. loadtxtnewp1 = Die
  428. loadtxtnewp2 = Gitarre erstellt von
  429. loadtxtnewp3 = war bela
  430. savecgmtxt = Wahlen Sie das Verzeichnis, um Ihre benutzerdefinierten Gitarre zu speichern.
  431. errorsavecgmtxt = Sie mussen einen Ordner auswahlen, um die Gitarren zu sparen ! (ex: Buro.)
  432. txtsave1 = Rettung .
  433. txtsave2 = Rettung . .
  434. txtsave3 = Rettung ..
  435. txtsave4 = Rettung .. .
  436. txtsave5 = Rettung ...
  437. sucsavetxt1 = Ihre personlichen Gitarren
  438. sucsavetxt2 = _
  439. sucsavetxt3 = _v
  440. sucsavetxt4 =.cgm hat hier gespeichert :
  441. sucsavetxt5 = Profitieren Sie von der guten :)
  442. warn1parsetxt = Er setzt die Gitarre an den aktuellen Spiel hinzufugen.`nSind Sie auf?,
  443. parse1 = Die Erzeugung der notwendigen Bilder.
  444. parse2 = Umbauten Bilder mit guten Formaten und Grosen.
  445. parse3 = Fertige Arbeit!
  446. doneconfirm1 = Ihr Multi-Pack wurde aktualisiert!
  447. doneconfirm2 = Ihre Einzelpackung erstellt wurde
  448. packageversiontxt = Wahlen Sie den / die gewunschten Freisetzungs. (Mindestens eine Wahl sonst werden Sie nicht Resultate.)
  449. btnsinpackloc = Single Pack loc ...
  450. installingame = Direkt in das Spiel installiert ?
  451. }
  452. changeJP()
  453. {
  454. tab1 = 創造主
  455. tab2 = 格納
  456. tab3 = およそ
  457. tab4 = ロビー
  458. tab5 = 荷重
  459. rs2014dirtextlang = 未定義
  460. defengname = 英語のデフォルト名
  461. defcreatorname = 入力あなたの名前ここで
  462. folderrs2014btntxt = ディレクトリ RS2014
  463. load = 負荷
  464. save = セーブ
  465. custguittemp = カスタムギターのテンプレート :
  466. engnametxt = 英語名 :
  467. creatornametxt = 作成者名 :
  468. coloreinlaytxt = 色のインレイ
  469. gtttxt = テンプレートを取得
  470. sumbit2store = 保管するために提出する
  471. cgctxt = %ccg% カスタムギターを作成.
  472. parsebuttontxt = それを作成!
  473. parsebuttontxt2 = シングルの作成
  474. warn1submit = これは保存するためにあなたの現在ロードされているインレイをお送りします.`nそれが未熟または禁じコンテンツを防ぐために、人間の検証が必要になります.`nこれは、一般的に週末に行われます.`n継続したい?
  475. submitsave1 = 節約 .
  476. submitsave2 = 節約 . .
  477. submitsave3 = 節約 ..
  478. submitsave4 = 節約 .. .
  479. submitsave5 = 節約 ...
  480. submitedtxt = あなたのインレイは、それまで待っててください、送信されており、まもなく緩和されます.`nあなたはあなたがそれを必要とする場合に、画像を更新するために、同じ名前と作成者名と同じインレイを送り返すことができます.
  481. defstateprogresstxt = 行く準備ができて!
  482. browserwarntxt = これは、ブラウザを開きます.`n続けたいですか?
  483. slttxtrs2014dir = ROCKSMITH 2014 インストールフォルダの選択.
  484. iconopentxt = アイコン 512×512 画像を開く
  485. iconopentxt2 = ROCKSMITH 2014 アイコン 512×512 の画像ファイル
  486. inlayopentxt = インレイの画像を開く
  487. inlayopentxt2 = ROCKSMITH 2014 インレイの画像ファイル
  488. cgmopentxt = ROCKSMITH 2014 ギターメーカーのテンプレートを開く
  489. cgmopentxt2 = Rocksmith 2014 CGM
  490. cgmonlytxt = あなたが選択する必要があります .CGM のみ.
  491. loadtxt1 = 荷重 .
  492. loadtxt2 = 荷重 ..
  493. loadtxt3 = 荷重 ...
  494. loadtxtp1 = ギター
  495. loadtxtp2 = ロードされている!
  496. loadtxtnewp1 = ギター
  497. loadtxtnewp2 =
  498. loadtxtnewp3 = ロードされている!
  499. savecgmtxt = カスタムギターを保存するフォルダを選択します。
  500. errorsavecgmtxt = あなたのテンプレートを保存するフォルダを選択する必要があります (例 : デスクトップ)
  501. txtsave1 = 節約 .
  502. txtsave2 = 節約 . .
  503. txtsave3 = 節約 ..
  504. txtsave4 = 節約 .. .
  505. txtsave5 = 節約 ...
  506. sucsavetxt1 = カスタムギター
  507. sucsavetxt2 = _
  508. sucsavetxt3 = _v
  509. sucsavetxt4 =.cgm ここに保存されてなど :
  510. sucsavetxt5 = 楽しむ :)
  511. warn1parsetxt = これは、現在のインレイが、これが正しいことを確認してください追加します.`n継続したい?,
  512. parse1 = 生成、画像ファイルを必要としてい.
  513. parse2 = 適切なサイズとフォーマットにイメージを変換する
  514. parse3 = 仕事はやった!
  515. doneconfirm1 = あなた GuitarInlayPack は次のように更新されて!
  516. doneconfirm2 = シングル·ギターインレイパックは、次のように作成されて!
  517. packageversiontxt = セレクトパッケージ形式 (少なくとも1、そうでなければ何も出力されません。)
  518. btnsinpackloc = シングルパックのLOC ...
  519. installingame = 直接一度だけ行わ試合にインストール?
  520. }
  521. changewdb()
  522. {
  523. SetWorkingDir %A_ScriptDir%
  524. }
  525. changewdp()
  526. {
  527. SetWorkingDir %A_ScriptDir%\ressources\packer
  528. }
  529. changelangtext1 = Change the language to English ?`nChanger la langue en Anglais?`nCambiar el idioma de Ingles?`nAndern Sie die Sprache auf Englisch?`nCambiare la lingua inglese?`n?????p????X????????H
  530. changelangtext2 = Change the language to French ?`nChanger la langue en Francais?`nCambiar el idioma de frances?`nAndern Sie die Sprache auf Franzosisch?`nCambiare la lingua francese?`n?t?????X????????X????????H
  531. changelangtext3 = Change the language to Italian ?`nChanger la langue en Italien?`nCambiar el idioma en italiano?`nSprache in der italienischen andern?`nCambiare lingua in italiano?`n?C?^???A????X????????H
  532. changelangtext4 = Change the language to Spanish ?`nChanger la langue en Espagnole?`nCambiar el idioma a espanol?`nAndern Sie die Sprache auf Spanisch?`nCambiare la lingua spagnola?`n?X?y?C??????????X????????H
  533. changelangtext5 = Change the language to German ?`nChanger la langue en Allemand?`nCambiar el idioma a aleman?`nAndern Sie die Sprache auf Deutsch?`nCambiare la lingua tedesca?`n?????h?C?c????X????????H
  534. changelangtext6 = Change the language to Japanese ?`nChanger la langue en Japonais?`nCambiar el idioma de japones?`nAndern Sie die Sprache auf Japanisch?`nCambiare la lingua giapponese?`n???????{????X????????H
  535. lbar = 20
  536. ltext = Preparing files.
  537. GuiControl,99:,loadingbar, %lbar%
  538. GuiControl,99:,loadtext, %ltext%
  539. FileCreateDir, %A_ScriptDir%\ressources\images
  540. FileCreateDir, %A_ScriptDir%\ressources\packer
  541. TabColors_Tab1=
  542. TabColors_Tab2=
  543. TabColors_Tab3=
  544. TabColors_Tab4=
  545. TabColors_Tab5=
  546. lbar = 25
  547. ltext = Generating required files!
  548. GuiControl,99:,loadingbar, %lbar%
  549. GuiControl,99:,loadtext, %ltext%
  550. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\arrowLR.png, %A_ScriptDir%\ressources\images\arrowLR.png
  551. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\arrowUD.png, %A_ScriptDir%\ressources\images\arrowUD.png
  552. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\icon.png, %A_ScriptDir%\ressources\images\icon.png
  553. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\inlay_preview.png, %A_ScriptDir%\ressources\images\inlay_preview.png
  554. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\rocksmith_2014_logo.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo.png
  555. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\rocksmith_2014_logo_graded.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
  556. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\rocksmith_2014_logo_inlays.png, %A_ScriptDir%\ressources\images\rocksmith_2014_logo_inlays.png
  557. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\softicon.ico, %A_ScriptDir%\ressources\images\softicon.ico
  558. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\avatar.gif, %A_ScriptDir%\ressources\images\avatar.gif
  559. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\facebook_icon.png, %A_ScriptDir%\ressources\images\facebook_icon.png
  560. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\intro_sequence_bg.png, %A_ScriptDir%\ressources\images\intro_sequence_bg.png
  561. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\intro_studio_logos.png, %A_ScriptDir%\ressources\images\intro_studio_logos.png
  562. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\introsequence_i11.png, %A_ScriptDir%\ressources\images\introsequence_i11.png
  563. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\ubisoft_logo.png, %A_ScriptDir%\ressources\images\ubisoft_logo.png
  564. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\gamebryo_logo.png, %A_ScriptDir%\ressources\images\gamebryo_logo.png
  565. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\flag-france-M.jpg, %A_ScriptDir%\ressources\images\flag-france-M.jpg
  566. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\flag-germany-M.jpg, %A_ScriptDir%\ressources\images\flag-germany-M.jpg
  567. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\flag-japan-M.jpg, %A_ScriptDir%\ressources\images\flag-japan-M.jpg
  568. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\flag-italy-M.jpg, %A_ScriptDir%\ressources\images\flag-italy-M.jpg
  569. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\flag-spain-M.jpg, %A_ScriptDir%\ressources\images\flag-spain-M.jpg
  570. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\images\flag-united-kingdom-M.jpg, %A_ScriptDir%\ressources\images\flag-united-kingdom-M.jpg
  571. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\7za.exe, %A_ScriptDir%\ressources\packer\7za.exe
  572. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\NDesk.Options.dll, %A_ScriptDir%\ressources\packer\NDesk.Options.dll
  573. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\nvdxt.exe, %A_ScriptDir%\ressources\packer\nvdxt.exe
  574. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\packer.exe, %A_ScriptDir%\ressources\packer\packer.exe
  575. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\packer.pdb, %A_ScriptDir%\ressources\packer\packer.pdb
  576. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\RocksmithToolkitLib.dll, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.dll
  577. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\RocksmithToolkitLib.pdb, %A_ScriptDir%\ressources\packer\RocksmithToolkitLib.pdb
  578. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\X360.dll, %A_ScriptDir%\ressources\packer\X360.dll
  579. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\X360.xml, %A_ScriptDir%\ressources\packer\X360.xml
  580. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\ZLIB.dll, %A_ScriptDir%\ressources\packer\ZLIB.dll
  581. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\zlib.net.dll, %A_ScriptDir%\ressources\packer\zlib.net.dll
  582. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\topng.exe, %A_ScriptDir%\ressources\packer\topng.exe
  583. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\ps3_encrypt.config, %A_ScriptDir%\ressources\packer\ps3_encrypt.config
  584. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\ps3_decrypt.config, %A_ScriptDir%\ressources\packer\ps3_decrypt.config
  585. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\rebuilder.exe, %A_ScriptDir%\ressources\packer\rebuilder.exe
  586. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\ps3_encrypt.cmd, %A_ScriptDir%\ressources\packer\ps3_encrypt.cmd
  587. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\ps3_decrypt.cmd, %A_ScriptDir%\ressources\packer\ps3_decrypt.cmd
  588. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\tool\core.jar, %A_ScriptDir%\ressources\packer\tool\core.jar
  589. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\tool\dklic_validator.exe, %A_ScriptDir%\ressources\packer\tool\dklic_validator.exe
  590. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\tool\edatlist.txt, %A_ScriptDir%\ressources\packer\tool\edatlist.txt
  591. Fileinstall, C:\Users\Joffrey\Desktop\Rocksmith 2014 Guitar Creator2\ressources\packer\tool\sfk.exe, %A_ScriptDir%\ressources\packer\tool\sfk.exe
  592. lbar = 30
  593. ltext = Reading memories. . .
  594. GuiControl,99:,loadingbar, %lbar%
  595. GuiControl,99:,loadtext, %ltext%
  596. IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  597. If RS2014DIR = ERROR
  598. {
  599.     IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  600.     IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  601.     GuiControl,, rs2014dirtext, Undefinied.
  602.    
  603. } else {
  604.     IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  605.    
  606. }
  607. If RS2014DIR =
  608. {
  609.     IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  610.     IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  611.     GuiControl,, rs2014dirtext, Undefinied.
  612. } else {
  613.     IniRead, RS2014DIR, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  614.    
  615. }
  616. IniRead, locinstallpack, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  617. If locinstallpack = ERROR
  618. {
  619.     IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  620.     IniRead, locinstallpack, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  621.     GuiControl,, locofpackinstall, Undefinied.
  622.    
  623. } else {
  624.     IniRead, locinstallpack, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  625.    
  626. }
  627. If locinstallpack =
  628. {
  629.     IniWrite, Undefinied, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  630.     IniRead, locinstallpack, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  631.     GuiControl,, locofpackinstall, Undefinied.
  632. } else {
  633.     IniRead, locinstallpack, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  634.    
  635. }
  636. IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
  637. IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
  638.  
  639. If ccg = ERROR
  640. {
  641.     IniWrite, 0, CustomGuitarList.ini, NumberInstance, NumberSet
  642.     IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
  643. } else {
  644.     IniRead, ccg, CustomGuitarList.ini, NumberInstance, NumberSet
  645. }
  646. If ccg2 = ERROR
  647. {
  648.     IniWrite, 1000000, CustomGuitarList.ini, NumberInstance, NumberGuitar
  649.     IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
  650. } else {
  651.     IniRead, ccg2, CustomGuitarList.ini, NumberInstance, NumberGuitar
  652. }
  653. IniRead, language, CustomGuitarList.ini, Language, Language
  654. If language = ERROR
  655. {
  656. changeEN()
  657. IniWrite, ENG, CustomGuitarList.ini, Language, Language
  658. }
  659. If language = ENG
  660. {
  661. changeEN()
  662. }
  663. If language = FRE
  664. {
  665. changeFR()
  666. }
  667. If language = ITA
  668. {
  669. changeIT()
  670. }
  671. If language = SPA
  672. {
  673. changeSP()
  674. }
  675. If language = GER
  676. {
  677. changeGR()
  678. }
  679. If language = JAP
  680. {
  681. changeJP()
  682. }
  683. lbar = 40
  684. ltext = Preparing required environnement.
  685. GuiControl,99:,loadingbar, %lbar%
  686. GuiControl,99:,loadtext, %ltext%
  687. IDString = a0b1c2d3e4f5a6b7c8d9e0f
  688. Random, RDM1, 0x00F000000, 0x00fffffff
  689. ID1 = %IDString%%RDM1%
  690. StringUpper, ID1MAJ, ID1
  691. guitarname      =   %defengname%
  692. DDSInlayfiles   =   %A_ScriptDir%\ressources\images\inlay_preview.png
  693. DDSI512files    =   %A_ScriptDir%\ressources\images\icon.png
  694. Gui, Add, Tab, w100 x3 y+2 h25 w632 AltSubmit gTab vTab
  695.     , %tab1%|%tab2%|%tab3%
  696.     Gosub, Tab
  697.  
  698.  
  699. RandomName(MinLength=4, MaxLength=0)
  700. {  
  701.  
  702.     ;This is a table of probabilities of given letter combinations.
  703.     ;Each list is the probability of any letter coming after the letter that is the variable name.
  704.     ;The 27th value is the probability that the word ends with the current letter.
  705.  
  706.     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
  707.     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
  708.     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
  709.     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
  710.     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
  711.     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
  712.     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
  713.     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
  714.     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
  715.     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
  716.     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
  717.     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
  718.     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
  719.     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
  720.     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
  721.     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
  722.     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
  723.     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
  724.     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
  725.     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
  726.     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
  727.     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
  728.     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
  729.     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
  730.     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
  731.     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
  732.     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
  733.    
  734.  
  735.     ;This allows numerical values to easily be converted to letters.
  736.     Alphabet = ABCDEFGHIJKLMNOPQRSTUVWXYZ
  737.    
  738.     Loop
  739.     {
  740.         ;Checks for the previous letter to determine which set of probabilities to use.
  741.         If (!Word)
  742.             Previous = Start
  743.         Else
  744.             Previous := SubStr(Word, 0, 1)
  745.  
  746.  
  747.         ;Randomly chooses the next letter, based on the probabilities listed above.
  748.         Random, rand, 0.0, 1.0
  749.         Sum = 0
  750.         Next =
  751.         Loop, parse, %Previous%, |
  752.         {
  753.             Sum += A_LoopField
  754.             If (rand<Sum)
  755.             {
  756.                 Next := SubStr(Alphabet, A_Index, 1)
  757.                 Break
  758.             }
  759.         }
  760.  
  761.  
  762.         ;Finishes the word if the word randomly ends or reaches the maximum length.
  763.         If ((!Next AND StrLen(Word)>=MinLength) OR (MaxLength AND StrLen(Word)=MaxLength))
  764.             Break
  765.    
  766.         Word .= Next
  767.     }
  768.    
  769.     StringLower, Word, Word, T
  770.     Return, Word
  771. }
  772. RandomName      =       % RandomName(6,6)
  773. StringLower, RandomName, RandomName
  774. guitarnamesix   =       %RandomName%
  775. creatorname     =       %defcreatorname%
  776. lbar = 70
  777. ltext = Preparing Gui Tab1.
  778. GuiControl,99:,loadingbar, %lbar%
  779. GuiControl,99:,loadtext, %ltext%
  780. Gui, Tab, 1
  781. progresstext = %defstateprogresstxt%
  782. Gui, Add, Picture, x102 y34 w610 h120 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
  783. Gui, Add, Picture, gtren vtren x786 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-united-kingdom-M.jpg
  784. Gui, Add, Picture, gtrfr vtrfr x756 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-france-M.jpg
  785. Gui, Add, Picture, gtrit vtrit x726 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-italy-M.jpg
  786. Gui, Add, Picture, gtres vtres x696 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-spain-M.jpg
  787. Gui, Add, Picture, gtrde vtrde x666 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-germany-M.jpg
  788. Gui, Add, Picture, gtrjp vtrjp x636 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-japan-M.jpg
  789. Gui, Add, Text, x712 y134 w90 h20 , Version : %buildversion%
  790. Gui, Add, Button,gRS2014D vRS2014DB x272 y144 w100 h30, %folderrs2014btntxt%
  791. Gui, Add, Text,vrs2014dirtext x22 y154 w240 h30, %RS2014DIR%
  792.  
  793. Gui, Add, Button,gloadguitar vlg x162 y180 w100 h30 , %load%
  794. Gui, Add, Button,gsaveguitar vsg x272 y180 w100 h30 , %save%
  795. Gui, Add, Text, vcustguittemp2 x22 y187 w140 h30 , %custguittemp%
  796.  
  797. Gui, Add, Text, vengnametxt2 x22 y272 w150 h30, %engnametxt%
  798. Gui, Add, Edit, vnewenglishname x182 y270 w190 h30 , %guitarname%
  799.  
  800. Gui, Add, Text, vcreatortxt x22 y227 w150 h15 , %creatornametxt%
  801. Gui, Add, Edit, vcreatorname x182 y227 w190 h30 , %creatorname%
  802.  
  803. Gui, Add, CheckBox,v24finlay x202 y310 w90 h30, 24 Frets Inlay?
  804. Gui, Add, CheckBox,vcoloredinlay x310 y310 w100 h30, %coloreinlaytxt%
  805. Gui, Add, CheckBox,vfliplr x412 y310 w20 h30,
  806. Gui, Add, Picture, x435 y314 w20 h20 , %A_ScriptDir%\ressources\images\arrowLR.png
  807. Gui, Add, CheckBox,vflipud x490 y310 w20 h30,
  808. Gui, Add, Picture, x513 y314 w20 h20 , %A_ScriptDir%\ressources\images\arrowUD.png
  809.  
  810. Gui, Add, Text, x390 y177 w400 h15 ,_________________________________________________________________
  811. Gui, Add, Text, vversiontxt x400 y154 w370 h30 , %packageversiontxt%
  812. Gui, Add, CheckBox,vpcversion x410 y195 w50 h30, PC
  813. Gui, Add, CheckBox,vmacversion x510 y195 w50 h30, Mac
  814. Gui, Add, CheckBox,vx360version x610 y195 w100 h30, Xbox 360
  815. Gui, Add, CheckBox,vps3version x720 y195 w100 h30, PS3
  816. Gui, Add, Button,gbtnlocinstallpack vbtnpackloc x400 y230 w100 h30, %btnsinpackloc%
  817. Gui, Add, Text, vlocofpackinstall x510 y237 w240 h30, %locinstallpack%
  818.  
  819. Gui, Add, Text, vidtxt x400 y285 w50 h15 , DLC ID :
  820. Gui, Add, DropDownList, vidinput x460 y277 w300 h30 r20, %dlcid%
  821.  
  822. Gui, Add, Picture,gnewiconfiles vnewicon x20 y344 w150 h150 , %DDSI512files%
  823. Gui, Add, Picture,gnewinlayfiles vnewinlay x195 y344 w420 h150 , %DDSInlayfiles%
  824.  
  825. Gui, Add, Button,ggetemplate vgetemplateB x702 y365 w100 h30 , %gtttxt%
  826. Gui, Add, Button,gsubmittostore vsubmittostore x702 y400 w100 h30 , %sumbit2store%
  827. Gui, Add, Button,gparse2 vparse2B x702 y435 w100 h30 , %parsebuttontxt2%
  828. Gui, Add, Button,gparse vparseB x702 y470 w100 h30 , %parsebuttontxt%
  829.  
  830. Gui, Add, Text,vprogresstxt x20 y500 w680 h15 , %progresstext%
  831. Gui, Add, Progress,vprogressbar x12 y518 w790 h30 , %progress%
  832.  
  833. Gui, Add, Picture, gtren vtren4 x786 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-united-kingdom-M.jpg
  834. Gui, Add, Picture, gtrfr vtrfr4 x756 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-france-M.jpg
  835. Gui, Add, Picture, gtrit vtrit4 x726 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-italy-M.jpg
  836. Gui, Add, Picture, gtres vtres4 x696 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-spain-M.jpg
  837. Gui, Add, Picture, gtrde vtrde4 x666 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-germany-M.jpg
  838. Gui, Add, Picture, gtrjp vtrjp4 x636 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-japan-M.jpg
  839. lbar = 85
  840. ltext = Preparing Gui Tab2.
  841. GuiControl,99:,loadingbar, %lbar%
  842. GuiControl,99:,loadtext, %ltext%
  843. Gui, Tab, 2
  844. Gui, Add, Picture, gtren vtren2 x786 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-united-kingdom-M.jpg
  845. Gui, Add, Picture, gtrfr vtrfr2 x756 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-france-M.jpg
  846. Gui, Add, Picture, gtrit vtrit2 x726 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-italy-M.jpg
  847. Gui, Add, Picture, gtres vtres2 x696 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-spain-M.jpg
  848. Gui, Add, Picture, gtrde vtrde2 x666 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-germany-M.jpg
  849. Gui, Add, Picture, gtrjp vtrjp2 x636 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-japan-M.jpg
  850. Gui, Add, Picture, x0 y25 w820 h70 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_inlays.png
  851. Gui, Add, Button,gt2refresh x12 y70 w100 h30, Load the Store
  852. Gui, Add, ActiveX, x0 y109 w815 h480 vMsgBoxActiveX, Shell.Explorer
  853. MsgBoxActiveX.Navigate("http://www.rs2014mods.holdonhosting.net/Inlays/inlays.php")
  854. lbar = 90
  855. ltext = Preparing Gui Tab3.
  856. GuiControl,99:,loadingbar, %lbar%
  857. GuiControl,99:,loadtext, %ltext%
  858. Gui, Tab, 3
  859. Gui, Add, Picture, gtren vtren3 x786 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-united-kingdom-M.jpg
  860. Gui, Add, Picture, gtrfr vtrfr3 x756 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-france-M.jpg
  861. Gui, Add, Picture, gtrit vtrit3 x726 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-italy-M.jpg
  862. Gui, Add, Picture, gtres vtres3 x696 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-spain-M.jpg
  863. Gui, Add, Picture, gtrde vtrde3 x666 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-germany-M.jpg
  864. Gui, Add, Picture, gtrjp vtrjp3 x636 y2 w28 h20 , %A_ScriptDir%\ressources\images\flag-japan-M.jpg
  865. Gui, Add, Picture, x2 y39 w820 h170 , %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
  866. Gui, Add, Picture, gbaousmithy x142 y279 w100 h100 , %A_ScriptDir%\ressources\images\avatar.gif
  867. 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 remain to there respective owners!
  868. Gui, Font, S45 C2a2a2a
  869. Gui, Add, Text,gbaousmithy2 x252 y299 w400 h60, %A_Space%%A_Space%Baoulettes
  870. Gui, Font, S08 C000000
  871. Gui, Add, Picture, gfacebookbaou x592 y279 w100 h100 , %A_ScriptDir%\ressources\images\facebook_icon.png
  872. Gui, Add, Text, x-18 y379 w920 h30 , _______________________________________________________________________________________________________________________________________________
  873. Gui, Add, Text, x12 y429 w110 h20 , Nvidia DDS cmd tool :
  874. Gui, Add, Button,gabout1 x132 y419 w100 h30 , Site page
  875. Gui, Add, Text, x52 y479 w70 h20 , 7zip cmd tool :
  876. Gui, Add, Button,gabout2 x382 y419 w100 h30 , Site page
  877. Gui, Add, Text, x262 y429 w110 h20 , Nconvert cmd tool :
  878. Gui, Add, Button,gabout3 x132 y469 w100 h30 , Site page
  879. Gui, Add, Text, x272 y479 w100 h20 , Rocksmith toolkit :
  880. Gui, Add, Button,gabout4 x382 y469 w100 h30 , Site page
  881. Gui, Add, Text,+center x490 y399 w180 h70 , @2013 Baoulettes`nRocksmith and Rocksmith 2014 logo/name are Ubisoft trademarks.`nThank to Rocksmith and Smithy's Anvil community !`n
  882. Gui, Add, Text,+center x660 y399 w150 h100 , - Translation thanks to -`nEnglish : Baoulettes`nFrench : Baoulettes`nItalian : Google Translate`nSpanish : Google Translate`nGerman : Google Translate`nJapanese : Google Translate
  883. Gui, Add, Button,gabout5 x500 y469 w150 h30 , Smithy's Anvil help thread
  884. Gui, Add, Progress,vprogressbar2 x12 y518 w680 h30 , %progress%
  885. lbar = 100
  886. ltext = It is coming !.
  887. GuiControl,99:,loadingbar, %lbar%
  888. GuiControl,99:,loadtext, %ltext%
  889. sleep 1500
  890. Gui,99:Destroy
  891. Gui, Show, h560 w816, %softname% - v%buildversion%
  892. return
  893.  
  894. t2refresh:
  895. MsgBoxActiveX.Refresh()
  896. return
  897.  
  898. btnlocinstallpack:
  899. disableUI()
  900. FileSelectFolder, locinstallpack,, 3, Select single pack folder
  901. IniWrite, %locinstallpack%, CustomGuitarList.ini, Rocksmith2014SPackDirectory, Rocksmith2014Spackdir
  902. If locinstallpack = ERROR
  903. {
  904.     locinstallpack = Undefinied
  905.     GuiControl,, locofpackinstall, %locinstallpack%
  906.     enableUI()
  907. } else {
  908.     GuiControl,, locofpackinstall, %locinstallpack%
  909.     enableUI()
  910. }
  911. If locinstallpack =
  912. {
  913.     locinstallpack = Undefinied
  914.     GuiControl,, locofpackinstall, %locinstallpack%
  915.     enableUI()
  916. } else {
  917.     GuiControl,, locofpackinstall, %locinstallpack%
  918.     enableUI()
  919. }
  920. return
  921.  
  922. changebg:
  923. FileSelectFile, BGfiles, 3, , Choise a loading background image (1280x720), Loading background image (*.tga; *.png)
  924. If BGfiles =
  925. {
  926.     BGfiles = %A_ScriptDir%\ressources\images\intro_sequence_bg.png
  927.     GuiControl,, bgimg, %BGfiles%
  928.     GuiControl,, bgimg2, %BGfiles%
  929.     GuiControl,, bgimg3, %BGfiles%
  930.     GuiControl,, bgimg4, %BGfiles%
  931.     GuiControl,, bgimg5, %BGfiles%
  932. } else {
  933.     GuiControl,, bgimg, %BGfiles%
  934.     GuiControl,, bgimg2, %BGfiles%
  935.     GuiControl,, bgimg3, %BGfiles%
  936.     GuiControl,, bgimg4, %BGfiles%
  937.     GuiControl,, bgimg5, %BGfiles%
  938. }
  939. If BGfiles = ERROR
  940. {
  941.     BGfiles = %A_ScriptDir%\ressources\images\intro_sequence_bg.png
  942.     GuiControl,, bgimg, %BGfiles%
  943.     GuiControl,, bgimg2, %BGfiles%
  944.     GuiControl,, bgimg3, %BGfiles%
  945.     GuiControl,, bgimg4, %BGfiles%
  946.     GuiControl,, bgimg5, %BGfiles%
  947. } else {
  948.     GuiControl,, bgimg, %BGfiles%
  949.     GuiControl,, bgimg2, %BGfiles%
  950.     GuiControl,, bgimg3, %BGfiles%
  951.     GuiControl,, bgimg4, %BGfiles%
  952.     GuiControl,, bgimg5, %BGfiles%
  953. }
  954. return
  955. changeubilogo:
  956. FileSelectFile, ubilogofiles, 3, , Choise an Ubisoft logo image (512x512), Ubisoft logo image (*.tga; *.png)
  957. If ubilogofiles =
  958. {
  959.     ubilogofiles = %A_ScriptDir%\ressources\images\ubisoft_logo.png
  960.     GuiControl,, ubilogoimg, %ubilogofiles%
  961. } else {
  962.     GuiControl,, ubilogoimg, %ubilogofiles%
  963. }
  964. If ubilogofiles = ERROR
  965. {
  966.     ubilogofiles = %A_ScriptDir%\ressources\images\ubisoft_logo.png
  967.     GuiControl,, ubilogoimg, %ubilogofiles%
  968. } else {
  969.     GuiControl,, ubilogoimg, %ubilogofiles%
  970. }
  971. return
  972. changestudio:
  973. FileSelectFile, studiofiles, 3, , Choise a loading studio image (1280x720), Loading studio image (*.tga; *.png)
  974. If studiofiles =
  975. {
  976.     studiofiles = %A_ScriptDir%\ressources\images\intro_studio_logos.png
  977.     GuiControl,, studioimg, %studiofiles%
  978. } else {
  979.     GuiControl,, studioimg, %studiofiles%
  980. }
  981. If studiofiles = ERROR
  982. {
  983.     studiofiles = %A_ScriptDir%\ressources\images\intro_studio_logos.png
  984.     GuiControl,, studioimg, %studiofiles%
  985. } else {
  986.     GuiControl,, studioimg, %studiofiles%
  987. }
  988. return
  989. changecredit:
  990. FileSelectFile, creditfiles, 3, , Choise a loading credit image (824x620), Loading credit image (*.tga; *.png)
  991. If creditfiles =
  992. {
  993.     creditfiles = %A_ScriptDir%\ressources\images\introsequence_i11.png
  994.     GuiControl,, creditimg, %creditfiles%
  995. } else {
  996.     GuiControl,, creditimg, %creditfiles%
  997. }
  998. If creditfiles = ERROR
  999. {
  1000.     creditfiles = %A_ScriptDir%\ressources\images\introsequence_i11.png
  1001.     GuiControl,, creditimg, %creditfiles%
  1002. } else {
  1003.     GuiControl,, creditimg, %creditfiles%
  1004. }
  1005. return
  1006. changelightspeed:
  1007. FileSelectFile, lightspeedfiles, 3, , Choise a loading lightspeed image (1024x256), Loading lightspeed image (*.tga; *.png)
  1008. If lightspeedfiles =
  1009. {
  1010.     lightspeedfiles = %A_ScriptDir%\ressources\images\gamebryo_logo.png
  1011.     GuiControl,, lightspeedimg, %lightspeedfiles%
  1012. } else {
  1013.     GuiControl,, lightspeedimg, %lightspeedfiles%
  1014. }
  1015. If lightspeedfiles = ERROR
  1016. {
  1017.     lightspeedfiles = %A_ScriptDir%\ressources\images\gamebryo_logo.png
  1018.     GuiControl,, lightspeedimg, %lightspeedfiles%
  1019. } else {
  1020.     GuiControl,, lightspeedimg, %lightspeedfiles%
  1021. }
  1022. return
  1023. changetitlescreen:
  1024. FileSelectFile, rslogofiles, 3, , Choise a Title RS logo image (1024x256), Title RS logo image (*.tga; *.png)
  1025. If rslogofiles =
  1026. {
  1027.     rslogofiles = %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
  1028.     GuiControl,, titlerslogoimg, %rslogofiles%
  1029. } else {
  1030.     GuiControl,, titlerslogoimg, %rslogofiles%
  1031. }
  1032. If rslogofiles = ERROR
  1033. {
  1034.     rslogofiles = %A_ScriptDir%\ressources\images\rocksmith_2014_logo_graded.png
  1035.     GuiControl,, titlerslogoimg, %rslogofiles%
  1036. } else {
  1037.     GuiControl,, titlerslogoimg, %rslogofiles%
  1038. }
  1039. return
  1040.  
  1041. tren:
  1042. disableUI()
  1043. MsgBox,4, , %changelangtext1%,
  1044. IfMsgBox, Yes
  1045. {
  1046. changeEN()
  1047. GuiControl,, Tab, |%tab1%|%tab2%|%tab3%
  1048. GuiControl,, RS2014DB, %folderrs2014btntxt%
  1049. GuiControl,, lg, %load%
  1050. GuiControl,, sg, %save%
  1051. GuiControl,, custguittemp2, %custguittemp%
  1052. GuiControl,, engnametxt2, %engnametxt%
  1053. GuiControl,, newenglishname, %defengname%
  1054. GuiControl,, versiontxt, %packageversiontxt%
  1055. GuiControl,, btnpackloc, %btnsinpackloc%
  1056. GuiControl,, autoinstall, %installingame%
  1057. GuiControl,, defaultname, %guitarname%
  1058. GuiControl,, creatortxt, %creatornametxt%
  1059. GuiControl,, creatorname, %defcreatorname%
  1060. GuiControl,, coloredinlay, %coloreinlaytxt%
  1061. GuiControl,, getemplateB, %gtttxt%
  1062. GuiControl,, submittostore, %sumbit2store%
  1063. GuiControl,, customcounter, %cgctxt%
  1064. GuiControl,, progresstxt, %defstateprogresstxt%
  1065. GuiControl,, parseB, %parsebuttontxt%
  1066. GuiControl,, parse2B, %parsebuttontxt2%
  1067. IniWrite, ENG, CustomGuitarList.ini, Language, Language
  1068. GuiControl,, progressbar, %progress%
  1069. GuiControl,, progressbar2, %progress%
  1070. GuiControl,, progresstxt, %progresstext%
  1071. enableUI()
  1072. return
  1073. }
  1074. IfMsgBox, No
  1075. {
  1076. enableUI()
  1077. return
  1078. }
  1079. trfr:
  1080. disableUI()
  1081. MsgBox, 4, , %changelangtext2%,
  1082. {
  1083. changeFR()
  1084. GuiControl,, Tab, |%tab1%|%tab2%|%tab3%
  1085. GuiControl,, RS2014DB, %folderrs2014btntxt%
  1086. GuiControl,, lg, %load%
  1087. GuiControl,, sg, %save%
  1088. GuiControl,, custguittemp2, %custguittemp%
  1089. GuiControl,, engnametxt2, %engnametxt%
  1090. GuiControl,, newenglishname, %defengname%
  1091. GuiControl,, defaultname, %guitarname%
  1092. GuiControl,, creatortxt, %creatornametxt%
  1093. GuiControl,, creatorname, %defcreatorname%
  1094. GuiControl,, coloredinlay, %coloreinlaytxt%
  1095. GuiControl,, getemplateB, %gtttxt%
  1096. GuiControl,, submittostore, %sumbit2store%
  1097. GuiControl,, customcounter, %cgctxt%
  1098. GuiControl,, progresstxt, %defstateprogresstxt%
  1099. GuiControl,, parseB, %parsebuttontxt%
  1100. GuiControl,, parse2B, %parsebuttontxt2%
  1101. GuiControl,, versiontxt, %packageversiontxt%
  1102. GuiControl,, btnpackloc, %btnsinpackloc%
  1103. GuiControl,, autoinstall, %installingame%
  1104. IniWrite, FRE, CustomGuitarList.ini, Language, Language
  1105. GuiControl,, progressbar, %progress%
  1106. GuiControl,, progressbar2, %progress%
  1107. GuiControl,, progresstxt, %progresstext%
  1108. enableUI()
  1109. return
  1110. }
  1111. IfMsgBox, No
  1112. {
  1113. enableUI()
  1114. return
  1115. }
  1116. trit:
  1117. disableUI()
  1118. MsgBox, 4, , %changelangtext3%,
  1119. IfMsgBox, Yes
  1120. {
  1121. changeIT()
  1122. GuiControl,, Tab, |%tab1%|%tab2%|%tab3%
  1123. GuiControl,, RS2014DB, %folderrs2014btntxt%
  1124. GuiControl,, lg, %load%
  1125. GuiControl,, sg, %save%
  1126. GuiControl,, custguittemp2, %custguittemp%
  1127. GuiControl,, engnametxt2, %engnametxt%
  1128. GuiControl,, newenglishname, %defengname%
  1129. GuiControl,, defaultname, %guitarname%
  1130. GuiControl,, creatortxt, %creatornametxt%
  1131. GuiControl,, creatorname, %defcreatorname%
  1132. GuiControl,, coloredinlay, %coloreinlaytxt%
  1133. GuiControl,, getemplateB, %gtttxt%
  1134. GuiControl,, submittostore, %sumbit2store%
  1135. GuiControl,, customcounter, %cgctxt%
  1136. GuiControl,, progresstxt, %defstateprogresstxt%
  1137. GuiControl,, parse2B, %parsebuttontxt2%
  1138. GuiControl,, parseB, %parsebuttontxt%
  1139. IniWrite, ITA, CustomGuitarList.ini, Language, Language
  1140. GuiControl,, progressbar, %progress%
  1141. GuiControl,, progressbar2, %progress%
  1142. GuiControl,, progresstxt, %progresstext%
  1143. enableUI()
  1144. return
  1145. }
  1146. IfMsgBox, No
  1147. {
  1148. enableUI()
  1149. return
  1150. }
  1151. trde:
  1152. disableUI()
  1153. MsgBox, 4, , %changelangtext5%,
  1154. IfMsgBox, Yes
  1155. {
  1156. changeGR()
  1157. GuiControl,, Tab, |%tab1%|%tab2%|%tab3%
  1158. GuiControl,, RS2014DB, %folderrs2014btntxt%
  1159. GuiControl,, lg, %load%
  1160. GuiControl,, sg, %save%
  1161. GuiControl,, custguittemp2, %custguittemp%
  1162. GuiControl,, engnametxt2, %engnametxt%
  1163. GuiControl,, newenglishname, %defengname%
  1164. GuiControl,, defaultname, %guitarname%
  1165. GuiControl,, creatortxt, %creatornametxt%
  1166. GuiControl,, creatorname, %defcreatorname%
  1167. GuiControl,, coloredinlay, %coloreinlaytxt%
  1168. GuiControl,, getemplateB, %gtttxt%
  1169. GuiControl,, submittostore, %sumbit2store%
  1170. GuiControl,, customcounter, %cgctxt%
  1171. GuiControl,, progresstxt, %defstateprogresstxt%
  1172. GuiControl,, parseB, %parsebuttontxt%
  1173. GuiControl,, versiontxt, %packageversiontxt%
  1174. GuiControl,, btnpackloc, %btnsinpackloc%
  1175. GuiControl,, parse2B, %parsebuttontxt2%
  1176. GuiControl,, autoinstall, %installingame%
  1177. IniWrite, GER, CustomGuitarList.ini, Language, Language
  1178. GuiControl,, progressbar, %progress%
  1179. GuiControl,, progressbar2, %progress%
  1180. GuiControl,, progresstxt, %progresstext%
  1181. enableUI()
  1182. return
  1183. }
  1184. IfMsgBox, No
  1185. {
  1186. enableUI()
  1187. return
  1188. }
  1189. tres:
  1190. disableUI()
  1191. MsgBox, 4, , %changelangtext4%,
  1192. IfMsgBox, Yes
  1193. {
  1194. changeSP()
  1195. GuiControl,, Tab, |%tab1%|%tab2%|%tab3%
  1196. GuiControl,, RS2014DB, %folderrs2014btntxt%
  1197. GuiControl,, lg, %load%
  1198. GuiControl,, sg, %save%
  1199. GuiControl,, custguittemp2, %custguittemp%
  1200. GuiControl,, engnametxt2, %engnametxt%
  1201. GuiControl,, newenglishname, %defengname%
  1202. GuiControl,, defaultname, %guitarname%
  1203. GuiControl,, creatortxt, %creatornametxt%
  1204. GuiControl,, creatorname, %defcreatorname%
  1205. GuiControl,, coloredinlay, %coloreinlaytxt%
  1206. GuiControl,, getemplateB, %gtttxt%
  1207. GuiControl,, submittostore, %sumbit2store%
  1208. GuiControl,, customcounter, %cgctxt%
  1209. GuiControl,, progresstxt, %defstateprogresstxt%
  1210. GuiControl,, parseB, %parsebuttontxt%
  1211. GuiControl,, versiontxt, %packageversiontxt%
  1212. GuiControl,, btnpackloc, %btnsinpackloc%
  1213. GuiControl,, parse2B, %parsebuttontxt2%
  1214. GuiControl,, autoinstall, %installingame%
  1215. IniWrite, SPA, CustomGuitarList.ini, Language, Language
  1216. GuiControl,, progressbar, %progress%
  1217. GuiControl,, progressbar2, %progress%
  1218. GuiControl,, progresstxt, %progresstext%
  1219. enableUI()
  1220. return
  1221. }
  1222. IfMsgBox, No
  1223. {
  1224. enableUI()
  1225. return
  1226. }
  1227. trjp:
  1228. disableUI()
  1229. MsgBox, 4, , %changelangtext6%,
  1230. IfMsgBox, Yes
  1231. {
  1232. changeJP()
  1233. GuiControl,, Tab, |%tab1%|%tab2%|%tab3%
  1234. GuiControl,, RS2014DB, %folderrs2014btntxt%
  1235. GuiControl,, lg, %load%
  1236. GuiControl,, sg, %save%
  1237. GuiControl,, custguittemp2, %custguittemp%
  1238. GuiControl,, engnametxt2, %engnametxt%
  1239. GuiControl,, newenglishname, %defengname%
  1240. GuiControl,, defaultname, %guitarname%
  1241. GuiControl,, creatortxt, %creatornametxt%
  1242. GuiControl,, creatorname, %defcreatorname%
  1243. GuiControl,, coloredinlay, %coloreinlaytxt%
  1244. GuiControl,, getemplateB, %gtttxt%
  1245. GuiControl,, submittostore, %sumbit2store%
  1246. GuiControl,, customcounter, %cgctxt%
  1247. GuiControl,, progresstxt, %defstateprogresstxt%
  1248. GuiControl,, parseB, %parsebuttontxt%
  1249. GuiControl,, parse2B, %parsebuttontxt2%
  1250. GuiControl,, versiontxt, %packageversiontxt%
  1251. GuiControl,, btnpackloc, %btnsinpackloc%
  1252. GuiControl,, autoinstall, %installingame%
  1253. IniWrite, JAP, CustomGuitarList.ini, Language, Language
  1254. GuiControl,, progressbar, %progress%
  1255. GuiControl,, progressbar2, %progress%
  1256. GuiControl,, progresstxt, %progresstext%
  1257. enableUI()
  1258. return
  1259. }
  1260. IfMsgBox, No
  1261. {
  1262. enableUI()
  1263. return
  1264. }
  1265.  
  1266. about1:
  1267. MsgBox, 4, , %browserwarntxt%,
  1268. IfMsgBox, Yes
  1269. run, http://www.nvidia.com/content/global/global.php
  1270. return
  1271. IfMsgBox, No
  1272. return
  1273. about2:
  1274. MsgBox, 4, , %browserwarntxt%,
  1275. IfMsgBox, Yes
  1276. run, http://www.xnview.com/en/nconvert.php
  1277. return
  1278. IfMsgBox, No
  1279. return
  1280. about3:
  1281. MsgBox, 4, , %browserwarntxt%,
  1282. IfMsgBox, Yes
  1283. run, http://www.7-zip.org/
  1284. return
  1285. IfMsgBox, No
  1286. return
  1287. about4:
  1288. MsgBox, 4, , %browserwarntxt%,
  1289. IfMsgBox, Yes
  1290. run, http://www.rscustom.net/
  1291. return
  1292. IfMsgBox, No
  1293. return
  1294. about5:
  1295. MsgBox, 4, , %browserwarntxt%,
  1296. IfMsgBox, Yes
  1297. run, http://forums.smithyanvil.com/viewtopic.php?id=9409
  1298. return
  1299. IfMsgBox, No
  1300. return
  1301.  
  1302. Tab:
  1303. GuiControlGet, Tab
  1304. Gui, Color, % TabColors_Tab%Tab%
  1305. return
  1306.  
  1307. submittostore:
  1308. MsgBox, 4, , %warn1submit%,
  1309. IfMsgBox, Yes
  1310. {
  1311. disableUI()
  1312. FileCreateDir, %A_ScriptDir%\tmp
  1313. FileRemoveDir, %A_ScriptDir%\tmp\submitedcgm, 1
  1314. FileCreateDir, %A_ScriptDir%\tmp\submitedcgm
  1315. CGMDIR = %A_ScriptDir%\tmp\submitedcgm
  1316. FileCopy, %DDSInlayfiles%, %CGMDIR%\Inlay.png
  1317. FileCopy, %DDSI512files%, %CGMDIR%\Icon.png
  1318. DDSInlayfiles = %CGMDIR%\Inlay.png
  1319. DDSI512files = %CGMDIR%\Icon.png
  1320. GuiControlGet, newinlay
  1321. GuiControlGet, newicon
  1322. GuiControlGet, 24finlay
  1323. GuiControlGet, creatorname
  1324. GuiControlGet, coloredinlay
  1325. GuiControlGet, newenglishname
  1326. FileCreateDir, %A_ScriptDir%\tmp
  1327. FileRemoveDir, %A_ScriptDir%\tmp\cgmsave, 1
  1328. FileCreateDir, %A_ScriptDir%\tmp\cgmsave
  1329. progress = 10
  1330. progresstext = %submitsave1%
  1331. GuiControl,, progressbar, %progress%
  1332. GuiControl,, progressbar2, %progress%
  1333. GuiControl,, progresstxt, %progresstext%
  1334. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%DDSInlayfiles%" -prescale 1024 512 -quality_highest -max -32 dxt5 -dxt5 -overwrite -alpha -output "%A_ScriptDir%\tmp\cgmsave\inlay.dds",,Hide
  1335. progress = 50
  1336. progresstext = %submitsave2%
  1337. GuiControl,, progressbar, %progress%
  1338. GuiControl,, progressbar2, %progress%
  1339. GuiControl,, progresstxt, %progresstext%
  1340. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%DDSI512files%" -prescale 512 512 -quality_highest -max -32 dxt5 -dxt5 -overwrite -output "%A_ScriptDir%\tmp\cgmsave\icon.dds",,Hide
  1341. progress = 70
  1342. progresstext = %submitsave3%
  1343. GuiControl,, progressbar, %progress%
  1344. GuiControl,, progressbar2, %progress%
  1345. GuiControl,, progresstxt, %progresstext%
  1346. IniWrite, %newenglishname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname
  1347. IniWrite, %coloredinlay%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, coloredinlay
  1348. IniWrite, %creatorname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, creatorname
  1349. if 24finlay = 1
  1350. {
  1351. IniWrite, %24finlay%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, 24frets
  1352. }
  1353. progress = 90
  1354. progresstext = %submitsave4%
  1355. GuiControl,, progressbar, %progress%
  1356. GuiControl,, progressbar2, %progress%
  1357. GuiControl,, progresstxt, %progresstext%
  1358. StringReplace, newenglishname2, newenglishname, %A_SPACE%, _, All
  1359. StringReplace, creatorname2, creatorname, %A_SPACE%, _, All
  1360. progress = 100
  1361. progresstext = %submitsave5%
  1362. GuiControl,, progressbar, %progress%
  1363. GuiControl,, progressbar2, %progress%
  1364. GuiControl,, progresstxt, %progresstext%
  1365. if 24finlay = 1
  1366. {
  1367. newenglishname2 = [24F]%newenglishname2%
  1368. }
  1369. RunWait, %A_ScriptDir%\ressources\packer\7za.exe a "%CGMDIR%\%newenglishname2%_%creatorname2%_v%buildversion%.cgm" "%A_ScriptDir%\tmp\cgmsave\"*,,Hide
  1370. FileCopy, %DDSInlayfiles%, %CGMDIR%\Inlay_%newenglishname2%_%creatorname2%_v%buildversion%.png
  1371. FileCopy, %DDSI512files%, %CGMDIR%\Icon_%newenglishname2%_%creatorname2%_v%buildversion%.png
  1372. sqlfile = INSERT INTO ``inlays`` `(``Name``, ``Createdby``, ``Icon``, ``Inlay``, ``Download```) VALUES`n`('%newenglishname%', '%creatorname%', '<img src="./validated/%creatorname2%/Icon_%newenglishname2%_%creatorname2%_v%buildversion%.png" width="50" height="50" />', '<img src="./validated/%creatorname2%/Inlay_%newenglishname2%_%creatorname2%_v%buildversion%.png" width="200" height="100" />', '<a id="button" href="./validated/%creatorname2%/%newenglishname2%_%creatorname2%_v%buildversion%.cgm"></a>');
  1373. FileAppend, %sqlfile%, %CGMDIR%\%newenglishname2%_%creatorname2%_v%buildversion%.sql
  1374. fcmd = ftcmd.bat
  1375. FileDelete %CGMDIR%\%fcmd%
  1376. FileDelete %CGMDIR%\commands.txt
  1377. ftpacces = ftp -s:"%CGMDIR%\commands.txt"
  1378. FileAppend, %ftpacces%, %CGMDIR%\%fcmd%
  1379. FileAppend,
  1380. (
  1381. open "31.170.166.77"
  1382. u547454057
  1383. shadow123
  1384. cd Inlays
  1385. cd submited
  1386. mkdir %creatorname2%
  1387. cd %creatorname2%
  1388. binary
  1389. put "%CGMDIR%\%newenglishname2%_%creatorname2%_v%buildversion%.cgm"
  1390. put "%CGMDIR%\Inlay_%newenglishname2%_%creatorname2%_v%buildversion%.png"
  1391. put "%CGMDIR%\Icon_%newenglishname2%_%creatorname2%_v%buildversion%.png"
  1392. put "%CGMDIR%\%newenglishname2%_%creatorname2%_v%buildversion%.sql"
  1393. ls -l
  1394. quit
  1395. ), %CGMDIR%\commands.txt
  1396. RunWait, "%CGMDIR%\%fcmd%",,Hide
  1397. FileDelete %CGMDIR%\%fcmd%
  1398. FileDelete %CGMDIR%\commands.txt
  1399. FileRemoveDir, %A_ScriptDir%\tmp\submitedcgm, 1
  1400. msgbox, %submitedtxt%
  1401. progress = 0
  1402. progresstext = %defstateprogresstxt%
  1403. GuiControl,, progressbar, %progress%
  1404. GuiControl,, progressbar2, %progress%
  1405. GuiControl,, progresstxt, %progresstext%
  1406. enableUI()
  1407. return
  1408. }
  1409. IfMsgBox, No
  1410. {
  1411. return
  1412. }
  1413. getemplate:
  1414. MsgBox, 4, , %browserwarntxt%,
  1415. IfMsgBox, Yes
  1416. run, http://s18.postimg.org/u7ap2x8mx/Template_2.png
  1417. return
  1418. IfMsgBox, No
  1419. return
  1420. baousmithy:
  1421. MsgBox, 4, , %browserwarntxt%,
  1422. IfMsgBox, Yes
  1423. run, http://forums.smithyanvil.com/profile.php?id=319
  1424. return
  1425. IfMsgBox, No
  1426. return
  1427. baousmithy2:
  1428. MsgBox, 4, , %browserwarntxt%,
  1429. IfMsgBox, Yes
  1430. run, http://forums.smithyanvil.com/profile.php?id=319
  1431. return
  1432. IfMsgBox, No
  1433. return
  1434. facebookbaou:
  1435. MsgBox, 4, , %browserwarntxt%,
  1436. IfMsgBox, Yes
  1437. run, https://www.facebook.com/pages/Baoulettes/258752740926874
  1438. return
  1439. IfMsgBox, No
  1440. return
  1441.  
  1442. Refreshmahname:
  1443. GuiControlGet, newenglishname
  1444. GuiControl,, defaultname, %newenglishname%
  1445. return
  1446.  
  1447. RS2014D:
  1448. disableUI()
  1449. FileSelectFolder, RS2014DIR,, 3, %slttxtrs2014dir%
  1450. IniWrite, %RS2014DIR%, CustomGuitarList.ini, Rocksmith2014Directory, Rocksmith2014dir
  1451. If RS2014DIR = ERROR
  1452. {
  1453.     RS2014DIR = %rs2014dirtextlang%
  1454.     GuiControl,, rs2014dirtext, %RS2014DIR%
  1455.     enableUI()
  1456. } else {
  1457.     GuiControl,, rs2014dirtext, %RS2014DIR%
  1458.     enableUI()
  1459. }
  1460. If RS2014DIR =
  1461. {
  1462.     RS2014DIR = %rs2014dirtextlang%
  1463.     GuiControl,, rs2014dirtext, %RS2014DIR%
  1464.     enableUI()
  1465. } else {
  1466.     GuiControl,, rs2014dirtext, %RS2014DIR%
  1467.     enableUI()
  1468. }
  1469. return
  1470.  
  1471. newiconfiles:
  1472. disableUI()
  1473. FileSelectFile, DDSI512files, 3, , %iconopentxt%, %iconopentxt2% files (*tga; *.png)
  1474. If DDSI512files =
  1475. {
  1476.     DDSI512files = %A_ScriptDir%\ressources\images\icon.png
  1477.     GuiControl,, newicon, %DDSI512files%
  1478.     enableUI()
  1479. } else {
  1480.     GuiControl,, newicon, %DDSI512files%
  1481.     enableUI()
  1482. }
  1483. If DDSI512files = ERROR
  1484. {
  1485.     DDSI512files = %A_ScriptDir%\ressources\images\icon.png
  1486.     GuiControl,, newicon, %DDSI512files%
  1487.     enableUI()
  1488. } else {
  1489.     GuiControl,, newicon, %DDSI512files%
  1490.     enableUI()
  1491. }
  1492. return
  1493.  
  1494. newinlayfiles:
  1495. disableUI()
  1496. FileSelectFile, DDSInlayfiles, 3, , %inlayopentxt%, %inlayopentxt2% (*.tga; *.png)
  1497. If DDSInlayfiles =
  1498. {
  1499.     DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
  1500.     GuiControl,, newinlay, %DDSInlayfiles%
  1501.     enableUI()
  1502. } else {
  1503.     GuiControl,, newinlay, %DDSInlayfiles%
  1504.     enableUI()
  1505. }
  1506. If DDSInlayfiles = ERROR
  1507. {
  1508.     DDSInlayfiles = %A_ScriptDir%\ressources\images\inlay_preview.png
  1509.     GuiControl,, newinlay, %DDSInlayfiles%
  1510.     enableUI()
  1511. } else {
  1512.     GuiControl,, newinlay, %DDSInlayfiles%
  1513.     GuiControl, enable, RS2014DB
  1514. enableUI()
  1515. }
  1516. return
  1517.  
  1518. loadguitar:
  1519. disableUI()
  1520. FileSelectFile, loadcgm, 3, , %cgmopentxt% , %cgmopentxt2% (*.cgm)
  1521. if loadcgm =
  1522. {
  1523. msgbox, %cgmonlytxt%
  1524. enableUI()
  1525. }
  1526. else
  1527. {
  1528. RandomName      =       % RandomName(6,6)
  1529. StringLower, RandomName, RandomName
  1530. guitarnamesix   =       %RandomName%
  1531. progress = 10
  1532. progresstext = %loadtxt1%
  1533. GuiControl,, progressbar, %progress%
  1534. GuiControl,, progressbar2, %progress%
  1535. GuiControl,, progresstxt, %progresstext%
  1536. FileRemoveDir, %A_ScriptDir%\tmp\cgm, 1
  1537. FileRemoveDir, %A_ScriptDir%\tmp\, 1
  1538. FileCreateDir, %A_ScriptDir%\tmp
  1539. FileCreateDir, %A_ScriptDir%\tmp\cgm
  1540. FileCopy, %loadcgm%, %A_ScriptDir%\tmp\cgm\1.7z
  1541. RunWait, %A_ScriptDir%\ressources\packer\7za.exe x "%A_ScriptDir%\tmp\cgm\1.7z" -o"%A_ScriptDir%\tmp\cgm\*",,Hide
  1542. IniRead, leng, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, guitarname
  1543. IniRead, lcreator, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, creatorname
  1544. IniRead, lcolored, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, coloredinlay
  1545. IniRead, l24frets, %A_ScriptDir%\tmp\cgm\1\setup.smb, Setup, 24frets
  1546. leng = %leng%
  1547. If lcreator = ERROR
  1548. {
  1549. IniRead, leng, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, guitarname
  1550. IniRead, lcreator, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, creatorname
  1551. IniRead, lcolored, %A_ScriptDir%\tmp\cgm\1\setup.cgm, Setup, coloredinlay
  1552. leng = %leng%
  1553. }
  1554. progress = 50
  1555. progresstext = %loadtxt2%
  1556. GuiControl,, progressbar, %progress%
  1557. GuiControl,, progressbar2, %progress%
  1558. GuiControl,, progresstxt, %progresstext%
  1559. RunWait, %A_ScriptDir%\ressources\packer\topng.exe -out png "%A_ScriptDir%\tmp\cgm\1\inlay.dds",,Hide
  1560. progress = 80
  1561. progresstext = %loadtxt3%
  1562. GuiControl,, progressbar, %progress%
  1563. GuiControl,, progressbar2, %progress%
  1564. GuiControl,, progresstxt, %progresstext%
  1565. RunWait, %A_ScriptDir%\ressources\packer\topng.exe -out png "%A_ScriptDir%\tmp\cgm\1\icon.dds",,Hide
  1566. loadinlay = %A_ScriptDir%\tmp\cgm\1\inlay.png
  1567. loadicon = %A_ScriptDir%\tmp\cgm\1\icon.png
  1568. DDSI512files = %loadicon%
  1569. DDSInlayfiles = %loadinlay%
  1570. if lcolored = 1
  1571. {
  1572. coloredinlay = 1
  1573. }
  1574. else
  1575. {
  1576. coloredinlay = 0
  1577. }
  1578. StringReplace, leng, leng, ., _, All
  1579. if l24frets = 1
  1580. {
  1581. GuiControl,, 24finlay, %l24frets%
  1582. }
  1583. GuiControl,, default6name, %guitarnamesix%
  1584. GuiControl,, newenglishname, %leng%
  1585. GuiControl,, coloredinlay, %coloredinlay%
  1586. GuiControl,, newinlay, %DDSInlayfiles%
  1587. GuiControl,, newicon, %DDSI512files%
  1588. If lcreator = ERROR
  1589. {
  1590. GuiControl,, creatorname, UnknowCreator
  1591. msgbox, %loadtxtp1% %leng% %loadtxtp2%
  1592. }
  1593. If lcreator = UnknowCreator
  1594. {
  1595. GuiControl,, creatorname, UnknowCreator
  1596. msgbox, %loadtxtp1% %leng% %loadtxtp2%
  1597. }
  1598. else
  1599. {
  1600. GuiControl,, creatorname, %lcreator%
  1601. msgbox, %loadtxtnewp1% %leng% %loadtxtnewp2% %lcreator% %loadtxtnewp3%
  1602. }
  1603. progress = 0
  1604. progresstext = %defstateprogresstxt%
  1605. GuiControl,, progressbar, %progress%
  1606. GuiControl,, progressbar2, %progress%
  1607. GuiControl,, progresstxt, %progresstext%
  1608. enableUI()
  1609. }
  1610. return
  1611.  
  1612. saveguitar:
  1613. disableUI()
  1614. FileSelectFolder, CGMDIR,, 3, %savecgmtxt%
  1615. if CGMDIR =
  1616. {
  1617. msgbox, %errorsavecgmtxt%
  1618. enableUI()
  1619. }
  1620. else
  1621. {
  1622. GuiControlGet, newinlay
  1623. GuiControlGet, newicon
  1624. GuiControlGet, creatorname
  1625. GuiControlGet, coloredinlay
  1626. GuiControlGet, newenglishname
  1627. GuiControlGet, 24finlay
  1628. FileCreateDir, %A_ScriptDir%\tmp
  1629. FileRemoveDir, %A_ScriptDir%\tmp\cgmsave, 1
  1630. FileCreateDir, %A_ScriptDir%\tmp\cgmsave
  1631. progress = 10
  1632. progresstext = %txtsave1%
  1633. GuiControl,, progressbar, %progress%
  1634. GuiControl,, progressbar2, %progress%
  1635. GuiControl,, progresstxt, %progresstext%
  1636. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%DDSInlayfiles%" -prescale 1024 512 -quality_highest -max -32 dxt5 -dxt5 -overwrite -alpha -output "%A_ScriptDir%\tmp\cgmsave\inlay.dds",,Hide
  1637. progress = 50
  1638. progresstext = %txtsave2%
  1639. GuiControl,, progressbar, %progress%
  1640. GuiControl,, progressbar2, %progress%
  1641. GuiControl,, progresstxt, %progresstext%
  1642. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%DDSI512files%" -prescale 512 512 -quality_highest -max -32 dxt5 -dxt5 -overwrite -output "%A_ScriptDir%\tmp\cgmsave\icon.dds",,Hide
  1643. progress = 70
  1644. progresstext = %txtsave3%
  1645. GuiControl,, progressbar, %progress%
  1646. GuiControl,, progressbar2, %progress%
  1647. GuiControl,, progresstxt, %progresstext%
  1648. IniWrite, %newenglishname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, guitarname
  1649. IniWrite, %coloredinlay%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, coloredinlay
  1650. IniWrite, %creatorname%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, creatorname
  1651. if 24finlay = 1
  1652. {
  1653. IniWrite, %24finlay%, %A_ScriptDir%\tmp\cgmsave\setup.smb, Setup, 24frets
  1654. }
  1655. progress = 90
  1656. progresstext = %txtsave4%
  1657. GuiControl,, progressbar, %progress%
  1658. GuiControl,, progressbar2, %progress%
  1659. GuiControl,, progresstxt, %progresstext%
  1660. StringReplace, newenglishname2, newenglishname, %A_SPACE%, _, All
  1661. StringReplace, newenglishname, newenglishname, ., _, All
  1662. StringReplace, creatorname2, creatorname, %A_SPACE%, _, All
  1663. if 24finlay = 1
  1664. {
  1665. newenglishname2 = [24F]%newenglishname2%
  1666. }
  1667. progress = 100
  1668. progresstext = %txtsave5%
  1669. GuiControl,, progressbar, %progress%
  1670. GuiControl,, progressbar2, %progress%
  1671. GuiControl,, progresstxt, %progresstext%
  1672. RunWait, %A_ScriptDir%\ressources\packer\7za.exe a "%CGMDIR%\%newenglishname2%_%creatorname2%_v%buildversion%.cgm" "%A_ScriptDir%\tmp\cgmsave\""%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  1673.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  1674.     }
  1675.     else
  1676.     {
  1677.         Runwait, %A_ScriptDir%\ressources\packer\topng.exe -overwrite -yflip "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  1678.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  1679.     }
  1680. }
  1681. else
  1682. {
  1683.     if flipud = 0
  1684.     {
  1685.         Runwait, %A_ScriptDir%\ressources\packer\topng.exe -overwrite -xflip "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  1686.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  1687.     }
  1688.     else
  1689.     {
  1690.         Runwait, %A_ScriptDir%\ressources\packer\topng.exe -overwrite -xflip -yflip "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  1691.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  1692.     }
  1693. }
  1694. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.*" -prescale 512 512 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds",,Hide
  1695. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.*" -prescale 256 256 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds",,Hide
  1696. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.*" -prescale 128 128 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds",,Hide
  1697. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.*" -prescale 64 64 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds",,Hide
  1698. progress = 20
  1699. progresstext = %parse3%
  1700. GuiControl,, progresstxt, %progresstext%
  1701. GuiControl,, progressbar, %progress%
  1702. GuiControl,, progressbar2, %progress%
  1703. checkthis = %RS2014DIR%\dlc\GuitarInlayPack_p.psarc
  1704. Random, RDM20, 0x03B9ACA00, 0x2540BE3FF
  1705. Random, RDM21, 0x005F5E100, 0x03B9AC9FF
  1706. Random, RDM22, 0x03B9ACA00, 0x2540BE3FF
  1707. Random, RDM23, 0x03B9ACA00, 0x2540BE3FF
  1708. Random, RDM24, 0x03B9ACA00, 0x2540BE3FF
  1709. Random, RDM25, 0x03B9ACA00, 0x2540BE3FF
  1710. Random, RDM26, 0x03B9ACA00, 0x2540BE3FF
  1711. Random, RDM27, 0x03B9ACA00, 0x2540BE3FF
  1712. rsflat1 =
  1713. (
  1714. <?xml version="1.0" encoding="utf-8"?>
  1715. <model
  1716.   name="RSEnumerable_Guitars"
  1717.   id="%RDM21%">
  1718.   <trait
  1719.     value="Active" />
  1720.   <mixin
  1721.     name="RSEnumerable_Root"
  1722.     id="%RDM20%"
  1723.     type="Active" />
  1724.   <property
  1725.     type="AssetID"
  1726.     name="DecorativeInlays"
  1727.     id="%RDM22%">
  1728.     <set
  1729.       value="" />
  1730.   </property>
  1731.   <property
  1732.     type="AssetID"
  1733.     name="PreviewArtSmall"
  1734.     id="%RDM23%">
  1735.     <set
  1736.       value="" />
  1737.   </property>
  1738.   <property
  1739.     type="AssetID"
  1740.     name="PreviewArtMedium"
  1741.     id="%RDM24%">
  1742.     <set
  1743.       value="" />
  1744.   </property>
  1745.   <property
  1746.     type="AssetID"
  1747.     name="PreviewArtLarge"
  1748.     id="%RDM25%">
  1749.     <set
  1750.       value="" />
  1751.   </property>
  1752.   <property
  1753.     type="AssetID"
  1754.     name="Manifest"
  1755.     id="%RDM26%">
  1756.     <set
  1757.       value="" />
  1758.   </property>
  1759.   <property
  1760.     type="AssetID"
  1761.     name="Header"
  1762.     id="%RDM27%">
  1763.     <set
  1764.       value="" />
  1765.   </property>
  1766. </model>
  1767. )
  1768. rsflat2 =
  1769. (
  1770. <?xml version="1.0" encoding="utf-8"?>
  1771. <model
  1772.   name="RSEnumerable_Root"
  1773.   id="%RDM20%">
  1774.   <trait
  1775.     value="Active" />
  1776.   <property
  1777.     type="AssetID"
  1778.     name="Manifest"
  1779.     id="%RDM26%">
  1780.     <set
  1781.       value="" />
  1782.   </property>
  1783.   <property
  1784.     type="AssetID"
  1785.     name="Header"
  1786.     id="%RDM27%">
  1787.     <set
  1788.       value="" />
  1789.   </property>
  1790. </model>
  1791. )
  1792. If pcversion = 1
  1793. {
  1794. IfNotExist, %checkthis%
  1795. {
  1796. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc
  1797. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\assets
  1798. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\assets\gameplay
  1799. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\assets\gameplay\inlay
  1800. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\flatmodels
  1801. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\flatmodels\rs
  1802. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gamexblocks
  1803. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gamexblocks\nguitars
  1804. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gfxassets
  1805. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gfxassets\rewards
  1806. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gfxassets\rewards\guitar_inlays
  1807. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests
  1808. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars
  1809. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\songs_dlc_multipack
  1810. FileAppend, %rsflat1%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\flatmodels\rs\RSEnumerable_Guitars.flat
  1811. FileAppend, %rsflat2%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\flatmodels\rs\RSEnumerable_Root.flat
  1812. }
  1813. FileCopy, %RS2014DIR%\dlc\GuitarInlayPack_p.psarc, %A_ScriptDir%\backup\GuitarInlayPack_p.psarc
  1814. loop
  1815. {
  1816. ifexist, %A_ScriptDir%\backup\GuitarInlayPack_p.psarc
  1817. break
  1818. }
  1819. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --unpack --input="%A_ScriptDir%\backup" --output="%A_ScriptDir%\tmp",,Hide
  1820. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\appid.appid
  1821. FileAppend, %dlcid2%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\appid.appid
  1822. if 24finlay = 0
  1823. {
  1824. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\assets\gameplay\inlay\inlay_%guitarnamesix%.dds
  1825. TestString = inlay_%guitarnamesix%.dds
  1826. }
  1827. else
  1828. {
  1829. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\assets\gameplay\inlay\inlay_24fret_%guitarnamesix%.dds
  1830. TestString = inlay_24fret_%guitarnamesix%.dds
  1831. }
  1832. Output := StringToHex(TestString)
  1833. Ootput = %Output%
  1834. newhexname = %Output%
  1835. StringReplace newhexname, newhexname, %A_Space%, , All
  1836. filenifname = %guitarnamesix%.nif
  1837. StringToHex(String)
  1838.     {
  1839.     local Old_A_FormatInteger, CharHex, HexString
  1840.    
  1841.     ;Return '0' if the string was blank
  1842.     If !String
  1843.         Return 0
  1844.    
  1845.     ;Save the current Integer format
  1846.     Old_A_FormatInteger := A_FormatInteger
  1847.    
  1848.     ;Set the format of integers to their Hex value
  1849.     SetFormat, INTEGER, H
  1850.    
  1851.     ;Parse the String
  1852.     Loop, Parse, String
  1853.         {
  1854.         ;Get the ASCII value of the Character (will be converted to the Hex value by the SetFormat Line above)
  1855.         CharHex := Asc(A_LoopField)
  1856.    
  1857.         ;Comment out the following line to leave the '0x' intact
  1858.         StringTrimLeft, CharHex, CharHex, 2
  1859.        
  1860.         ;Build the return string
  1861.         HexString .= CharHex . " "
  1862.         }
  1863.     ;Set the integer format to what is was prior to the call
  1864.     SetFormat, INTEGER, %Old_A_FormatInteger%
  1865.    
  1866.     ;Return the string to the caller
  1867.     Return HexString
  1868.     }
  1869. /*
  1870. BinReadWrite.ahk
  1871.  
  1872. Routines to read and write binary data from/to files.
  1873. Based on original functions written by Laszlo
  1874. http://www.autohotkey.com/forum/viewtopic.php?t=4604
  1875.  
  1876. TODO: Perhaps set a lastError variable to explicit the errors.
  1877.  
  1878. // by Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
  1879. // File/Project history:
  1880.  1.03.000 -- 2006/02/15 (PL) -- Moved Bin2Hex & Hex2Bin to DllCallStruct, apply code rules.
  1881.  1.02.000 -- 2006/01/24 (PL) -- Slight change of the API: all functions return -1 if error.
  1882.               Integrated Laszlo suggestions on improving Bin2Hex and Hex2Bin.
  1883.  1.01.000 -- 2006/01/23 (PL) -- Declaration of the local variables, to get access to global
  1884.              WinAPI constants, and for consistency.
  1885.  1.00.000 -- 2006/01/19 (PL) -- Rewrote the functions to separate opening and closing,
  1886.              allowing efficient multiple operations.
  1887. */
  1888.  
  1889. ; WinAPI constants
  1890. INVALID_HANDLE_VALUE = -1
  1891. INVALID_FILE_SIZE = 0xFFFFFFFF
  1892. FILE_BEGIN = 0
  1893. FILE_CURRENT = 1
  1894. FILE_END = 2
  1895.  
  1896. /*
  1897. // Open the file for reading.
  1898. // Return the file handle to provide in further read operations and in the final close operation,
  1899. // or INVALID_HANDLE_VALUE if an error was found.
  1900. */
  1901. OpenFileForRead(_filename)
  1902. {
  1903.     local handle
  1904.  
  1905.     handle := DllCall("CreateFile"
  1906.             , "Str", _filename      ; lpFileName
  1907.             , "UInt", 0x80000000        ; dwDesiredAccess (GENERIC_READ)
  1908.             , "UInt", 3     ; dwShareMode (FILE_SHARE_READ|FILE_SHARE_WRITE)
  1909.             , "UInt", 0     ; lpSecurityAttributes
  1910.             , "UInt", 3     ; dwCreationDisposition (OPEN_EXISTING)
  1911.             , "UInt", 0     ; dwFlagsAndAttributes
  1912.             , "UInt", 0)    ; hTemplateFile
  1913.     If (handle = INVALID_HANDLE_VALUE or handle = 0)
  1914.     {
  1915.         ErrorLevel = -1
  1916.     }
  1917.     IfNotEqual ErrorLevel, 0, Return INVALID_HANDLE_VALUE   ; Couldn't open the file
  1918.     Return handle
  1919. }
  1920.  
  1921. /*
  1922. // Open the file for writing.
  1923. // Return the file handle to provide in further write operations and in the final close operation,
  1924. // or INVALID_HANDLE_VALUE if an error was found.
  1925. */
  1926. OpenFileForWrite(_filename)
  1927. {
  1928.     local handle
  1929.  
  1930.     handle := DllCall("CreateFile"
  1931.             , "Str", _filename      ; lpFileName
  1932.             , "UInt", 0x40000000    ; dwDesiredAccess (GENERIC_WRITE)
  1933.             , "UInt", 3     ; dwShareMode (FILE_SHARE_READ|FILE_SHARE_WRITE)
  1934.             , "UInt", 0     ; lpSecurityAttributes
  1935.             , "UInt", 4     ; dwCreationDisposition (OPEN_ALWAYS: create if not exists)
  1936.             , "UInt", 0     ; dwFlagsAndAttributes
  1937.             , "UInt", 0)    ; hTemplateFile
  1938.     If (handle = INVALID_HANDLE_VALUE or handle = 0)
  1939.     {
  1940.         ErrorLevel = -1
  1941.     }
  1942.     IfNotEqual ErrorLevel, 0, Return INVALID_HANDLE_VALUE   ; Couldn't open the file
  1943.     Return handle
  1944. }
  1945.  
  1946. /*
  1947. // Close the file.
  1948. */
  1949. CloseFile(_handle)
  1950. {
  1951.     local result
  1952.  
  1953.     result := DllCall("CloseHandle"
  1954.             , "UInt", _handle)
  1955.     If (result = 0)
  1956.     {
  1957.         ErrorLevel = -1
  1958.     }
  1959. }
  1960.  
  1961. /*
  1962. // Get the size of the opened file, in bytes.
  1963. // Limited to 4GB, so it is more limited that AHK's FileGetSize.
  1964. // It is here for consistency, and because it accepts a file handle instead of a path.
  1965. //
  1966. // Return the size in bytes, -1 if there was an error.
  1967. */
  1968. GetFileSize(_handle)
  1969. {
  1970.     local fileSize
  1971.  
  1972.     fileSize := DllCall("GetFileSize"
  1973.             , "UInt", _handle
  1974.             , "UInt", 0)
  1975.     If (fileSize = INVALID_FILE_SIZE)
  1976.     {
  1977.         ErrorLevel = -1
  1978.     }
  1979.     IfNotEqual ErrorLevel, 0, Return -1
  1980.     Return fileSize
  1981. }
  1982.  
  1983. /*
  1984. // Move the file pointer in the file to the given offset relative to moveMethod.
  1985. //
  1986. // moveMethod can be FILE_BEGIN, FILE_CURRENT or FILE_END.
  1987. // If moveMethod is -1, nothing is done (default, for operations at current position).
  1988. // To get the current position, call this function with just FILE_CURRENT (null offset).
  1989. // offset can be positive (toward end of the file) or negative (toward start of the file).
  1990. //
  1991. // Return -1 if there was an error, the new file pointer position if OK.
  1992. // Note: Currently it doesn't work for files larger than 2GB...
  1993. */
  1994. MoveInFile(_handle, _moveMethod=-1, _offset=0)
  1995. {
  1996.     local result
  1997.  
  1998.     result = %INVALID_FILE_SIZE%
  1999.     if (_moveMethod != -1)
  2000.     {
  2001.         result := DllCall("SetFilePointer"
  2002.                 , "UInt", _handle       ; hFile
  2003.                 , "Int", _offset        ; lDistanceToMove
  2004.                 , "UInt", 0         ; lpDistanceToMoveHigh
  2005.                 , "UInt", _moveMethod)  ; dwMoveMethod
  2006.         if (result = -1)    ; INVALID_SET_FILE_POINTER
  2007.         {
  2008.             ErrorLevel = -1
  2009.         }
  2010.         IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
  2011.     }
  2012.     Return result
  2013. }
  2014.  
  2015. /*
  2016. // Write in a file opened for writing.
  2017. //
  2018. // Move to position given by moveMethod and offset
  2019. // (by default stand at current position) and
  2020. // write byteNb bytes from data (all data if byteNb = 0;
  2021. // data contains binary bytes that can be a string or
  2022. // raw bytes generated from hexa data with the Hex2Bin routine).
  2023. //
  2024. // moveMethod, defaulting to -1 (no move, write at current position),
  2025. // can also be FILE_BEGIN, FILE_CURRENT or FILE_END.
  2026. // offset can be positive (toward end of file) or negative (toward beginning of file).
  2027. //
  2028. // Return the number of bytes written (-1 if there was an error).
  2029. */
  2030. WriteInFile(_handle, ByRef @data, _byteNb=0, _moveMethod=-1, _offset=0)
  2031. {
  2032.     local dataSize, result, written
  2033.  
  2034.     _offset := MoveInFile(_handle, _moveMethod, _offset)
  2035.     IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
  2036.  
  2037.     dataSize := VarSetCapacity(@data)        ; Get the capacity (>= used length!)
  2038.     If (_byteNb < 1 or _byteNb > dataSize)
  2039.     {
  2040.         byteNb := dataSize
  2041.     }
  2042.     result := DllCall("WriteFile"
  2043.             , "UInt", _handle   ; hFile
  2044.             , "Str", @data      ; lpBuffer
  2045.             , "UInt", _byteNb   ; nNumberOfBytesToWrite
  2046.             , "UInt *", written ; lpNumberOfBytesWritten
  2047.             , "UInt", 0)        ; lpOverlapped
  2048.     if (result = 0 or written < _byteNb)
  2049.     {
  2050.         ErrorLevel = -2
  2051.     }
  2052.     IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't write in the file
  2053.     Return written
  2054. }
  2055.  
  2056. /*
  2057. // Read from a file opened for reading.
  2058. //
  2059. // Move to position given by moveMethod and offset
  2060. // (by default stand at current position) and
  2061. // read byteNb bytes in data (the whole file if byteNb = 0;
  2062. // data contains binary bytes that can be a string or
  2063. // raw bytes that can be converted to hex digits with the Bin2Hex routine).
  2064. //
  2065. // moveMethod, defaulting to -1 (no move, read at current position),
  2066. // can also be FILE_BEGIN, FILE_CURRENT or FILE_END.
  2067. // offset can be positive (toward end of file) or negative (toward beginning of file).
  2068. //
  2069. // Return the number of bytes read (-1 if there was an error), which can be less
  2070. // than requested if end-of-file is meet.
  2071. */
  2072. ReadFromFile(_handle, ByRef @data, _byteNb=0, _moveMethod=-1, _offset=0)
  2073. {
  2074.     local fileSize, granted, result, read
  2075.  
  2076.     _offset := MoveInFile(_handle, _moveMethod, _offset)
  2077.     IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't make the move
  2078.  
  2079.     if (_byteNb = 0)
  2080.     {
  2081.         ; Read whole file (or less if file pointer isn't at start)
  2082.         fileSize := GetFileSize(_handle)
  2083.         IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't get the file size
  2084.         _byteNb := fileSize
  2085.     }
  2086.     granted := VarSetCapacity(@data, _byteNb, 0)
  2087.     if (granted < _byteNb)
  2088.     {
  2089.         ; Cannot allocate enough memory
  2090.         ErrorLevel = Mem=%granted%
  2091.         Return -1
  2092.     }
  2093.  
  2094.     result := DllCall("ReadFile"
  2095.             , "UInt", _handle   ; hFile
  2096.             , "Str", @data      ; lpBuffer
  2097.             , "UInt", _byteNb   ; nNumberOfBytesToRead
  2098.             , "UInt *", read    ; lpNumberOfBytesRead
  2099.             , "UInt", 0)        ; lpOverlapped
  2100.     if (result = 0)
  2101.     {
  2102.         ErrorLevel = -2
  2103.     }
  2104. ;~ MsgBox fileSize: %fileSize% - offset: %_offset% - byteNb: %_byteNb% - granted: %granted% - read: %read%
  2105.     IfNotEqual ErrorLevel, 0, Return -1 ; Couldn't read the file
  2106.  
  2107.     ; Note that we can have read less data than requested,
  2108.     ; eg. if end of file has been meet
  2109.     Return read
  2110. }
  2111. /*
  2112. // Convert raw bytes stored in a variable to a string of hexa digit pairs.
  2113. // Convert either byteNb bytes or, if null, the whole content of the variable.
  2114. //
  2115. // Return the number of converted bytes, or -1 if error (memory allocation)
  2116. */
  2117. Bin2Hex(ByRef @hex, ByRef @bin, _byteNb=0)
  2118. {
  2119.     local intFormat, dataSize, dataAddress, granted, x
  2120.  
  2121.     ; Save original integer format
  2122.     intFormat = %A_FormatInteger%
  2123.     ; For converting bytes to hex
  2124.     SetFormat Integer, Hex
  2125.  
  2126.     ; Get size of data
  2127.     dataSize := VarSetCapacity(@bin)
  2128.     If (_byteNb < 1 or _byteNb > dataSize)
  2129.     {
  2130.         _byteNb := dataSize
  2131.     }
  2132.     dataAddress := &@bin
  2133.     ; Make enough room (faster)
  2134.     granted := VarSetCapacity(@hex, _byteNb * 2)
  2135.     if (granted < _byteNb * 2)
  2136.     {
  2137.         ; Cannot allocate enough memory
  2138.         ErrorLevel = Mem=%granted%
  2139.         Return -1
  2140.     }
  2141.     Loop %_byteNb%
  2142.     {
  2143.         ; Get byte in hexa
  2144.         x := *dataAddress + 0x100
  2145.         StringRight x, x, 2 ; 2 hex digits
  2146.         StringUpper x, x
  2147.         @hex = %@hex%%x%
  2148.         dataAddress++   ; Next byte
  2149.     }
  2150.     ; Restore original integer format
  2151.     SetFormat Integer, %intFormat%
  2152.  
  2153.     Return _byteNb
  2154. }
  2155.  
  2156. /*
  2157. // Convert a string of hexa digit pairs to raw bytes stored in a variable.
  2158. // Convert either byteNb bytes or, if null, the whole content of the variable.
  2159. //
  2160. // Return the number of converted bytes, or -1 if error (memory allocation)
  2161. */
  2162. Hex2Bin(ByRef @bin, _hex, _byteNb=0)
  2163. {
  2164.     local dataSize, granted, dataAddress, x
  2165.  
  2166.     ; Get size of data
  2167.     x := StrLen(_hex)
  2168.     dataSize := Ceil(x / 2)
  2169.     if (x = 0 or dataSize * 2 != x)
  2170.     {
  2171.         ; Invalid string, empty or odd number of digits
  2172.         ErrorLevel = Param
  2173.         Return -1
  2174.     }
  2175.     If (_byteNb < 1 or _byteNb > dataSize)
  2176.     {
  2177.         _byteNb := dataSize
  2178.     }
  2179.     ; Make enough room
  2180.     granted := VarSetCapacity(@bin, _byteNb, 0)
  2181.     if (granted < _byteNb)
  2182.     {
  2183.         ; Cannot allocate enough memory
  2184.         ErrorLevel = Mem=%granted%
  2185.         Return -1
  2186.     }
  2187.     dataAddress := &@bin
  2188.  
  2189.     Loop Parse, _hex
  2190.     {
  2191.         if (A_Index & 1)    ; Odd
  2192.         {
  2193.             x = %A_LoopField%   ; Odd digit
  2194.         }
  2195.         else
  2196.         {
  2197.             ; Concatenate previous x and even digit, converted to hex
  2198.             x := "0x" . x . A_LoopField
  2199.             ; Store integer in memory
  2200.             DllCall("RtlFillMemory"
  2201.                     , "UInt", dataAddress
  2202.                     , "UInt", 1
  2203.                     , "UChar", x)
  2204.             dataAddress++
  2205.         }
  2206.     }
  2207.  
  2208.     Return _byteNb
  2209. }
  2210. HexString=
  2211. ( Join
  2212. %nif1%%newhexname%%nif2%
  2213. )
  2214. Tfh := OpenFileForWrite(filenifname)
  2215. l := Hex2Bin(data, HexString)
  2216. WriteInFile(Tfh, data, l)
  2217. CloseFile(Tfh)
  2218. FileCopy,%A_ScriptDir%\%filenifname%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\assets\gameplay\inlay\%filenifname%
  2219. FileDelete,%A_ScriptDir%\%filenifname%
  2220. newfilesxblock = <?xml version="1.0" encoding="utf-8"?>`n<game>`n  <entitySet>`n    <entity id="%ID1%" modelName="RSEnumerable_Guitars" 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
  2221. FileAppend, %newfilesxblock%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gamexblocks\nguitars\guitar_%guitarnamesix%.xblock
  2222. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_512.dds
  2223. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_256.dds
  2224. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_128.dds
  2225. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_64.dds
  2226. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars\guitars.hsan
  2227. 2replace =
  2228. (
  2229.         },
  2230.     },
  2231.     "InsertRoot" : "Static.Guitars.Headers"
  2232. }
  2233. )
  2234. bythis2 =
  2235. (
  2236.         },
  2237.         "%ID1MAJ%" : {
  2238.            "Attributes" : {
  2239.                "DLC" : true,
  2240.                "LocName" : "%guitarname%",
  2241.                "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2242.                "Name" : "%guitarname%",
  2243.                "PersistentID" : "%ID1MAJ%",
  2244.                "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2245.             }
  2246.         },
  2247.     },
  2248.     "InsertRoot" : "Static.Guitars.Headers"
  2249. }
  2250. )
  2251. IfNotExist, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars\guitars.hsan
  2252. {
  2253. newhsan15 =
  2254. (
  2255. {
  2256.     "Entries" : {
  2257.         "%ID1MAJ%" : {
  2258.         "Attributes" : {
  2259.             "DLC" : true,
  2260.             "LocName" : "%guitarname%",
  2261.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2262.             "Name" : "%guitarname%",
  2263.             "PersistentID" : "%ID1MAJ%",
  2264.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2265.             }
  2266.         },
  2267.     },
  2268.     "InsertRoot" : "Static.Guitars.Headers"
  2269. }
  2270. )
  2271. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars\guitars.hsan
  2272. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2273. }
  2274. else
  2275. {
  2276. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars\guitars.hsan
  2277. bythis2 =
  2278. (
  2279.         },
  2280.         "%ID1MAJ%" : {
  2281.         "Attributes" : {
  2282.             "DLC" : true,
  2283.             "LocName" : "%guitarname%",
  2284.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2285.             "Name" : "%guitarname%",
  2286.             "PersistentID" : "%ID1MAJ%",
  2287.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2288.             }
  2289.         },
  2290.     },
  2291.       "InsertRoot" : "Static.Guitars.Headers"
  2292. }
  2293. )
  2294. StringTrimRight, guitarshsan2L, guitarshsan2, 52
  2295. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars\guitars.hsan
  2296. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars\guitars.hsan
  2297. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2298. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2299. }
  2300. newfilesjson = {`n  "Entries": {`n    "%ID1MAJ%": {`n      "Attributes": {`n        "DecorativeInlays": "urn:application:gamebryo-scenegraph:%guitarnamesix%"`,`n        "DLC": true`,`n        "LocName": "%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_Guitars"`,`n  "IterationVersion": 2`,`n  "InsertRoot": "Static.Guitars.Entries"`n}`n
  2301. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\songs_dlc_multipack\dlc_guitar_%guitarnamesix%.json
  2302. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\manifests\guitars\guitar_%guitarnamesix%.json
  2303. FileRead, setupfiles, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\goingdown_aggregategraph.nt
  2304. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\goingdown_aggregategraph.nt
  2305. Random, RDM2, 0x000018700, 0x0000F3FFF
  2306. Random, RDM3, 0x000018700, 0x0000F3FFF
  2307. Random, RDM4, 0x000018700, 0x0000F3FFF
  2308. Random, RDM5, 0x000018700, 0x0000F3FFF
  2309. Random, RDM6, 0x000018700, 0x0000F3FFF
  2310. Random, RDM7, 0x000018700, 0x0000F3FFF
  2311. Random, RDM8, 0x000018700, 0x0000F3FFF
  2312. Random, RDM9, 0x000018700, 0x0000F3FFF
  2313. Random, RDM10, 0x000018700, 0x0000F3FFF
  2314. Random, RDM11, 0x000989680, 0x005F5E0FF
  2315. Random, RDM12, 0x000989680, 0x005F5E0FF
  2316. Random, RDM13, 0x000989680, 0x005F5E0FF
  2317. Random, RDM14, 0x000989680, 0x005F5E0FF
  2318. Random, RDM15, 0x000989680, 0x005F5E0FF
  2319. Random, RDM16, 0x000989680, 0x005F5E0FF
  2320. Random, RDM17, 0x000989680, 0x005F5E0FF
  2321. Random, RDM18, 0x000989680, 0x005F5E0FF
  2322. newinlaysetupadd =`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_guitar_%guitarnamesix%.json".`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "database".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "json-db".`n`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "hsan-db".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_multipack.hsan".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/name> "guitars".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "database".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/name> "%guitarnamesix%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/%filenifname%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/llid> "%RDM12%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM4%> <http://emergent.net/aweb/1.0/tag> "application".`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/tag> "gamebryo-scenegraph".`n`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/%filenifname%".`n`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/name> "inlay_%guitarnamesix%".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "image".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/relpath> "/gamexblocks/nguitars/guitar_%guitarnamesix%.xblock".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/canonical> "/gamexblocks/nguitars".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "emergent-world".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "x-world".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_64".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/name> "reward_inlay_mintol_128".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_256".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_512".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".
  2323. FileAppend, %setupfiles%`n%newinlaysetupadd%, %A_ScriptDir%\tmp\GuitarInlayPack_p_Pc\goingdown_aggregategraph.nt
  2324. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\GuitarInlayPack_p_Pc" --output="%A_ScriptDir%\tmp\GuitarInlayPack_p.psarc",,Hide
  2325. FileCopy, %A_ScriptDir%\tmp\GuitarInlayPack_p.psarc, %RS2014DIR%\dlc\GuitarInlayPack_p.psarc
  2326. loop
  2327. {
  2328. ifexist, %RS2014DIR%\dlc\GuitarInlayPack_p.psarc
  2329. break
  2330. }
  2331. }
  2332. If macversion = 1
  2333. {
  2334. FileSelectFolder, macversionwork,, 3, Select a folder to create or update : GuitarInlayPack_m.psarc
  2335. If macversionwork = ERROR
  2336. {
  2337. msgbox, you must select a valid folder.`nA valid folder to creator or update : GuitarInlayPack_m.psarc`nThis will now quit the creation and select a proper folder.
  2338. enableUI()
  2339. progress = 0
  2340. progresstext = %defstateprogresstxt%
  2341. GuiControl,, progresstxt, %progresstext%
  2342. GuiControl,, progressbar, %progress%
  2343. GuiControl,, progressbar2, %progress%
  2344. return
  2345. }
  2346. If macversionwork =
  2347. {
  2348. msgbox, you must select a valid folder.`nA valid folder to create or update : GuitarInlayPack_m.psarc`nThis will now quit the creation and select a proper folder.
  2349. enableUI()
  2350. progress = 0
  2351. progresstext = %defstateprogresstxt%
  2352. GuiControl,, progresstxt, %progresstext%
  2353. GuiControl,, progressbar, %progress%
  2354. GuiControl,, progressbar2, %progress%
  2355. return
  2356. }
  2357. checkthis2 = %macversionwork%\GuitarInlayPack_m.psarc
  2358. IfNotExist, %checkthis2%
  2359. {
  2360. FileRemoveDir, %A_ScriptDir%\backup,1
  2361. FileCreateDir, %A_ScriptDir%\backup
  2362. FileRemoveDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc,1
  2363. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc
  2364. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\assets
  2365. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\assets\gameplay
  2366. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\assets\gameplay\inlay
  2367. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\flatmodels
  2368. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\flatmodels\rs
  2369. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gamexblocks
  2370. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gamexblocks\nguitars
  2371. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gfxassets
  2372. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gfxassets\rewards
  2373. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gfxassets\rewards\guitar_inlays
  2374. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests
  2375. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars
  2376. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\songs_dlc_multipack
  2377. FileAppend, %rsflat1%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\flatmodels\rs\RSEnumerable_Guitars.flat
  2378. FileAppend, %rsflat2%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\flatmodels\rs\RSEnumerable_Root.flat
  2379. }
  2380. FileCopy, %macversionwork%\GuitarInlayPack_m.psarc, %A_ScriptDir%\backup\GuitarInlayPack_m.psarc
  2381. loop
  2382. {
  2383. ifexist, %A_ScriptDir%\backup\GuitarInlayPack_m.psarc
  2384. break
  2385. }
  2386. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --unpack --input="%A_ScriptDir%\backup" --output="%A_ScriptDir%\tmp",,Hide
  2387. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\appid.appid
  2388. FileAppend, %dlcid2%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\appid.appid
  2389. if 24finlay = 0
  2390. {
  2391. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\assets\gameplay\inlay\inlay_%guitarnamesix%.dds
  2392. TestString = inlay_%guitarnamesix%.dds
  2393. }
  2394. else
  2395. {
  2396. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\assets\gameplay\inlay\inlay_24fret_%guitarnamesix%.dds
  2397. TestString = inlay_24fret_%guitarnamesix%.dds
  2398. }
  2399. Output := StringToHex(TestString)
  2400. Ootput = %Output%
  2401. newhexname = %Output%
  2402. StringReplace newhexname, newhexname, %A_Space%, , All
  2403. filenifname = %guitarnamesix%.nif
  2404. HexString=
  2405. ( Join
  2406. %nif1%%newhexname%%nif2%
  2407. )
  2408. Tfh := OpenFileForWrite(filenifname)
  2409. l := Hex2Bin(data, HexString)
  2410. WriteInFile(Tfh, data, l)
  2411. CloseFile(Tfh)
  2412. FileCopy,%A_ScriptDir%\%filenifname%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\assets\gameplay\inlay\%filenifname%
  2413. FileDelete,%A_ScriptDir%\%filenifname%
  2414. newfilesxblock = <?xml version="1.0" encoding="utf-8"?>`n<game>`n  <entitySet>`n    <entity id="%ID1%" modelName="RSEnumerable_Guitars" 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
  2415. FileAppend, %newfilesxblock%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gamexblocks\nguitars\guitar_%guitarnamesix%.xblock
  2416. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_512.dds
  2417. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_256.dds
  2418. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_128.dds
  2419. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_64.dds
  2420. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars\guitars.hsan
  2421. 2replace =
  2422. (
  2423.         },
  2424.     },
  2425.     "InsertRoot" : "Static.Guitars.Headers"
  2426. }
  2427. )
  2428. bythis2 =
  2429. (
  2430.         },
  2431.         "%ID1MAJ%" : {
  2432.            "Attributes" : {
  2433.                "DLC" : true,
  2434.                "LocName" : "%guitarname%",
  2435.                "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2436.                "Name" : "%guitarname%",
  2437.                "PersistentID" : "%ID1MAJ%",
  2438.                "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2439.             }
  2440.         },
  2441.     },
  2442.     "InsertRoot" : "Static.Guitars.Headers"
  2443. }
  2444. )
  2445. IfNotExist, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars\guitars.hsan
  2446. {
  2447. newhsan15 =
  2448. (
  2449. {
  2450.     "Entries" : {
  2451.         "%ID1MAJ%" : {
  2452.         "Attributes" : {
  2453.             "DLC" : true,
  2454.             "LocName" : "%guitarname%",
  2455.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2456.             "Name" : "%guitarname%",
  2457.             "PersistentID" : "%ID1MAJ%",
  2458.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2459.             }
  2460.         },
  2461.     },
  2462.     "InsertRoot" : "Static.Guitars.Headers"
  2463. }
  2464. )
  2465. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars\guitars.hsan
  2466. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2467. }
  2468. else
  2469. {
  2470. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars\guitars.hsan
  2471. bythis2 =
  2472. (
  2473.         },
  2474.         "%ID1MAJ%" : {
  2475.         "Attributes" : {
  2476.             "DLC" : true,
  2477.             "LocName" : "%guitarname%",
  2478.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2479.             "Name" : "%guitarname%",
  2480.             "PersistentID" : "%ID1MAJ%",
  2481.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2482.             }
  2483.         },
  2484.     },
  2485.       "InsertRoot" : "Static.Guitars.Headers"
  2486. }
  2487. )
  2488. StringTrimRight, guitarshsan2L, guitarshsan2, 52
  2489. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars\guitars.hsan
  2490. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars\guitars.hsan
  2491. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2492. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2493. }
  2494. newfilesjson = {`n  "Entries": {`n    "%ID1MAJ%": {`n      "Attributes": {`n        "DecorativeInlays": "urn:application:gamebryo-scenegraph:%guitarnamesix%"`,`n        "DLC": true`,`n        "LocName": "%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_Guitars"`,`n  "IterationVersion": 2`,`n  "InsertRoot": "Static.Guitars.Entries"`n}`n
  2495. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\songs_dlc_multipack\dlc_guitar_%guitarnamesix%.json
  2496. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\manifests\guitars\guitar_%guitarnamesix%.json
  2497. FileRead, setupfiles, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\goingdown_aggregategraph.nt
  2498. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\goingdown_aggregategraph.nt
  2499. Random, RDM2, 0x000018700, 0x0000F3FFF
  2500. Random, RDM3, 0x000018700, 0x0000F3FFF
  2501. Random, RDM4, 0x000018700, 0x0000F3FFF
  2502. Random, RDM5, 0x000018700, 0x0000F3FFF
  2503. Random, RDM6, 0x000018700, 0x0000F3FFF
  2504. Random, RDM7, 0x000018700, 0x0000F3FFF
  2505. Random, RDM8, 0x000018700, 0x0000F3FFF
  2506. Random, RDM9, 0x000018700, 0x0000F3FFF
  2507. Random, RDM10, 0x000018700, 0x0000F3FFF
  2508. Random, RDM11, 0x000989680, 0x005F5E0FF
  2509. Random, RDM12, 0x000989680, 0x005F5E0FF
  2510. Random, RDM13, 0x000989680, 0x005F5E0FF
  2511. Random, RDM14, 0x000989680, 0x005F5E0FF
  2512. Random, RDM15, 0x000989680, 0x005F5E0FF
  2513. Random, RDM16, 0x000989680, 0x005F5E0FF
  2514. Random, RDM17, 0x000989680, 0x005F5E0FF
  2515. Random, RDM18, 0x000989680, 0x005F5E0FF
  2516. newinlaysetupadd =`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_guitar_%guitarnamesix%.json".`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "database".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "json-db".`n`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "hsan-db".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_multipack.hsan".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/name> "guitars".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "database".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/name> "%guitarnamesix%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/%filenifname%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/llid> "%RDM12%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM4%> <http://emergent.net/aweb/1.0/tag> "application".`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/tag> "gamebryo-scenegraph".`n`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/%filenifname%".`n`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/name> "inlay_%guitarnamesix%".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "image".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/relpath> "/gamexblocks/nguitars/guitar_%guitarnamesix%.xblock".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/canonical> "/gamexblocks/nguitars".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "emergent-world".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "x-world".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_64".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/name> "reward_inlay_mintol_128".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_256".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_512".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".
  2517. FileAppend, %setupfiles%`n%newinlaysetupadd%, %A_ScriptDir%\tmp\GuitarInlayPack_m_Pc\goingdown_aggregategraph.nt
  2518. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\GuitarInlayPack_m_Pc" --output="%A_ScriptDir%\tmp\GuitarInlayPack_m.psarc",,Hide
  2519. FileCopy, %A_ScriptDir%\tmp\GuitarInlayPack_m.psarc, %macversionwork%\GuitarInlayPack_m.psarc
  2520. loop
  2521. {
  2522. ifexist, %macversionwork%\GuitarInlayPack_m.psarc
  2523. break
  2524. }
  2525. }
  2526. If x360version = 1
  2527. {
  2528. FileSelectFolder, x360versionwork,, 3, Select a folder to create or update : GuitarInlayPack_xbox
  2529. If x360versionwork = ERROR
  2530. {
  2531. msgbox, you must select a valid folder.`nA valid folder to creator or update : GuitarInlayPack_xbox`nThis will now quit the creation and select a proper folder.
  2532. enableUI()
  2533. progress = 0
  2534. progresstext = %defstateprogresstxt%
  2535. GuiControl,, progresstxt, %progresstext%
  2536. GuiControl,, progressbar, %progress%
  2537. GuiControl,, progressbar2, %progress%
  2538. return
  2539. }
  2540. If x360versionwork =
  2541. {
  2542. msgbox, you must select a valid folder.`nA valid folder to create or update : GuitarInlayPack_xbox`nThis will now quit the creation and select a proper folder.
  2543. enableUI()
  2544. progress = 0
  2545. progresstext = %defstateprogresstxt%
  2546. GuiControl,, progresstxt, %progresstext%
  2547. GuiControl,, progressbar, %progress%
  2548. GuiControl,, progressbar2, %progress%
  2549. return
  2550. }
  2551. checkthis3 = %x360versionwork%\GuitarInlayPack_xbox
  2552. IfNotExist, %checkthis3%
  2553. {
  2554. FileRemoveDir, %A_ScriptDir%\backup,1
  2555. FileCreateDir, %A_ScriptDir%\backup
  2556. FileRemoveDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360,1
  2557. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360
  2558. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root
  2559. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack
  2560. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\assets
  2561. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\assets\gameplay
  2562. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\assets\gameplay\inlay
  2563. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\flatmodels
  2564. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\flatmodels\rs
  2565. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gamexblocks
  2566. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gamexblocks\nguitars
  2567. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gfxassets
  2568. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gfxassets\rewards
  2569. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gfxassets\rewards\guitar_inlays
  2570. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests
  2571. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars
  2572. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\songs_dlc_multipack
  2573. FileAppend, %rsflat1%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\flatmodels\rs\RSEnumerable_Guitars.flat
  2574. FileAppend, %rsflat2%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\flatmodels\rs\RSEnumerable_Root.flat
  2575. StringReplace, guitarname2, guitarname, ., , All
  2576. StringReplace, guitarname2, guitarname, %A_Space%, , All
  2577. FileAppend, GuitarInlayPack, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\PackageList.txt
  2578. Random, RDMX360ID, 0x000989680, 0x005F5E0FF
  2579. x360signtest =
  2580. (
  2581. Signature Type - CON
  2582. Package Licences:
  2583. License 0 ID: FFFFFFFFFFFFFFFF
  2584. License 0 Bits: 0
  2585. License 0 Flags: 0
  2586. License 1 ID: 0
  2587. License 1 Bits: 0
  2588. License 1 Flags: 0
  2589. License 2 ID: 0
  2590. License 2 Bits: 0
  2591. License 2 Flags: 0
  2592. License 3 ID: 0
  2593. License 3 Bits: 0
  2594. License 3 Flags: 0
  2595. License 4 ID: 0
  2596. License 4 Bits: 0
  2597. License 4 Flags: 0
  2598. License 5 ID: 0
  2599. License 5 Bits: 0
  2600. License 5 Flags: 0
  2601. License 6 ID: 0
  2602. License 6 Bits: 0
  2603. License 6 Flags: 0
  2604. License 7 ID: 0
  2605. License 7 Bits: 0
  2606. License 7 Flags: 0
  2607. License 8 ID: 0
  2608. License 8 Bits: 0
  2609. License 8 Flags: 0
  2610. License 9 ID: 0
  2611. License 9 Bits: 0
  2612. License 9 Flags: 0
  2613. License 10 ID: 0
  2614. License 10 Bits: 0
  2615. License 10 Flags: 0
  2616. License 11 ID: 0
  2617. License 11 Bits: 0
  2618. License 11 Flags: 0
  2619. License 12 ID: 0
  2620. License 12 Bits: 0
  2621. License 12 Flags: 0
  2622. License 13 ID: 0
  2623. License 13 Bits: 0
  2624. License 13 Flags: 0
  2625. License 14 ID: 0
  2626. License 14 Bits: 0
  2627. License 14 Flags: 0
  2628. License 15 ID: 0
  2629. License 15 Bits: 0
  2630. License 15 Flags: 0
  2631. Package Type: MarketPlace
  2632. Meta Data Version: 2
  2633. Recorded ContentSize: %rootsize% bytes
  2634. Media ID: 0
  2635. Version: 0
  2636. Version Base: 0
  2637. Title ID: 555308C0
  2638. Platform: 0
  2639. Executable Type: 0
  2640. Disc Number: 0
  2641. Disc In Set: 0
  2642. Save Game ID: 0
  2643. Creator's Console ID: 00
  2644. Creator's Profile ID: 00
  2645. Data File Count: 0
  2646. Data File Size: 0
  2647. Series ID: 00000000000000000000000000000000
  2648. Season ID: 00000000000000000000000000000000
  2649. Season Number: 0
  2650. Epidsode Number: 0
  2651. Device ID: 0000000000000000000000000000000000000000
  2652. Languages:
  2653. English Display Title and Description:
  2654. Inlay : %guitarname% by %creatorname%
  2655. Inlay : %guitarname% by %creatorname%
  2656. Japanese Display Title and Description:
  2657.  
  2658.  
  2659. German Display Title and Description:
  2660.  
  2661.  
  2662. French Display Title and Description:
  2663.  
  2664.  
  2665. Spanish Display Title and Description:
  2666.  
  2667.  
  2668. Italian Display Title and Description:
  2669.  
  2670.  
  2671. Korean Display Title and Description:
  2672.  
  2673.  
  2674. Chinese Display Title and Description:
  2675.  
  2676.  
  2677. Portuguese Display Title and Description:
  2678.  
  2679.  
  2680. Publisher Name: %softname% - v%buildversion%
  2681. Package Title: Rocksmith 2014
  2682. Package Transfer Type: AllowTransfer
  2683. )
  2684. Random, RDMX360N1, 0x000989680, 0x005F5E0FF
  2685. Random, RDMX360N2, 0x000989680, 0x005F5E0FF
  2686. Random, RDMX360N3, 0x000989680, 0x005F5E0FF
  2687. Random, RDMX360N4, 0x000989680, 0x005F5E0FF
  2688. Random, RDMX360N5, 0x000989680, 0x005F5E0FF
  2689. FileAppend, %x360signtest%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\CC%RDMX360N1%%RDMX360N2%%RDMX360N3%%RDMX360N4%%RDMX360N5%.txt
  2690. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.*" -prescale 128 128 -max -quality_highest -nomipmap -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.png",,Hide
  2691. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.png, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Content Image.png
  2692. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.png, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Package Image.png
  2693. }
  2694.  
  2695. FileCopy, %checkthis3%, %A_ScriptDir%\backup\GuitarInlayPack_xbox
  2696. sleep 5000
  2697. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --unpack --input="%A_ScriptDir%\backup\GuitarInlayPack_xbox" --output="%A_ScriptDir%\tmp",,Hide
  2698. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\appid.appid
  2699. FileAppend, %dlcid2%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\appid.appid
  2700. if 24finlay = 0
  2701. {
  2702. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\assets\gameplay\inlay\inlay_%guitarnamesix%.dds
  2703. TestString = inlay_%guitarnamesix%.dds
  2704. }
  2705. else
  2706. {
  2707. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\assets\gameplay\inlay\inlay_24fret_%guitarnamesix%.dds
  2708. TestString = inlay_24fret_%guitarnamesix%.dds
  2709. }
  2710. Output := StringToHex(TestString)
  2711. Ootput = %Output%
  2712. newhexname = %Output%
  2713. StringReplace newhexname, newhexname, %A_Space%, , All
  2714. filenifname = %guitarnamesix%.nif
  2715. HexString=
  2716. ( Join
  2717. %nif1%%newhexname%%nif2%
  2718. )
  2719. Tfh := OpenFileForWrite(filenifname)
  2720. l := Hex2Bin(data, HexString)
  2721. WriteInFile(Tfh, data, l)
  2722. CloseFile(Tfh)
  2723. FileCopy,%A_ScriptDir%\%filenifname%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\assets\gameplay\inlay\%filenifname%
  2724. FileDelete,%A_ScriptDir%\%filenifname%
  2725. newfilesxblock = <?xml version="1.0" encoding="utf-8"?>`n<game>`n  <entitySet>`n    <entity id="%ID1%" modelName="RSEnumerable_Guitars" 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
  2726. FileAppend, %newfilesxblock%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gamexblocks\nguitars\guitar_%guitarnamesix%.xblock
  2727. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_512.dds
  2728. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_256.dds
  2729. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_128.dds
  2730. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_64.dds
  2731. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars\guitars.hsan
  2732. 2replace =
  2733. (
  2734.         },
  2735.     },
  2736.     "InsertRoot" : "Static.Guitars.Headers"
  2737. }
  2738. )
  2739. bythis2 =
  2740. (
  2741.         },
  2742.         "%ID1MAJ%" : {
  2743.            "Attributes" : {
  2744.                "DLC" : true,
  2745.                "LocName" : "%guitarname%",
  2746.                "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2747.                "Name" : "%guitarname%",
  2748.                "PersistentID" : "%ID1MAJ%",
  2749.                "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2750.             }
  2751.         },
  2752.     },
  2753.     "InsertRoot" : "Static.Guitars.Headers"
  2754. }
  2755. )
  2756. IfNotExist, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars\guitars.hsan
  2757. {
  2758. newhsan15 =
  2759. (
  2760. {
  2761.     "Entries" : {
  2762.         "%ID1MAJ%" : {
  2763.         "Attributes" : {
  2764.             "DLC" : true,
  2765.             "LocName" : "%guitarname%",
  2766.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2767.             "Name" : "%guitarname%",
  2768.             "PersistentID" : "%ID1MAJ%",
  2769.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2770.             }
  2771.         },
  2772.     },
  2773.     "InsertRoot" : "Static.Guitars.Headers"
  2774. }
  2775. )
  2776. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars\guitars.hsan
  2777. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2778. }
  2779. else
  2780. {
  2781. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars\guitars.hsan
  2782. bythis2 =
  2783. (
  2784.         },
  2785.         "%ID1MAJ%" : {
  2786.         "Attributes" : {
  2787.             "DLC" : true,
  2788.             "LocName" : "%guitarname%",
  2789.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2790.             "Name" : "%guitarname%",
  2791.             "PersistentID" : "%ID1MAJ%",
  2792.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2793.             }
  2794.         },
  2795.     },
  2796.       "InsertRoot" : "Static.Guitars.Headers"
  2797. }
  2798. )
  2799. StringTrimRight, guitarshsan2L, guitarshsan2, 52
  2800. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars\guitars.hsan
  2801. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars\guitars.hsan
  2802. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2803. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2804. }
  2805. newfilesjson = {`n  "Entries": {`n    "%ID1MAJ%": {`n      "Attributes": {`n        "DecorativeInlays": "urn:application:gamebryo-scenegraph:%guitarnamesix%"`,`n        "DLC": true`,`n        "LocName": "%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_Guitars"`,`n  "IterationVersion": 2`,`n  "InsertRoot": "Static.Guitars.Entries"`n}`n
  2806. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\songs_dlc_multipack\dlc_guitar_%guitarnamesix%.json
  2807. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\manifests\guitars\guitar_%guitarnamesix%.json
  2808. FileRead, setupfiles, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\goingdown_aggregategraph.nt
  2809. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\goingdown_aggregategraph.nt
  2810. Random, RDM2, 0x000018700, 0x0000F3FFF
  2811. Random, RDM3, 0x000018700, 0x0000F3FFF
  2812. Random, RDM4, 0x000018700, 0x0000F3FFF
  2813. Random, RDM5, 0x000018700, 0x0000F3FFF
  2814. Random, RDM6, 0x000018700, 0x0000F3FFF
  2815. Random, RDM7, 0x000018700, 0x0000F3FFF
  2816. Random, RDM8, 0x000018700, 0x0000F3FFF
  2817. Random, RDM9, 0x000018700, 0x0000F3FFF
  2818. Random, RDM10, 0x000018700, 0x0000F3FFF
  2819. Random, RDM11, 0x000989680, 0x005F5E0FF
  2820. Random, RDM12, 0x000989680, 0x005F5E0FF
  2821. Random, RDM13, 0x000989680, 0x005F5E0FF
  2822. Random, RDM14, 0x000989680, 0x005F5E0FF
  2823. Random, RDM15, 0x000989680, 0x005F5E0FF
  2824. Random, RDM16, 0x000989680, 0x005F5E0FF
  2825. Random, RDM17, 0x000989680, 0x005F5E0FF
  2826. Random, RDM18, 0x000989680, 0x005F5E0FF
  2827. newinlaysetupadd =`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_guitar_%guitarnamesix%.json".`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "database".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "json-db".`n`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "hsan-db".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_multipack.hsan".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/name> "guitars".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "database".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/name> "%guitarnamesix%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/%filenifname%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/llid> "%RDM12%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM4%> <http://emergent.net/aweb/1.0/tag> "application".`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/tag> "gamebryo-scenegraph".`n`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/%filenifname%".`n`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/name> "inlay_%guitarnamesix%".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "image".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/relpath> "/gamexblocks/nguitars/guitar_%guitarnamesix%.xblock".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/canonical> "/gamexblocks/nguitars".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "emergent-world".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "x-world".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_64".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/name> "reward_inlay_mintol_128".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_256".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_512".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".
  2828. FileAppend, %setupfiles%`n%newinlaysetupadd%, %A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360\Root\GuitarInlayPack\goingdown_aggregategraph.nt
  2829.  
  2830. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_xbox
  2831.  
  2832. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\GuitarInlayPack_xbox_XBox360" --output="%A_ScriptDir%\tmp\GuitarInlayPack_xbox",,Hide
  2833. loop
  2834. {
  2835. ifexist, %A_ScriptDir%\tmp\GuitarInlayPack_xbox
  2836. break
  2837. }
  2838. FileDelete, %x360versionwork%\GuitarInlayPack_xbox
  2839. FileCopy, %A_ScriptDir%\tmp\GuitarInlayPack_xbox, %x360versionwork%\GuitarInlayPack_xbox
  2840. loop
  2841. {
  2842. ifexist, %x360versionwork%\GuitarInlayPack_xbox
  2843. break
  2844. }
  2845. }
  2846. If ps3version = 1
  2847. {
  2848. FileSelectFolder, ps3versionwork,, 3, Select a folder to create or update : GuitarInlayPack_ps3.psarc.edat
  2849. If ps3versionwork = ERROR
  2850. {
  2851. msgbox, you must select a valid folder.`nA valid folder to creator or update : GuitarInlayPack_ps3.psarc.edat`nThis will now quit the creation and select a proper folder.
  2852. enableUI()
  2853. progress = 0
  2854. progresstext = %defstateprogresstxt%
  2855. GuiControl,, progresstxt, %progresstext%
  2856. GuiControl,, progressbar, %progress%
  2857. GuiControl,, progressbar2, %progress%
  2858. return
  2859. }
  2860. If ps3versionwork =
  2861. {
  2862. msgbox, you must select a valid folder.`nA valid folder to create or update : GuitarInlayPack_ps3.psarc.edat`nThis will now quit the creation and select a proper folder.
  2863. enableUI()
  2864. progress = 0
  2865. progresstext = %defstateprogresstxt%
  2866. GuiControl,, progresstxt, %progresstext%
  2867. GuiControl,, progressbar, %progress%
  2868. GuiControl,, progressbar2, %progress%
  2869. return
  2870. }
  2871. checkthis2 = %ps3versionwork%\GuitarInlayPack_ps3.psarc.edat
  2872. IfNotExist, %checkthis2%
  2873. {
  2874. FileRemoveDir, %A_ScriptDir%\backup,1
  2875. FileCreateDir, %A_ScriptDir%\backup
  2876. FileRemoveDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3,1
  2877. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3
  2878. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\assets
  2879. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\assets\gameplay
  2880. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\assets\gameplay\inlay
  2881. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\flatmodels
  2882. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\flatmodels\rs
  2883. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gamexblocks
  2884. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gamexblocks\nguitars
  2885. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gfxassets
  2886. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gfxassets\rewards
  2887. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gfxassets\rewards\guitar_inlays
  2888. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests
  2889. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars
  2890. FileCreateDir, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\songs_dlc_multipack
  2891. FileAppend, %rsflat1%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\flatmodels\rs\RSEnumerable_Guitars.flat
  2892. FileAppend, %rsflat2%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\flatmodels\rs\RSEnumerable_Root.flat
  2893. }
  2894. FileCreateDir, %A_ScriptDir%\ressources\packer\EDAT
  2895. FileCopy, %ps3versionwork%\GuitarInlayPack_ps3.psarc.edat, %A_ScriptDir%\ressources\packer\EDAT\GuitarInlayPack_ps3.psarc.edat
  2896. sleep 5000
  2897. SetWorkingDir %A_ScriptDir%\ressources\packer\
  2898. RunWait,  "%A_ScriptDir%\ressources\packer\ps3_decrypt.cmd",,Hide
  2899. SetWorkingDir %A_ScriptDir%
  2900. FileCopy, %A_ScriptDir%\ressources\packer\EDAT\GuitarInlayPack_ps3.psarc.edat, %A_ScriptDir%\backup\GuitarInlayPack_ps3.psarc
  2901. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --unpack --input="%A_ScriptDir%\backup\GuitarInlayPack_ps3.psarc" --output="%A_ScriptDir%\tmp\GuitarInlayPack_ps3",,Hide
  2902. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\appid.appid
  2903. FileAppend, %dlcid2%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\appid.appid
  2904. if 24finlay = 0
  2905. {
  2906. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\assets\gameplay\inlay\inlay_%guitarnamesix%.dds
  2907. TestString = inlay_%guitarnamesix%.dds
  2908. }
  2909. else
  2910. {
  2911. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\assets\gameplay\inlay\inlay_24fret_%guitarnamesix%.dds
  2912. TestString = inlay_24fret_%guitarnamesix%.dds
  2913. }
  2914. Output := StringToHex(TestString)
  2915. Ootput = %Output%
  2916. newhexname = %Output%
  2917. StringReplace newhexname, newhexname, %A_Space%, , All
  2918. filenifname = %guitarnamesix%.nif
  2919. HexString=
  2920. ( Join
  2921. %nif1%%newhexname%%nif2%
  2922. )
  2923. Tfh := OpenFileForWrite(filenifname)
  2924. l := Hex2Bin(data, HexString)
  2925. WriteInFile(Tfh, data, l)
  2926. CloseFile(Tfh)
  2927. FileCopy,%A_ScriptDir%\%filenifname%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\assets\gameplay\inlay\%filenifname%
  2928. FileDelete,%A_ScriptDir%\%filenifname%
  2929. newfilesxblock = <?xml version="1.0" encoding="utf-8"?>`n<game>`n  <entitySet>`n    <entity id="%ID1%" modelName="RSEnumerable_Guitars" 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
  2930. FileAppend, %newfilesxblock%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gamexblocks\nguitars\guitar_%guitarnamesix%.xblock
  2931. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_512.dds
  2932. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_256.dds
  2933. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_128.dds
  2934. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_64.dds
  2935. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars\guitars.hsan
  2936. 2replace =
  2937. (
  2938.         },
  2939.     },
  2940.     "InsertRoot" : "Static.Guitars.Headers"
  2941. }
  2942. )
  2943. bythis2 =
  2944. (
  2945.         },
  2946.         "%ID1MAJ%" : {
  2947.            "Attributes" : {
  2948.                "DLC" : true,
  2949.                "LocName" : "%guitarname%",
  2950.                "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2951.                "Name" : "%guitarname%",
  2952.                "PersistentID" : "%ID1MAJ%",
  2953.                "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2954.             }
  2955.         },
  2956.     },
  2957.     "InsertRoot" : "Static.Guitars.Headers"
  2958. }
  2959. )
  2960. IfNotExist, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars\guitars.hsan
  2961. {
  2962. newhsan15 =
  2963. (
  2964. {
  2965.     "Entries" : {
  2966.         "%ID1MAJ%" : {
  2967.         "Attributes" : {
  2968.             "DLC" : true,
  2969.             "LocName" : "%guitarname%",
  2970.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2971.             "Name" : "%guitarname%",
  2972.             "PersistentID" : "%ID1MAJ%",
  2973.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2974.             }
  2975.         },
  2976.     },
  2977.     "InsertRoot" : "Static.Guitars.Headers"
  2978. }
  2979. )
  2980. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars\guitars.hsan
  2981. FileAppend, %newhsan15%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\songs_dlc_multipack\dlc_multipack.hsan
  2982. }
  2983. else
  2984. {
  2985. FileRead, guitarshsan2, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars\guitars.hsan
  2986. bythis2 =
  2987. (
  2988.         },
  2989.         "%ID1MAJ%" : {
  2990.         "Attributes" : {
  2991.             "DLC" : true,
  2992.             "LocName" : "%guitarname%",
  2993.             "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  2994.             "Name" : "%guitarname%",
  2995.             "PersistentID" : "%ID1MAJ%",
  2996.             "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  2997.             }
  2998.         },
  2999.     },
  3000.       "InsertRoot" : "Static.Guitars.Headers"
  3001. }
  3002. )
  3003. StringTrimRight, guitarshsan2L, guitarshsan2, 52
  3004. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars\guitars.hsan
  3005. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars\guitars.hsan
  3006. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\songs_dlc_multipack\dlc_multipack.hsan
  3007. FileAppend, %guitarshsan2L%`n%A_Tab%%A_Tab%%bythis2%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\songs_dlc_multipack\dlc_multipack.hsan
  3008. }
  3009. newfilesjson = {`n  "Entries": {`n    "%ID1MAJ%": {`n      "Attributes": {`n        "DecorativeInlays": "urn:application:gamebryo-scenegraph:%guitarnamesix%"`,`n        "DLC": true`,`n        "LocName": "%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_Guitars"`,`n  "IterationVersion": 2`,`n  "InsertRoot": "Static.Guitars.Entries"`n}`n
  3010. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\songs_dlc_multipack\dlc_guitar_%guitarnamesix%.json
  3011. FileAppend, %newfilesjson%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\manifests\guitars\guitar_%guitarnamesix%.json
  3012. FileRead, setupfiles, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\goingdown_aggregategraph.nt
  3013. FileDelete, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\goingdown_aggregategraph.nt
  3014. Random, RDM2, 0x000018700, 0x0000F3FFF
  3015. Random, RDM3, 0x000018700, 0x0000F3FFF
  3016. Random, RDM4, 0x000018700, 0x0000F3FFF
  3017. Random, RDM5, 0x000018700, 0x0000F3FFF
  3018. Random, RDM6, 0x000018700, 0x0000F3FFF
  3019. Random, RDM7, 0x000018700, 0x0000F3FFF
  3020. Random, RDM8, 0x000018700, 0x0000F3FFF
  3021. Random, RDM9, 0x000018700, 0x0000F3FFF
  3022. Random, RDM10, 0x000018700, 0x0000F3FFF
  3023. Random, RDM11, 0x000989680, 0x005F5E0FF
  3024. Random, RDM12, 0x000989680, 0x005F5E0FF
  3025. Random, RDM13, 0x000989680, 0x005F5E0FF
  3026. Random, RDM14, 0x000989680, 0x005F5E0FF
  3027. Random, RDM15, 0x000989680, 0x005F5E0FF
  3028. Random, RDM16, 0x000989680, 0x005F5E0FF
  3029. Random, RDM17, 0x000989680, 0x005F5E0FF
  3030. Random, RDM18, 0x000989680, 0x005F5E0FF
  3031. newinlaysetupadd =`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_guitar_%guitarnamesix%.json".`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "database".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "json-db".`n`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "hsan-db".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_multipack/dlc_multipack.hsan".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/name> "guitars".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_multipack".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "database".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/name> "%guitarnamesix%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/%filenifname%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/llid> "%RDM12%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM4%> <http://emergent.net/aweb/1.0/tag> "application".`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/tag> "gamebryo-scenegraph".`n`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/%filenifname%".`n`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/name> "inlay_%guitarnamesix%".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "image".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/relpath> "/gamexblocks/nguitars/guitar_%guitarnamesix%.xblock".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/canonical> "/gamexblocks/nguitars".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "emergent-world".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "x-world".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_64".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/name> "reward_inlay_mintol_128".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_256".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_512".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".
  3032. FileAppend, %setupfiles%`n%newinlaysetupadd%, %A_ScriptDir%\tmp\GuitarInlayPack_ps3\goingdown_aggregategraph.nt
  3033. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\GuitarInlayPack_ps3" --output="%A_ScriptDir%\tmp\GuitarInlayPack_p3.psarc",,Hide
  3034.  
  3035. FileCopy, "%A_ScriptDir%\tmp\GuitarInlayPack_p3.psarc", "%A_ScriptDir%\ressources\packer\EDAT\GuitarInlayPack_p3.psarc"
  3036.  
  3037. SetWorkingDir %A_ScriptDir%\ressources\packer\
  3038. RunWait,  "%A_ScriptDir%\ressources\packer\ps3_encrypt.cmd"
  3039. SetWorkingDir %A_ScriptDir%
  3040. FileDelete, %ps3versionwork%\GuitarInlayPack_ps3.psarc.edat
  3041. FileCopy, "%A_ScriptDir%\ressources\packer\EDAT\GuitarInlayPack_ps3.psarc", "%ps3versionwork%\GuitarInlayPack_ps3.psarc.edat"
  3042. loop
  3043. {
  3044. ifexist, "%ps3versionwork%\GuitarInlayPack_ps3.psarc.edat""%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  3045.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  3046.     }
  3047.     else
  3048.     {
  3049.         Runwait, %A_ScriptDir%\ressources\packer\topng.exe -overwrite -yflip "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  3050.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  3051.     }
  3052. }
  3053. else
  3054. {
  3055.     if flipud = 0
  3056.     {
  3057.         Runwait, %A_ScriptDir%\ressources\packer\topng.exe -overwrite -xflip "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  3058.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  3059.     }
  3060.     else
  3061.     {
  3062.         Runwait, %A_ScriptDir%\ressources\packer\topng.exe -overwrite -xflip -yflip "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*",,Hide
  3063.         Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.*" -prescale 1024 512 -quality_highest -max -dxt5 -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds",,Hide
  3064.     }
  3065. }
  3066. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.*" -prescale 512 512 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds",,Hide
  3067. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.*" -prescale 256 256 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds",,Hide
  3068. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.*" -prescale 128 128 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds",,Hide
  3069. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.*" -prescale 64 64 -quality_highest -max -dxt5 -quality_highest -nomipmap -alpha -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds",,Hide
  3070. FileAppend, %dlcid2%, %A_ScriptDir%\tmp\newguitarpack\appid.appid
  3071. if 24finlay = 0
  3072. {
  3073. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\newguitarpack\assets\gameplay\inlay\inlay_%guitarnamesix%.dds
  3074. TestString = inlay_%guitarnamesix%.dds
  3075. }
  3076. else
  3077. {
  3078. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%.dds, %A_ScriptDir%\tmp\newguitarpack\assets\gameplay\inlay\inlay_24fret_%guitarnamesix%.dds
  3079. TestString = inlay_24fret_%guitarnamesix%.dds
  3080. }
  3081. Output := StringToHex(TestString)
  3082. Ootput = %Output%
  3083. newhexname = %Output%
  3084. StringReplace newhexname, newhexname, %A_Space%, , All
  3085. filenifname = %guitarnamesix%.nif
  3086. HexString=
  3087. ( Join
  3088. %nif1%%newhexname%%nif2%
  3089. )
  3090. Tfh := OpenFileForWrite(filenifname)
  3091. l := Hex2Bin(data, HexString)
  3092. WriteInFile(Tfh, data, l)
  3093. CloseFile(Tfh)
  3094. FileCopy,%A_ScriptDir%\%filenifname%, %A_ScriptDir%\tmp\newguitarpack\assets\gameplay\inlay\%filenifname%
  3095. FileDelete,%A_ScriptDir%\%filenifname%
  3096. Random, RDM20, 0x03B9ACA00, 0x2540BE3FF
  3097. Random, RDM21, 0x005F5E100, 0x03B9AC9FF
  3098. Random, RDM22, 0x03B9ACA00, 0x2540BE3FF
  3099. Random, RDM23, 0x03B9ACA00, 0x2540BE3FF
  3100. Random, RDM24, 0x03B9ACA00, 0x2540BE3FF
  3101. Random, RDM25, 0x03B9ACA00, 0x2540BE3FF
  3102. Random, RDM26, 0x03B9ACA00, 0x2540BE3FF
  3103. Random, RDM27, 0x03B9ACA00, 0x2540BE3FF
  3104. rsflat1 =
  3105. (
  3106. <?xml version="1.0" encoding="utf-8"?>
  3107. <model
  3108.   name="RSEnumerable_Guitars"
  3109.   id="%RDM21%">
  3110.   <trait
  3111.     value="Active" />
  3112.   <mixin
  3113.     name="RSEnumerable_Root"
  3114.     id="%RDM20%"
  3115.     type="Active" />
  3116.   <property
  3117.     type="AssetID"
  3118.     name="DecorativeInlays"
  3119.     id="%RDM22%">
  3120.     <set
  3121.       value="" />
  3122.   </property>
  3123.   <property
  3124.     type="AssetID"
  3125.     name="PreviewArtSmall"
  3126.     id="%RDM23%">
  3127.     <set
  3128.       value="" />
  3129.   </property>
  3130.   <property
  3131.     type="AssetID"
  3132.     name="PreviewArtMedium"
  3133.     id="%RDM24%">
  3134.     <set
  3135.       value="" />
  3136.   </property>
  3137.   <property
  3138.     type="AssetID"
  3139.     name="PreviewArtLarge"
  3140.     id="%RDM25%">
  3141.     <set
  3142.       value="" />
  3143.   </property>
  3144.   <property
  3145.     type="AssetID"
  3146.     name="Manifest"
  3147.     id="%RDM26%">
  3148.     <set
  3149.       value="" />
  3150.   </property>
  3151.   <property
  3152.     type="AssetID"
  3153.     name="Header"
  3154.     id="%RDM27%">
  3155.     <set
  3156.       value="" />
  3157.   </property>
  3158. </model>
  3159. )
  3160. rsflat2 =
  3161. (
  3162. <?xml version="1.0" encoding="utf-8"?>
  3163. <model
  3164.   name="RSEnumerable_Root"
  3165.   id="%RDM20%">
  3166.   <trait
  3167.     value="Active" />
  3168.   <property
  3169.     type="AssetID"
  3170.     name="Manifest"
  3171.     id="%RDM26%">
  3172.     <set
  3173.       value="" />
  3174.   </property>
  3175.   <property
  3176.     type="AssetID"
  3177.     name="Header"
  3178.     id="%RDM27%">
  3179.     <set
  3180.       value="" />
  3181.   </property>
  3182. </model>
  3183. )
  3184. FileAppend, %rsflat1%, %A_ScriptDir%\tmp\newguitarpack\flatmodels\rs\RSEnumerable_Guitars.flat
  3185. FileAppend, %rsflat2%, %A_ScriptDir%\tmp\newguitarpack\flatmodels\rs\RSEnumerable_Root.flat
  3186.  
  3187. newfilesxblock = <?xml version="1.0" encoding="utf-8"?>`n<game>`n  <entitySet>`n    <entity id="%ID1%" modelName="RSEnumerable_Guitars" 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
  3188. FileAppend, %newfilesxblock%, %A_ScriptDir%\tmp\newguitarpack\gamexblocks\nguitars\guitar_%guitarnamesix%.xblock
  3189. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_512.dds, %A_ScriptDir%\tmp\newguitarpack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_512.dds
  3190. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_256.dds, %A_ScriptDir%\tmp\newguitarpack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_256.dds
  3191. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.dds, %A_ScriptDir%\tmp\newguitarpack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_128.dds
  3192. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_64.dds, %A_ScriptDir%\tmp\newguitarpack\gfxassets\rewards\guitar_inlays\reward_inlay_%guitarnamesix%_64.dds
  3193. newhsan =
  3194. (
  3195. {
  3196.     "Entries" : {
  3197.         "%ID1MAJ%" : {
  3198.            "Attributes" : {
  3199.                "DLC" : true,
  3200.                "LocName" : "%guitarname%",
  3201.                "ManifestUrn" : "urn:database:json-db:guitar_%guitarnamesix%",
  3202.                "Name" : "%guitarname%",
  3203.                "PersistentID" : "%ID1MAJ%",
  3204.                "PreviewArt" : "urn:image:dds:reward_inlay_%guitarnamesix%"
  3205.             }
  3206.         },
  3207.     },
  3208.     "InsertRoot" : "Static.Guitars.Headers"
  3209. }
  3210. )
  3211. FileAppend, %newhsan%, %A_ScriptDir%\tmp\newguitarpack\manifests\guitars\guitars.hsan
  3212. FileAppend, %newhsan%, %A_ScriptDir%\tmp\newguitarpack\manifests\songs_dlc_%guitarnamesix%\dlc_%guitarnamesix%.hsan
  3213. newfilesjson5 = {`n  "Entries": {`n    "%ID1MAJ%": {`n      "Attributes": {`n        "DecorativeInlays": "urn:application:gamebryo-scenegraph:%guitarnamesix%"`,`n        "DLC": true`,`n        "LocName": "%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_Guitars"`,`n  "IterationVersion": 2`,`n  "InsertRoot": "Static.Guitars.Entries"`n}`n
  3214. FileAppend, %newfilesjson5%, %A_ScriptDir%\tmp\newguitarpack\manifests\songs_dlc_%guitarnamesix%\dlc_guitar_%guitarnamesix%.json
  3215. FileAppend, %newfilesjson5%, %A_ScriptDir%\tmp\newguitarpack\manifests\guitars\guitar_%guitarnamesix%.json
  3216. Random, RDM2, 0x000018700, 0x0000F3FFF
  3217. Random, RDM3, 0x000018700, 0x0000F3FFF
  3218. Random, RDM4, 0x000018700, 0x0000F3FFF
  3219. Random, RDM5, 0x000018700, 0x0000F3FFF
  3220. Random, RDM6, 0x000018700, 0x0000F3FFF
  3221. Random, RDM7, 0x000018700, 0x0000F3FFF
  3222. Random, RDM8, 0x000018700, 0x0000F3FFF
  3223. Random, RDM9, 0x000018700, 0x0000F3FFF
  3224. Random, RDM10, 0x000018700, 0x0000F3FFF
  3225. Random, RDM11, 0x000989680, 0x005F5E0FF
  3226. Random, RDM12, 0x000989680, 0x005F5E0FF
  3227. Random, RDM13, 0x000989680, 0x005F5E0FF
  3228. Random, RDM14, 0x000989680, 0x005F5E0FF
  3229. Random, RDM15, 0x000989680, 0x005F5E0FF
  3230. Random, RDM16, 0x000989680, 0x005F5E0FF
  3231. Random, RDM17, 0x000989680, 0x005F5E0FF
  3232. Random, RDM18, 0x000989680, 0x005F5E0FF
  3233. newinlaysetup =`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_%guitarnamesix%/dlc_guitar_%guitarnamesix%.json".`n`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_%guitarnamesix%".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "database".`n<urn:uuid:%RDM13%-3f6b-e531-4ae1-%RDM2%%RDM3%> <http://emergent.net/aweb/1.0/tag> "json-db".`n`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "hsan-db".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/relpath> "/manifests/songs_dlc_%guitarnamesix%/dlc_%guitarnamesix%.hsan".`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/name> "guitars".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/canonical> "/manifests/songs_dlc_%guitarnamesix%".`n`n<urn:uuid:%RDM14%-65a8-ec2a-9dac-%RDM3%%RDM4%> <http://emergent.net/aweb/1.0/tag> "database".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/name> "%guitarnamesix%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/%filenifname%".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/llid> "%RDM12%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM4%> <http://emergent.net/aweb/1.0/tag> "application".`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/tag> "gamebryo-scenegraph".`n`n`n<urn:uuid:%RDM15%-ff29-5301-b813-%RDM4%%RDM5%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/%filenifname%".`n`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/name> "inlay_%guitarnamesix%".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/relpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/canonical> "/assets/gameplay/inlay".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "image".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM5%%RDM6%> <http://emergent.net/aweb/1.0/logpath> "/assets/gameplay/inlay/inlay_%guitarnamesix%.dds".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/name> "guitar_%guitarnamesix%".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/relpath> "/gamexblocks/nguitars/guitar_%guitarnamesix%.xblock".`n`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/canonical> "/gamexblocks/nguitars".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "emergent-world".`n<urn:uuid:%RDM17%-38aa-5335-cf1b-%RDM6%%RDM7%> <http://emergent.net/aweb/1.0/tag> "x-world".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_64".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_64.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM7%%RDM8%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/name> "reward_inlay_mintol_128".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_128.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM8%%RDM9%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_256".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_256.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM9%%RDM10%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "image".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/tag> "dds".`n`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/canonical> "/gfxassets/rewards/guitar_inlays".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/name> "reward_inlay_%guitarnamesix%_512".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/relpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/logpath> "/gfxassets/rewards/guitar_inlays/reward_inlay_%guitarnamesix%_512.dds".`n<urn:uuid:%RDM16%-8deb-bdf6-0f80-%RDM10%%RDM2%> <http://emergent.net/aweb/1.0/llid> "%RDM11%-0000-0000-0000-000000000000".
  3234. FileAppend, %newinlaysetup%, %A_ScriptDir%\tmp\newguitarpack\%guitarname%_aggregategraph.nt
  3235. if pcversion = 1
  3236. {
  3237. Run, cmd /k cd ressources & cd packer & packer.exe --pack --input="%A_ScriptDir%\tmp\newguitarpack" --output="%locinstallpack%\%guitarname%_p.psarc",,Hide
  3238. loop
  3239. {
  3240. ifexist, %locinstallpack%\%guitarname%_p.psarc
  3241. break
  3242. }
  3243. }
  3244. else
  3245. {
  3246. }
  3247. if macversion = 1
  3248. {
  3249. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\newguitarpack" --output="%locinstallpack%\%guitarname%_m.psarc",,Hide
  3250. loop
  3251. {
  3252. ifexist, %locinstallpack%\%guitarname%_m.psarc
  3253. break
  3254. }
  3255. }
  3256. else
  3257. {
  3258. }
  3259. if x360version = 1
  3260. {
  3261. StringReplace, guitarname2, guitarname, ., , All
  3262. StringReplace, guitarname2, guitarname, %A_Space%, , All
  3263. FileCopyDir, %A_ScriptDir%\tmp\newguitarpack, %A_ScriptDir%\tmp\newguitarpackx360\Root\%guitarname2%
  3264. FileAppend, %guitarname2%, %A_ScriptDir%\tmp\newguitarpackx360\Root\PackageList.txt
  3265. FileGetSize, rootsize, "%A_ScriptDir%\tmp\newguitarpackx360\Root", K
  3266. Random, RDMX360ID, 0x000989680, 0x005F5E0FF
  3267. x360signtest =
  3268. (
  3269. Signature Type - CON
  3270. Package Licences:
  3271. License 0 ID: FFFFFFFFFFFFFFFF
  3272. License 0 Bits: 0
  3273. License 0 Flags: 0
  3274. License 1 ID: 0
  3275. License 1 Bits: 0
  3276. License 1 Flags: 0
  3277. License 2 ID: 0
  3278. License 2 Bits: 0
  3279. License 2 Flags: 0
  3280. License 3 ID: 0
  3281. License 3 Bits: 0
  3282. License 3 Flags: 0
  3283. License 4 ID: 0
  3284. License 4 Bits: 0
  3285. License 4 Flags: 0
  3286. License 5 ID: 0
  3287. License 5 Bits: 0
  3288. License 5 Flags: 0
  3289. License 6 ID: 0
  3290. License 6 Bits: 0
  3291. License 6 Flags: 0
  3292. License 7 ID: 0
  3293. License 7 Bits: 0
  3294. License 7 Flags: 0
  3295. License 8 ID: 0
  3296. License 8 Bits: 0
  3297. License 8 Flags: 0
  3298. License 9 ID: 0
  3299. License 9 Bits: 0
  3300. License 9 Flags: 0
  3301. License 10 ID: 0
  3302. License 10 Bits: 0
  3303. License 10 Flags: 0
  3304. License 11 ID: 0
  3305. License 11 Bits: 0
  3306. License 11 Flags: 0
  3307. License 12 ID: 0
  3308. License 12 Bits: 0
  3309. License 12 Flags: 0
  3310. License 13 ID: 0
  3311. License 13 Bits: 0
  3312. License 13 Flags: 0
  3313. License 14 ID: 0
  3314. License 14 Bits: 0
  3315. License 14 Flags: 0
  3316. License 15 ID: 0
  3317. License 15 Bits: 0
  3318. License 15 Flags: 0
  3319. Package Type: MarketPlace
  3320. Meta Data Version: 2
  3321. Recorded ContentSize: %rootsize% bytes
  3322. Media ID: 0
  3323. Version: 0
  3324. Version Base: 0
  3325. Title ID: 555308C0
  3326. Platform: 0
  3327. Executable Type: 0
  3328. Disc Number: 0
  3329. Disc In Set: 0
  3330. Save Game ID: 0
  3331. Creator's Console ID: 00
  3332. Creator's Profile ID: 00
  3333. Data File Count: 0
  3334. Data File Size: 0
  3335. Series ID: 00000000000000000000000000000000
  3336. Season ID: 00000000000000000000000000000000
  3337. Season Number: 0
  3338. Epidsode Number: 0
  3339. Device ID: 0000000000000000000000000000000000000000
  3340. Languages:
  3341. English Display Title and Description:
  3342. Inlay : %guitarname% by %creatorname%
  3343. Inlay : %guitarname% by %creatorname%
  3344. Japanese Display Title and Description:
  3345.  
  3346.  
  3347. German Display Title and Description:
  3348.  
  3349.  
  3350. French Display Title and Description:
  3351.  
  3352.  
  3353. Spanish Display Title and Description:
  3354.  
  3355.  
  3356. Italian Display Title and Description:
  3357.  
  3358.  
  3359. Korean Display Title and Description:
  3360.  
  3361.  
  3362. Chinese Display Title and Description:
  3363.  
  3364.  
  3365. Portuguese Display Title and Description:
  3366.  
  3367.  
  3368. Publisher Name: %softname% - v%buildversion%
  3369. Package Title: Rocksmith 2014
  3370. Package Transfer Type: AllowTransfer
  3371. )
  3372. Random, RDMX360N1, 0x000989680, 0x005F5E0FF
  3373. Random, RDMX360N2, 0x000989680, 0x005F5E0FF
  3374. Random, RDMX360N3, 0x000989680, 0x005F5E0FF
  3375. Random, RDMX360N4, 0x000989680, 0x005F5E0FF
  3376. Random, RDMX360N5, 0x000989680, 0x005F5E0FF
  3377. FileAppend, %x360signtest%, %A_ScriptDir%\tmp\newguitarpackx360\CC%RDMX360N1%%RDMX360N2%%RDMX360N3%%RDMX360N4%%RDMX360N5%.txt
  3378. Runwait, %A_ScriptDir%\ressources\packer\nvdxt.exe -file "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.*" -prescale 128 128 -max -quality_highest -nomipmap -output "%A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.png",,Hide
  3379. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.png, %A_ScriptDir%\tmp\newguitarpackx360\Content Image.png
  3380. FileCopy, %A_ScriptDir%\tmp\images\inlay_%guitarnamesix%_128.png, %A_ScriptDir%\tmp\newguitarpackx360\Package Image.png
  3381. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\newguitarpackx360" --output="%A_ScriptDir%\tmp\%guitarname%_xbox",,Hide
  3382. FileCopy, %A_ScriptDir%\tmp\%guitarname%_xbox, %locinstallpack%\%guitarname%_xbox
  3383. loop
  3384. {
  3385. ifexist, %locinstallpack%\%guitarname%_xbox
  3386. break
  3387. }
  3388. }
  3389. else
  3390. {
  3391. }
  3392. if ps3version = 1
  3393. {
  3394. RunWait, %A_ScriptDir%\ressources\packer\packer.exe --pack --input="%A_ScriptDir%\tmp\newguitarpack" --output="%A_ScriptDir%\tmp\%guitarname%_ps3.psarc",,Hide
  3395. StringReplace, newenglishname, guitarname, %A_Space%, _, All
  3396. FileCreateDir, %A_ScriptDir%\ressources\packer\EDAT
  3397. FileCopy, %A_ScriptDir%\tmp\%guitarname%_ps3.psarc, %A_ScriptDir%\ressources\packer\EDAT\%newenglishname%_ps3.psarc
  3398. loop
  3399. {
  3400. ifexist, %A_ScriptDir%\ressources\packer\EDAT\%newenglishname%_ps3.psarc
  3401. break
  3402. }
  3403. SetWorkingDir %A_ScriptDir%\ressources\packer\
  3404. RunWait,  "%A_ScriptDir%\ressources\packer\ps3_encrypt.cmd",,Hide
  3405. SetWorkingDir %A_ScriptDir%
  3406. FileCopy, %A_ScriptDir%\ressources\packer\EDAT\%newenglishname%_ps3.psarc, %locinstallpack%\%newenglishname%_ps3.psarc.edat
  3407. loop
  3408. {
  3409. ifexist, %locinstallpack%\%newenglishname%_ps3.psarc.edat
  3410. break
  3411. }
  3412. }
  3413. else
  3414. {
  3415. }
  3416. progress = 100
  3417. progresstext = %parse4%
  3418. GuiControl,, progresstxt, %progresstext%
  3419. GuiControl,, progressbar, %progress%
  3420. GuiControl,, progressbar2, %progress%
  3421. msgbox, %doneconfirm2%
  3422. progress = 0
  3423. progresstext = %defstateprogresstxt%
  3424. GuiControl,, progresstxt, %progresstext%
  3425. GuiControl,, progressbar, %progress%
  3426. GuiControl,, progressbar2, %progress%
  3427. enableUI()
  3428. RandomName      =       % RandomName(6,6)
  3429. StringLower, RandomName, RandomName
  3430. guitarnamesix   =       %RandomName%
  3431. GuiControl,, default6name, %guitarnamesix%
  3432. IDString = a0b1c2d3e4f5a6b7c8d9e0f
  3433. Random, RDM1, 0x00F000000, 0x00fffffff
  3434. ID1 = %IDString%%RDM1%
  3435. StringUpper, ID1MAJ, ID1
  3436. ccg++
  3437. ccg2++
  3438. IniWrite, %ccg%, CustomGuitarList.ini, NumberInstance, NumberSet
  3439. IniWrite, %ccg2%, CustomGuitarList.ini, NumberInstance, NumberGuitar
  3440. GuiControl,, idmaster, %ID1MAJ%
  3441. GuiControl,, guitarid, %ccg2%
  3442. return
  3443.  
  3444. GuiClose:
  3445. FileRemoveDir, %A_ScriptDir%\tmp, 1
  3446. FileRemoveDir, %A_ScriptDir%\ressources, 1
  3447. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement