Genus Prime - 8-BIT WARS competition entry

Started by Derron, April 01, 2019, 08:51:53

Previous topic - Next topic

Qube

QuoteWill 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 ) :

https://www.youtube.com/watch?v=ahJ3emUcOzs
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Derron

#16
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:

[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

Steve Elliott

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.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Steve Elliott

#18
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.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Derron

QuoteSo 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

Steve Elliott

#20
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.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Derron

#21
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

Steve Elliott

#22
Yes that latest version solved all problems on default settings.  The game has sound, and after quitting it doesn't effect You Tube Videos.   :)
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

All we need now is a stable Mac version, chop chop, get back to it ;D
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

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.   ;)
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

QuoteWhat we need is a language that runs on WIndows, Mac and Linux.  But perfectly.   ;)
Sounds like a cool theme for the next competition? :P
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

Quote
Sounds like a cool theme for the next competition? :P

In 8 weeks??!!
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Xerra

Meh, why not. Amos 2 is almost finished and he's not been working on it for much longer :-)

http://amos2.net/#/
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/