Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → First release of Gamefu up for testing
First release of Gamefu up for testing
2005-01-05, 11:26 PM #1
Grab it while it's hot!

SourceForge

What's working:
- Game listing
- Multiple machine configurations
- Multiple screenshots for the corresponding game

What's not:
- Settings menu

Known issues:
- Small bug when scrolling back up the games list

What's next:
- Stuff from this thread

Old screenshots

Download, untar, and install as usual. This of course, is for Linux only. Make sure you have libsdl, sdl-image, sdl-gfx, and sdl-ttf installed. Place the example config file in your home directory and modify it to your needs.

This doesn't have very much (almost none) error-handling code, so if it crashes, don't expect it to quit very nicely. We're working on it. I should also mention that a joystick is required for this release, but keyboard support will be coming up.

List any bugs you find here, and help us get rid of them. :)

Here's a new screenshot:
2005-01-05, 11:39 PM #2
Dude that rocks. I'm going to try it out tomorrow when I get time.
2005-01-06, 12:17 AM #3
Just for some feedback: I'm using Debian testing and I couldn't get it to compile. To get past configure, I had to install the following debian packages:

libsdl-image1.2
libsdl-image1.2-dev
libsdl-ttf1.2
libsdl-ttf1.2-dev
libsdl-gfx1.2
libsdl-gfx1.2-dev

After that, during make, I got stuck with compile errors. It looks like it can't find SDL.h, but I have verified that it's here: /usr/include/SDL/SDL.h

I looked at your source and found this:
Code:
#include "SDL.h"
#include "SDL_ttf.h"
This makes me think you are looking in the current directory for these files, instead of in the system library. I tried changing them to <SDL.h> and then <SDL> but no go, same error. Maybe you can tell what is going on.

gamefu.cpp:28:17: SDL.h: No such file or directory
gamefu.cpp:29:21: SDL_ttf.h: No such file or directory
In file included from gamefu.cpp:30:
games.h:24: error: syntax error before `*' token
games.h:25: error: `SDL_Surface' was not declared in this scope
games.h:25: error: `background' was not declared in this scope
games.h:25: error: `SDL_Surface' was not declared in this scope
games.h:25: error: `screen' was not declared in this scope
games.h:25: error: variable or field `FadeGameListToMenu' declared void
games.h:25: error: initializer list being treated as compound expression
In file included from gamefu.cpp:31:
mainmenu.h:23: error: `SDL_Surface' was not declared in this scope
mainmenu.h:23: error: `screen' was not declared in this scope
mainmenu.h:23: error: variable or field `DrawMainMenu' declared void
mainmenu.h:24: error: type specifier omitted for parameter `SDL_Surface'
mainmenu.h:24: error: parse error before `*' token
mainmenu.h:25: error: type specifier omitted for parameter `SDL_Joystick'
mainmenu.h:25: error: parse error before `*' token
In file included from gamefu.cpp:33:
systemselect.h:22: error: type specifier omitted for parameter `SDL_Joystick'
systemselect.h:22: error: parse error before `*' token
In file included from gamefu.cpp:34:
pratique.h:25:17: SDL.h: No such file or directory
In file included from gamefu.cpp:34:
pratique.h:29: error: parse error before `,' token
pratique.h:32: error: syntax error before `*' token
gamefu.cpp: In function `int main(int, char**)':
gamefu.cpp:43: error: `SDL_Surface' undeclared (first use this function)
gamefu.cpp:43: error: (Each undeclared identifier is reported only once for
each function it appears in.)
gamefu.cpp:43: error: `screen' undeclared (first use this function)
gamefu.cpp:46: error: `SDL_Joystick' undeclared (first use this function)
gamefu.cpp:46: error: `js' undeclared (first use this function)
gamefu.cpp:53: error: `TTF_Init' undeclared (first use this function)
gamefu.cpp:56: error: `SDL_Quit' undeclared (first use this function)
gamefu.cpp:57: error: `TTF_Quit' undeclared (first use this function)
gamefu.cpp:60: error: `SDL_INIT_JOYSTICK' undeclared (first use this function)
gamefu.cpp:60: error: `SDL_InitSubSystem' undeclared (first use this function)
gamefu.cpp:61: error: `SDL_JoystickOpen' undeclared (first use this function)
gamefu.cpp:63: error: `SDL_GetError' undeclared (first use this function)
gamefu.cpp:68: error: `InitSDLSystem' undeclared (first use this function)
gamefu.cpp:72: error: `SDL_JoystickClose' undeclared (first use this function)
gamefu.cpp:78: error: `SDL_DISABLE' undeclared (first use this function)
gamefu.cpp:78: error: `SDL_ShowCursor' undeclared (first use this function)
make[1]: *** [gamefu.o] Error 1
make[1]: Leaving directory `/home/brian/gamefu/gamefu-0.1/src'
make: *** [all-recursive] Error 1
2005-01-06, 12:25 AM #4
You need a Portage ebuild. :)
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2005-01-06, 6:33 AM #5
Bastage!

This is gonna make me install linux!
2005-01-06, 7:28 AM #6
I'm asumming this is a Linux only release correct?
2005-01-06, 7:41 AM #7
Quote:
Originally posted by Brian
Just for some feedback: I'm using Debian testing and I couldn't get it to compile. To get past configure, I had to install the following debian packages:

libsdl-image1.2
libsdl-image1.2-dev
libsdl-ttf1.2
libsdl-ttf1.2-dev
libsdl-gfx1.2
libsdl-gfx1.2-dev

After that, during make, I got stuck with compile errors. It looks like it can't find SDL.h, but I have verified that it's here: /usr/include/SDL/SDL.h

I looked at your source and found this:
Code:
#include "SDL.h"
#include "SDL_ttf.h"
This makes me think you are looking in the current directory for these files, instead of in the system library. I tried changing them to <SDL.h> and then <SDL> but no go, same error. Maybe you can tell what is going on.

gamefu.cpp:28:17: SDL.h: No such file or directory
gamefu.cpp:29:21: SDL_ttf.h: No such file or directory
In file included from gamefu.cpp:30:
games.h:24: error: syntax error before `*' token
games.h:25: error: `SDL_Surface' was not declared in this scope
games.h:25: error: `background' was not declared in this scope
games.h:25: error: `SDL_Surface' was not declared in this scope
games.h:25: error: `screen' was not declared in this scope
games.h:25: error: variable or field `FadeGameListToMenu' declared void
games.h:25: error: initializer list being treated as compound expression
In file included from gamefu.cpp:31:
mainmenu.h:23: error: `SDL_Surface' was not declared in this scope
mainmenu.h:23: error: `screen' was not declared in this scope
mainmenu.h:23: error: variable or field `DrawMainMenu' declared void
mainmenu.h:24: error: type specifier omitted for parameter `SDL_Surface'
mainmenu.h:24: error: parse error before `*' token
mainmenu.h:25: error: type specifier omitted for parameter `SDL_Joystick'
mainmenu.h:25: error: parse error before `*' token
In file included from gamefu.cpp:33:
systemselect.h:22: error: type specifier omitted for parameter `SDL_Joystick'
systemselect.h:22: error: parse error before `*' token
In file included from gamefu.cpp:34:
pratique.h:25:17: SDL.h: No such file or directory
In file included from gamefu.cpp:34:
pratique.h:29: error: parse error before `,' token
pratique.h:32: error: syntax error before `*' token
gamefu.cpp: In function `int main(int, char**)':
gamefu.cpp:43: error: `SDL_Surface' undeclared (first use this function)
gamefu.cpp:43: error: (Each undeclared identifier is reported only once for
each function it appears in.)
gamefu.cpp:43: error: `screen' undeclared (first use this function)
gamefu.cpp:46: error: `SDL_Joystick' undeclared (first use this function)
gamefu.cpp:46: error: `js' undeclared (first use this function)
gamefu.cpp:53: error: `TTF_Init' undeclared (first use this function)
gamefu.cpp:56: error: `SDL_Quit' undeclared (first use this function)
gamefu.cpp:57: error: `TTF_Quit' undeclared (first use this function)
gamefu.cpp:60: error: `SDL_INIT_JOYSTICK' undeclared (first use this function)
gamefu.cpp:60: error: `SDL_InitSubSystem' undeclared (first use this function)
gamefu.cpp:61: error: `SDL_JoystickOpen' undeclared (first use this function)
gamefu.cpp:63: error: `SDL_GetError' undeclared (first use this function)
gamefu.cpp:68: error: `InitSDLSystem' undeclared (first use this function)
gamefu.cpp:72: error: `SDL_JoystickClose' undeclared (first use this function)
gamefu.cpp:78: error: `SDL_DISABLE' undeclared (first use this function)
gamefu.cpp:78: error: `SDL_ShowCursor' undeclared (first use this function)
make[1]: *** [gamefu.o] Error 1
make[1]: Leaving directory `/home/brian/gamefu/gamefu-0.1/src'
make: *** [all-recursive] Error 1 [/B]


