The Original TA Music Experience

The Original TA Music Experience

Classic game design, maintained to please you...

Moderator: Content Developer

Post Reply
imkharn
Posts: 7
Joined: 10 Aug 2011, 05:39

The Original TA Music Experience

Post 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
User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: The Original TA Music Experience

Post by KaiserJ »

welcome to the forum; and thank-you!
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: The Original TA Music Experience

Post 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?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: The Original TA Music Experience

Post 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.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: The Original TA Music Experience

Post 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?
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: The Original TA Music Experience

Post by Licho »

Check for virus/trojans, he spams even unrelated threads with links here
imkharn
Posts: 7
Joined: 10 Aug 2011, 05:39

Re: The Original TA Music Experience

Post 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?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: The Original TA Music Experience

Post by smoth »

I set my ogg tags in winamp. Give it a whirl.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: The Original TA Music Experience

Post by Google_Frog »

Why do you need an executable for a widget? Normal widget installing is reasonably easy.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: The Original TA Music Experience

Post 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)
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: The Original TA Music Experience

Post by Licho »

Thats what all those widgets do afaik knorke..

they all play more dramatic music in fights
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: The Original TA Music Experience

Post 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.
Ares
Balanced Annihilation Developer
Posts: 558
Joined: 19 Mar 2011, 13:43

Re: The Original TA Music Experience

Post 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.
imkharn
Posts: 7
Joined: 10 Aug 2011, 05:39

Re: The Original TA Music Experience

Post by imkharn »

If someone wants to update the music tags let me know. I dont want to try a second time.
Post Reply

Return to “Balanced Annihilation”