working TA Music Widget

working TA Music Widget

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

Moderator: Moderators

Post Reply
Kinyif_fantom
Posts: 7
Joined: 28 Feb 2009, 01:49

working TA Music Widget

Post by Kinyif_fantom »

I found that the original starts a new track every second, so I made some minor changes: put the length of the tracks into the file.
Attachments
gui_music.lua
(5.94 KiB) Downloaded 246 times
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: working TA Music Widget

Post by smoth »

is there still no way to make this just read whatever cd we have in the drive?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: working TA Music Widget

Post by lurker »

Of course you can't read a CD when you're restricted to files in the spring folder. I think you're well aware that question doesn't belong in the lua forum. Unless you for some reason think there's some way to call arbitrary external code after the module loading got removed? But if you meant that, then older spring versions already had the ability to play CDs.
Also a widget that just needs filenames and with a far better architecture is in SA. There's a bug that triggers sometimes but not my problem. It might be when starting a new track when an old one hasn't loaded yet.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: working TA Music Widget

Post by smoth »

lurker: I was wondering if maybe someone added it.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: working TA Music Widget

Post by Gota »

Yes,use the SA version but it does give out a bug in some cases.
Here is the error report...everyone(who gets it)get the same error.
If you solve this please post back a fixed version.
http://pastebin.com/m4d7e63a6
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: working TA Music Widget

Post by lurker »

I'm not in the mood to make a workaround. It should be obvious what needs to be done, but I don't want to.
User avatar
CCBlackmilk
Posts: 62
Joined: 03 Jul 2009, 03:20

Re: working TA Music Widget

Post by CCBlackmilk »

As far as I'm concerned, I can simply just switch the tracks to my own. Assuming that Spring can read .mp3 files as well. (Switch the formats within the lua script :P)

Problem being right now, is that the widget doesnt work. It says it cannot open .ogg file because it is not "vorbis" data.

Odd.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: working TA Music Widget

Post by SinbadEV »

People still use CDs? That's so Late 20th century.
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: working TA Music Widget

Post by Wombat »

isnt it easier to use youtube while playing or foobar which doesnt suxx much of pc powah ? >_>
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: working TA Music Widget

Post by manolo_ »

or use winamp, but implement a widget that "push" the buttons like louder (for that all user have to bind the same buttons in winamp or modify this widget)
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: working TA Music Widget

Post by Wombat »

winamp suxx lots of pc memory, thats why i suggest foobar ;) i bet there would be big difference in fps while using winamp
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: working TA Music Widget

Post by ZellSF »

For most people with somewhat recent computers, I'm pretty sure there wouldn't be any difference at all.
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: working TA Music Widget

Post by Wombat »

did u try foobar ? i can assure u, u would feel big difference while using winamp and foobar
Post Reply

Return to “Lua Scripts”