lfnetwork.com mark read register faq members calendar

Thread: "Every Duel Has Its Own Tune...."
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 07-12-2003, 03:32 PM   #1
RenikDelan
 
RenikDelan's Avatar
 
Join Date: Jun 2003
Posts: 102
Question "Every Duel Has Its Own Tune...."

Well, I'm sure thats what John Williams would say.

My question is, can I have different duel music, depending on what room i am on the same map? Like if a fight breaks out in the bar, Cantina Band would start crankin, but if I was chillin with Darth Maul's in his crib, "Duel Of The Fates" would start playin?

So how would I do it??
-=IJ=- Renik
RenikDelan is offline   you may: quote & reply,
Old 07-12-2003, 03:44 PM   #2
rgoer
 
rgoer's Avatar
 
Join Date: Jan 2003
Location: Raleigh
Posts: 316
I was looking into this, but there is only one music/mp/duel.mp3 so I think that multiple duel songs in one level would be impossible. You could include a new music/mp/duel.mp3 in your .pk3 of your level, but I think that it would cause all maps to use your custom duel music... not sure.
rgoer is offline   you may: quote & reply,
Old 07-12-2003, 04:50 PM   #3
RenikDelan
 
RenikDelan's Avatar
 
Join Date: Jun 2003
Posts: 102
yeah... well, i was just wondering if there was a key that you could call upon /music/mp/duel-renik.mp3 in room one and /music/mp/duel-renik.mp3 in room two.
-=IJ=- Renik
RenikDelan is offline   you may: quote & reply,
Old 07-12-2003, 05:04 PM   #4
rgoer
 
rgoer's Avatar
 
Join Date: Jan 2003
Location: Raleigh
Posts: 316
Well, you could have speaker objects playing whatever music you wanted in those two rooms, but as soon as two guys got into a private duel by hitting engage_duel at each other, JK2 is going to start playing music/mp/duel.mp3 as well--which will sound really awful with the speaker objects still playing...
rgoer is offline   you may: quote & reply,
Old 07-12-2003, 06:25 PM   #5
RenikDelan
 
RenikDelan's Avatar
 
Join Date: Jun 2003
Posts: 102
You can have the speaker objects turn off once you enter a duel though, right?
-=IJ=- Renik
RenikDelan is offline   you may: quote & reply,
Old 07-12-2003, 11:11 PM   #6
lauser
 
lauser's Avatar
 
Join Date: Jan 2003
Location: CANADA
Posts: 428
I think that maybe this is the answer you need.
Make a music folder for your PK3. Then put a mp folder inside that one and put you music file inside mp folder. This should work to change the duel music.

EDIT...hmmm I've looked eveywhere and I can't find the file that exec's the ACTUAL duel sound...LOL


My kung fu is also very weak

Last edited by lauser; 07-12-2003 at 11:22 PM.
lauser is offline   you may: quote & reply,
Old 07-13-2003, 01:04 AM   #7
rgoer
 
rgoer's Avatar
 
Join Date: Jan 2003
Location: Raleigh
Posts: 316
Just putting your own music/mp/duel.mp3 directory structure within your .pk3 won't work the way you think. It will change the duel music for ALL maps. At least, I think it will.
rgoer is offline   you may: quote & reply,
Old 07-13-2003, 01:07 AM   #8
rgoer
 
rgoer's Avatar
 
Join Date: Jan 2003
Location: Raleigh
Posts: 316
The command engage_duel is hard coded by the .qvm file (the actual game code where all commands are stored) to call the file music/mp/duel.mp3--you'd need to write a new MOD and compile a new .qvm if you wanted to change how engage_duel works.
rgoer is offline   you may: quote & reply,
Old 07-13-2003, 12:28 PM   #9
lauser
 
lauser's Avatar
 
Join Date: Jan 2003
Location: CANADA
Posts: 428
Yes I agree rgoer. I'm not about to start opening qvm files but, I have emailed the authors of a couple of MODS. Hopefully they have something worth while to say.


My kung fu is also very weak
lauser is offline   you may: quote & reply,
Old 07-14-2003, 10:27 PM   #10
lauser
 
lauser's Avatar
 
Join Date: Jan 2003
Location: CANADA
Posts: 428
Hey I found the answer man!! Someone has gone ahead and made a MOD!! Coolness!!

http://www.pcgamemods.com/file.php?i...d33fb0b16a8acd


My kung fu is also very weak
lauser is offline   you may: quote & reply,
Old 07-14-2003, 11:49 PM   #11
rgoer
 
rgoer's Avatar
 
Join Date: Jan 2003
Location: Raleigh
Posts: 316
Um, Ging, I still don't think that works the way he wants it to. From the pcgamemods description:
Quote:
This small mod changes some of your sound files as well as your MP duel music.
Yeah, I'm pretty sure that, by "changes ... your MP duel music," they mean: "changes the MP duel music for the entire game, not just one map." I think that RenikDelan was looking for a way to have duel music that was specific to only his map, and I still think that is impossible.

Here's how quake loads itself up:

1. Look for a particular asset (resource file) in the default .pk3 hard-coded into the loaded .qvm file--in the case of JK2, these are assets0.pk3, assets1.pk3, et cetera.

2. Look for a particular asset in any other .pk3 files that reside in the baseq3 folder (in JK2, it is just "base"). I'm not sure, but I feel pretty confident that these "secondary" .pk3 files get read alphabetically, and each identical "asset" it comes accross in sequence overrides any previous "twins" quake may have found. That is, is you have one music/mp/duel.mp3 in aardvark.pk3, and a different music/mp/duel.mp3 in zebra.pk3, the duel.mp3 from zebra.pk3 is the one you will hear in the game. Not completely sure about this, though, just my hypothesis.

3. If all .pk3 files are a wash, look for a particular asset in the uncompressed directory structure beneath baseq3. Pure servers skip this step, and if an asset hasn't been located before this time, quake gives up on finding it and substitutes whatever error-result is defined in the .qvm file.

Since the .qvm file tells quake that the "engage_duel" command loads the "music/mp/duel.mp3" file, and not some other "music/mapname/duel.mp3" file, I think you are S.O.L. as far as "my map only" duel music.
rgoer is offline   you may: quote & reply,
Old 07-15-2003, 12:17 AM   #12
lauser
 
lauser's Avatar
 
Join Date: Jan 2003
Location: CANADA
Posts: 428
If thats the case why would he ake a MOD instead of just changing the music file to suit his own needs? I will test it to make sure. A little premature.......heheheheeee

I'll email him also to see what his intentions were.


My kung fu is also very weak
lauser is offline   you may: quote & reply,
Old 07-21-2003, 12:10 PM   #13
RenikDelan
 
RenikDelan's Avatar
 
Join Date: Jun 2003
Posts: 102
My intentions were to have different duel music for different rooms on the same map.
-=IJ=- RenikDelan
RenikDelan is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JO Mapping > "Every Duel Has Its Own Tune...."

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:07 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.