Music lua widget broken on mac?

Music lua widget broken on mac?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
TangentDelta
Posts: 22
Joined: 05 Apr 2011, 12:47

Music lua widget broken on mac?

Post by TangentDelta »

I've been wanting dynamic music for spring for a while, so I found this rather old music player script:
http://springfiles.com/spring/lua-scrip ... player-adv

When I start a new game, spring plays for like 2 seconds, with music, and it just crashes. The infolog has nothing in it, except that all the lua plugins loaded fine (and that a shader for the jet engine particles is missing, lol).

I'm running a mac, so I looked in my console, and it said:
[f=0000000] [Sound] Error: COggStream::ReleaseBuffers: Invalid Operation

I'm assuming that this has something to do with the mac Ogg player not being able to handle the large music file.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Music lua widget broken on mac?

Post by zwzsg »

TangentDelta wrote:I've been wanting dynamic music for spring for a while, so I found this rather old music player script:
What about recent music player widget? Here's one.
Not dynamic, but at least we'll know if the issue comes from having a Mac or from Spring 84 having broken most old music widgets.
TangentDelta
Posts: 22
Joined: 05 Apr 2011, 12:47

Re: Music lua widget broken on mac?

Post by TangentDelta »

zwzsg wrote:
TangentDelta wrote:I've been wanting dynamic music for spring for a while, so I found this rather old music player script:
What about recent music player widget? Here's one.
Not dynamic, but at least we'll know if the issue comes from having a Mac or from Spring 84 having broken most old music widgets.
Yep...still crashes.

Edit: Just tested zero-K, and when it's music starts, after a few seconds, the game crashes in the same exact way.
TangentDelta
Posts: 22
Joined: 05 Apr 2011, 12:47

Re: Music lua widget broken on mac?

Post by TangentDelta »

Hmm, maybe the ogg vorbis player for Mac hates the large file.
TangentDelta
Posts: 22
Joined: 05 Apr 2011, 12:47

Re: Music lua widget broken on mac?

Post by TangentDelta »

Replacing the music file with a short sound file instead doesn't crash it.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Music lua widget broken on mac?

Post by jK »

It's nothing I can reproduce so full infolog.txt/stdout is highly important.
TangentDelta
Posts: 22
Joined: 05 Apr 2011, 12:47

Re: Music lua widget broken on mac?

Post by TangentDelta »

jK wrote:It's nothing I can reproduce so full infolog.txt/stdout is highly important.
Infolog doesn't say anything at all.
Attachments
infolog.txt
(28.44 KiB) Downloaded 131 times
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Music lua widget broken on mac?

Post by jK »

then stdout/stderr:

Code: Select all

./spring &> infolog_full.txt
TangentDelta
Posts: 22
Joined: 05 Apr 2011, 12:47

Re: Music lua widget broken on mac?

Post by TangentDelta »

Lol, running the portable windows version in wine is not only more stable than the MacOSX version, but the lua music widget now works.

Edit: Meh, I can't use the function keys in wine. F11 to open the widget tab makes my mac switch to a different application, and F12 opens up the stupid dashboard. Looks like I still need help making this work :(

Hey...could I try compiling thel inux source code for mac? I think I saw an integrated ogg vorbis player in it when I was compiling the source for my fedora laptop (it's still borked with the stupid intel series graphics chip).
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Music lua widget broken on mac?

Post by abma »

Post Reply

Return to “Lua Scripts”