The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 10, 2024, 04:53:44 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  [Question] Multiple Music Files for same in-game element.
« previous next »
Pages: [1] Print
Author Topic: [Question] Multiple Music Files for same in-game element.  (Read 3291 times)
Xlorep_DarkHelm
Zebranky food
*
Offline Offline

Gender: Male
Posts: 3


The Typo King


View Profile WWW
[Question] Multiple Music Files for same in-game element.
« on: February 13, 2006, 11:09:42 pm »

Ok.... I hope I can make some sense of this question, and hope that it can be answered.  What I am wondering here, is, just like how there are multiple "orbit" music files, where each planet seems to load a different one of them (I'm guessing it's random based on some pre-defined seed value), making a flexible, dynamic effect on the music (rather than everything being always the same song over and over again), is that same thing possible for other music?  Like.... if I have three different songs I want to have randomly used for the Orz, can I have them as three different-named files in the content/comm/orz directory and it work?

Second, in a related problem, there are a few "trouble" directories I'm not entirely certain that this could work with -- the content/lbm directory, for instance.  What if I want to be able to have multiple hyperspace songs, and have it randomly select one every time I go into hyperspace?  The reason I ask, is because unlike the /content/comm directory, where there is a different sub-directory for each race and I could concievably see multiple songs being capable of being loaded there, I don't see that as quite as likely an option in the content/lbm directory, where there are specifically-named music files, for a wide variety of different in-game elements defined (like hyper.ogg, etc.)  If the answer to my first question is "yes" -- that is, it's possible to have multiple music files for things in the content/comm directory, then is it possible to have multiple music files for things like hyperspace, quasispace, etc., which are stored in the content/lbm directory as well?

This would be a real cool feature, if it is possible.  Because I would love to be able to randomly choose between the PC, 3DO (if applicable), and Precursor's Remixes during gameplay, and have any of the music just load up as it is selected, rather than always a single piece of music being used for things like the starbase "menu", or when I talk to the Syreen.
Logged

"I'm not responcabel fer my comuter's spleling errnors."
- Xlorep DarkHelm
Clay
*Many bubbles*
***
Offline Offline

Posts: 169


What can we do for you...today?


View Profile
Re: [Question] Multiple Music Files for same in-game element.
« Reply #1 on: February 14, 2006, 03:00:00 am »

I was curious about this myself...

I assume the 3DO staff could've easily programmed the additional orbit mixes, but the new Precursor release of TWO functional Utwig songs have me baffled.  How could the code already support having seperate tracks before and after Ultron when there was only one before?

Not that I'm complaining; was just surprised it was possible.

Then again, maybe there were already two Utwig tracks and my memory is just bad...
Logged
Xlorep_DarkHelm
Zebranky food
*
Offline Offline

Gender: Male
Posts: 3


The Typo King


View Profile WWW
Re: [Question] Multiple Music Files for same in-game element.
« Reply #2 on: February 14, 2006, 07:17:57 am »

I was curious about this myself...

I assume the 3DO staff could've easily programmed the additional orbit mixes, but the new Precursor release of TWO functional Utwig songs have me baffled.  How could the code already support having seperate tracks before and after Ultron when there was only one before?

Not that I'm complaining; was just surprised it was possible.

Then again, maybe there were already two Utwig tracks and my memory is just bad...
That coding could have already existed, then again, that could have been added by the UQM team when they developed the addon features.  My biggest question is, if it does do that for those music, can it do the same for music for things like hyperspace, where there isn't a separate folder defined and they are all in the lbm folder.
Logged

"I'm not responcabel fer my comuter's spleling errnors."
- Xlorep DarkHelm
JHGuitarFreak
Enlightened
*****
Offline Offline

Posts: 1374



View Profile WWW
Re: [Question] Multiple Music Files for same in-game element.
« Reply #3 on: February 14, 2006, 07:34:53 am »

