Sblawx
Posts: 4
Joined: Thu Jan 15, 2015 4:14 pm

Starcraft working on the Pi !!! =D

Thu Jan 15, 2015 5:45 pm

Hi everyone !

I have found a way to play Starcraft natively on Raspberry Pi :D

I used to compile Stratagus, an engine to play Warcraft I, II and Starcraft natively on Linux.
It also supports OpenGL but I don't know how to make it work for now.

You don't believe me ? :shock: Here is the vid I made :D
https://www.youtube.com/watch?v=539tMqFHdck

And there, the link to the stratagus engine :
https://launchpad.net/stratagus

There are some bugs and some of the game features actually don't work.
I don't know how to fix it and I thought it would be interresting if someone could improve this project for the Pi.

A list of the features :

[ + ] All of the Terran units have been added although not all of the features work yet
[ + ] All of the Zerg units have been added although not all of the features work yet
[ + ] Some of the Protoss units have been added
[ + ] Sounds and music work
[ + ] In-game menus are mostly finished
[ + ] More complex Computer AI
[ + ] Tilesets flags have been added although not all of the flags work yet

[ - ] Campaigns do not work
[ - ] Videos do not work
[ - ] Zerg larva + creep have not been added
[ - ] Most of Protoss units have not been added
[ - ] Protoss Shields have not been added
[ - ] Spells do not work
[ - ] In-game console needs some work (unit portraits, etc)

And now what I did to make it work :

First, I downloaded the source codes for stratagus and stargus (stargus is a tool that will extract the data from starcraft).
Stratagus : https://launchpad.net/stratagus/+download
Stargus : https://launchpad.net/stargus/+download


:!: BEFORE INSTALLING THE ENGINE AND THE GAME I STRONGLY RECOMMAND YOU TO INSTALL THIS THINGS :

Code: Select all

sudo apt-get install cmake autoconf gcc lua5.1-dev zlib1g-dev libpng12-dev libbz2-dev libsdl1.2-dev tolua++ devscripts doxygen sharutils libmng-dev libmikmod2-dev libogg-dev libvorbis-dev libtheora-dev libsqlite3-dev libgtk2.0-dev timidity ffmpeg2theora
INSTALL STRATAGUS ENGINE :

We will work on a folder to make it clean :

Code: Select all

mkdir stratagus
cd stratagus
Then we put the archives we downloaded in this directory.
And extract them :

Code: Select all

tar -xvfz stratagus_2.2.7.orig.tar.gz
tar -xvfz stargus_2.2.7.orig.tar.gz
Now we will build the stratagus engine :

Code: Select all

cd stratagus_2.2.7.orig
mkdir build
cd build
cmake .. -DENABLE_DEV=ON
make
sudo make install
If everything happened well, you should see something like this :

Code: Select all

sudo make install
 [ 3%] Built target metaserver
 [ 4%] Built target png2stratagus
 [100%] Built target stratagus
 Install the project...
 -- Install configuration: ""
 -- Installing: /usr/local/games/stratagus
 -- Installing: /usr/local/bin/png2stratagus
 -- Installing: /usr/local/sbin/metaserver
 -- Installing: /usr/local/include/stratagus-game-installer.nsi
 -- Installing: /usr/local/include/stratagus-game-launcher.h
 -- Installing: /usr/local/include/stratagus-maemo-extract.h
INSTALL STARGUS :

We need to do the same for stargus :

Code: Select all

cd /home/pi/stratagus/stargus_2.2.7.orig
mkdir build
cd build
cmake ..
make
sudo make install
EXTRACT DATA FROM STARCRAFT CD :

Now we need to extract the gamedata from the cd.
We have several options to do that : here is what I did.

First, I put the starcraft CD in my computer, then I logged in SSH to my Raspberry with FileZilla and I made a new "sc" folder in /home/pi.
Then I copied the INSTALL.EXE from the CD to my folder.

Image

An other way to do it is installing the game on your computer and copy the stardat.mpq file from your game directory to your raspberry in the sc folder we created.

Image

Once you did it, go back on your raspberry, and type the following command :

Code: Select all

