levisjani / winetricks

Automatically exported from code.google.com/p/winetricks
0 stars 0 forks source link

New verb for Melolune game #358

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've made a new Winetricks verb to install Laura Shigihara's Melolune IGF demo 
and I'd like it to be included in the official Winetricks release.

However I'd like to refine it a little and I have questions on how to do so.

1. MP3 codecs must be installed for the game, some Wine versions work with MP3 
playback out-of-the-box, MP3 files are silent under some older versions. I'd 
like to add a check to install MP3 codecs if necessary.

2. It would be nice to create a launcher icon on the desktop - is there a 
function for that?

3. I couldn't get MIDI playback work under Wine, so the actual workaround is to 
convert MIDI files to Ogg Vorbis format with TiMidity. Does anyone know of a 
smooth way to get MIDI playback work properly?

The actual version of my verb is attached, please share your comments.

Original issue reported on code.google.com by megabru...@gmail.com on 5 Oct 2013 at 1:34

Attachments:

GoogleCodeExporter commented 8 years ago
1. Not sure which version fixed mp3 playback, or whether it's working still
in latest wine.  If you can narrow down the version when it started working
for this game, maybe we can see the related bug in bugzilla.

2. No function yet for launcher icons, but it'd be nice to have.
Paul Rafferty mentioned that he uses lines like

wrestool -x -t 14 $installed_exe1 > $W_TMP/musicbee.ico
icotool -x --palette-size=0 -o $W_TMP $W_TMP/musicbee.ico
cp `ls -S -1 $W_TMP/musicbee*.png | head -n 1` 
${HOME}/.local/share/icons/musicbee.png

to extract icons in a winetricks verb he's working on.
We should provide a function for that.

3. Dunno about midi, sorry.

Rather than unconditionally 
installing directmusic, make it a workaround
for, say, wine bug 13884.  Then you don't need a separate echo statement.

Random comment:
The game's kind of obscure, so please add a 
homepage="http://leebleforest.wordpress.com/"
line of metadata.

Original comment by daniel.r...@gmail.com on 5 Oct 2013 at 6:00

GoogleCodeExporter commented 8 years ago
1. Turns out, it doesn't depend on the Wine version - it depends on how Wine 
was compiled. Thinking of distros where Wine comes pre-compiled, I don't know 
how to determine what configure options the packager used to compile Wine. Is 
there a way to know that? How could I know if Wine was compiled with 
'--without-mpg123' or not?
Info: http://wine-wiki.org/index.php/Sound_Troubleshooting#MP3

2. Pity - well now I included a solution which creates a desktop icon, maybe it 
could be generalized. :) Thanks for the tip on how to extract the icon! Though 
probably it wasn't that important for this game since it uses the generic RPG 
Maker icon - the developer hasn't customized it yet.

3. OK, then this TiMidity conversion workaround must stay, as it seems. :(

Unfortunately I've never seen any version of Wine which could run this game 
without directmusic, so I think it must be unconditionally installed.

I attached a new version. The only thing missing is to check the MP3 playback 
capability - if there is no way to check that, at least there should be a 
warning for the user to be aware of this problem. I remember, on Ubuntu Lucid 
MP3 playback doesn't work, and I needed to install a codec manually - but I 
don't remember how, but sure it wasn't through winetricks, cause I couldn't 
find a verb to install MP3 codec. On Quantal, MP3 playback works out-of-the-box.

Original comment by megabru...@gmail.com on 6 Oct 2013 at 4:28

Attachments: