Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#225 closed enhancement (fixed)

A Script to generate Screenshots for Emulators configured in Mythgame...

Reported by: anonymous Owned by: greg
Priority: minor Milestone: 0.20
Component: mythgame Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This should be an addon Script for the contrib directory.

It uses the Programm scrot to generate screenshots for the Emulators defined in the New Mythgame.

Thestes with zsnes and it worked well.

Attachments (4)

emulator_screenshots.sh (2.3 KB) - added by jochen 14 years ago.
New Version 2.0
emulator_screenshots21.sh (2.3 KB) - added by jochen 14 years ago.
2.1 small bug fixed
emulator_screenshots30.sh (4.2 KB) - added by jochen 14 years ago.
Version 3.0
emulator_screenshots.2.sh (4.7 KB) - added by jochen 14 years ago.
Testversion 4.0 (deosn't work)

Download all attachments as: .zip

Change History (14)

comment:1 Changed 14 years ago by Isaac Richards

Owner: changed from Isaac Richards to greg

Changed 14 years ago by jochen

Attachment: emulator_screenshots.sh added

New Version 2.0

comment:2 Changed 14 years ago by jochen

Type: enhancementpatch

New Version of the Script:

Supports Parameters wich are stored in the emulator commandline in the database.

whats missing:

  • replacement of the variables in the commandline with the romname
  • using only the extensions stored in the database
  • serching through subdirectorys
  • checking if a screenshot exits

comment:3 Changed 14 years ago by anonymous

Type: patchenhancement

Changed 14 years ago by jochen

Attachment: emulator_screenshots21.sh added

2.1 small bug fixed

Changed 14 years ago by jochen

Attachment: emulator_screenshots30.sh added

Version 3.0

comment:4 Changed 14 years ago by jochen

3.0 changes:

  • extensions now supported
  • check if screenshot exits.

missing:

  • replacement of variables on the commandline
  • subdirectorys.

comment:5 Changed 14 years ago by greg

Status: newassigned

You could use the gamemetadata table here which contains the ROMPATH that the game was found in as well as the romname and thereby avoid having to worry about file extensions, subdirectories or loopthing through the contents of the base rompath.

Changed 14 years ago by jochen

Attachment: emulator_screenshots.2.sh added

Testversion 4.0 (deosn't work)

comment:6 Changed 14 years ago by jochen

I've updated the script to use the gamemetadata table.

now it need to be patched so that the $COMMANDLINE var is splited to cmdrun and cmdpar. If someone would work on this, i've no time...

comment:7 Changed 13 years ago by danielk

Milestone: 0.20
Version: head

comment:8 Changed 13 years ago by jochen

Resolution: fixed
Status: assignedclosed

This ticket is closed, because i've added the functionality of this script directly to mythgame...

comment:9 in reply to:  8 Changed 13 years ago by ryebrye@…

Replying to jochen:

This ticket is closed, because i've added the functionality of this script directly to mythgame...

Can you please explain how to access this functionality in mythgame? I have the latest svn build, but can't figure out how to make it build screenshots automatically for my several thousand roms... (yeah, you can see why an automatic generator is a feature I want!)

Ryan

comment:10 Changed 13 years ago by greg

The code to incorporate this directly within mythgame was never accepted into the code base and likely will not be.

There are just way too many potential issues with this and anyone wishing to do it will have to do it manually with a script (including the ones Jochen added to the system).

If you have any further comments and questions please do so on the mailling lists as the ticket system is not a help forumn :)

Note: See TracTickets for help on using tickets.