Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Problem snaps in MaLa - How to convert  (Read 7182 times)

0 Members and 1 Guest are viewing this topic.

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Problem snaps in MaLa - How to convert
« on: August 21, 2008, 09:07:21 am »
Last night I finally put my renamed (using fuzzyrenamer) console snapshots on my cab.
Scrolling through the NES list was making MaLa crash.  It was only happening with that emulator.  I took all the snaps from the snap folder and started adding them a few at a time until I finally caught one of the bad actors.  

It turns out the only difference between this snapshot and the previous fifty that worked is the color sampling.  This particular image is 32 bits whereas all the others where 8 bits.

All my Atari 2600 (go figure) and Nintendo 64 snapshots are 24 bits and those work fine.

Loadman: Is there a reason to believe 32 snapshots can be a problem?  I have MaLa running at 640x480x32 and the snapshot opens fine outside of MaLa.

When I get home tonight, I'll grab that snapshot and post it here.  It was really late so I did not have time to find other bad snaps but I'll do some more of that.

The snaps for all the other emulators seem to be fine.
« Last Edit: August 20, 2010, 10:53:10 pm by loadman »
"The Manuel"

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: May have found bug with snaps in MaLa
« Reply #1 on: August 21, 2008, 07:19:16 pm »
Hello,

The image handling is done by some 3rd party library code (to handling stretching/resizing/flipping) , but it would be great to know exactly what it's limitations are so I can look at alternatives or at least prevent a crash.

If you could post the snaps that cause a problem that would be good.

Thanks for testing

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: May have found bug with snaps in MaLa
« Reply #2 on: August 21, 2008, 09:53:31 pm »
Hey Manuel (or loadman), why not test the theory by creating just a blank image in an image editor and save it as a 32 bit image with the name of a rom, and see if it crashes mala?
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #3 on: August 21, 2008, 10:00:18 pm »
Alright, mate.

Here is a MaLa crashing snapshot.
I'll resample it to another bpp and then back to 32 to make sure it is not an artifice of the image software and report back.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #4 on: August 21, 2008, 10:07:47 pm »
Here is the information I get with GIMP on a file that crashes and one that doesn't.
The main difference is in the colorspace as mentioned before.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #5 on: August 21, 2008, 10:12:16 pm »
I'll give it a shot if I can figure out hot to do it.
I feel like a monkey playing with a cel phone.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #6 on: August 21, 2008, 10:25:03 pm »
So much for the theory.

I couldn't figure out how to make the file but remembered CPWizard does the alpha fade trick so I figured those were 32 bit images (alpha channel) so I grab one of those and that does not crash MaLa.

I'm not sure what could be wrong with those files. :-\
"The Manuel"

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: May have found bug with snaps in MaLa
« Reply #7 on: August 21, 2008, 10:27:54 pm »
I just tried a test with Photoshop.  I saved an image in RGB mode, 8 bit and it crashed Mala.  I saved the same image in Indexed Color mode and it works fine.  

This verifies the results that TheManuel had regarding the color space.  For those who don't know much about the difference between RGB (True Color) vs Indexed Color (which includes me), here's a link:

http://www.nyphp.org/content/presentations/GDintro/gd7.php
« Last Edit: August 21, 2008, 10:31:29 pm by SGT »

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #8 on: August 22, 2008, 08:55:15 am »
SGT strikes again.
I would imagine then that the images in CPWizard's Media folder are 32 bit but indexed rather than true color? 
I'll check tonight when I get home because those did not crash MaLa.

Thanks for checking.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #9 on: August 26, 2008, 10:53:05 pm »
While on this subject, does anyone know of a tool to easily batch convert my NES snapshots from RGB to indexed color?
I know GIMP can do it but it uses some script-fu interpreter language for batch processing that looks extremely unwieldy.

Thanks.
"The Manuel"

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: May have found bug with snaps in MaLa
« Reply #10 on: August 26, 2008, 11:25:59 pm »
Do you have Photoshop?  You can record a macro ( they call it an action) and then tell Photoshop to perform the macro on each file in a folder:

http://www.webdesign.org/web/photoshop/miscellaneous/creating-actions-or-macros-in-photoshop.10738.html

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #11 on: August 27, 2008, 08:56:06 am »
I have Photoshop Elements.  I hope the option is there as well.
I will look into it when I get home.

Thanks for the suggestion  :cheers:
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #12 on: August 27, 2008, 09:25:33 pm »
Looks like I'm out of luck.
Apparently Adobe Photoshop Elements does not have that option.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #13 on: August 27, 2008, 09:27:19 pm »
Wait! I found this.
I'll report back.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #14 on: August 27, 2008, 10:56:45 pm »
The actions trick did not lead anywhere as it did not include batch processing.
However, through about.com, I found this nice piece of free software which allowed me to convert all the files very easily with its built in batch processing feature.

It is very intuitive.
If anyone has a need to do this, let me know and I'll post some instructions.

Regards.
"The Manuel"

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: May have found bug with snaps in MaLa
« Reply #15 on: August 28, 2008, 01:18:29 am »
 :applaud:

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
Re: May have found bug with snaps in MaLa
« Reply #16 on: September 10, 2008, 01:21:11 pm »
Hey Manuel, can you give directions, i can't find where to select the color mode in the batch processor.

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #17 on: September 10, 2008, 04:32:54 pm »
Alright.
I'll post tonight when I get home and look at it.
"The Manuel"

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: May have found bug with snaps in MaLa
« Reply #18 on: September 10, 2008, 10:14:25 pm »
Got to Tools > Batch Processing

Browse for the folder with the files you want to convert using the "Add Folder" button.

Select an output folder different from the input folder just in case.

From the "Format" drop down menu, select the output format you want (.gif, .jpg, etc.).
I would choose the same format as the original images.

Here is the key part; go to the "Transformations" tab and from the "Convert" tree, select "Convert to Colours".
Click "Add" and some options will show up on the right pane.
Select 256 to have as many color combinations as possible.

When everything is set up, click "Go".

Let me know if it worked.


"The Manuel"

Chunce DeLeone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:August 16, 2012, 02:58:11 pm
Re: May have found bug with snaps in MaLa
« Reply #19 on: September 11, 2008, 09:28:44 am »
worked like a charm!  Thanks dude :applaud:

illinifro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:October 28, 2018, 11:10:41 pm
Re: May have found bug with snaps in MaLa
« Reply #20 on: August 20, 2010, 05:17:00 pm »
This was affecting me too, they were NES snapshots from the no-intro snapshot database.  Thanks for the info, worked great!

Henrik68000

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:December 12, 2010, 01:54:23 pm
Re: Problem snaps in MaLa - How to convert
« Reply #21 on: September 18, 2010, 09:19:49 am »
'IMAGE CONVERTER PLUS' IS A SPEEDY PROGRAM THAT CAN RUN TROUGH A COLLECTION OF PIC'S AND STREAMLINE THEM (iF YOU SET THE PARATMETERS IN THE PROGRAM (DONE IN A SNAP).

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:June 10, 2025, 09:51:23 pm
  • Posts: 48,764
Re: Problem snaps in MaLa - How to convert
« Reply #22 on: January 03, 2011, 05:48:54 pm »
Either one of you guys still have that link to the batch processing tool? The link seems to be gone in TheManuel's post
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

IG-88

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2042
  • Last login:June 10, 2025, 09:51:23 pm
  • Posts: 48,764
Re: Problem snaps in MaLa - How to convert
« Reply #23 on: January 03, 2011, 06:10:11 pm »
Nevermind. Found this free program called FastStone Resizer that does the same trick. Took about a minute and a half.

http://tinyurl.com/268ar7j
"I know what a HAL 9000 is... I was wondering if HAL 7600 was his retarded cousin or something..."
-HarumaN

danny_galaga

  • Grand high prophet of the holy noodle.
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 8519
  • Last login:Yesterday at 04:27:29 am
  • because the mail never stops
    • dans cocktail lounge
Re: May have found bug with snaps in MaLa
« Reply #24 on: January 04, 2011, 01:29:03 am »
I'll give it a shot if I can figure out hot to do it.
I feel like a monkey playing with a cel phone.

:duckhunt


ROUGHING UP THE SUSPECT SINCE 1981