Showing posts with label StarCraft II. Show all posts
Showing posts with label StarCraft II. Show all posts

2015-01-17

Linux Mint 17 on Laptop Acer Aspire-E5-571G PART2

Linux Mint 17 on Laptop Acer Aspire-E5-571G PART1
  • Nvidia driver

I added this PPA
https://launchpad.net/~xorg-edgers/+archive/ubuntu/ppa
And install Nvidia-343 driver
I find out that prismusrun is alternative to optirun
  • Avoiding Video tearing while watching 60 fps video

VLC useless
Mplayer works only with Intel vaapi
$ export VDPAU_DRIVER=va_gl &&  mplayer -cache 8192 file.mkv 
XBMC kodi can use both Nvidia or Intel vaapi (default)
$ prismusrun kodi
$ kodi
Totem works with Nvidia
$ prismusrun totem
  • Gaming

I Instaled Wine1.7 and using prismus StartCraft II works!
$ prismusrun wine /path/to/StarCraft-II-Setup-enGB.exe
  • Resource

http://askubuntu.com/questions/305305/running-xbmc-on-bumblebee-nvidia
http://ubuntuforums.org/showthread.php?t=2121749
  • Note

Hard drive on this laptop is large 1TB, but not very fast. Thats why mplayer better works with bigger cache option. I came to conclusion that most of the lag is hard drive retailed. So I made a few more settings. Set swappiness to 1 (how to) ant added "noatime" to FSTAB.


2014-01-25

Bash script for Livestreamer to record twitch stream by schedule

 Install livesreamer from:

http://livestreamer.tanuki.se/en/latest/

Very very thankful for this tool, I search for something like this sense I hooked on StarCraft II!

To use script, just edit configuration part...  It's pretty self explanatory.
In my time zone, all GSL battles going when I'm at work.
This script allows me to record all and watch it when I come back home after work! :) 

I use livesreamer, not only for recording. Sorry, but Twitch page is lagging and I don't need other stuff, only video. And the best experience, in sense of avoiding video lagging or some sort of interrupts, is to stream to file and then watch it!
Also you can start streaming to file and watch from the file right away. Perhaps you should wait 10 or 15 seconds, this way player not going to catch the end of the file!


^^^^^^^^^^^^^^^^^^^^^^^^^^
#! /bin/bash
STREAM_URL="http://www.twitch.tv/gsl"
STREAM_QUALITY="best"
STREAMS_DUMP_DIR="/media/xbmc/Streams/"
STREAM_FILE_NAME="gsl_code_s_"

#                        month day year hour minutes
START_TIMESTAMP=$(date -d '10/04/2014 11:45' +%s)
END_TIMESTAMP=$(date -d '10/04/2014 19:00' +%s)
KILL_TIMESTAMP=$(date -d '10/04/2014 19:01' +%s)

^^^^^^^^^^^^^^^^^^^^^^^^^^

Bash version1




Bash version 2


It runs as a daemon. Just drop a simple text file to "shed" directory.
Text file should look like this:

^^^^^^^^^^^^^^^^^^^^^^^^^^
# twitch link
URL=http://www.twitch.tv/nathanias
#    Year Month Day
DATE=2014.12.23
#    Hours minutes
TIME=07.45
^^^^^^^^^^^^^^^^^^^^^^^^^^


Also set global configurations before start ("bash.conf"):


^^^^^^^^^^^^^^^^^^^^^^^^^^
# stream quality
QUALITY=best
# directory where steams will be saved
DIR=/media/8b58Volume830GiB/Streams/
# stream offline timeout to consider that stream is ended.
# at least one stream file should be created 
# in minutes
OFFLINE_TIMEOUT=20
^^^^^^^^^^^^^^^^^^^^^^^^^^




Extract archive and open terminal in "livestreamer-deamon" directory

$ ./livestreamer-deamon start


