A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Wish list for Mugen 2018
by skhsato123 Today at 6:10 pm

» Maleficent from Disney
by FlavioCamarao Today at 6:05 pm

» Michael Myers hallowen MK edit
by FlavioCamarao Today at 4:16 pm

» My Sprites & Animations
by Aℓίcℯ Today at 3:11 pm

» NEW Yolomate's palettes blind man creator!
by yolomate Today at 2:36 pm

» The MMV News
by yolomate Today at 2:36 pm

Special Features at MMV






Chat on MMV w/ Discord


Share | 
 

 How to have more than one song in your stages

View previous topic View next topic Go down 
AuthorMessage
Mega_Man

avatar

Posts : 145
Join date : 2016-01-23

PostSubject: How to have more than one song in your stages   Sun Dec 11, 2016 4:20 pm

[video=youtube;iZztlKrYArI]https://www.youtube.com/watch?v=iZztlKrYArI&feature=youtu.be[/video]

What you need:

Fighter factory

A copy of two or more of your songs in a .wav file

Notepad
-------


Step 1: Go to your stage, erase whatever you have after bgmusic =

Step 2: Go to your common1.CNS File, open it with notepad or Fighter Factory

Step 3: Open up Common.Snd with Fighter Factory

Step 4: In Common1.cns go to the very bottom and add this:

[statedef-2]


[State -2, PlaySnd]
type = PlaySnd
triggerall = time = 0 && roundstate != 2 && !win && !lose
trigger1 = StageVar(info.name) = "Crusader City" ; Name of stage in between the quotation marks
value = F5001,random%2
volumescale = 2000 ;If your music is too loud.
persistent = 0
channel = -1
;lowpriority = -1
freqmul = 1.0
loop = 0
pan = 0
;-----------------

the numbers after F is the group of your song of choice. Make sure to add your music in chronological order in your common.snd (1,2,3,etc) and random%X will be the number of songs you want to be randomized. Please add your music to Common.snd or anything similar. Not all of your character's snd files. Replace Crusader City with the stage's display name.
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 2020
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: How to have more than one song in your stages   Sun Dec 11, 2016 6:44 pm

very cool, i like this aproach on this problem, this will be usefull in case anyone wants to make a sf3 full game project, thumbs up from me
The thing is, you just cannt directly code into a stage two songs, so you used characters instead, nicely done
Back to top Go down
View user profile
Mega_Man

avatar

Posts : 145
Join date : 2016-01-23

PostSubject: Re: How to have more than one song in your stages   Sun Dec 11, 2016 6:53 pm

@Mistah Jorge wrote:
very cool, i like this aproach on this problem, this will be usefull in case anyone wants to make a sf3 full game project, thumbs up from me
The thing is, you just cannt directly code into a stage two songs, so you used characters instead, nicely done

I've used Common1.cns. There are some characters who have their own versions, but not necessarily do you have to code that in for EVERY character.
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 2020
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: How to have more than one song in your stages   Sun Dec 11, 2016 8:39 pm

imagine that a match happens between 2 characters that don't have that code... no bgm will be played because they simply don't have the code to do it
Back to top Go down
View user profile
Mega_Man

avatar

Posts : 145
Join date : 2016-01-23

PostSubject: Re: How to have more than one song in your stages   Sun Dec 11, 2016 8:44 pm

@Mistah Jorge wrote:
imagine that a match happens between 2 characters that don't have that code... no bgm will be played because they simply don't have the code to do it
I think it would be more like the common1.cns in your data folder will use the music. Actually, if you think about it, those characters that use their own Common1.cns will have to rely on those who don't for the music to play.
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 2020
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: How to have more than one song in your stages   Sun Dec 11, 2016 9:25 pm

So there's a common1.cns file in data interesting, it must be some kind os template for common cns files, usable for characters, no?
Back to top Go down
View user profile
Mega_Man

avatar

Posts : 145
Join date : 2016-01-23

PostSubject: Re: How to have more than one song in your stages   Sun Dec 11, 2016 10:25 pm

A lot of people copy the Common1.cns from the data folder to their character and use it to edit their get hit states. Some would just copy it over for no reason.
Back to top Go down
View user profile
Mistah Jorge

avatar

Posts : 2020
Join date : 2013-07-04
Age : 19
Location : Portugal

PostSubject: Re: How to have more than one song in your stages   Sun Dec 11, 2016 11:10 pm

@Mistah Jorge wrote:
imagine that a match happens between 2 characters that don't have that code... no bgm will be played because they simply don't have the code to do it
So, if they copy this into their character (there is a reason, this file is needed) then this point still stands the coding for the background music plays by the characters, at least it's my guess
Back to top Go down
View user profile
Werewood

avatar

Posts : 5428
Join date : 2014-08-11

PostSubject: Re: How to have more than one song in your stages   Mon Dec 12, 2016 11:56 am

While \data\common1.cns is a convenient place, putting a [Statedef -2] in \data\common1.cns is not quite appropriate because most MUGEN charactes' [Statedef -2] are located in their own MUGEN CNS files.......so, it results in that MUGEN charactes' CNS [Statedef -2] will override [Statedef -2] in \data\common1.cns...........also, some MUGEN charactes have their own custom common1.cns, so you may also need to edit their own custom common1.cns to match your MUGEN way. study

So, your MUGEN way seems to be a MUGEN full-game feature in which you still need to edit any MUGEN characters who have their own custom common1.cns and their own [Statedef -2] in their MUGEN CNS files....

By the way, a small MUGEN Q&A:  the PlaySnd channel = ## => ## can only take up to the value of 31 (MUGEN1.0) Wink
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Sponsored content




PostSubject: Re: How to have more than one song in your stages   

Back to top Go down
 
How to have more than one song in your stages
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Resources-
Jump to: