Aquaria > General Discussions > Topic Details
icculus  [developer] Mar 1, 2013 @ 9:22pm
Linux players: SDL 2.0!
Hey, Linux people.

I just put up a build of Aquaria that uses SDL 2.0 instead of 1.2. Here's what this gets you:

- You can alt-tab out of fullscreen mode, your volume keys on the keyboard work, etc.
- Joysticks use the new SDL2 Game Controller API, which means you can configure your stick once (in Steam's Big Picture Mode config), and it'll work right in Aquaria by default without screwing around with config files. If you have a PS3 or Xbox360 controller, you probably don't even have to configure it at all.
- Game controllers that support force feedback will now rumble at appropriate times.
- Probably other things. SDL 1.2 is in life-support mode, so moving to SDL2 means a better experience going forward in any case.

To try this build:
- Right-click Aquaria in Steam's library tab.
- Click "Properties" in that popup.
- Click the "Betas" tab.
- Select "Beta - beta testing" from the drop down.
- Close the window, watch Aquaria update, start playing when it's done.

If you don't see the beta branch, restart Steam so it notices it.

This will, barring serious problems, become the default build on Linux eventually, but I'm leaving this in the beta branch until I feel it's stable enough. Please report back with your experiences.

(I'll be contributing the SDL2 work to the GPL source tree once this all stabilizes.)

Enjoy!

--ryan.

Showing 1-15 of 35 comments
< >
Sulix Mar 2, 2013 @ 4:56am 
This is cool!

I wrote an SDL2 version of aquaria[1] last year, but this is much better: my version was before all of the GameController stuff existed, and didn't have haptic support.

One small note: the game doesn't start if STEAM_RUNTIME=0 is set, as there's no included SDL2. I guess if people are setting environment variables, they can probably provide their own library, though.

Are there any plans to do SDL2 versions of other older Linux games?

-- David

P.S.: I'm okay with any of my aquaria patches (I think I've got one or two in the icculus.org tree) being incorporated into the steam version if you want to update it -- consider them all public domain/CC0.

[1] http://davidgow.net/hg/public/aquaria/
icculus  [developer] Mar 2, 2013 @ 9:54am 
Given infinite time, I'll update everything to SDL2. :)
Benjamin Mar 14, 2013 @ 5:42am 
Thanks for your work on this Ryan!
kiddykoff Mar 14, 2013 @ 6:44pm 
only one question. Do achievements still work with this? It's nice to know how far into the game i'm in and i use achievements to give me a sense of how far into i am.

As of right now not all the buttons on my ps3 controller work. anything past 12 buttons are not picked up; would this be fixed?
Last edited by kiddykoff; Mar 14, 2013 @ 6:45pm
kiddykoff Mar 14, 2013 @ 11:14pm 
well, i've got around to trying it out and i can't get past the menu. Neither the keyboard, mouse, or gamepad seem to be doing anything.
Benjamin Mar 15, 2013 @ 1:27am 
It seems like my 360 controller works, but no mouse.
I was really surprised - this game supports rumble on Linux now!
icculus  [developer] Mar 15, 2013 @ 11:17am 
Originally posted by kiddykoff:
only one question. Do achievements still work with this?

Yep, there are Steam achievements in the SDL2 build.

Originally posted by kiddykoff:
It's nice to know how far into the game i'm in and i use achievements to give me a sense of how far into i am.

Protip: if you have a non-Steam build, we still tell you when you unlock an achievement, and list all your unlocked achievements at the end of the help text, in the menu.

Originally posted by kiddykoff:
As of right now not all the buttons on my ps3 controller work. anything past 12 buttons are not picked up; would this be fixed?

Configure your controller how you like it in Big Picture Mode. Steam will pass this configuration to Aquaria. I haven't checked how configuring in the game's .ini will affect this, I'd leave it at default.
icculus  [developer] Mar 15, 2013 @ 11:19am 
Originally posted by kiddykoff:
well, i've got around to trying it out and i can't get past the menu. Neither the keyboard, mouse, or gamepad seem to be doing anything.

That...is strange. Are you running fullscreen or windowed, anything unusual about your set up?

--ryan.

kiddykoff Mar 16, 2013 @ 11:23am 
Originally posted by icculus:
Originally posted by kiddykoff:
Configure your controller how you like it in Big Picture Mode. Steam will pass this configuration to Aquaria. I haven't checked how configuring in the game's .ini will affect this, I'd leave it at default.
i have some Big Picture problem that is crashing Steam unfortunately, I should report this bug to steam.
Originally posted by icculus:
Originally posted by kiddykoff:
well, i've got around to trying it out and i can't get past the menu. Neither the keyboard, mouse, or gamepad seem to be doing anything.

That...is strange. Are you running fullscreen or windowed, anything unusual about your set up?

--ryan.
I was running fullscreen, I modified the config at ~/.local/share/Aquaria/preferences and changed fullscreen to 0. I tried using the desktop with game out of focus and figured out that the mouse cursor isn't visible.

The only time that it's visible is when the steam overlay aka shift+tab is up. With the steam overlay the mouse is visible in itself and the desktop. Without the steam overlay the mouse position is detected (my unity bar comes out of autohide), but clicks don't seem to register.

On the upside media keys and workspace switching works as intended.

EDIT: I tried disabling the steam overlay and the cursor wouldn't appear.
Last edited by kiddykoff; Mar 16, 2013 @ 12:16pm
Benjamin Mar 19, 2013 @ 4:24am 
Hey Ryan,

The new build just fixed the mouse issues for me. Now everything seems to be working great. I'm really loving the vibration support. Thanks to that new SDL 2.0!
icculus  [developer] Mar 19, 2013 @ 9:42am 
Originally posted by Linux Benjamin:
Hey Ryan,

The new build just fixed the mouse issues for me. Now everything seems to be working great. I'm really loving the vibration support. Thanks to that new SDL 2.0!

Great!

We'll probably flip this to the default branch soon. If you're having problems still, anyone, please do speak up soon!

Thanks,
--ryan.
kiddykoff Mar 19, 2013 @ 4:16pm 
Originally posted by Linux Benjamin:
Hey Ryan,

The new build just fixed the mouse issues for me. Now everything seems to be working great. I'm really loving the vibration support. Thanks to that new SDL 2.0!

second that.

Oddly big picture mode is working for me too. I had to reconfigure the gamepad. Before the face buttons weren't working on my ps3 controller, but now it's the direction buttons.
nu_kru Mar 24, 2013 @ 4:36pm 
I have problems with the mouse.

Cursor movement is bad, if I move up and down, it moves from left to right. The cursor always returns to the top

Play in windowed mode.
icculus  [developer] Mar 25, 2013 @ 11:39am 
Originally posted by nu_kru:
Cursor movement is bad, if I move up and down, it moves from left to right. The cursor always returns to the top

Does this happen in-game, or on the main menu? Is it possibly a joystick that the game thinks is held to the right?

--ryan.
nu_kru Mar 28, 2013 @ 6:24am 
Originally posted by icculus:
Originally posted by nu_kru:
Cursor movement is bad, if I move up and down, it moves from left to right. The cursor always returns to the top

Does this happen in-game, or on the main menu? Is it possibly a joystick that the game thinks is held to the right?

--ryan.

This happened in main menu, I could not get to the menu buttons.

Today, I returned to activate the beta, and all works well

That rare, an update of aquaria? update of my system?
Showing 1-15 of 35 comments
< >
Per page: 15 30 50