MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
topherchris [Tutor]
Scottio [Downl]
emuman4evr [Tutor]
sgtkickass... [Forum]
Eladd [Today]

5 Members and 14 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Friday, Nov. 21st
CoD:WW Video Tutorial is up!
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.5%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.5%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 68.5%
100% definitely NOT! 18.5%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.5%
Games are the devil! 1.5%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Gun In Your Face.
CoD:WW Level Des.. Posts: (5) Views: (43) by BallisticTip
skybox problem
CoD:WW Level Des.. Posts: (2) Views: (27) by BallisticTip
script compile error
CoD 4 Scripting.. Posts: (12) Views: (75) by COLMAC
ww worldspawn settings
CoD:WW Level Des.. Posts: (3) Views: (39) by Smithy
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com 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 2
Category: CoD 2 Level Design
CoD 2 mapping and level design.
Moderators: foyleman, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: playing sounds on demand
kalieck
General Member
Since: Aug 9, 2006
Posts: 160
Last: Aug 27, 2008
[view latest posts]
Level 4
Category: CoD 2 Level Design
Posted: Thursday, Jun. 21, 2007 02:05 pm
this is what the toturial is called ... but i have some problems:

i made a trigger in a room with this properties:

targetname - sound4_trigger
trigger - yellsoundtrig

this is my .csv:

name,sequence,file,vol_min,vol_max,vol_mod,pitch_min,pitch_max,dist_min,dist_max,channel,type,probability,loop,masterslave,loadspec,subtitle,compression,secondaryaliasname,volumefalloffcurve,startdelay,speakermap,reverb,lfe percentage

#Ambiance,,,,,,,,,,,,,,,,,,,,,,,
ambient_sound_tut,,misc/ambient_sound_tut.mp3,0.4,,,,,,,local,streamed,,looping,,sound_tut,,,,,,,,
sound4,,misc/sound4.wav,1,,,,,150,300,auto,,,nonlooping,,,,,,,,,,

this is my .gsc:

main()
{
maps\_load::main();
thread sound4();
}

sound4()
{
yellsoundtrig = getent ("sound4_trigger","targetname");
yellsoundtrig waittill ("trigger");

alert = getent ("sound4source", "targetname");
alert playsound("sound4");

}




so i wanna play the sound with press "f" in game. but if i make it like that there is a script failure ... can someone help?
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD 2 Level Design
Posted: Thursday, Jun. 21, 2007 09:38 pm
You should always test scripts in developer mode in the game, this will give you more info about any errors.
Do this and then post back what the reported error is.

Grassy
kalieck
General Member
Since: Aug 9, 2006
Posts: 160
Last: Aug 27, 2008
[view latest posts]
Level 4
Category: CoD 2 Level Design
Posted: Friday, Jun. 22, 2007 09:23 am
developer mode?
The_Preacher
General Member
Since: May 23, 2006
Posts: 596
Last: Jan 13, 2008
[view latest posts]
Level 6
Category: CoD 2 Level Design
Posted: Friday, Jun. 22, 2007 09:37 am
In the console enter:

/developer 1

Then:

/devmap yourmapname
kalieck
General Member
Since: Aug 9, 2006
Posts: 160
Last: Aug 27, 2008
[view latest posts]
Level 4
Category: CoD 2 Level Design
Posted: Friday, Jun. 22, 2007 12:20 pm
when i make this there is the same error: "script error" and then nothing happens.

Help pls! [mad]
OLD_MAN_WITH_GUN
General Member
Since: May 13, 2006
Posts: 747
Last: Oct 13, 2008
[view latest posts]
Level 6
Category: CoD 2 Level Design
Posted: Friday, Jun. 22, 2007 12:36 pm
Sure, in developer mode you get the same error (bc. the developer mode don't make changes to your map or scripts) but you'll get detailed informations in the console (you have to open the full console).
Then post the error message from console here.
kalieck
General Member
Since: Aug 9, 2006
Posts: 160
Last: Aug 27, 2008
[view latest posts]
Level 4
Category: CoD 2 Level Design
Posted: Friday, Jun. 22, 2007 01:19 pm
and how i open the full console? sry but i suck!
Drapan
General Member
Since: May 9, 2004
Posts: 288
Last: Nov 18, 2008
[view latest posts]
Level 5
Category: CoD 2 Level Design
Posted: Friday, Jun. 22, 2007 02:31 pm
Shift + Console Key
kalieck
General Member
Since: Aug 9, 2006
Posts: 160
Last: Aug 27, 2008
[view latest posts]
Level 4
Category: CoD 2 Level Design
Posted: Sunday, Jun. 24, 2007 09:14 am
ERROR: file ui.mp/main.menu, line 919: cant read token
then some menu-load Errors
Warning: Couldnt find maps/mp/mp_sound.csv (but i have one)
there are also some errors which looks like this:
ERROR: Couldnt find material ...

end so on!

can someone help me pls? or can someone send me a .map with the .gsc and .csv? would be very very good
BooST_Scrappy
General Member
Since: Jul 3, 2007
Posts: 14
Last: Jul 31, 2007
[view latest posts]
Level 1
Category: CoD 2 Level Design
Posted: Friday, Jul. 6, 2007 02:36 pm
ok, here... add me to your xfire... Zinful

Ill fix ur stuff
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD 2 Level Design
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Intergi
Partners
CODAddicts - Call of Duty News & Downloads
Call of Duty Headquarters
Frag Universe
Battle for Europe COD2
modbase.be
The Firing Box
XoXide
Ask About
Advertising
Friends
The Clan Database
MODS Reloaded
ModTheater
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware