Het forum

UTAU 4.16

Japanese singing synth software

Auteur Antwoorden
Jump to the page: 1 - 2
ntzrmtthihu777 Woensdag 13 Maart 2013 om 23:57
ntzrmtthihu777

Almost got this one working just fine, problem is I need a way to force the program to run with LANG="ja_JP.utf8", even if the english patch is activated (odd, yes, but its just how the software works.)

#!/bin/bash
# Date                        : (2013-03-12 22-21)
# Last revision                : (2013-03-12 22-21)
# Wine version used            : 1.5.24
# Distribution used to test    : Ubuntu 12.04.2 LTS
# Author                    : ntzrmtthihu777
# Testers                    :

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="UTAU 4.16"
PREFIX="UTAU"
ORIG_LANG="$LANG"    #stores the original system language
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "飴屋/菖蒲" "http://utau-synth.com/" "ntzrmtthihu777" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

#dowloads the installer and installs program properly with a japanese LANG variable
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://utau2008.xrea.jp/utau0416installer.zip" "253279ffc847eecce8c6ff75daa54fb1"
unzip utau0416installer.zip
#sets lang to japanese, needed for a proper install
LANG="ja_JP.utf8"
POL_Wine start /unix "$POL_System_TmpDir/utau0416inst.exe"
POL_Wine_WaitExit "utau0416inst.exe"
rm "$HOME/Desktop/UTAU - 歌声合成ツール.lnk"
#restores original language.
LANG="$ORIG_LANG"

#gives the option to enable the english language patch
POL_SetupWindow_question "$(eval_gettext 'Would you like to enable the English GUI Patch?')" "$TITLE"
if [[ "$APP_ANSWER" == "TRUE" ]]
    then mv "$WINEPREFIX/drive_c/$PROGRAMFILES/UTAU/res/ja" "$WINEPREFIX/drive_c/$PROGRAMFILES/UTAU/res/foo"
fi

#cleans up, creats shortcut
POL_Shortcut "utau.exe" "$TITLE"
POL_System_TmpDelete
POL_Shortcut_InsertBeforeWine "$TITLE" "export LANG=ja_JP.utf8"

POL_SetupWindow_Close
exit

Aangepast door ntzrmtthihu777

petch Donderdag 14 Maart 2013 om 0:08
petch
Developer

Hi,
only a few remarks about your script:
- if you call POL_System_SetArch after POL_Wine_PrefixCreate it's probably too late; Wine doesn't allow to change the architecture of an existing virtual drive;
- start /unix is probably useless;
- parameter of POL_Wine_WaitExit is just "$TITLE". What you're waiting after is really the wine server, not a specific program;
- use $PROGRAMFILES and never "Program Files" in paths, as it depends on locale;
- small typo, POL_Shortcut_InsertBeforeWine misses its "P".

I don't know what to think about Desktop shortcut mangling, I know you opened a feature request, but should scripts take care of that in the mean time, it could be come a maintenance nightmare... For example what will those scripts do with PlayOnLinux versions that implement the feature?

Aangepast door petch

ntzrmtthihu777 Donderdag 14 Maart 2013 om 0:22
ntzrmtthihu777

Noted and modified, thanks for the info. It was meant to be more of an example of how the feature request would work.

#!/bin/bash
# Date                            : (2013-03-12 22-21)
# Last revision                    : (2013-03-12 22-21)
# Wine version used                : 1.5.24
# Distribution used to test        : Ubuntu 12.04.2 LTS
# Author                        : ntzrmtthihu777
# Testers                        :

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="UTAU 4.16"
PREFIX="UTAU"
ORIG_LANG="$LANG"    #stores the original system language
POL_SetupWindow_Init
locale -a | grep -q "ja_JP.utf8" || POL_Debug_Fatal "$(eval_gettext 'ja_JP.utf8 locale must be installed for $TITLE to work.')"
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "飴屋/菖蒲" "http://utau-synth.com/" "ntzrmtthihu777" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

#dowloads the installer and installs program properly with a japanese LANG variable
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://utau2008.xrea.jp/utau0416installer.zip" "253279ffc847eecce8c6ff75daa54fb1"
unzip utau0416installer.zip
#sets lang to japanese, needed for a proper install
LANG="ja_JP.utf8"
POL_Wine "$POL_System_TmpDir/utau0416inst.exe"
POL_Wine_WaitExit "$TITLE"
rm "$HOME/Desktop/UTAU - 歌声合成ツール.lnk"
#restores original language.
LANG="$ORIG_LANG"

#gives the option to enable the english language patch
POL_SetupWindow_question "$(eval_gettext 'Would you like to enable the English GUI Patch?')" "$TITLE"
if [[ "$APP_ANSWER" == "TRUE" ]]
    then mv "$WINEPREFIX/drive_c/$PROGRAMFILES/UTAU/res/ja" "$WINEPREFIX/drive_c/$PROGRAMFILES/UTAU/res/foo"
fi

