Rstark
Posts: 5
Joined: Wed Jan 08, 2014 11:29 pm

Super Mario War

Wed Jan 15, 2014 3:29 am

Hey guys,

This is my first time posting here looking for some help. I have downloaded RetroPi and am trying to compile The game 'Super Mario War' to also run on the OS.. There is no version compiled for the pi so I tried to do it myself.

I am definitely a novice when it comes to things like this but have taught myself how to use ssh and command line to a decent degree for a beginner I think. Having used raspbmc for a while and being able to install squeezelite on it and do similar things I started to grasp how a Linux machine functions...

Anyway I want to compile this game and cannot for the life of me get it to work. When I compile it seems to go alright but in the end I get a fail to make [all] ERROR 2. The binary is in the right path but when I ./smw to start the game it says please specify root directory.

Also I forgot to mention in order to get this to compile you probably need to decrease your gpu memory to 64 in config.txt and possibly increase your swap a bit. Otherwise the cc1plus process will terminate in the middle of compiling.

I am wondering is there anyone here can help me out and see if they can achieve it on their machine. It seems doable because there is a video of someone who did it on you tube, I cannot get in touch with him.

I think Reteopie runs raspbian and you will need the SDL tools to compile.

Here is a link to the source code:
https://github.com/bjorn/super-mario-war

Here are the SDL libraries I "think" that are needed.

sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev

Link: http://www.raspberrypi.org/forum/viewto ... 31&t=48859

If someone can get this running or show me in a different direction it would be awesome. It is actually a very fun game and I appreciate the help in advanced.

Thanks!

MascH
Posts: 2
Joined: Tue Feb 18, 2014 2:12 pm

Re: Super Mario War

Tue Feb 18, 2014 2:30 pm

Hi, I managed to get smw running.

here is what I did:
They apply some patches wich seem to be required for gcc to work, because some includes are missing in some files (f.e. <algorithm>). You don't need the libpng patch, because raspian uses an older version.

Basically I followed their PKGBUILD file.

Code: Select all

wget https://aur.archlinux.org/packages/sm/smw-svn/smw-svn.tar.gz
tar -xf smw-svn.tar.gz
cd smw-svn
svn co http://supermariowar.googlecode.com/svn/trunk smw
cd smw
dos2unix configure
chmod +x configure
patch -Np0 < ../gcc.patch
./configure
make
After this you should have a working smw-binary for the pi !

I continued with sudo make install, to deploy the files.
After that I added an entry in RetroPie for launching the game.
  • - created dir /home/pi/RetroPie/roms/apps
    - edit file ~/.emulationstation/es_system.cfg
    - create a little bash-script to start smw
After adding the directory i added the following entry in es_system.cfg (see [1]):

Code: Select all

DESCNAME=Applications
NAME=apps
PATH=/home/pi/RetroPie/roms/apps
EXTENSION=.sh
COMMAND=bash %ROM%
In "/home/pi/RetroPie/roms/apps" you need a starter smw.sh
#!/bin/bash
smw
[1] http://blog.petrockblock.com/forums/top ... opie-xbmc/

Rstark
Posts: 5
Joined: Wed Jan 08, 2014 11:29 pm

Re: Super Mario War

Tue Feb 18, 2014 6:33 pm

Thanks. Really appreciate the effort. ill give it a try later!

Rstark
Posts: 5
Joined: Wed Jan 08, 2014 11:29 pm

Re: Super Mario War

Tue Feb 18, 2014 6:46 pm

This will work with the standalone image of Reteopie correct?

Not installed along side xbmc?

Rstark
Posts: 5
Joined: Wed Jan 08, 2014 11:29 pm

Re: Super Mario War

Tue Feb 18, 2014 11:54 pm

that is great. the directions works flawlessly...now i just need to figure out how to get two controllers working with the game. I'm assuming it is setup for keyboard control.

Thanks again!

MascH
Posts: 2
Joined: Tue Feb 18, 2014 2:12 pm

Re: Super Mario War

Wed Feb 19, 2014 10:55 am

great, you're welcome =)

on first start the game defaults to keyboard control, but if the gamepads are correctly detected by the pi (which normally is the case) you just need to change the default input device in the control settings for each player.

karl0ss
Posts: 9
Joined: Tue Jun 11, 2013 6:58 am

Re: Super Mario War

Thu Mar 06, 2014 1:11 pm

I get dos2unix: command not found...

and

-bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory

Im using 1.9.1 image or retropie.

thanks

User avatar
topguy
Posts: 5898
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Super Mario War

Thu Mar 06, 2014 1:53 pm

Code: Select all

sudo apt-get install dos2unix
Second error is cause by wrong line endings in a bash-script. dos2unix fixes line-endings.

Gordon55M
Posts: 3
Joined: Mon Aug 26, 2013 1:36 am

Re: Super Mario War

Fri Jun 26, 2015 2:39 pm

Has anyone got this to work with a more recent version of RetroPie and on the Pi2? I have RetroPie installed and working, but I appear to have busted my config file in running this following MascH's tutorial above.

Steps I took:

Code: Select all

sudo apt-get update
wget https://aur.archlinux.org/packages/sm/smw-svn/smw-svn.tar.gz
tar -xf smw-svn.tar.gz
cd smw-svn
sudo apt-get install subversion    
svn co http://supermariowar.googlecode.com/svn/trunk smw
cd smw
sudo apt-get install dos2unix
dos2unix configure
chmod +x configure
patch -Np0 < ../gcc.patch
./configure
make
sudo make install
After that, I tried modifying the EmulationStation and RetroPie files, and I think this is where I started to go wrong, but don't know where:

Code: Select all

mkdir /home/pi/RetroPie/roms/apps
sudo nano /etc/emulationstation/es_systems.cfg
In es_systems.cfg, I added the following above the final </systemList> line:

Code: Select all

<system>
<fullname>Apps</fullname>
<name>apps</name>
<path>~/RetroPie/roms/apps</path>
<extension>.sh</extension>
<command>bash %ROM%</command>
<platform>apps</platform>
<theme>appS</theme>
 </system>
I saved and closed the file. I then enter:

Code: Select all

cd ~/RetroPie/roms/apps
sudo nano ~/RetroPie/roms/apps/smw.sh
I paste into the smw.sh file:

Code: Select all

#!/bin/bash
smw
I save and exit. I type in:

Code: Select all

sudo chmod +x smw.sh
I restart and get a configuration file error in RetroPie. Any idea as to what my blunder was? Thanks in advance for any advice or help! I love both projects!

herbfargus
Posts: 10
Joined: Sat Jul 18, 2015 11:51 pm

Re: Super Mario War

Wed Jul 29, 2015 5:10 am

Not sure if you still need help with this or not- but I've added Super Mario War to the RetroPie Setup Script so if you update it and install it from the experimental menu it will be installed under the ports section of emulationstation. works great minus the occasional freezing when you use bots.

Gordon55M
Posts: 3
Joined: Mon Aug 26, 2013 1:36 am

Re: Super Mario War

Wed Jul 29, 2015 4:49 pm

herbfargus wrote:Not sure if you still need help with this or not- but I've added Super Mario War to the RetroPie Setup Script so if you update it and install it from the experimental menu it will be installed under the ports section of emulationstation. works great minus the occasional freezing when you use bots.
Thanks. I've been following the other post as I was communicating with Ronoh55 about this on the other forum. I'll test it out next time I do a clean RetroPie install. I also have the similar issue of freezing and I run it with bots too. Thanks for your work on this and making it easier to install. Hopefully more people catch onto this game!

presGomacho
Posts: 2
Joined: Thu Aug 20, 2015 10:07 am

Re: Super Mario War

Thu Aug 20, 2015 10:16 am

Hi, maybe someone can help me out.
I´ve installed SMW using the retropie-setup. But after completion there is no executable smw file. I can see the gamedata in /opt/retropie/ports/smw, but obviously i can not start the game without an exec-file.

Any ideas?

herbfargus
Posts: 10
Joined: Sat Jul 18, 2015 11:51 pm

Re: Super Mario War

Fri Aug 21, 2015 4:27 pm

Did you make sure to update your setup script? I made a bunch of changes to the repo recently that changed where the files are installed- and it creates a start script for super mario war in the ports menu in emulationstation. Also btw with questions related to retropie your probably better of asking on the forum (http://blog.petrockblock.com/forums/for ... ect-forum/) as I'm on there a whole lot more frequently than the raspberry pi forums.

(just fyi I switched repos from https://github.com/HerbFargus/smw to https://github.com/HerbFargus/Super-Mario-War so that there was a more complete commit history as well as a recoded splashscreen specific to the raspberry pi, and I adapted the paths for retropie so that binaries could be built so it could be moved out of experimental. For some reason I must have missed something in the code with the smw repo that didn't build executables, so I just reverted those changes so it shouldn't break for people in the future that haven't updated their setup script.)

presGomacho
Posts: 2
Joined: Thu Aug 20, 2015 10:07 am

Re: Super Mario War

Mon Aug 24, 2015 12:55 pm

I updated the setup script and installed smw once more - now it works!
Thank you!

Return to “Gaming”