How to: Use MAME <version> Extras as material for Pause

jeremy0203

New member
Supporter
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

Can this be updated for rocketlauncher
 

jeremy0203

New member
Supporter
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

Yes, I know you can simply rename RL to HL and move along but figured you may want to update it.
 

Turranius

Member
Supporter
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

Aha. Thanks. Did not think about that. I'll fix it.

Edit: Updated to 0.92 in first post. Just renamed it and changed from HyperLaunch.exe to RocketLauncher.exe.
 
Last edited:

thecig

New member
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

Hi guys,

Just thought I'd give you a heads up. There's a mistake in the code. The first question it asks for the root of your RL folder.
I did that and got the error attached below.

It's looking for "RockerLauncher.exe" instead of "RocketLauncher"
I renamed my exe to Rocker and it worked.

Thanks for this awesome script :D

rocketlauncher_error.jpg
 

thecig

New member
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

Ok, disregard, I have this solved.

Another question... lets say I have multiple pieces of artwork or videos I want to have available...

For example in my folder I have
cabinet.png
flyer.png

What would I name a second file...
Same with manuals and videos?

Can I ask how you solved this? Just got the same error, but Line 2924

Cheers.
 

jeremy0203

New member
Supporter
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

Hi guys,

Just thought I'd give you a heads up. There's a mistake in the code. The first question it asks for the root of your RL folder.
I did that and got the error attached below.

It's looking for "RockerLauncher.exe" instead of "RocketLauncher"
I renamed my exe to Rocker and it worked.

Thanks for this awesome script :D

View attachment 959

That's cuz you aren't one of the cool kids with the super secret rockerlauncher edition
 

Turranius

Member
Supporter
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

I'll fix it soon =) I always type Rockerlauncher everywhere...

Edit: Fixed in first post with 0.93

I included a _debug.exe version in the zip as well. If you are having problems, you can run that version instead. It'll show the code in a cmd window as you run it so we can see where it craps out.
You can also run it from a cmd prompt as: "MAME Extras to Pause_debug.exe" > log.txt
and it will log the code to log.txt so you can paste it in a code block here.
 
Last edited:

thecig

New member
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

I hadn't set up my Admin account properly on my XP machine. I just ran it from my windows 8.1 machine via the network :p
 

DHG

New member
Supporter
RL Member
Re: How to: Use MAME <version> Extras as material for HyperPause

Can I ask how you solved this? Just got the same error, but Line 2924

Cheers.

Hey, I just saw your post... did you get this solved?
I honestly don't remember what I did... I got away from the project for a couple months and actually just started all over AGAIN with 1.4 and the newer SimplyAustin youtube tutorials.
 

DHG

New member
Supporter
RL Member
I ran this program a few months back and had this problem.

Line 2921 (File "E:MAME Extras to HyperPause.exe"):
Error: Subscript used on non-accessible variable

Then 'thecig' posted this
Can I ask how you solved this? Just got the same error, but Line 2924

I had to start everything over and now I am having the same problem on 2 different computers.

Actually the first problem started when I first ran the program and it asked me to direct it to the root directory of Rocketlauncher....
So I did and it told me it couldn't find my Rockerlauncher.exe file.... note the misspelling... this is what the program said.
I had to rename my exe file so it would continue.

Then it started and created about 30 folders then the subscript error above comes up...

Any idea how to fix this or is there another solution to getting all my mame art over to the RL folder?
 

Turranius

Member
Supporter
RL Member
Start by grabbing 0.93 from the first post.

If you still have problems with that, try the debug version as instructed above:
You can also run it from a cmd prompt as: "MAME Extras to Pause_debug.exe" > log.txt

Put the log.txt in a code block here so I can take a look.
 

DHG

New member
Supporter
RL Member
Start by grabbing 0.93 from the first post.

If you still have problems with that, try the debug version as instructed above:


Put the log.txt in a code block here so I can take a look.



@@ Trace(292) : If StringUpper(StringRight($ArtworkFileList[$i], 4) =
".ZIP") Then
>Error code: 0

@@ Trace(294) : $CopyThisFile="FALSE"
>Error code: 0

@@ Trace(296) : $FileNameNoExt = RemoveExtRegExp($ArtworkFileLi
st[$i])
>Error code: 0

@@ Trace(864) : Return StringRegExpReplace($Input, "\.[^.]*$", "")
>Error code: 0

@@ Trace(299) : If $AllMedia = "FALSE" Then
>Error code: 0

@@ Trace(309) : $CopyThisFile = $ArtworkFileList[$i]
>Error code: 0

@@ Trace(311) : EndIf
>Error code: 0

@@ Trace(314) : If $CopyThisFile <> "FALSE" Then
>Error code: 0

@@ Trace(316) : $Copied = $Copied + 1
>Error code: 0

@@ Trace(318) : TrayTip("Artwork " & $i & " Copied: " &
$Copied, "Working on " & $CopyThisFile, 10)
>Error code: 0

@@ Trace(320) : DirRemove($TempFolder, 1)
>Error code: 0

@@ Trace(322) : DirCreate($TempFolder)
>Error code: 0

@@ Trace(325) : RunWait("7za.exe x " & Chr(34) & $Extras
Location & "\artwork\" & $CopyThisFile & Chr(34) & " -o" & $TempFolder, "", @SW_
HIDE)

7-Zip (a) 9.38 beta Copyright (c) 1999-2014 Igor Pavlov 2015-01-03

Processing archive: E:\Hyperspin\Emulators\MAME\artwork\aof3.zip

Extracting aof3.lay
Extracting aof3.png
Extracting ng_marq.png

Everything is Ok

Files: 3
Size: 462853
Compressed: 456338

Kernel Time = 0.000 = 0%
User Time = 0.000 = 0%
Process Time = 0.000 = 0% Virtual Memory = 2 MB
Global Time = 0.015 = 100% Physical Memory = 4 MB
>Error code: 0

@@ Trace(327) : $CopyList = _FileListToArray($TempFolder
)
>Error code: 0

@@ Trace(334) : If Not FileExists($HyperLaunchLocatio
n & "\Media\Artwork\MAME\" & $FileNameNoExt) Then
>Error code: 0

@@ Trace(340) : For $j = 1 To $CopyList[0]
>Error code: 0

@@ Trace(342) : If StringUpper(StringRight($Co
pyList[$j], 4)) = ".PNG" Then
>Error code: 0

@@ Trace(348) : Next
>Error code: 0

@@ Trace(342) : If StringUpper(StringRight($Co
pyList[$j], 4)) = ".PNG" Then
>Error code: 0

@@ Trace(344) : FileCopy($TempFolder &
"\" & $CopyList[$j], $HyperLaunchLocation & "\Media\Artwork\MAME\" & $FileNameNo
Ext)
>Error code: 0

@@ Trace(346) : EndIf
>Error code: 0

@@ Trace(348) : Next
>Error code: 0

@@ Trace(342) : If StringUpper(StringRight($Co
pyList[$j], 4)) = ".PNG" Then
>Error code: 0

@@ Trace(344) : FileCopy($TempFolder &
"\" & $CopyList[$j], $HyperLaunchLocation & "\Media\Artwork\MAME\" & $FileNameNo
Ext)
>Error code: 0

@@ Trace(346) : EndIf
>Error code: 0

@@ Trace(348) : Next
>Error code: 0

@@ Trace(350) : EndIf
>Error code: 0

@@ Trace(352) : EndIf
>Error code: 0

@@ Trace(354) : EndIf
>Error code: 0

@@ Trace(356) : Next
>Error code: 0

@@ Trace(292) : If StringUpper(StringRight($ArtworkFileList[$i], 4) =
".ZIP") Then
>Error code: 0

@@ Trace(294) : $CopyThisFile="FALSE"
>Error code: 0

@@ Trace(296) : $FileNameNoExt = RemoveExtRegExp($ArtworkFileLi
st[$i])
>Error code: 0

@@ Trace(864) : Return StringRegExpReplace($Input, "\.[^.]*$", "")
>Error code: 0

@@ Trace(299) : If $AllMedia = "FALSE" Then
>Error code: 0

@@ Trace(309) : $CopyThisFile = $ArtworkFileList[$i]
>Error code: 0

@@ Trace(311) : EndIf
>Error code: 0

@@ Trace(314) : If $CopyThisFile <> "FALSE" Then
>Error code: 0

@@ Trace(316) : $Copied = $Copied + 1
>Error code: 0

@@ Trace(318) : TrayTip("Artwork " & $i & " Copied: " &
$Copied, "Working on " & $CopyThisFile, 10)
>Error code: 0

@@ Trace(320) : DirRemove($TempFolder, 1)
>Error code: 0

@@ Trace(322) : DirCreate($TempFolder)
>Error code: 0

@@ Trace(325) : RunWait("7za.exe x " & Chr(34) & $Extras
Location & "\artwork\" & $CopyThisFile & Chr(34) & " -o" & $TempFolder, "", @SW_
HIDE)

7-Zip (a) 9.38 beta Copyright (c) 1999-2014 Igor Pavlov 2015-01-03

Processing archive: E:\Hyperspin\Emulators\MAME\artwork\apb.zip

Extracting apb_bezel.png
Extracting default.lay

Everything is Ok

Files: 2
Size: 7194674
Compressed: 7100829

Kernel Time = 0.000 = 0%
User Time = 0.140 = 90%
Process Time = 0.140 = 90% Virtual Memory = 2 MB
Global Time = 0.156 = 100% Physical Memory = 4 MB
>Error code: 0

@@ Trace(327) : $CopyList = _FileListToArray($TempFolder
)
>Error code: 0

@@ Trace(334) : If Not FileExists($HyperLaunchLocatio
n & "\Media\Artwork\MAME\" & $FileNameNoExt) Then
>Error code: 0

@@ Trace(340) : For $j = 1 To $CopyList[0]
>Error code: 0

@@ Trace(342) : If StringUpper(StringRight($Co
pyList[$j], 4)) = ".PNG" Then
>Error code: 0

@@ Trace(344) : FileCopy($TempFolder &
"\" & $CopyList[$j], $HyperLaunchLocation & "\Media\Artwork\MAME\" & $FileNameNo
Ext)
>Error code: 0

@@ Trace(346) : EndIf
>Error code: 0

@@ Trace(348) : Next
>Error code: 0

@@ Trace(342) : If StringUpper(StringRight($Co
pyList[$j], 4)) = ".PNG" Then
>Error code: 0

@@ Trace(348) : Next
>Error code: 0

@@ Trace(350) : EndIf
>Error code: 0

@@ Trace(352) : EndIf
>Error code: 0

@@ Trace(354) : EndIf
>Error code: 0

@@ Trace(356) : Next
>Error code: 0

@@ Trace(292) : If StringUpper(StringRight($ArtworkFileList[$i], 4) =
".ZIP") Then
>Error code: 0

@@ Trace(294) : $CopyThisFile="FALSE"
>Error code: 0

@@ Trace(296) : $FileNameNoExt = RemoveExtRegExp($ArtworkFileLi
st[$i])
>Error code: 0

@@ Trace(864) : Return StringRegExpReplace($Input, "\.[^.]*$", "")
>Error code: 0

@@ Trace(299) : If $AllMedia = "FALSE" Then
>Error code: 0

@@ Trace(309) : $CopyThisFile = $ArtworkFileList[$i]
>Error code: 0

@@ Trace(311) : EndIf
>Error code: 0

@@ Trace(314) : If $CopyThisFile <> "FALSE" Then
>Error code: 0

@@ Trace(316) : $Copied = $Copied + 1
>Error code: 0

@@ Trace(318) : TrayTip("Artwork " & $i & " Copied: " &
$Copied, "Working on " & $CopyThisFile, 10)
>Error code: 0

@@ Trace(320) : DirRemove($TempFolder, 1)
>Error code: 0

@@ Trace(322) : DirCreate($TempFolder)
>Error code: 0

@@ Trace(325) : RunWait("7za.exe x " & Chr(34) & $Extras
Location & "\artwork\" & $CopyThisFile & Chr(34) & " -o" & $TempFolder, "", @SW_
HIDE)

7-Zip (a) 9.38 beta Copyright (c) 1999-2014 Igor Pavlov 2015-01-03

Processing archive: E:\Hyperspin\Emulators\MAME\artwork\aperture.png

Error: Can not open file as archive

Can't open as archive: 1
Files: 0
Size: 0
Compressed: 0

Kernel Time = 0.000 = 0%
User Time = 0.000 = 0%
Process Time = 0.000 = 0% Virtual Memory = 6 MB
Global Time = 0.015 = 100% Physical Memory = 8 MB
>Error code: 0

@@ Trace(327) : $CopyList = _FileListToArray($TempFolder
)
>Error code: 4

@@ Trace(334) : If Not FileExists($HyperLaunchLocatio
n & "\Media\Artwork\MAME\" & $FileNameNoExt) Then
>Error code: 0

@@ Trace(340) : For $j = 1 To $CopyList[0]
 

DHG

New member
Supporter
RL Member
Ok, I looked at the log file and it kept getting stopped on the same file each time.
My artwork folder in my MAME directory has my bezels in it... there are 6 PNG files in there that I'm not even sure what they're for.
So I just skipped this folder and all is well it seems... files are copying as I text this.

Thank you!
 

Turranius

Member
Supporter
RL Member
Great. Yes, a limitation of the script language I'm writing this in, there is no "if DirExists" so I have to use "If FileExists" which works on both files and dirs.
So it thought the directory existed but it was a file. Then it crashed when trying to copy files into the "folder".

I am making a 0.94 version with a GUI instead of all the questions. I've added a fix by checking if the directory really is a directory before continuing.

Preview:
Tur-MameExtrastoPause1.jpg

Tur-MameExtrastoPause2.jpg
 

Turranius

Member
Supporter
RL Member
Ok, first post updated with 0.94 with the new GUI. Let me know of any problems =)

Remember, you CAN run it again and again without damage. It will not remove or delete previous media (just overwrite the same file names).
 

alcoatjez

Member
Supporter
RL Member
Thanks a lot for this great app :)
Just tried the GUI and it works great on Win10.

A small tip: Most people use full MAME ROM sets, but a XML with just the working games. You can select to create the art only for the ROMs you have in Tur-MAME Extras to Pause, but this won't have any effect with a full set.
You can use HyperSpin CUE Renamer to create fake zipfiles from your MAME XML. If you point Tur-MAME Extras to Pause to your folder with fake ROMs, it will only create the Pause art for the ROMs in your XML ;)
 
Top