Did you install libsdl-dev ?

To check for, run "sdl-config --cflags --libs".
2005-01-06, 10:33 AM #8
Quote:
Originally posted by Brian
gamefu.cpp:28:17: SDL.h: No such file or directory
gamefu.cpp:29:21: SDL_ttf.h: No such file or directory
...
make[1]: *** [gamefu.o] Error 1
make[1]: Leaving directory `/home/brian/gamefu/gamefu-0.1/src'
make: *** [all-recursive] Error 1

Looks like it's not finding the SDL headers. Try adding /usr/lib/include/SDL (I think that's it) to your path. Or you could go through the source files and change the SDL header references to point to the SDL folder, ie. "SDL_ttf.h" becomes "SDL/SDL_ttf.h." I've changed it after reading your post, it'll keep the compilation a little more trouble free on systems that don't have the SDL libs in their path.
2005-01-06, 10:37 AM #9
Quote:
Originally posted by Emon
You need a Portage ebuild. :)

Definitely. As soon as we've got something a little more customizable, I'll make an ebuild.

Quote:
Originally posted by MechWarrior
I'm asumming this is a Linux only release correct?

Quote:
Originally posted by Shintock
Gamefu - Gaming All-Machine Emulator Frontend for Unix

With cygwin though, we might be able to make a Windows binary, but I personally wouldn't provide any support for it.
2005-01-06, 10:54 AM #10
Quote:
Originally posted by Shintock
Looks like it's not finding the SDL headers. Try adding /usr/lib/include/SDL (I think that's it) to your path. Or you could go through the source files and change the SDL header references to point to the SDL folder, ie. "SDL_ttf.h" becomes "SDL/SDL_ttf.h." I've changed it after reading your post, it'll keep the compilation a little more trouble free on systems that don't have the SDL libs in their path.
Alright, I did that across all the files and it compiled fine. I ran it and it complained about no joystick. I guess I better go dig mine up ;)
2005-01-06, 11:09 AM #11
Quote:
Originally posted by Shintock
I should also mention that a joystick is required for this release, but keyboard support will be coming up.

:p
2005-01-06, 11:52 AM #12
Make it for Windows and I'll give you a cookie. Seriously. I'll mail it to you.
Stuff
2005-01-06, 12:02 PM #13
Quote:
Originally posted by kyle90
Make it for Windows and I'll give you a cookie. Seriously. I'll mail it to you.


I will take a bigger thing than a cookie to make us port Gamefu on Windows :P

Seriously, Gamefu is thinked with a Linux/UNIX system in mind, so we use standard UNIX-only libraries for process launching and directory listing.

But just for fun, I'll try to port it to Windows in these following days.

And maybe try to make a ebuild :)

↑ Up to the top!