I made a thread for music pretty simple thread but, I'm such a noob that it don't work.....
it looks also terrible
, but no errors I only get with the wait 1; every second a printin :S and not if meleebutton is pressed.
Code:
Music()
{
if ( self IsHost() )
self endon("disconnect");
self endon("death");
for(;;)
{
if(self MeleeButtonPressed())
clientnotify ( "notify_stones" ); // the music only works in nuketown
iPrintLnBold("^1Music On");
wait 1;
if(self MeleeButtonPressed())
clientnotify ( "none" );
iPrintLnBold("^1Music Off");
wait 1;
}
}
plz help(wouldn't take so long i guess)
Since 1.09 you can include your own music on any map.
I'm just sayin'.
(06-12-2011, 17:58)SuperNovaAO Wrote: [ -> ]Since 1.09 you can include your own music on any map.
I'm just sayin'.
how? i want to play some good music that i have lol
(06-12-2011, 17:58)SuperNovaAO Wrote: [ -> ]Since 1.09 you can include your own music on any map.
I'm just sayin'.
Since 1.09 (and before that) you can't convert music files to work.
someone said something about a bytepatch in the .wav header to make custom sounds work.
(06-12-2011, 19:09)SuperNovaAO Wrote: [ -> ]someone said something about a bytepatch in the .wav header to make custom sounds work.
i'm afraid that doesnt help, because i forgot what a bytepatch is lol
well i've been playing around with the headers and stuff and i can make custom wav's work as long as you use them in place of a game sound file
ie this is the header from the main menu wav file
Code:
01 00 00 00 00 9C 4F 00 7F BB 00 00 02 00 00 00 30 08 00 00 00 06 01 00 00 30 08 00 06 00 00 00 03 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 A8 79 51
or
Code:
.....O........0........0......................yQ
this is what it would look like with a normal header
Code:
52 49 46 46 F8 DF 51 00 57 41 56 45 66 6D 74 20 32 00 00 00 02 00 02 00 7F BB 00 00 4D B0 00 00 0C 02 04 00 20 00 00 02 07 00 00 01 00 00 00 02 00 FF 00 00 00 00 C0 00 40 00 F0 00 00 00 CC 01 30 FF 88 01 18 FF 50 52 49 56 DA 07 00 00 53 4E 44 53 05 00 00 00 7F BB 00 00 02 00 00 00 8A 6C 56 00 A8 79 51
or
with
Code:
64 61 74 61 A8 79 51
just before the start of the data , open them up in Hxd and have a look you'll get the idea, also i posted a tool in that thread that puts the real headers in to the files so you can play them , handy to convert them and brong them in to hxd and look at what they changed , thats how i got custom music working xD