sudo startool /home/pi/sc /usr/share/games/stratagus/stargus
It will take a moment and when it's done,

Code: Select all

sudo ln -s /usr/local/games/stargus /usr/games/stargus
FINISHED ! :D :D :D

LAUNCHING THE GAME :

Go on your X server by typing startx and go in start,games,sratagus and click stargus.
The game will launch in a window.

To improve performances, I recommand to reduce the resolution to 640x480.
I also need to know if there is a way to run it without X server started.
And I also need to know if there is a way to use the OpenGL fonction because I actually can't use it.

Huuum another thing : My overclock settings are

Code: Select all

force_turbo=1
gpu_mem=64
disable_overscan=1
arm_freq=1100
core_freq=550
sdram_freq=600
over_voltage_sdram=4
over_voltage=8
hdmi_force_hotplug=1
disable_pvt=1
initial_turbo=60
I think that's all ;) Enjoy !

PS :
It would be very amazing if someone could improve it and make it fully playable because I don't have the skills for it.
Someone, please tell me that there is a way to finish this project for our machines :mrgreen:

NF3RN0
Posts: 36
Joined: Thu Jan 24, 2013 5:28 am
Location: Texas

Re: Starcraft working on the Pi !!! =D

Thu Jan 15, 2015 8:38 pm

I was looking into getting Stratagus working on my pi too. I will try this out toninght!

You could try startx <path/to/stargus/bin> from console without starting x first. This should start a x window without the whole GUI. AFAIK, you would just need to control+alt+delete to quit the application.

Great work!

Sblawx
Posts: 4
Joined: Thu Jan 15, 2015 4:14 pm

Re: Starcraft working on the Pi !!! =D

Fri Jan 16, 2015 11:56 pm

NF3RN0 wrote:I was looking into getting Stratagus working on my pi too. I will try this out toninght!

You could try startx <path/to/stargus/bin> from console without starting x first. This should start a x window without the whole GUI. AFAIK, you would just need to control+alt+delete to quit the application.

Great work!
Hi dude, thanks for the reply :mrgreen:
I have try what you said but it doesn't work.

However, when I do this :

Code: Select all

stratagus -d /usr/local/share/games/stratagus/stargus
The game is loading but the screen gets black and I got no way to stop unless powering off.

Maybe something is missing.

Did you try installing it on your Pi ?

marc38103
Posts: 1
Joined: Wed Jun 03, 2015 4:28 pm

Re: Starcraft working on the Pi !!! =D

Wed Jun 03, 2015 4:32 pm

I recently saw that Starcraft and Starcraft 2 have 'platinum' support via WINE. The product pages indicate both games work perfectly. Have you tried this?

What is performance like on a Raspberry Pi?

Sblawx
Posts: 4
Joined: Thu Jan 15, 2015 4:14 pm

Re: Starcraft working on the Pi !!! =D

Wed Jun 03, 2015 6:02 pm

Hi ! Nope I didn't try wine on my pi. Starcraft 1 is running well on my pi model B :) I didn't try on my pi2 but I think it would run flawlessly !

Anyway, i don't think starcraft 2 would run on the raspberry pi :( but if you try streaming it from a Pc to the pi it would work but i'm not sûre of this.

User avatar
fruitoftheloom
Posts: 14663
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Starcraft working on the Pi !!! =D

Wed Jun 03, 2015 6:40 pm

Sblawx wrote:Hi ! Nope I didn't try wine on my pi. Starcraft 1 is running well on my pi model B :) I didn't try on my pi2 but I think it would run flawlessly !

Anyway, i don't think starcraft 2 would run on the raspberry pi :( but if you try streaming it from a Pc to the pi it would work but i'm not sûre of this.
WINE does not natively work on a non-x86 CPU ;)
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

agoldcheidt
Posts: 2
Joined: Mon May 16, 2016 4:38 pm

Re: Starcraft working on the Pi !!! =D

Sun Jun 18, 2017 5:12 pm

Hi everyone,

This is an old post but I just wanted to share a quick guide to play StarCraft under RetroPie:

http://berryboot.alexgoldcheidt.com/sta ... -retropie/

If you found any issue on any step from this guide, just let me know.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 13 guests