War1gus and Wargus launch errors in Stratagus
-
I'm trying to launch the Warcraft 1 ("War1gus") and Warcraft 2 ("Wargus") games on the Stratagus emulator, but getting a black screen upon launching either in EmultationStation.
The output in
/dev/shm/runcommand.log
after trying to launch either:Parameters: Executing: /opt/retropie/emulators/stratagus/stratagus -F -d "/home/pi/RetroPie/roms/stratagus/wargus.data" [string "/home/pi/RetroPie/roms/stratagus/wargus.dat..."]:181: attempt to call global 'SetRevelationType' (a nil value) stack traceback: [string "/home/pi/RetroPie/roms/stratagus/wargus.dat..."]:181: in main chunk
Searching for a
SetRevelationType
error on the Stratagus GitHub project, RetroPie GitHub project, and RetroPie forums revealed no results.I followed the official Stratagus documentation and extracted the game data correctly because I launched both War1gus and Wargus successfully from the
War1gus-3.0.0.exe
andWargus-3.0.0.exe
applications respectively in Windows 10.Following the documentation, I copied the game directories (
C:\Program Files (x86)\War1gus
andC:\Program Files (x86)\Wargus
) to RetroPie, renaming eachwarcraft.data
andwarcraft2.data
, respectively. Launching either created the aforementionedruncommand.sh
error.Then I tried copying the extracted game directories (
C:\Users\<Me>\Documents\Stratagus\data.War1gus
andC:\Users\<Me>\Documents\Stratagus\data.Wargus
) in the same fashion and received the same error. (Further, I'm at a loss as to the difference between the Program Files and extracted Documents directories and which set "should" work.)I installed Stratagus from source once before copying the game data directories and again afterward. There is no binary option.
I noticed in the RetroPie source code that the Stratagus build version is 2.4.3 and the latest Stratagus version is 3.0.0, released fairly recently on December 18. I tried installing 3.0.0 manually by editing the
stratagus.sh
script module, but that only caused an error when installing.It might be worth noting that I was able to launch Starcraft (as Stargus) in EmulationStation successfully, so I'm unclear why War1gus and Wargus wouldn't launch.
Pi Model: Raspberry Pi 4B 2GB
Power Supply used: CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
RetroPie Version Used: 4.7.1
Built From: RetroPie official image
USB Devices connected: Keyboard and mouse
Controller used: 8BitDo SN30 Pro+
Error messages received:attempt to call global 'SetRevelationType' (a nil value)
Guide used: Stratagus docs
Emulator: Stratagus
How to replicate the problem: Install Stratagus, copy War1gus and Wargus data files, launch either from EmulationStation -
@richiec said in War1gus and Wargus launch errors in Stratagus:
Pi Model: Raspberry Pi 4B 2GB
Stratagus is not enabled for the Pi4 platform since it's not running well - did you modify the install script yourself to make it installable ?
-
@mitu Now that you mention it, yes, I do remember editing the
stratagus.sh
script module to make Stratagus appear in the RetroPie menu. I changed the module flags line fromrp_module_flags="!mali !kms"
torp_module_flags="!mali"
.I'd like to know more about why Stratagus isn't an option on Pi 4 and what the various flags mean. The documentation doesn't mention the incompatibility on the Pi 4.
-
@richiec said in War1gus and Wargus launch errors in Stratagus:
I'd like to know more about why Stratagus isn't an option on Pi 4 and what the various flags mean.
Probably because it needs a GL accelerated context and SDL1 doesn't provide that on the Pi4.
The documentation doesn't mention the incompatibility on the Pi 4.
The documentation doesn't always cover everything and was probably written before the Pi4 was an option. See the package stats page for platform coverage info.
-
I also changed the stratagus.sh script file located in /home/pi/RetroPie-Setup/scriptmodules/ports/emulators/ and removed the !kms entry under rp_module_flags entry. Stratagus then showed up in the optional packages menu in retropie setup. War1gus and Wargus works from I can tell perfect in 1920x1080 with gl enabled and full screen enabled. Has the gl driver changed since your last post and now works for games requiring it or is my interpretation of these games working, incorrect?
-
@polygaryd Did you use the desktop to run the game or started straight from EmulationStation. I don't think the driver on the Pi changed since the RetroPie script was last updated, it might be that Stratagus changed though and it works better with SDL2's KMS driver.
-
I'm using it from emulationstation.
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.