Getting SMBX to work under Linux with Wine

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Mon Jul 14, 2014 4:34 pm

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.

The script: https://raw.githubusercontent.com/Luigi ... r/smbx.pol

And now, the following.
  • 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.

Wohlstand
Chargin' Chuck
Chargin' Chuck
Posts: 2008
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: Getting SMBX to work under Linux with Wine

Postby Wohlstand » Sat Jan 03, 2015 11:14 am

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.

The script: https://raw.githubusercontent.com/Luigi ... r/smbx.pol

And now, the following.
  • 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).

Wohlstand
Chargin' Chuck
Chargin' Chuck
Posts: 2008
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: Getting SMBX to work under Linux with Wine

Postby Wohlstand » Fri Mar 06, 2015 2:31 pm

My little test of working SMBX on the Linux Mint

Daltonk7
Guest

Re: Getting SMBX to work under Linux with Wine

Postby Daltonk7 » Tue Mar 31, 2015 3:47 pm

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.

HeroLinik
Larry Koopa
Larry Koopa
Posts: 3464
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: Getting SMBX to work under Linux with Wine

Postby HeroLinik » Wed Jul 08, 2015 5:45 am

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.

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Wed Jul 08, 2015 9:05 am

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)

Wohlstand
Chargin' Chuck
Chargin' Chuck
Posts: 2008
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: Getting SMBX to work under Linux with Wine

Postby Wohlstand » Wed Jul 08, 2015 9:58 am

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

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Wed Jul 08, 2015 11:06 am

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.

Wohlstand
Chargin' Chuck
Chargin' Chuck
Posts: 2008
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: Getting SMBX to work under Linux with Wine

Postby Wohlstand » Wed Jul 08, 2015 11:10 am

Are you placed MSVC2013 libs?

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Wed Jul 08, 2015 1:07 pm

Wohlstand wrote:Are you placed MSVC2013 libs?
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?

Wohlstand
Chargin' Chuck
Chargin' Chuck
Posts: 2008
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: Getting SMBX to work under Linux with Wine

Postby Wohlstand » Wed Jul 08, 2015 1:35 pm

Luigifan2010 wrote:
Wohlstand wrote:Are you placed MSVC2013 libs?
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

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Thu Jul 16, 2015 3:24 pm

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 ;)

[rimg]http://i.imgur.com/DsD4Bta.png[/rimg]

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Tue Jul 21, 2015 9:36 am

i updated my script to use lunalua

help me get this shit approved

https://www.playonlinux.com/en/topic-13 ... ros_X.html

Tigr398
Guest

Re: Getting SMBX to work under Linux with Wine

Postby Tigr398 » Wed Aug 12, 2015 5:54 am

Hi does anyone can give me the script link, it was not found.

And can you tell me what "All Code"

Does the script?

Thanks for answering me :D

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Wed Aug 12, 2015 8:57 am

Tigr398 wrote:Hi does anyone can give me the script link, it was not found.

And can you tell me what "All Code"

Does the script?

Thanks for answering me :D
https://www.playonlinux.com/en/topic-13 ... ros_X.html

Tigr398
Guest

Re: Getting SMBX to work under Linux with Wine

Postby Tigr398 » Thu Aug 13, 2015 7:07 am

Ok but would you have another script because I have version 14.04

Tigr398
Guest

Re: Getting SMBX to work under Linux with Wine

Postby Tigr398 » Thu Aug 13, 2015 7:34 am

They said me :

Error in POL_System_unzip
POL_System_unzip failed with error 9!

Axiom
Phanto
Phanto
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: Getting SMBX to work under Linux with Wine

Postby Axiom » Thu Aug 13, 2015 9:06 am

Use this one
Spoiler: show

Code: Select all

#!/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?



EDIT: https://raw.githubusercontent.com/Luigi ... r/smbx.pol



How's this? I'm not able to access my Linux machine at the moment so I'm unable to test.

Tigr398
Guest

Re: Getting SMBX to work under Linux with Wine

Postby Tigr398 » Fri Aug 14, 2015 4:00 am

Thank you again but now they said me :

Error in POL_Shortcut
Binary not found: smbx.exe
Have you installed the program to the default location?

Basically what I did:

- I went tool

- Then in local script

- I opened the pol file

then they showed me this error at the end of the download:

Error in POL_Shortcut
Binary not found: smbx.exe
Have you installed the program to the default location?

Valtteri
Birdo
Birdo
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: Getting SMBX to work under Linux with Wine

Postby Valtteri » Tue Aug 18, 2015 12:07 pm

Locked in favour of a refined method by Axiom: http://www.smbxgame.com/forums/v ... 35&t=11204


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari