ntzrmtthihu777 |
Wednesday 13 March 2013 at 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 Edited by ntzrmtthihu777
|
petch |
Thursday 14 March 2013 at 0:08
|
petch
|
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? Edited by petch
|
ntzrmtthihu777 |
Thursday 14 March 2013 at 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 Edited by ntzrmtthihu777
|
ntzrmtthihu777 |
Thursday 14 March 2013 at 4:11
|
ntzrmtthihu777
|
In action:
|
Ronin DUSETTE |
Friday 15 March 2013 at 0:33
|
Ronin DUSETTE
|
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.
|
ntzrmtthihu777 |
Friday 15 March 2013 at 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 |
Friday 15 March 2013 at 17:53
|
Ronin DUSETTE
|
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
|
ntzrmtthihu777 |
Friday 15 March 2013 at 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 |
Saturday 16 March 2013 at 0:18
|
Ronin DUSETTE
|
|
Ronin DUSETTE |
Saturday 16 March 2013 at 0:24
|
Ronin DUSETTE
|
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. Edited by RoninDusette
|
ntzrmtthihu777 |
Saturday 16 March 2013 at 0:32
|
ntzrmtthihu777
|
Well thats basically it, I can't exactly screenshot in the music, lol.
|
Ronin DUSETTE |
Saturday 16 March 2013 at 0:36
|
Ronin DUSETTE
|
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.... Edited by RoninDusette
|
ntzrmtthihu777 |
Saturday 16 March 2013 at 0:39
|
ntzrmtthihu777
|
|
Ronin DUSETTE |
Saturday 16 March 2013 at 2:40
|
Ronin DUSETTE
|
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.
|
Ronin DUSETTE |
Saturday 16 March 2013 at 4:51
|
Ronin DUSETTE
|
|
ntzrmtthihu777 |
Sunday 17 March 2013 at 6:04
|
ntzrmtthihu777
|
heh, just glad to get my fav programs easily available to others that love it too.
|
Ronin DUSETTE |
Monday 18 March 2013 at 17:06
|
Ronin DUSETTE
|
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
|
ntzrmtthihu777 |
Monday 25 March 2013 at 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 |
Monday 25 March 2013 at 17:46
|
Ronin DUSETTE
|
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. :)
|
ntzrmtthihu777 |
Wednesday 27 March 2013 at 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.
|