well the whole thing with multiple "orbit" songs is that the code was already there from the 3DO version (which had multiple "orbit" songs), i'm not sure if you could assign multiple songs to one race or one event without adding some extra code.

if only i had a "source map" that told me where certain things were... Grin
Logged

The artist once again known as Kohr-Ah Death 213.

Get your MegaMod HERE
TiLT
*Smell* controller
****
Offline Offline

Gender: Male
Posts: 260


To boldly go where no Spathi has dared go before


View Profile WWW
Re: [Question] Multiple Music Files for same in-game element.
« Reply #4 on: February 14, 2006, 07:37:10 am »

The UQM team added the code for multiple Utwig tracks at the request of the Precursors team right before the release of 0.4.
Logged
JHGuitarFreak
Enlightened
*****
Offline Offline

Posts: 1374



View Profile WWW
Re: [Question] Multiple Music Files for same in-game element.
« Reply #5 on: February 14, 2006, 08:29:34 am »

The UQM team added the code for multiple Utwig tracks at the request of the Precursors team right before the release of 0.4.

O RLY?

well then it shouldn't be hard to add that abilty to the other races and events
Logged

The artist once again known as Kohr-Ah Death 213.

Get your MegaMod HERE
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: [Question] Multiple Music Files for same in-game element.
« Reply #6 on: February 14, 2006, 08:12:17 pm »

Take the number of the planet type, divide by the number of tracks, and the remainder will be the number of the orbit track.

As TiLT said, some game elements have extra support added for multiple tracks. Utwig isn't the only one.

I intend to make the resource code more generic, at which point multiple tracks for any occasion would be possible without special support.

Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
Xlorep_DarkHelm
Zebranky food
*
Offline Offline

Gender: Male
Posts: 3


The Typo King


View Profile WWW
Re: [Question] Multiple Music Files for same in-game element.
« Reply #7 on: February 14, 2006, 09:30:31 pm »

Take the number of the planet type, divide by the number of tracks, and the remainder will be the number of the orbit track.

As TiLT said, some game elements have extra support added for multiple tracks. Utwig isn't the only one.

I intend to make the resource code more generic, at which point multiple tracks for any occasion would be possible without special support.



That would be cool.
Logged

"I'm not responcabel fer my comuter's spleling errnors."
- Xlorep DarkHelm
Davey Yungblud
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 111


Scum? I don't think so. "Master" is more like it.


View Profile
Re: [Question] Multiple Music Files for same in-game element.
« Reply #8 on: February 20, 2006, 03:55:54 pm »

I'm not sure if this is related or not, but I was wondering, is there a "Mp32OGG" converter? like, so we could put our own music into the game and just rename it the name of whatever we wanted to replace?
Logged

"The Kohr-Ah are welcome in my galaxy any day --  it's those damned creepy Arilou that I worry about...opening portals to God-knows where and gaining perverse pleasure from manipulating the affairs of non-IDF beings...total smegheads they are." -Emperor Volusianus of the Empire of Volusianus.
Vee-R
*Many bubbles*
***
Offline Offline

Gender: Male
Posts: 176



View Profile
Re: [Question] Multiple Music Files for same in-game element.
« Reply #9 on: February 20, 2006, 04:41:54 pm »

I'm not sure if this is related or not, but I was wondering, is there a "Mp32OGG" converter? like, so we could put our own music into the game and just rename it the name of whatever we wanted to replace?

Well, generally, converting from one lossy compressed format to another lossy compressed format is a bad idea. Of course, if it's "your own" music that you want to include, you could just cut out the middleman and convert straight from WAV (or CD) to OGG, with a program such as CDex. Wink
Logged

"Space cannot be measured. It cannot be angered, it cannot be placated. It cannot be summed up. Space is there.
"Space is not large and it is not small. It does not live and it does not die. It does not offer truth and neither does it lie.
"Space is a remorseless, senseless, impersonal fact."
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!