Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Music

| Inside3d Forums Forum Index -> Mapping

View previous topic :: View next topic
Author | Message
--- | ---
Tom-5- Joined: 07 Feb 2010 Posts: 10 |

Posted: Wed Jul 07, 2010 9:38 am Post subject: Music |

Okay, so in this map that I am making, I would like there to be a room that the player can't reach and i want there to be music playing from within that room. How can I get the music to play in darkplaces.... if that is possible. I know there is one way of playing over top of everything, but the point is to have it coming from this room. To get this to work in half-life all I needed to do was use ambient_generic. That same function doesn't work in darkplaces... I didn't want to make this a half-life mod.. Mostly because I don't want to relearn a bunch of half-life mumbo jumbo and it's not as modifiable ... i think.

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Wed Jul 07, 2010 12:26 pm Post subject: |

To make a room where nobody can enter (without cheating, at least): place a brush made with the "clip" texture blocking the entrance. To make a looping music: well, without some custom QuakeC it's a bit harder, but not impossible. You will need first to edit your .wav file (I use GoldWave, it's a great sound editor) and place a cue mark in the start of the sound, so Quake "knows" that this sound must be looped. Then, you can choose one of the existing ambient sound entities that you won't use in your map (let's say, ambient_thunder), rename your file to use its .wav file name (in this example, "thunder.wav") and place it in <yourmod>/sound/ambience.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/

Back to top |

Biodude Joined: 27 Aug 2008 Posts: 83 |

Posted: Wed Jul 07, 2010 1:19 pm Post subject: |

I have some qc for ya, it has like func_bgm it works nice

Back to top |

Tom-5- Joined: 07 Feb 2010 Posts: 10 |

Posted: Wed Jul 07, 2010 5:29 pm Post subject: |

frag.machine wrote:
To make a room where nobody can enter (without cheating, at least): place a brush made with the "clip" texture blocking the entrance. To make a looping music: well, without some custom QuakeC it's a bit harder, but not impossible. You will need first to edit your .wav file (I use GoldWave, it's a great sound editor) and place a cue mark in the start of the sound, so Quake "knows" that this sound must be looped. Then, you can choose one of the existing ambient sound entities that you won't use in your map (let's say, ambient_thunder), rename your file to use its .wav file name (in this example, "thunder.wav") and place it in <yourmod>/sound/ambience.

http://www.youtube.com/watch?v=H88lwfkKziI
This is my map in Half-life. It's nowhere near done yet but you can see the effect i want. If i replace my music with one of the other ambient effects it'll play equally as loud through each speaker and not change volume when i get farther away, Right? By the way, How would I go about placing a cue mark?
@biodude Thanks, I will give it a try. Just catch me on steam.

Back to top |

Tom-5- Joined: 07 Feb 2010 Posts: 10 |

Posted: Thu Jul 08, 2010 4:08 am Post subject: |

Oh... The ambient_thunder thing will probably work for me... i just thought about it. but, How would i add a 'cue' file to the beginning of my track? and also, is there a max file size, or time limit for my music?

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Thu Jul 08, 2010 7:38 pm Post subject: |

Tom-5- wrote:
Oh... The ambient_thunder thing will probably work for me... i just thought about it. but, How would i add a 'cue' file to the beginning of my track? and also, is there a max file size, or time limit for my music?

Sorry for not answering before... As I said, you'll need a .wav editor (I suggest GoldWave, but there are other options) that support adding cue marks to a .wav file. Regarding the file size: well, this depends a lot of the target engine. For vanilla Quake I suggest keeping it small (< 500Kb), but in Darkplaces you may be able to use bigger files.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/

Back to top |

Spirit Joined: 20 Nov 2004 Posts: 476 |

Posted: Fri Jul 09, 2010 7:53 am Post subject: |

Darkplaces supports Ogg Vorbis so it would make sense to use it, especially for longer sounds. I have no idea how looping would be specified then though. _________________ Quake Maps

Back to top |

Tom-5- Joined: 07 Feb 2010 Posts: 10 |

Posted: Fri Jul 09, 2010 6:50 pm Post subject: |

Thanks guys, I've got it all figured out now http://www.youtube.com/watch?v=0ibZXDjrAuU

Back to top |

Chip Joined: 21 Jan 2009 Posts: 314 Location: Romania |

Posted: Fri Jul 09, 2010 8:57 pm Post subject: |

Tom-5- wrote:
Thanks guys, I've got it all figured out now http://www.youtube.com/watch?v=0ibZXDjrAuU

You could do something like an old radio, tuned on some post-apocalyptic frequency, with the last words of some guy, getting broadcast over and over and over, in a futile effort to bring back painful memories before the cataclysm.
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake

Back to top |

Tom-5- Joined: 07 Feb 2010 Posts: 10 |

Posted: Sat Jul 10, 2010 1:39 am Post subject: |

That sounds kind of familiar...

Back to top |

goldenboy Joined: 05 Sep 2008 Posts: 310 Location: Kiel |

Posted: Sat Jul 10, 2010 10:37 pm Post subject: |

And how did you solve it now? Remember that others will ask the same questions you ask later, so always post the solution you used. Think of others. A number of Quake mods have general ambient sound players, for example p0x' Extras, which you could use in your own progs.dat.
But reusing one of the existing ambient_* also works, sure. Your mod won't handle legacy Quake maps correctly if you do this sort of stuff though.
_________________
ReMakeQuake
The Realm of Blog Magic

Back to top |

Tom-5- Joined: 07 Feb 2010 Posts: 10 |

Posted: Sun Jul 11, 2010 1:12 am Post subject: |

Oh, sorry, i just used Frag.Machine's suggested method of replacing the .wav file of ambient_* and using that entity in my mapping.

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> Mapping | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group