Playing on WINE? Try my launcher shell script!

Game configuration tutorials, addons and macros.

Playing on WINE? Try my launcher shell script!

by Zolona » Thu May 07, 2015 7:40 pm

If you don't know what WINE is and/or you are a Windows user, this is not for you.

Prerequisites:
wine and vanilla (obviously!)

Optional prerequisites:
ImageMagick and inotify-tools (auto-conversion of screenshots to PNG)
xdotool (auto-types your password from a file [WoW.pass])

View/Download:
https://gist.github.com/v2px/345192c95a4bde23c99d

any feedback is welcome
Last edited by Zolona on Fri May 08, 2015 5:41 pm, edited 1 time in total.
Zolona
Grunt
Grunt
 

Re: Playing on WINE? Try my launcher shell script!

by anas2660 » Fri May 08, 2015 4:58 pm

Hello i'm very new here :)

I am quite new on linux and i am still having a bit of trouble understanding it all. i cant just go back to windows to play world of warcraft because i am signed up to a linux 1 year challenge at https://forum.teksyndicate.com/t/1-year ... enge/74682 . I am signed up as candfa.

The only way i know how to play games that arent native to linux right now is through playonlinux.
I guess that a script isnt actually a replacement for playonlinux but can you tell me how to set it up? Also if i get the time for it and it's as complicated to set up as i think, i might even make a little tutorial video for you :)
anas2660
Tester
 

Re: Playing on WINE? Try my launcher shell script!

by Zolona » Fri May 08, 2015 5:33 pm

Welcome to Linux!

I've never used PlayOnLinux but it seems like it's just a frontend that manages different wine installations.
If you are on Ubuntu, like it says on that link you posted, you can install a recent wine version with
Code: Select all
sudo apt-get install wine


and the other dependencies (if you want to use them) with
Code: Select all
sudo apt-get install imagemagick inotify-tools xdotool


Then you just save the script to a cool place with a cool filename (I keep it in the Vanilla directory and have named it launch.sh) and make it executable:
Code: Select all
chmod +x launch.sh


Edit it with your favourite text editor, ..

and it should just work:
Code: Select all
./launch.sh
from the directory where the script lives or just double click it.
Zolona
Grunt
Grunt
 

Re: Playing on WINE? Try my launcher shell script!

by anas2660 » Fri May 08, 2015 7:16 pm

3 things :)

1)
It seems to be working :D

However i've tried to make it an executable, but only the command "./launch.sh" works. i can't doubleclick.
Sorry if i'm full retard right now xD

2)
Also my ingame fps is at an average of ~20 fps xD i just wanted to know if it was playonlinux, or something. whats your fps? if you have a fix, i would like that too :D

3) thanks for the quick response :)
anas2660
Tester
 

Re: Playing on WINE? Try my launcher shell script!

by Zolona » Sat May 09, 2015 8:29 am

It seems like PlayOnLinux is setting the following values in WTF/Config.wtf automatically:

Code: Select all
SET gxApi "opengl"
SET ffxDeath "0"
SET SoundOutputSystem "1"
SET SoundBufferSize "150"
SET MasterSoundEffects "0"


Does this help with the performance issues? :)

If ./launch.sh works, the script is already marked as executable. In the desktop environment I use (MATE/Gnome 2), you can add program launchers to a panel - and you can give them a custom icon and a path to launch. Just try typing "<your desktop> custom launcher" into Google - it should bring uop some good results.
Zolona
Grunt
Grunt
 

Re: Playing on WINE? Try my launcher shell script!

by anas2660 » Sat May 09, 2015 1:23 pm

i've tried that :)

after some tests it seems like my CPU use sometimes goes up to 75-90% usage. and when I go into processes
when it is that high WoW.exe only uses 5% CPU usage, and yet it still uses the most of all processes(added up they use about 20%). when it is like this wow is usually at 4-6fps

randomly my CPU usage will go down to 30% and the process WoW.exe then uses about ~20%.
this ofc makes more sense since the other processes uses the last 10% of the 30% CPU usage. when my computer is in this state I get about 37-40fps. This state does not last too long before going back to the first laggy state.

I tried with both openGL and direct3D as the graphics API and what I have found is that they give the same fps (as in with the 2 states I listed above) that is why I usually use direct3d since it has support for hardware cursor. as you can probably imagine a 5fps cursor is not fun to have :)

I have my suspicions about how it might be my CPU processing the 5k people online xD
anas2660
Tester
 

Re: Playing on WINE? Try my launcher shell script!

by Zolona » Mon May 11, 2015 9:24 am

I'm sorry but I can't help you with that. :( Sounds really weird tho, please tell me when you found out what causes it.

I updated the script to fix a frame rate drop when taking a screenshot and fixed a bug where it would not exit cleanly.
Zolona
Grunt
Grunt
 

Re: Playing on WINE? Try my launcher shell script!

by morno » Mon May 11, 2015 11:24 am

woo :) good job :D
morno
Private
Private
 


Return to Getting started on Nostalrius