I run this on Raspberry-Pi. I can leave it online 24for7 it consumes ~5W of power and make no noise! It's environment friendly and wife approved! :)))

I added this to /etc/rc.local

^^^^^^^^^^^^^^^^^^^^^^^^^^
# livestreamer-deamon
cd /home/pi/wcs/
su pi /home/pi/wcs/livestreamer-deamon.bash start >> /dev/null 2>> /dev/null &
^^^^^^^^^^^^^^^^^^^^^^^^^^



 

Bash version 3


^^^^^^^^^^^^^^^^^^^^^^^^^^
# twitch link
URL=http://www.twitch.tv/nathanias
#    Year Month Day
DATE=2015.04.04
#    Hours minutes
TIME=19.34

#    Continue for ? days and record everything...
DAYS=3
#    log file
LOG=
^^^^^^^^^^^^^^^^^^^^^^^^^^
If days set to zero it will work as before.


Download :

livestreamer-bash


Enjoy!



2013-01-12

StarCraft II: Wings of Liberty on Ubuntu **UPDATED**





Installation (How to):
StarCraft II: Wings of Liberty on Ubuntu



I am very Happy to Post This!!!


Performance Issue resolved on Ubuntu!

I did update, and now it is:

Ubuntu 12.10
Wine version: 1.5.20

Linux P5QCUbuntu64 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


Nvidia:



In my frost post I dod not write the version of Nvidia driver, I believe it also updated so as Nvidia Settings Tool , cause in the previous version I do not remember option "Prefer Maximum Performance" (Pict. below). I definitely
recommend to set this before starting the game!




I set Game Graphics on Medium!



I really enjoy the Game!
Comparing performance it my some difference with Windows XP. Windows may perform slightly better.... Bud I don't care! Now on Ubuntu + Wine it's good enough!
By by Windows!!!


     




2012-10-24

StarCraft II: Wings of Liberty on Ubuntu

Hardware:

   Intel Core 2 Duo CPU E7500 @ 2.93 GHz x 2
   RAM  8 GB
   GeForce GT 630 PCI-E 2.0  2048MB

OS:

    Ubuntu amd64 12.10  Kernel Linux 3.5.0-17-generic
    Gnome 3.6.0


Back to simple panel Desktop meniu:
sudo apt-get install gnome-panel
Before login, click circle and select "Gnome Classic , No effects"

Set custom time format for the clock in the right top corner,
 Default is just not right!
gsettings set com.canonical.indicator.datetime time-format custom
gsettings set com.canonical.indicator.datetime custom-time-format "%Y-%m-%d  %A <b>%H:%M</b>"


Install Nvidia driver:

Nvidia module should be build during installation, so it needs:

sudo apt-get linux-source-3.5.0
sudo apt-get linux-headers-3.5.0-17-generic
sudo apt-get build-essential

If this part is skipped (install driver without building tools), it result (poor resolution) and nevidia-settings:




sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current


Install wine:
sudo apt-add-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine
(wine-1.5.15)

Set graphic memory size, to prevent, related crashes:

run regedit
got to
 HKEY_CURRENT_USERS create a "Direct3D" key under "HKEY_CURRENT_USER/Software/Wine".
 Within "Direct3D", create a string value "VideoMemorySize" and set the value, in my case 2048 (2 gb)

And Now! The Most Important part Install StarCraft-II-Setup-enGB.exe :)


Summary:

Unfortunately It not perform as well as I would want...
At the beginning of the game it works almost perfect, problem begins at the fight moments!
Generally You can not properly organize Your army during The fight, cause the view is freezing.
I like everything else on Linux better, bud for this game a have to use Windows XP .
From time to time I will check performance with software updates...
The day when the Issue will be resolved, it will be the same day when Windows XP no longer on my PC... =)
P.S. graphics settings on both systems was equal 

StarCraft II: Wings of Liberty on Ubuntu **UPDATED**


Terran techtree...