These notes serve to help you upgrade your content from older versions of M.U.G.E.N to M.U.G.E.N 1.0.
Contents
M.U.G.E.N 1.0 is backwards compatible with the majority of content from version 2002.04.14. However, there are some new features that will be available only if a character's mugenversion is updated to 1.0. You can update your content by the following steps:
M.U.G.E.N 1.0 is backwards compatible with stages from version 2002.04.14.
displayname = "..." ;Name to display in select screen (replace ... with actual name) versiondate = 01,30,2010 ;Version date of stage (MM,DD,YYYY or X.XX) (replace with actual date) mugenversion = 1.0 ;Version of M.U.G.E.N this stage works on (1.0) author = "..." ;Stage author name
overdrawhigh = 0 overdrawlow = 0 cuthigh = 35 cutlow = 25
localcoord = 320, 240 xscale = 1 yscale = 1
versiondate = 01,30,2010 ;Version date of motif (MM,DD,YYYY or X.XX) (replace with actual date) mugenversion = 1.0 ;Version of M.U.G.E.N this motif works on (1.0) localcoord = 320,240 ;Local coordinate space width and height
[FightFx] scale = 1
1.0 introduces SFF v2, which has a host of palette features as well as more compression options. Consider converting your sprite files to SFF v2 to take advantage of the new functionality.
Some changes to the music and sound system were made during the course of development of 1.0. The changes you will see, in a nutshell:
You MUST use the updated mugen.cfg included in order for BGM to work!
Try turning up the audio buffer size and/or turning down the mixer sample rate in mugen.cfg ([Sound] section). Also, turn off high-quality resampling if you have it enabled. If you still can't get it to work right, then please report the issue to us, along with your system specs. In your report, try to distinguish between dropouts (a short period of silence), skips (the music jumps ahead by a small amount), and stutters (the music repeats itself briefly).
The new BGM system tries to keep track of its status. You can find some summary timing statistics for the mixer callback written to the end of mugen.log. You can also see if the system detected a decoder underrun by searching for lines saying "possible read starvation detected!" This information helps us troubleshoot the possible causes of sound corruption.
The following plugins are in the package. See the comments in mugen.cfg for optional parameters and usage.
mpg123
Supports MP3 playback using the libmpg123 decoder, which features several optimized decoding engines written in assembly. Supports looppoints, ReplayGain volume adjustment, and sample-accurate seeking. (Note: seeking will lose an unnoticeable amount of accuracy if the MP3 is at a sample rate different from the mixer sample rate.) mpg123 also fixes the "my MP3 plays slow/fast" problems.
vorbisplug
Provides Ogg Vorbis playback using libogg and libvorbisfile. Supports loop points, ReplayGain volume adjustment, and sample-accurate seeking. Uses M.U.G.E.N's built-in resampling service for rate conversion, where necessary. This should provide noticeably better output than the default SDL mixer playback.
sdlmix
Wrapper plugin for selected BGM services provided by SDL mixer. This means MIDI, MODs, and other tracker files.
sdlmix performs seamless looping from the end to the beginning of BGM files (except for MOD/tracker files that naturally loop). However, arbitrary loopstart and loopend points cannot be specified.
The volume system has also been revamped. There is now a master volume setting, a voice/sfx volume setting, and a BGM volume setting. That's it. Volume settings are floating-point numbers between 0% and 100%, and multiply together to give the final output volume. Plugins may also have individual volume multipliers.
For sound effects, the product of all volume scales (master volume, wave volume, and any additional scaling factors in the case of CNS) cannot exceed 100%. If the product is too large, it is reduced to 100%. For plugins, the meaning of a volume scale exceeding 100% (after including plugin-specific volume scaling) is dependent on the particular plugin.
[Music] bgmvolume (replaces bgvolume)
bgmvolume is a floating-point multiplier for this stage's volume. 100% is no change. The old parameter, "bgvolume", is deprecated and is ignored.
[Music] bgmloopstart, bgmloopend
Specifies the start and end points of the music to loop. If these are set and looping is on, then the music will play from beginning to loopend, then continue looping from loopstart to loopend indefinitely. The exact specification of these parameters is plugin-dependent. For mpg123, the loop points are specified in terms of samples. No other plugins support loop points at present. bgmloopstart defaults to 0 (beginning) and bgmloopend defaults to -1 (end of file).
[Music] {title, select, vs, victory}.bgm.loopstart (also loopend and volume)
[Demo Mode] fight.stopbgm
If fight.playbgm = 0, then setting fight.stopbgm = 0 allows the title BGM to continue playing during Demo mode.