Comments

Log in with your itch.io account to leave a comment.

Hi,

I have just tried this on my OpenSUSE 42.2 system and get the following error:

Initializing game system...
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
/tmp/_MEItjknhd/sge/dsp.py:379: UserWarning: pygame.mixer module not initialized! Are you missing SDL_mixer?
Initializing GUI system...
Loading images...
Loading fonts...
Loading "special/title_screen.tmx"...
Starting game...
Failed to execute script retux

I have SDL_mixer and pygame.mixer installed. Can you offer any help?

Thanks.

(Edited 1 time)

The warning seems, from a quick search, to mean that you need to install the libasound plugins.

But that's not likely the cause of your crash. The crash is probably because of a compatibility problem between my GNU/Linux binaries (which are built on gNewSense) and OpenSUSE. I would recommend using the source code distribution in that case. It's not difficult to set up; just install Python and Pygame, and everything else is included.

If you want to see the errors that occurred, you can use get_errors.py, or just find stderr.txt in ~/.config/retux.

Getting a "Segmentation fault (core dumped)" error with the 64-bit binary in Arch.

(Edited 1 time)

So it's not just me then. Thank you; perhaps a bug report should be made to the PyInstaller developers.

To be clear, the binary *does* work... with older distros. I don't know for sure what is, but something about newer distros (including mine, Ubuntu 16.04) prevents any binary made by the development version of PyInstaller from working (though I think the stable version is unaffected). Even a simple Hello World script segfaults in the same way. I'll do some tests and make the bug report, and if/when the problem is resolved, I'll rebuild ReTux (and the other two games I've built with PyInstaller).

In the meantime, I recommend using the plain source code. It works out-of-the-box as long as you have Python and Pygame installed.

Would it be possible to move the 'TIME BONUS' part of the hud so that it does not take so much vertical space?

Yes, it would be possible. I actually chose that position so that it would be possible to add a second player (for split-screen co-op), but just didn't end up doing that.

I don't think it's worth it to make a new release for this change (especially since there's still a chance I might add 2-player in the future, though unlikely, and I don't see the additional use of vertical space as harmful), but if you would like the change, you can replace these lines in retux.py (around line 530):

text = "{}\n{}\n\n{}\n{}".format(
_("Score"), score_text,
_("Time Bonus") if time_bonus >= 0 else _("Time Penalty"),
abs(time_bonus))
sge.game.project_text(font, text, sge.game.width / 2, 0,
color=sge.gfx.Color("white"),
halign="center")

with these new lines:

text = "{}\n{}".format(_("Score"), score_text)
sge.game.project_text(font, text, sge.game.width / 2, 0, color=sge.gfx.Color("white"), halign="center")
text = "{}\n{}".format(_("Time Bonus") if time_bonus >= 0 else _("Time Penalty"), abs(time_bonus))
sge.game.project_text(font, text, sge.game.width, 0, color=sge.gfx.Color("white"), halign="right")