Stratagus Tutorial needed
-
Okay so I decided to try to install Stratagus/Wargus (a.k.a.: Warcraft II) because everyone had been talking about it and I wanted to see if I could figure it out.
Note: this will not work with the Battle.net Edition of Warcraft II
First, you don't get it to work just by copying your Warcraft 2 CD over to your Raspberry Pi. You actually run the Wargus installer from either Windows, Mac OS X or Linux (not sure if it works on an ARM Linux). I did the Windows route and this is how I did it:
- Go to the official Wargus website and download the Windows version of Wargus v2.4.1 (there is also a YouTube video on that site showing you how to install this)
- Now install Wargus and the installation will ask for your Warcraft II data so point it to your CD (or if you have your data copied to your hard drive then point to there)
- (optional) next if you have the Expansion Pack "Beyond the Dark Portal" then point the installer to that data (I don't have this so I skipped this)
- At the end of the install you can go ahead and launch Warcraft II to make sure it works and if it does then we're ready to start copying data over to your Raspberry Pi
- In Windows navigate to "C:\Program Files (x86)\Wargus" or "C:\Program Files\Wargus" and only copy the sub-directories to
/home/pi/RetroPie/roms/stratagus/warcraft2.data
on your Raspberry Pi
The sub-directories that need to be copied are as followed:
- campaigns
- graphics
- maps
- music
- scripts
- sounds
- videos
Booyah!
-
@backstander would be a great addition on the wiki as forum posts tend to get lost
-
@herb_fargus
Good idea, I'll wait for a little feed back to see if I need to make a correction or 2 and then I'll post it later this weekend :)So anyone that can get this working, please let me know or if you have a questions, also let me know so I can update the post and then put it up on the official wiki.
-
@backstander
Sadly, that didn't work for me, I still get a crash. But the runcommand.log seems promising. I think I am missing a file called "libmikmod.so.3":Parameters: 0 _SYS_ stratagus /home/pi/RetroPie/roms/stratagus/warcraft2.data Executing: /opt/retropie/emulators/stratagus/stratagus -F -d "/home/pi/RetroPie/roms/stratagus/warcraft2.data" /opt/retropie/emulators/stratagus/stratagus: error while loading shared libraries: libmikmod.so.3: cannot open shared object > file: No such file or directory
Looks like this file is somehow linked to a music player: https://www.rpmfind.net/linux/rpm2html/search.php?query=libmikmod.so.3
And regarding the sub-directories in your post and the addition to the wiki: I'm working with a Windows 10 Wargus install and dont have a folder called "video". Instead, I got two folders your list is missing: "shaders" and "contrib". Maybe the folder structure slightly differs on Linux and Windows?
-
That worked for me perfectly thxs. The creators of this engine and work do good work but are kinda disorganized. They say they have 3 or 4 different official locations to download their work but every location is hosting a different version. And from reading around I learned that out of the 4 only one of the versions will work doing this work around useing windows to get the needed files from the game. That is version 2.4.1 from the site/link backstander has posted all other versions will result in a black screen and crash back to the game selection screen.
That maybe your problem did you use version 2.4.1 of wargus? But thats just a wild guess. Its most likely you don't have one or more of the dependencies installed to get the game to run.
-
@CptKlink
I'm using 2.4.1, downloaded it yesterday from https://wargus.github.io/I'll download it again now and post results.
-
Now i ran in to another problem. I jad the game running and working but i desided to try and turn on some of the in game settings and now i'm getting the black screen and crash again. I tried just deleting the whole wargus folder and re-transfering the default game back over but that diden't fix it.
Anybody know where the settings file would be located?
-
Just reinstalled it on Windows and tested it again on the raspberry. My file structure is now looking exactly like it should (with the video folder and without the contrib and shader folders). Maybe I've used the unstable build on the first try, now I've been using 2.4.1 stable. Works like a charm under Windows.
But It wont work on the raspberry. I still get the libmikmod.so.3 error :(
-
this is the error i'm getting now.
Parameters: Executing: /opt/retropie/emulators/stratagus/stratagus -F -d "/home/pi/RetroPie/roms/stratagus/wargus.data" Couldn't set 1024x768x32 video mode: OpenGL not available
-
Yep all this work trying to get it running and now its broken for me. I just tried deleting everything i can find for stratagus and wargus and reinstalling it all and still getting the same error.
-
Anybody know where the settings file would be located?
I did some searching on my Pi and I found this file with settings in it:
/home/pi/.stratagus/wc2/preferences.lua
Maybe try editing that or deleting it and see if it will recreate it with defaults when you run Stratagus.
Update
I just move that preferences.lua file somewhere else and then ran Stratagus and it recreated it with the defaults.
-
@backstander said in Stratagus Tutorial needed:
/home/pi/.stratagus/wc2/preferences.lua
hate to ask a noob question but what does the . mean in front of stratagus in /home/pi/.stratagus/wc2/preferences.lua ?
Update
Nevermind I found it I forgot to set WinSCP to show hidden files and folders.
-
hate to ask a noob question but what does the . mean in front of stratagus in /home/pi/.stratagus/wc2/preferences.lua ?
Unix OS's use this to indicate a "hidden directory"
-
One problem to another. Got it all working now but now i can't move my character's.
-
I have posted my Warcraft II directions to the Wiki:
https://github.com/RetroPie/RetroPie-Setup/wiki/Stratagus#how-to-install-warcraft-ii-using-wargus-for-stratagus -
A system update solved my problem, WC2 is now working :)
https://retropie.org.uk/forum/topic/6059/need-help-installing-mikmod/3 -
Hi all,
Has anyone managed to get StarCraft up and running with Stratagus? I've managed to get Warcraft 1 and Warcraft 2 working great, however I'm hitting the same issue that @crowi was seeing on 09/08/16 in regards to StarCraft after following the same steps for Warcraft (using Stargus instead of Wargus for data extraction).
Setup info:
Pi Model or other hardware: Raspberry Pi 3
Power Supply used: 5V/3A power adaptor.
RetroPie Version Used: 4.1 image, updated to 4.1.11 retropie_script
Built From: 4.1 image from RetroPie website
USB Devices connected: Rapoo T-Series keyboard and wireless mouse with dongle.
Controller used: Bluetooth WiiU Pro controller
Emulator: Stratagus (updated through binary)
Guide used: https://github.com/retropie/retropie-setup/wiki/StratagusRuncommand.log:
--- start of joystick-selection log joystick selection by name is ON! joystick indexes for "all" was configured --- end of joystick-selection log Parameters: Executing: /opt/retropie/emulators/stratagus/stratagus -F -d "/home/pi/RetroPie/roms/stratagus/starcraft.data" [string "/home/pi/RetroPie/roms/stratagus/starcraft...."]:86: attempt to call global 'SetMetaServer' (a nil value) stack traceback: [string "/home/pi/RetroPie/roms/stratagus/starcraft...."]:86: in main chunk
Thanks very much!
-
I was having the same issue with starcraft as most people on this forum. I have checked the sizes of the folders, Warcraft 1 is 15.6mb, Warcraft 2 is 40Mb and Starcraft (which works via Stargus on windows 7 x64) is 1.86mb. Now the install file alone to make Starcraft work on the pc is 587mb so Stargus has to be keeping the files it need to run Starcraft elsewhere which is why Starcraft isn't working but Warcraft 1 and 2 are.
So I did some more digging and if you are in windows if you go to %users/profile name/appdata/roaming/stratagus/ you will see a data.stargus folder as well as sc, wc1,wc2. The folder size of the data.stargus folder is 520mb and there isn't a data folder for Warcraft or Warcraft 2. The data we need to run starcraft on the pi is in that data.stargus folder. Take the folders in the data.stargus folder and place them in the roms\stratagus\starcraft.data folder on the pi. I also had already copied the folders that are in C:\program files (x86)\stargus (assuming your using windows) to the starcraft.data folder to the pi so I'm not sure if you really need those or not.
I have confirmed this to work on my retropi
Whats weird is I cant do a campaign game, only these preset maps. Campaign is greyed out even though I own the registered version of this game and it works fine on my pc
Setup info:
Pi Model or other hardware: Raspberry Pi 3 model b
Power Supply used: 5V/3A power adaptor.
RetroPie Version Used: 4.1 image
Built From: 4.1 image from RetroPie website
USB Devices connected: lenovo usb keyboard and dell usb mouse
Controller used: snes knock off controller for snes console with usb adapter and/or 8bitdo bluetooth snes
Emulator: Stratagus (updated through binary)
Guide used: https://github.com/retropie/retropie-setup/wiki/Stratagus -
Confirmed working on my Pi as well following the same steps. Copied over all the data from C:\Program Files\stargus into roms\stratagus\starcraft.data and then copied the remaining data from %users/profile name/appdata/roaming/stratagus/ into roms\stratagus\starcraft.data as well.
That's now working great, so thanks so much @polygaryd hugely appreciated!
-
@polygaryd From this page:
http://stargus.stratagus.com/features/index.html
Says campaigns don't work (yet) I've updated the wiki page with more details on installing starcraft:
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.