Page 1 of 1

The Original TA Music Experience

Posted: 14 Aug 2011, 06:37
by imkharn
Missing the award winning nostalgic music from the original game?
Missing how it changes to battle music when a battle starts?

Working with Smoth I have created the solution with Lua and Ogg.

You can now have all the original music from TA while you play BA! and it will change based on scenario, just like the original TA.

I am linking to an EXE installer for the lazy and a ZIP for the paranoid.

Installer should work on both XP and Win7. Worst case, just point it to the my games folder in your my documents folder.

@BA_Developers : Feel free to include as part of BA by default or make this a sticky.

Installer:
http://dl.dropbox.com/u/2597665/TA%20mu ... %20Lua.exe
Zip:
http://dl.dropbox.com/u/2597665/Spring.zip

UPDATE: Fixed the installer

Re: The Original TA Music Experience

Posted: 14 Aug 2011, 08:59
by KaiserJ
welcome to the forum; and thank-you!

Re: The Original TA Music Experience

Posted: 14 Aug 2011, 12:57
by knorke
hi & welcome.
downloaded zip version.
At first unpacked the music into wrong folder which caused:
[f=0000119] Error in Update(): [string "LuaUI\Widgets\musicv4.lua"]:220: bad argument #1 to 'PlaySoundStream' (string expected, got nil)

needs error checking.
There already is

Code: Select all

local success, oggInfo = ReadOggInfo(initTrack)
but success is never checked?

Then put music in correct folder and it worked. :-)
Though it says "Title Missing By: Artist Missing", guess you could set those .ogg tags.

Settings/musicoverride seems like a strange name for a folder that contains music files.

Code: Select all

local success, oggInfo = ReadOggInfo(initTrack)
local titleText, artistText

if (oggInfo.comments.TITLE) then 
	titleText	= oggInfo.comments.TITLE
else
	titleText	= "Title Missing"
end

if (oggInfo.comments.ARTIST) then 
	artistText	= oggInfo.comments.ARTIST
else
	artistText	= "Artist Missing"
end

(you have these lines twice btw)
:arrow:

Code: Select all

local titleText = oggInfo.comments.TITLE or "Title Missing"
local artistText	= oggInfo.comments.ARTIST or  "Artist Missing"
The way to chose next track seems a bit strange with the

Code: Select all

repeat
until newTrack ~= lastTrack
loop etc.
ie
newTrack = warTracks[math.random(1, #warTracks)]
warTracks is loaded from VFS.DirList('music/war/', '*.ogg') (no files there)
so it will always be empty?

Re: The Original TA Music Experience

Posted: 14 Aug 2011, 18:27
by smoth
the default directories are for games that have soundtracks with override for players using new ones

you could have reviewed the other code. I refuse to fix these "issues" as this has been out for 3 years. someone else bother with it.

Re: The Original TA Music Experience

Posted: 14 Aug 2011, 21:22
by Licho
Well this already exists doesnt it? Afaik SA had it 3 years ago, EvoRTS has it, ZK has it, its available as widget for download.

Or how is this new one different?

Re: The Original TA Music Experience

Posted: 14 Aug 2011, 21:23
by Licho
Check for virus/trojans, he spams even unrelated threads with links here

Re: The Original TA Music Experience

Posted: 15 Aug 2011, 04:09
by imkharn
I went through and searched for anyone asking how to get the original music into the game and replied.
My "spam" responses should be on related threads only.

If people want to update the code in the lua for my installer you are welcome to post this.

I tried updating the tags in the OGG files with audacity, yet the script says it cant find tag info. Any advice?

Re: The Original TA Music Experience

Posted: 15 Aug 2011, 04:22
by smoth
I set my ogg tags in winamp. Give it a whirl.

Re: The Original TA Music Experience

Posted: 15 Aug 2011, 10:40
by Google_Frog
Why do you need an executable for a widget? Normal widget installing is reasonably easy.

Re: The Original TA Music Experience

Posted: 16 Aug 2011, 09:33
by knorke
smoth wrote:the default directories are for games that have soundtracks with override for players using new ones
if the game comes with a soundtrack it most likely has a music widget too, to play the music.
I think it would only work if every game named their music folders the same, which is unlikely.

what other code?
Licho wrote:Well this already exists doesnt it? Afaik SA had it 3 years ago, EvoRTS has it, ZK has it, its available as widget for download.

Or how is this new one different?
This one changes tracks based on how much fighting is going on. (units die -> more dramatic music etc)

Re: The Original TA Music Experience

Posted: 16 Aug 2011, 10:53
by Licho
Thats what all those widgets do afaik knorke..

they all play more dramatic music in fights

Re: The Original TA Music Experience

Posted: 16 Aug 2011, 13:19
by smoth
knorke wrote:
smoth wrote:the default directories are for games that have soundtracks with override for players using new ones
if the game comes with a soundtrack it most likely has a music widget too, to play the music.
I think it would only work if every game named their music folders the same, which is unlikely.
that is because my widget was the continuation of music 1. I took it and developed it further. After which zk, sa, evo all took that version and ran from it. Which is why they all DO have the same music folder. i don't know what they did with the overrides but they should be default to /settings where as gundam was /gundamsettings/.

so it pretty much went

music.lua
-
music2/3.lua
-
all the current variants.

Re: The Original TA Music Experience

Posted: 16 Aug 2011, 20:13
by Ares
Good work on this, haven't heard these songs for so long.

Removing the: "Title Missing By: Artist Missing," would be my only improvement suggestion, as Knorke mentioned. When it abruptly pops up, it slightly dispels the illusion of a fluid, adapting soundtrack. Otherwise, excellent though.

Re: The Original TA Music Experience

Posted: 18 Aug 2011, 02:27
by imkharn
If someone wants to update the music tags let me know. I dont want to try a second time.