October 18, 2019, 10:54:15 AM

Author Topic: Genus Prime - 8-BIT WARS competition entry  (Read 2335 times)

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2150
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #15 on: April 03, 2019, 08:30:11 PM »
Quote
Will try to debug it somehow. How many seconds are "few seconds"?
Do you do something "user interaction"-wise?

Here is a video which shows it crashing while playing for a short time. Not doing any special, just clicking about ( left, right clicks ) :

Until the next time...

Offline Derron

  • Hero Member
  • *****
  • Posts: 2486
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #16 on: April 03, 2019, 08:35:03 PM »
Defaulting to PulseAudio might lead to crash on distributions not having PulseAudio installed - at least it happened that way for my game TVTower on "Knoppix" and another Linux distribution.

My log file eg contains this:
Code: [Select]
[21:25:03] ERR      | SOUNDMANAGER.SETAUDIOENGINE(): audio engine "AUTOMATIC" (configured) failed.
[21:25:03] DBG      | SOUNDMANAGER.SETAUDIOENGINE(): initialized with engine "LINUX_PULSE".
So "auto" failed (Alsa) and it tried LINUX_PULSE then.

If it used eg. "Alsa" (which would work on your distribution too) then you might experience odd things: it works if no other sound source is playing (browser with youtube, internet radio ...).
If you now use PulseAudio then you might see that Youtube won't play as it cannot play audio - if you then end the application it starts to play. At least it is that way here in my Linux Mint 18.3

Might be the reason why many use OpenAL to tackle all these problems. On Windows that means to provide an additional .dll file and maybe some more little annoyancies.




@ Qube
Hmm you do not seem to do something special. And if it was something special then it would not explain why it crashes on Xerras Mac too (except he does the special thing too ... which I doubt). I think it also crashes on "skirmish" or so - so nothing "campaign specific" (introduction screens were shown - and from then on nothing should differ to a random/skirmish game). Muting the music won't fix it too (I think).
(I even tried to click the way you did - and it survived  :-/)

I assume it is an issue with my old XCode and your newer Mac.

Maybe Brucey or another NG user can compile on a newer Mac OS (make sure to update BCC/BMK and the brl/pub/sdl modules if you use the 0.99 mac release).


Thanks for uploading the video. Windows version does not crash I hope ;-)

bye
Ron

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2045
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #17 on: April 03, 2019, 08:43:46 PM »
Well there's not a huge amount of people with Linux on here, so if they have a problem with sound then we have a solution with a quick config edit.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2045
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #18 on: April 03, 2019, 09:34:15 PM »
Quote
you might experience odd things: (browser with youtube...

ok I see what you mean, after using LINUX_PULSE in settings that made youtube videos sound awful.  So use one setting on start up and switch on program exit?  That's what I did manually to get Youtube sound back.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Derron

  • Hero Member
  • *****
  • Posts: 2486
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #19 on: April 03, 2019, 09:42:23 PM »
Quote
So use one setting on start up and switch on program exit?
Hmmm, what should that do on program exit? Did not really get it.


- you start the app and it tries one of the sound engines - eg PulseAudio
- each youtube video you start afterwards (while the app is running) it stays silent
- end the app and you can play youtube videos with sound

- start a youtube video and it plays sound
- start the app with Pulse Audio and it plays sound

- start a youtube video and it plays sound
- start the app with Alsa it plays no sound


Sound on Linux always was a bit of an issue (for me). PulseAudio changed a lot already (hot switching to bluetooth output, hdmi instead of soundcard etc.).
Dunno how it is with AGK (and others). Maybe they tackle it different to me (using "rtAudio" via maxmod2.mod).


Aside of the audio discussion here I am not against reading some feedback or other (solveable! :-) bug reports.


bye
Ron

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2045
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #20 on: April 03, 2019, 09:53:15 PM »
Quote
Sound on Linux always was a bit of an issue (for me).

As a Linux newcomer I think sound is a major problem and lags behind the rest of the OS, which is very nice.

I had to change sound settings in your game, and then back again to regain (undistorted) Youtube sound.  Some experimentation for later, it seems you have bigger problems on Mac to sort.  I can get the game to run without crashing on Linux.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Derron

  • Hero Member
  • *****
  • Posts: 2486
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #21 on: April 03, 2019, 11:24:48 PM »
I compiled a new version - which should allow to not initialize the sound engine at all and to make it configurable via GUI.



https://www.gamezworld.de/files/GenusPrime.MacOS.64bit.AudioChanged.zip
-> contains 2 zip files with one not using rtAudio.mod (if that creates the crash)

https://www.gamezworld.de/files/GenusPrime.Linux.AudioChanged.zip
-> contains the 32 and 64bit variant with the Audio-Driver-GUI thing

if settings.xml contains audio_engine="NONE" then it _should_ avoid to init the audio engine at all.
Nonetheless I would wonder if it was rtAudio - as the "main screen" already uses it ... so it should crash there too. But hey, better test that out than nothing.


Original Download is left intact (just in case someone says that the GUI option addition is against the rules).


bye
Ron

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2045
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #22 on: April 03, 2019, 11:35:22 PM »
Yes that latest version solved all problems on default settings.  The game has sound, and after quitting it doesn't effect You Tube Videos.   :)
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2150
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #23 on: April 04, 2019, 12:03:59 AM »
All we need now is a stable Mac version, chop chop, get back to it ;D
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2045
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #24 on: April 04, 2019, 12:09:01 AM »
Quote
All we need now is a stable Mac version, chop chop, get back to it ;D

What we need is a language that runs on WIndows, Mac and Linux.  But perfectly.   ;)
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2150
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #25 on: April 04, 2019, 12:18:59 AM »
Quote
What we need is a language that runs on WIndows, Mac and Linux.  But perfectly.   ;)
Sounds like a cool theme for the next competition? :P
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2045
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #26 on: April 04, 2019, 12:21:30 AM »
Quote
Sounds like a cool theme for the next competition? :P

In 8 weeks??!!
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2150
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #27 on: April 04, 2019, 12:23:05 AM »
Quote
In 8 weeks??!!
Too long? ;D
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2045
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #28 on: April 04, 2019, 12:24:21 AM »
Hehe.   ;D
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
Raspbian Buster, pi4 4Gb RAM,1.5Ghz

Offline Xerra

  • Hero Member
  • *****
  • Posts: 711
    • Retro Evolved
Re: Genus Prime - 8-BIT WARS competition entry
« Reply #29 on: April 04, 2019, 04:57:45 AM »
Meh, why not. Amos 2 is almost finished and he's not been working on it for much longer :-)

http://amos2.net/#/