Soundtrack?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Soundtrack?

Post by TheStorm »

I tried and follow your instructions JV, but I can't get any sound?

I made a mus file thestorm1.mus

I have a mp3 stored in sound/music called thestorm1.mp3 (not in a pk3)

the mus file look like this


path sound/music

normal thestorm1.mp3 // Plays over entire level

!normal volume 1
!normal loop


When i start my level the console says "soundtrack switched to music/thestorm1.mus"
"playing music/thestorm1.mus" "music set to normal with fallback normal"

I can't hear the music?? JV what have I done wrong (yes....I have not turned down the music volume).
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

And i have the "soundtrack thestorm1" in the script....(or else it wouldn't load at all I guess).
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think I said something wrong at TMT :oops:

The script command should say:
soundtrack "music/thestorm1.mus"

instead of
soundtrack thestorm1

Unexpected console message though. :?
Image
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

Hmm tried that to! It will still not play (but still seems ok in the console).

Next question! I have an mp3 but does it have to be of an certain quality or something? I noticed that my mp3 is 112k bits/second but others ingame mp3 are 128k bits/sec....could that make a difference? I'll remake it but if you figure something out pleas let me know.
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

I swaped the mohaa main theme aginst my file, it plays niceley so it shouldn't be anything wrong with it.

What I'm I doing wrong. Does the mp3 have to start with mus_mymp3.mp3 ? shouldn't matter because I call for it in the .mus file with the name I have set.

Exactly where in the script should the "soundtrack" thing be?
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

I went over everything again..couldn't notice anything wrong!! Started the game and entered the map......and there it was!!! No problems any longer!
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Below level waittill spawn should do it.

Maybe try if it works in single player mode.

Moved to scripting, hope you don't mind. ;)
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Uh ok. Disregard last post 8)
Image
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

OK!! JV thanks to you I got my music (a very good pieced riped from an other game).

Now I wonder if you can help me with one other thing (or anyone else). Anyone tried getting a mp3 to play while loading the map, and when done loading it shoud say "continue" before you enter instead of moving directly into the game.

Is this possible?
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Probably you can start the music earlier by moving it to the very top of your script instead of below level waittill spawn.

Don't know about the continue button :?
Image
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

Hmm but when will it start reading the scr ?? A basic scr starts with scoreboard stuff etc. I don't think it will go through the scr until it's finished the BSP (or at the very end).

I don't know really what to do but maybe it's not possible....it was just an idea! Guess it's not possible to start a sound through the loading.urc, it's only for the pictures and stuff.
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Script execution starts quite early, about half way down the loading process.
Image
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

I've put it everywhere in the script now!! No music until the loadingscreen have ended and you enter the map. Maybe this isn't possible but I can't really see why!! Hmm what should I try next?
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Maybe you can incorporate a sound in the loading screen :?.

Might want to look in the UI documentation (some ships with the spearhead SDK). You can dump all from the console but I forgot the command :oops:.

Probably cg_dumpallsomething :oops:
Image
Post Reply