#cleans up, creates shortcut
POL_Shortcut "utau.exe" "$TITLE"
POL_System_TmpDelete
POL_Shortcut_InsertBeforeWine "$TITLE" 'export LANG=ja_JP.utf8'

POL_SetupWindow_Close
exit 0

Aangepast door ntzrmtthihu777

ntzrmtthihu777 Donderdag 14 Maart 2013 om 4:11
ntzrmtthihu777

In action:
Ronin DUSETTE Vrijdag 15 Maart 2013 om 0:33
Ronin DUSETTE
Admin

Can you submit this for signing so that we can get it up? :)

Also, if you have resources (icons, etc.), post the link, and we will take care of that, too.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Vrijdag 15 Maart 2013 om 11:49
ntzrmtthihu777

We'll need someone with stronger japanese than I to translate the description to english, but here is some [url=http://www.fileden.com/files/2012/12/25/3379865/utau_gfx.zip
]gfx[/url] (I had nothing atm for the left panel, perhaps I can get an artist friend after it.)
Ronin DUSETTE Vrijdag 15 Maart 2013 om 17:53
Ronin DUSETTE
Admin

Thats fine, but did you submit it for signing? You gotta do it yourself, otherwise it will have my name listed as the one that submitted it. haha

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Vrijdag 15 Maart 2013 om 21:24
ntzrmtthihu777

yeah, I have submitted it, lol. give it a whirl, if'n yah like. you need to install the japanese locale in order for it to work, though.
Ronin DUSETTE Zaterdag 16 Maart 2013 om 0:18
Ronin DUSETTE
Admin

Word. :)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Zaterdag 16 Maart 2013 om 0:24
Ronin DUSETTE
Admin

Ok, so its signed and good to go. If any corrections need to be made, you can post here and/or post a bug report for the script, and I can make whatever changes are needed.

As for the screenshot; could you get a full screenshot of the program actually being used? a few (usually 3) would be much better, displaying the app itself.

Also, i dont have access to FTP yet, so petch, ptinou, or aplu will have to upload those resources. Ill make sure to get access to the FTP this weekend so that I can take care of resources on the English side.

Thanks. GIve us a buzz if anything goes awry.

Aangepast door RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Zaterdag 16 Maart 2013 om 0:32
ntzrmtthihu777

Well thats basically it, I can't exactly screenshot in the music, lol.
Ronin DUSETTE Zaterdag 16 Maart 2013 om 0:36
Ronin DUSETTE
Admin

Hahahaha. Smart ass. :)

I dont mean that, but in general, we want a screenshot of the program, NOT including the background/desktop of your system.

Also, I mean, just click around a bit, show some different options, maybe show it in action. Obviously we dont have to hear it, but for instance, look at the Ableton Live 8 script that I posted, and check out its screenshots. Nothing really special, but showing that its playing, the transport is working, levels going up and down, etc....

Aangepast door RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Zaterdag 16 Maart 2013 om 0:39
ntzrmtthihu777

:P as I always say, better a smart ass than a dumb ass (in no way implying you are one :D) But yeah, I got the thought right after I posted my last message. Will get a bit more, ok? With RPG Maker XP it was a simple thing, just play a quickly thrown together non-default game, right?





Aangepast door ntzrmtthihu777

Ronin DUSETTE Zaterdag 16 Maart 2013 om 2:40
Ronin DUSETTE
Admin

hahaha. Word.

Ohhhh yeah. Thats perfect. (I talk crass sometimes. Its a language of endearment. If I talk sh**, I like ya. haha)

Ill totally get those up here in a few. They look great.

Those are the kind of screenshots we try to go for. Giggity.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Zaterdag 16 Maart 2013 om 4:51
Ronin DUSETTE
Admin

Got em. Thanks! :)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Zondag 17 Maart 2013 om 6:04
ntzrmtthihu777

heh, just glad to get my fav programs easily available to others that love it too.
Ronin DUSETTE Maandag 18 Maart 2013 om 17:06
Ronin DUSETTE
Admin

Dude. Same here. Wine is great, but this project really enabled me to ditch my Windows machine (at least for most games, but mostly for my music software). I still run a windows partition on my laptop for when I am performing (I cant have ANY glitches while performing), but other than that, Linux pretty much does everything that I need it to do, and my LT+ Xbox 360 takes care of the rest. haha

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Maandag 25 Maart 2013 om 14:44
ntzrmtthihu777

Question: The creator of UTAU has came out with a new version. I already got the info needed to update the script for the new version, but should I post here and have ya'll update it or submit a new script?
Ronin DUSETTE Maandag 25 Maart 2013 om 17:46
Ronin DUSETTE
Admin

Will it still work for the older version of UTAU? If its a different versions, and requires a different script, then yeah, a new script will be in order..

Unless you can find out how to make 1 script work for both versions. :)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Woensdag 27 Maart 2013 om 13:59
ntzrmtthihu777

I could easily make it work for both and any newer version as they come along, but the update is just a bugfix so it basically just needs a few switches. Its not like it came out with a version that is radically different to the first.
Je bent hier: Index > Your creations. > UTAU 4.16