Ghostofkendo |
Samedi 6 Juin 2009 à 23:19
|
Ghostofkendo
|
Hi,
Here's a script for the free to play MMORPG Perfect World International and here are the test conditions:
Wine version: 1.1.22
Distribution: Linux Mint
Distribution Version: 7 (Gloria, 32 bits)
Graphic card: NVIDIA GeForce 8600M GT
Driver of the graphic card: 180.44
Comments:
- Applying the update patches when running the game for the first time is very long (to my mind, it's because of the server being in asia).
- I didn't need to install DirectX 9 or to change registry keys to make it work, just to install the Microsoft fonts to make the texts readable.
- I didn't manage to change the key bindings (it could be problematic for non-qwerty keymaps).
Please test this script and tell me if it worked or not, I'll modify it if necessary.
When there will be positive test results, I'll be able to validate it and it will be officially available in POL.
EDIT: Since displaying the code of the script here was distorting the forum, I removed it. You can find it HERE instead. (the file's encoding is UTF-8) Edité par Ghostofkendo
|
NSLW |
Dimanche 7 Juin 2009 à 12:43
|
NSLW
|
Hello,
i've got a question:
Do this work?
if [ "$APP_ANSWER" = "FALSE" ]; then
I mean: shouldn't there be double "=" so it would looks like
if [ "$APP_ANSWER" == "FALSE" ]; then
|
Ghostofkendo |
Dimanche 7 Juin 2009 à 19:48
|
Ghostofkendo
|
Do this work?
if [ "$APP_ANSWER" = "FALSE" ]; then
I mean: shouldn't there be double "=" so it would looks like
if [ "$APP_ANSWER" == "FALSE" ]; then
Yes, it also works with only one "=" character.
Moreover, using only one "=" seems to be the usual way of doing a test in Bash because all the Bash programming guides I found show examples of tests with one "=" (like this famous guide).
Bye ;-)
|
NSLW |
Dimanche 7 Juin 2009 à 20:07
|
NSLW
|
Ok. Thanks for an answer, but i've got another question:
Would your script work on e.g. Jojonintendo's Linux? I mean this part of your script
POL_SetupWindow_make_shortcut "$GAME_PREFIX" "Program Files/Perfect World Entertainment/Perfect World International/patcher" "patcher.exe" "" "$GAME_NAME" "" ""
You assumed everyone on the world has got Program Files but it's not a fact. I suggest to look how i did it here
Edité par NSLW
|
Ghostofkendo |
Dimanche 7 Juin 2009 à 20:44
|
Ghostofkendo
|
Ok. Thanks for an answer
Your welcome ;-)
Would your script work on e.g. Jojonintendo's Linux? I mean this part of your script
POL_SetupWindow_make_shortcut "$GAME_PREFIX" "Program Files/Perfect World Entertainment/Perfect World International/patcher" "patcher.exe" "" "$GAME_NAME" "" ""
You assumed everyone on the world has got Program Files but it's not a fact. I suggest to look how i did it here
My turn now to thank you for this very useful tip :D
However, before it edit the script to add this, I've got a question too:
The following line works great PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"` but the next one doesn't. For me, the PROGRAMFILES variable contains "e cmd /c echo "%ProgramFiles%"" instead of "Program Files" after running PROGRAMFILES=${PROGRAMFILES:3} Is it normal?
Bye
PS: By the way, I didn't notice until now that you've made a script for CATIA, I'm very impressed. :-° Does it run well?
|
NSLW |
Dimanche 7 Juin 2009 à 21:11
|
NSLW
|
My turn now to thank you for this very useful tip :D
You're also welcome :)
The following line works great PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
So this line gives you
wine cmd /c echo "%ProgramFiles%" and it should give you
C:/Program Files (there should be backslash instead of slash)
For me, the PROGRAMFILES variable contains "e cmd /c echo "%ProgramFiles%"" instead of "Program Files" after running PROGRAMFILES=${PROGRAMFILES:3} Is it normal?
No it's not normal it should give you
Program Files
Are you sure you tested it carefully. It works for me you can see similar example here(10.5) They also using such quotes ' <- here is quote sign. Without them you would get such output as you posted
Maybe it's because of bash version. I use
GNU bash, version 3.2.39(1)-release
PS: By the way, I didn't notice until now that you've made a script for CATIA, I'm very impressed. :-° Does it run well?
Yes it does run quite well. I didn't made any news because I think there aren't many peoples interested.
|
Ghostofkendo |
Lundi 8 Juin 2009 à 11:45
|
Ghostofkendo
|
Are you sure you tested it carefully. It works for me you can see similar example here(10.5) They also using such quotes ' <- here is quote sign. Without them you would get such output as you posted
You are right, I didn't read carefully enough: I used simple quote characters ( ' ) instead of grave accent characters ( ` ) pinch:
Now that it works, I updated the script ;-)
|
Jojonintendo |
Lundi 8 Juin 2009 à 14:16
|
Jojonintendo
|
What happened with me ? :D
I do have the "Program File" directory ;-), but sure it is useful to correct it for other users.
Thanks again for the srcipt, for now on it worked on my PC, but not on my laptop... I think my ATI GPU is the problem.
|
Ghostofkendo |
Lundi 8 Juin 2009 à 14:21
|
Ghostofkendo
|
Thank you Jojonintendo for the report. :)
Thanks again for the srcipt, for now on it worked on my PC, but not on my laptop... I think my ATI GPU is the problem.
Could you give more details about the issue with your laptop please?
|
Jojonintendo |
Lundi 8 Juin 2009 à 21:25
|
Jojonintendo
|
Well, the update worked nice. The problem started when creating a character. It was displayed good, but with a strange bug that made the head of the character very long (out of the screen). And when I try to connect, it just doesn't work at all, it gets frozen and nothing more. I tried to use DirectX, but it is exactly the same.
|
Ghostofkendo |
Lundi 8 Juin 2009 à 22:57
|
Ghostofkendo
|
Ok, so could you try to assign Wine 1.1.5 to PW to see if it solves your bug.
If not, assign back Wine 1.1.22 and do the registry changes indicated in this page, after the video.
Finally, if nothing above improved PW's behaviour, try to install DirectX 9 with winetricks (via NSLW's POL Helper).
|
NSLW |
Mardi 9 Juin 2009 à 7:47
|
NSLW
|
try to install DirectX 9 with winetricks (via NSLW's POL Helper).
Thanks for advising my plugin :) but it's not required to do DirectX 9 installation.
I rewrote script for installing DirectX it's called DirectX End-User Runtimes and it is in Other section and i advise to use this, because you can choose which version of DirectX user wishes to install.
|
Jojonintendo |
Mardi 9 Juin 2009 à 14:03
|
Jojonintendo
|
Hi again,
I tried to apply Wine 1.1.5, but I couldn't see the mouse, and the game got frozen just after. I tried with Wine 1.1.22 and the registry changes, but the problem is the same (i finally could take a shot):
Now NSLW I'll try your installation script of DirectX, and report back :)
Edit: I have a problem when installing DirectX, after the install is finished, I press the contunue button, and nothing happens... So I kill the process, and then POL gives me an error, and recommends me to retry the installation :-/ Edité par Jojonintendo
|
NSLW |
Mardi 9 Juin 2009 à 15:45
|
NSLW
|
POL gives me an error, and recommends me to retry the installation :-/
Your DirectX didn't download successfully and i didn't add force option for removal of this corrupted DirectX :-° Anyhow delete anything that has directx in it in "~/.winetrickscache" directory and try again.
|
Jojonintendo |
Mardi 9 Juin 2009 à 16:20
|
Jojonintendo
|
Actually, there is nothing in the ~/.winetrickscache directory. I'll try to install some other version of DirectX.
|
NSLW |
Mardi 9 Juin 2009 à 16:29
|
NSLW
|
Edit: I have a problem when installing DirectX, after the install is finished
there is nothing in the ~/.winetrickscache directory
These two sentences are contradiction. If you finished DirectX installation then DirectX was downloaded to "~/.winetrickscache" and started from there. Script doesn't delete this file so you don't have to download it twice. What message do you get exactly?
|
Jojonintendo |
Mardi 9 Juin 2009 à 17:49
|
Jojonintendo
|
I think a shot is the best way to explain it well :). I thought it was installed, but as you say, it's impossible... I get this and then the window won't quit:
So it seems to be installed, but as nothing happens, I kill the process, and then there is nothing in the directory (there is one directx thing only during the installation). Edité par Jojonintendo
|
NSLW |
Mardi 9 Juin 2009 à 17:56
|
NSLW
|
This script fired up DirectX installation. Now you have to click Suivant to continue directx installation.
|
Jojonintendo |
Mardi 9 Juin 2009 à 18:03
|
Jojonintendo
|
That is just the problem ^^. I press Suivant and nothing happens at all.
|
NSLW |
Mardi 9 Juin 2009 à 18:17
|
NSLW
|
That is just the problem ^^. I press Suivant and nothing happens at all.
:^^: I understand now
It's may be because your default Wine is 1.0.1 (installed in OS) and this version may have problems with DirectX installing. The solution would be to use earlier DirectX or to use newer Wine to do so set "1.1.23" value "Default Wine Version to run wine programs with PlayOnLinux" in Settings->Environment
|