Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 10 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Ambient Sound Not Playing
Gnasher
General Member
Since: Nov 13, 2005
Posts: 64
Last: Dec 1, 2007
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Sunday, Nov. 27, 2005 05:45 pm
Hello,

I am trying to get an ambient sound to play in the background of my map but when I load my map I can't hear anything. I would like amb_brecourt_ext to play. Do I need to extract it or something or will it play while still in the pk3 file?

I will put my .gsc file on the end of this post so you can see if there is a problem there.

Thanks for any help,
Gnasher [wave] [2guns]


My .gsc

---------------

main()
{
ambientPlay("ambient_brecourt");

maps\_load::main();

precacheshader("black");
precacheString(&"Sainte Mere Eglise, Normandy");
precacheString(&"6th June 1944");
precacheString(&"0200 Hrs");

level.player takeallweapons();
level.player giveWeapon("m1garand");
level.player giveWeapon("thompson");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("m1garand");

thread intro_screen();

level waittill ("finished intro screen");
}

intro_screen()
{
maps\_introscreen::introscreen(&"Sainte Mere Eglise, Normandy", &"6th june 1944", &"0200 Hrs");

}
Share |
Seawolf
General Member
Since: Apr 15, 2005
Posts: 87
Last: May 10, 2006
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Sunday, Nov. 27, 2005 06:49 pm
Quote:
ambientPlay("ambient_brecourt");


Thats not how it works in singleplayer


main()
{
maps\_load::main();

level.ambient_track ["brecourt_sound"]= "ambient_brecourt";
thread maps\_utility::set_ambient("brecourt_sound");

precacheshader("black");
precacheString(&"Sainte Mere Eglise, Normandy");
precacheString(&"6th June 1944");
precacheString(&"0200 Hrs");

level.player takeallweapons();
level.player giveWeapon("m1garand");
level.player giveWeapon("thompson");
level.player giveWeapon("colt");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("m1garand");

thread intro_screen();

level waittill ("finished intro screen");
}

intro_screen()
{
maps\_introscreen::introscreen(&"Sainte Mere Eglise, Normandy", &"6th june 1944", &"0200 Hrs");

}

dont forget to add this to your .csv file or you will get an "unknown soundalias" error

ambient_brecourt,,ambient/amb_brecourt_ext.mp3,1,1,,,,,music,streamed,,looping,,YOURMAPNAME

p.s. dont forget to replace YOURMAPNAME with the name of your map!


edited on Nov. 27, 2005 01:49 pm by Seawolf
Share |
Gnasher
General Member
Since: Nov 13, 2005
Posts: 64
Last: Dec 1, 2007
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Sunday, Nov. 27, 2005 08:30 pm
Hello,

Thanks for the quick reply Seawolf. I'll give that a go, but first I need to know what a .csv file is. Could you explain this to me, or is there a tutorial explaining?

Thanks,
Gnasher [wave] [2guns]
Share |
Tim451
General Member
Since: Feb 22, 2005
Posts: 771
Last: May 28, 2009
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Sunday, Nov. 27, 2005 08:36 pm
A csv file (comma seperated variable file) defines the sounds that are to be played and the volumes, etc and the location of the sound in the pk3... I think there is a tutorial around here somewhere... If not, you can always just take a csv from a custom map and edit it...

[sniper]
Share |
Gnasher
General Member
Since: Nov 13, 2005
Posts: 64
Last: Dec 1, 2007
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Sunday, Nov. 27, 2005 09:20 pm
Hello again,

Thanks Tim. I'll have a look for a tutorial and give this all a go.

Thanks again,
Gnasher [wave] [2guns]
Share |
Gnasher
General Member
Since: Nov 13, 2005
Posts: 64
Last: Dec 1, 2007
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Monday, Nov. 28, 2005 05:39 pm
Hello again,

I have tried the csv file thingy, but it still doesnt seem to work. I copied the code into notepad and saved it in soundaliases folder, but I get errors in the CoD console!
I think I need more help with this .csv file. Could perhaps someone post a step by step walkthrough to show me how it's done? That would be great.

Thanks,
Gnasher [wave] [2guns]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Monday, Nov. 28, 2005 05:45 pm
Don't just copy the code... type it over and try to understand it. The csv's in the tutorials are usually for sounds.. not ambiant tracks.. Take a look in the sound.csv file in one of the stock .pk3 files. It might give you an idea how it's done.
Share |
Gnasher
General Member
Since: Nov 13, 2005
Posts: 64
Last: Dec 1, 2007
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Monday, Nov. 28, 2005 05:49 pm
Hello,

I think I understand it all now. I have got it working, it turned out I was missing a couple of lines in the file. Thanks for all the help guys!

Thanks again,
Gnasher [wave] [2guns]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»