Double post, but it's for a good cause
I spent most of the afternoon getting this to work with PlayOnLinux and I fully intend to submit this to them later on.
Install PlayOnLinux via your package manager. or just "sudo apt-get install playonlinux" should be the package name.
Download the script and save it anywhere
Start up PlayOnLinux and let it do its thing
Click Tools>Run A Local Script
Select the smbx.pol (smbx.pol.txt will work fine too) script for it to run and agree to let it run
Afterwards, launch via the shortcut provided. Preferrably run it in debug mode and send the logs to me so I can help debug them.
What works
Game loads and I was able to play a couple levels
Level editor loads
I could load a level in the editor
Fullscreen (kinda, use maximize button not in game fullscreen)
What doesn't work
Music, as of right now it only plays when you're off screen which is kind of useless and probably just something I'm missing in wine
Sound is kind of buggy
Sometimes levels take FOREVER to load
What I haven't tested
Gamepad
Online (but I assume this will never work)
LunaDLL (don't expect this to work either)
Screenshots: (i don't feel like individually doing each one so just look at the imgur link) http://imgur.com/a/JX9xA#0
Tested under Linux Mint 17. This is extremely buggy and I will keep trying with other versions of WINE to see which one works best with this.
Luigifan2010 wrote:Double post, but it's for a good cause
I spent most of the afternoon getting this to work with PlayOnLinux and I fully intend to submit this to them later on.
Install PlayOnLinux via your package manager. or just "sudo apt-get install playonlinux" should be the package name.
Download the script and save it anywhere
Start up PlayOnLinux and let it do its thing
Click Tools>Run A Local Script
Select the smbx.pol (smbx.pol.txt will work fine too) script for it to run and agree to let it run
Afterwards, launch via the shortcut provided. Preferrably run it in debug mode and send the logs to me so I can help debug them.
What works
Game loads and I was able to play a couple levels
Level editor loads
I could load a level in the editor
Fullscreen (kinda, use maximize button not in game fullscreen)
What doesn't work
Music, as of right now it only plays when you're off screen which is kind of useless and probably just something I'm missing in wine
Sound is kind of buggy
Sometimes levels take FOREVER to load
What I haven't tested
Gamepad
Online (but I assume this will never work)
LunaDLL (don't expect this to work either)
Screenshots: (i don't feel like individually doing each one so just look at the imgur link) http://imgur.com/a/JX9xA#0
Tested under Linux Mint 17. This is extremely buggy and I will keep trying with other versions of WINE to see which one works best with this.
Try to apply this LunaDLL build which replacing MCI audio engine with SDL2_mixer http://www.smbxgame.com/forums/v ... =69&t=7427 and run SMBX again. SDL2_mixer should play MP3's anyway because it have INTERNAL decoder and doesn't using external codecs (which you usually haven't under Wine).
I was having a similar sound issue whilst running SMBX on mac using wine. I managed to fix it using the DirectPlay and DirectMusic winetricks (With vb6 too, but I assume you're already using that one). I am however having a common crash that says "Invalid Picture". If you know anything I can do to fix that I would greatly appreciate it.
Just a question: do these steps also apply when you're trying to get SMBX on the Mac? Because my cousin (the one who made Thisisnotmylevel.lvl a year ago) owns a Mac and can't get SMBX to run on it.
I'm not 100% sure about my pol script. I don't have a Mac to test on, all I have is a virtual machine with non-existent QE drivers (aka no OpenGL for video). But what I can say is that PlayOnMac is available. Maybe I'll do some research into getting the game to run on there?
EDIT: I just found this snippet regarding PlayOnMac
Your script will also be available under GNU/Linux using PlayOnLinux
It may be useful to clarify (for those who would not know) that PlayOnLinux and PlayOnMac are really the same software, sharing the same code. Only the name changes depending on the operating system.
When you submit a script, it will be automatically available to PlayOnLinux, since if your script works with Mac OS X, it will also work under GNU/Linux (the reverse is not always true).
While the reverse (Linux scripts -> Mac) may not always be true, I'd say it's still worth a shot. If that doesn't work then I will look into rewiring my script for OS X (but be warned, as I run an AMD computer the highest OS X version I can get is 10.8.3)
Luigifan2010 wrote:I'm not 100% sure about my pol script. I don't have a Mac to test on, all I have is a virtual machine with non-existent QE drivers (aka no OpenGL for video). But what I can say is that PlayOnMac is available. Maybe I'll do some research into getting the game to run on there?
EDIT: I just found this snippet regarding PlayOnMac
Your script will also be available under GNU/Linux using PlayOnLinux
It may be useful to clarify (for those who would not know) that PlayOnLinux and PlayOnMac are really the same software, sharing the same code. Only the name changes depending on the operating system.
When you submit a script, it will be automatically available to PlayOnLinux, since if your script works with Mac OS X, it will also work under GNU/Linux (the reverse is not always true).
While the reverse (Linux scripts -> Mac) may not always be true, I'd say it's still worth a shot. If that doesn't work then I will look into rewiring my script for OS X (but be warned, as I run an AMD computer the highest OS X version I can get is 10.8.3)
Are you tries clear SMBX or LunaLua based? LunaLua based version will work fine under wine but vanilla usually freezes
I just tried running your LunaLua version under Mint 17.1 with Wine 1.6.2 (just ran it through my POL script) and I got a crash on startup. I submitted it as your dialogue suggested.
i grabbed the complete package and threw it in, do i need to manually place those libs in or is there a .msi i can install?
In the wine's playonlinux there are additional libraries which can be installed: for smbx you need vb6vm and msvcr2013 for lunalua. Also I used latest 32bit wine with Windows XP mode
An update to this: with help from Wohlstand, it works using a mixture of my POL script and Wohlstand's LunaLua
I downloaded LunaLua SMBX 1.3.0.2 (hexed) and after a long wait, extracted it into the directory where my POL SMBX prefixes are stored. For me, /home/<username>/.PlayOnLinux/wineprefixes/smbx/drive_c/smbx/
Then, in PlayOnLinux, I made shortcuts to smbx_lunalua_1.3.0.2.exe and smbx_lunalua_1.3.0.1.exe
Next, in the install components tab, install the following
vcrun2013
vbrun6
The next step is important: in configure, click the + next to Wine version. In the Wine Versions (x86) tab (yes, 32 bit no matter what system you're on) install the latest Wine. for me at this time, it's 1.7.47. Then after that all runs, switch the wine version in configure, let it terminate whatever is running and bam! It should work
And finally, here it is running under Debian 8.1 KDE
#!/bin/bash
# Date : (2010-04-24 20-47)
# Last revision : (2015-07-20 08-57)
# Wine version used : 1.7.45
# Distribution used to test : Ubuntu 15.04 w/ KDE 5 (not Kubuntu)
# Author : Matthew Bauer, Updated by Mike Santiago
# Script licence : GPLv3
# Program licence : N/A
# Depend :
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
scriptauthor="Matthew Bauer and Mike Santiago"
TITLE="SMBX - LunaLua"
PREFIX="smbx"
appname="SMBX - LunaLua"
shortname="smbx"
basesite="http://www.smbxgame.com"
appversion="1.3.0.2"
appcreator="Andrew Spinks 'Redigit', Wohlstand, Kevsoft"
zipname="LunaLUA_0.7.0.3-beta_smbx13_sfx_mus_fullgame.zip"
download="http://engine.wohlnet.ru/LunaLua/get.php?luaver=-1&installationType=Full&base=smbx13&fbase=1"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$appname" "$appcreator" "$basesite" "$scriptauthor" "$appname"
POL_Wine_SelectPrefix $PREFIX
POL_Wine_PrefixCreate "1.7.45"
POL_SetupWindow_pulsebar "Installing base applications with winetricks" "Installing"
POL_SetupWindow_pulse "1"
cd "$REPERTOIRE/ressources/"
POL_SetupWindow_pulse "23"
bash winetricks -q vb6run
POL_SetupWindow_pulse "55"
bash winetricks -q quartz
POL_SetupWindow_pulse "65"
bash winetricks -q vcrun2013
POL_SetupWindow_pulse "79"
POL_Call POL_Install_vbrun6
POL_SetupWindow_pulse "100"
POL_SetupWindow_download "Downloading $appname" "$shortname" "$download"
POL_SetupWindow_wait "$(eval_gettext 'Unzipping downloaded files. Please wait.')" "$TITLE"
echo $PREFIX
mkdir -p "$REPERTOIRE/wineprefix/$shortname/drive_c/$shortname"
unzip -o "$REPERTOIRE/ressources/$zipname" -d "$REPERTOIRE/wineprefix/$shortname/drive_c/$shortname"
rm "$REPERTOIRE/ressources/$zipname"
POL_Shortcut "smbx.exe" "$TITLE" "" ""
POL_SetupWindow_Close
exit
me on POL forums wrote:I will make those modifications asap.
One thing though: by downloading from the get.php link Wohlstand uses, the zip name could be different is there a way to peek at the file name either through bash scripting or POL calls?