Art work update is awesome, how to add missing ones?

Moderators: mdrjr, odroid

Art work update is awesome, how to add missing ones?

Unread postby GldRush98 » Sat Aug 11, 2018 10:39 am

Very nice update crash!
Is there an easy way to add in missing artwork for the end user? I'm not sure of the file format how how the springboard matches up a game to an art file. :geek:
GldRush98
 
Posts: 10
Joined: Wed Aug 08, 2018 12:58 am
languages_spoken: English
ODROIDs: ODROID-Go

Re: Art work update is awesome, how to add missing ones?

Unread postby mameise » Sat Aug 11, 2018 4:16 pm

Yes this is really amazing crash. Thanks a lot.

One small wish: If it would be possible to navigate through the games and emulators while in romart view it would be great.
Left/right - previous/next rom
Up/down - previous/next emulator
Maybe a combination of select and left/right together to jump pages in romlist.

Would be really cool :)
mameise
 
Posts: 68
Joined: Sat Jul 07, 2018 6:40 am
languages_spoken: english german
ODROIDs: ODROID-GO

Re: Art work update is awesome, how to add missing ones?

Unread postby jutleys » Sat Aug 11, 2018 10:14 pm

And it would be nice if the pack can be updated regularly to add the missing game artwork but good job.
jutleys
 
Posts: 47
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Art work update is awesome, how to add missing ones?

Unread postby crashoverride » Sat Aug 11, 2018 10:34 pm

GldRush98 wrote:Is there an easy way to add in missing artwork for the end user?

Currently, there is not. So here are the details for the "hard way":

The ESP32 processor used in the ODROID-GO has many constraints. The esp-idf SDK has no concept of a BMP, PNG, JPG, or other graphical image format. In fact, it has no concept of an image at all. Therefore, an image format was created for the artwork that consists of the following:
Width: 2 byte unsigned integer, maximum value 320 (LCD width)
Height: 2byte unsigned integer, maximum value 176 (LCD height - 32 lines on top - 32 lines on bottom)
Data: RGB565 (2 bytes) pixel data of Width * Height
(All values are little endian)

The esp-idf SDK also has no concept of a database. Therefore, a file hierarchy on the SD card is used. The CRC32 checksum of a file is used as the primary key:
/romart/system/index/crc32.art
system = nes, gb, gbc, sms, gg, col
index = first character of the CRC32
crc32.art = image file as described above with the CRC32 in hexadecimal (including leading zeros) as the name and ".art" as the extension.

To further complicate things, it is an established practice in the "scraping world" that ROM checksums do not include header information. Currently, only NES has a header (iNES) so the first 16 bytes of a .nes file are skipped when calculating the CRC32. All the other systems do no use a header.

As an example, for a .gbc rom file. First, the CRC32 of the entire file is calculated. In this example we will say its "0x1234abcd". A romart file for this would be located at:
/romart/gbc/1/1234ABCD.art
crashoverride
 
Posts: 3844
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Art work update is awesome, how to add missing ones?

Unread postby mad_ady » Sun Aug 12, 2018 12:18 am

I'm sure a simple script could be made to take an image and a rom and produce the correct art file.
Who has time to do it?
User avatar
mad_ady
 
Posts: 4211
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Art work update is awesome, how to add missing ones?

Unread postby rooted » Sun Aug 12, 2018 4:46 am

mad_ady wrote:I'm sure a simple script could be made to take an image and a rom and produce the correct art file.
Who has time to do it?
You are pretty good with perl are you not? ;)
User avatar
rooted
 
Posts: 5297
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Art work update is awesome, how to add missing ones?

Unread postby crashoverride » Sun Aug 12, 2018 5:07 am

I forgot to mention that the source of the data is OpenVGDB:
https://github.com/OpenVGDB/OpenVGDB/releases

It is a Sqlite database containing systems, ROMs, and releases.
crashoverride
 
Posts: 3844
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Art work update is awesome, how to add missing ones?

Unread postby mad_ady » Sun Aug 12, 2018 5:38 am

rooted wrote:
mad_ady wrote:I'm sure a simple script could be made to take an image and a rom and produce the correct art file.
Who has time to do it?
You are pretty good with perl are you not? ;)
I realize you're trying to hook me into doing it, but it won't work due to lack of time. But perl is not needed for the task - I think shell script is good enough. You're good with shell script, are you not? [emoji14]
User avatar
mad_ady
 
Posts: 4211
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Art work update is awesome, how to add missing ones?

Unread postby rooted » Sun Aug 12, 2018 6:29 am

mad_ady wrote:
rooted wrote:
mad_ady wrote:I'm sure a simple script could be made to take an image and a rom and produce the correct art file.
Who has time to do it?
You are pretty good with perl are you not? ;)
I realize you're trying to hook me into doing it, but it won't work due to lack of time. But perl is not needed for the task - I think shell script is good enough. You're good with shell script, are you not? [emoji14]
I don't have a Go unfortunately, will have to wait until they are back in stock. I missed it last two times.

I was joking also, I would never want you to miss spending time with your little ones.
User avatar
rooted
 
Posts: 5297
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Art work update is awesome, how to add missing ones?

Unread postby GldRush98 » Sun Aug 12, 2018 12:26 pm

Whew, yeah there would need to be a tool for me to handle that :lol:
Thanks for the info. All in good time I'm sure :)
Very nice update though, I do love the artwork as is!
GldRush98
 
Posts: 10
Joined: Wed Aug 08, 2018 12:58 am
languages_spoken: English
ODROIDs: ODROID-Go


Return to Game Emulators

Who is online

Users browsing this forum: No registered users and 4 guests