Posted on 07-03-16, 02:36 pm (rev. 1 by SunakazeKun on 11-18-16, 02:09 pm)

Cobrat
Careful with that axe, Eugene!


Posts: 192/652
Since: 10-08-14

Last post: 2 days
Last view: 57 min.

Galaxy music

In this tutorial, I'll explain to you how to change the music that plays in a galaxy. Please remember that this doesn't cover adding new music to the game! To prevent the game from crashing, entries for a specific galaxy have to exist in both StageBgmInfo AND ScenarioBgmInfo!

Initial music

This is the default music that plays in a galaxy. To change it, you need to open the file ScenarioBgmInfo with Whitehole's BCSV editor.
You can either edit existing entries or add a new entry for a custom galaxy or new scenario.
This list shows what each field does:
  • StageName: The galaxy's internal name, for example RedBlueExGalaxy.
  • ScenarioNo: The star/scenario the music plays on. 0 = all scenarios, 1 = star 1, ...
  • BgmIdName: The ID name of the songs. A full list can be found here.
  • StartType: This defines how the song starts. 0 = music already plays, 1 = music plays when the player lands on a planet
  • StartFrame: Unknown. This is always set to 0.
  • IsPrepare: Unknown.
If you want to make the game play the Boss Blitz Galaxy music on the third star of Flip-Swap Galaxy when Mario lands on the planet, you would add something like this to ScenarioBgmInfo:
  • StageName: RedBlueExGalaxy
  • ScenarioNo: 3
  • BgmIdName: BGM_EV_BOSSRUSH
  • StartType: 1
  • StartFrame: 0
  • IsPrepare: 1

Music changes

Music changes occur under certain circumstances, for example if Mario enters a bonus room. For these changes, the game uses a file called StageBgmInfo. As usual, open the file with Whitehole's BCSV editor. The following list shows what each field does:
  • StageName: The galaxy's internal name, for example RedBlueExGalaxy.
  • ChangeBgmIdName0 to 4: The ID name of the songs. A full list can be found here.
  • ChangeBgmState0 to 4: Unknown.
Pretty simple, isn't it? You can edit existing entries or add new ones, however, there can only be one row per galaxy! Now it's time for an example. If you want to use the second slot from Honeyhop Galaxy for the bonus room theme, the fourth slot for the Beat Block theme and trigger the second slot using a warp pipe, you'll have to add this to StageBgmInfo:
  • StageName: HoneyBeeVillageGalaxy.
  • ChangeBgmIdName0: (empty)
  • ChangeBgmIdName1: MBGM_SMG2_GALAXY_18
  • ChangeBgmIdName2: (empty)
  • ChangeBgmIdName3: BGM_REPEAT_TIMER
  • ChangeBgmIdName4: (empty)
  • ChangeBgmState0: 0
  • ChangeBgmState1: 0
  • ChangeBgmState2: 0
  • ChangeBgmState3: 0
  • ChangeBgmState4: 0
The warp pipe's Obj_arg4 needs to be set to 2 in order to trigger the bonus room theme.

Intro cameras

Here's a short tutorial on how to set up intro cameras. For this, you need WiiExplorer to open the ARC files and the CameraKeyEditor to open CANM files. You can find both tools in my toolpack:
http://eggstargalaxy.bplaced.net/?page=thread&id=143

Please remember, that intro camera editing requires A LOT of testing!

First of all, open WiiExplorer and select the Map file from your galaxy. Go to the camera folder and extract the file StartScenarioX, where X is the scenario number. Open the extracted CANM file with the CameraKeyEditor.
On the left you can see various different settings for the intro camera.

pos: The current position of the camera per frame.
dir: The point the camera is facing to.
unk: The second type defines the zooming distance. The purpose of the first setting is still unknown.
The positions and the directions are divided by the coordinates.

When you select one of the settings, a table will show up consisting of three different fields.
Time: The time in frames.
Value: For positions and directions this is the coordinate, for unk_2 it's the zooming distance.
Velocity: This rotates the camera.

After you're done editing your intro camera, you can add it back to the ARC file.



TimeValueVelocity
000
180742.78540
181-5682.9780
480-9481.6850
The camera starts at 0 and after 180 frames it's at 742.7854. Then comes a transition from point 742.7854 to -5682.978. The camera then moves to -9481.685.
_________________________
[22:47:32] Tahcryon: Sad to hear that you won’t be shitting out SMG levels, Aurum
[22:47:42] Aurum: shitting out smg levels
[22:47:47] Aurum: I really wish it would be like this
[22:47:57] Aurum: it would make things so much easier
Posted on 11-18-16, 02:09 pm

Cobrat
Careful with that axe, Eugene!


Posts: 520/652
Since: 10-08-14

Last post: 2 days
Last view: 57 min.
I've just included a tutorial for music editing.
_________________________
[22:47:32] Tahcryon: Sad to hear that you won’t be shitting out SMG levels, Aurum
[22:47:42] Aurum: shitting out smg levels
[22:47:47] Aurum: I really wish it would be like this
[22:47:57] Aurum: it would make things so much easier
Posted on 11-21-16, 05:19 pm
Normal user

Posts: 20/24
Since: 11-13-16

Last post: 222 days
Last view: 209 days
Great work!
Posted on 06-16-17, 02:42 pm
Normal user

Posts: 59/63
Since: 03-28-16

Last post: 7 days
Last view: 11 hours
Sorry to bump but the link for the CameraKeyEditor is down, so do you know where I could get it?
Posted on 06-16-17, 03:02 pm

Cobrat
Careful with that axe, Eugene!


Posts: 602/652
Since: 10-08-14

Last post: 2 days
Last view: 57 min.
Opps, I accidentally removed them... I'll reupload them asap.
_________________________
[22:47:32] Tahcryon: Sad to hear that you won’t be shitting out SMG levels, Aurum
[22:47:42] Aurum: shitting out smg levels
[22:47:47] Aurum: I really wish it would be like this
[22:47:57] Aurum: it would make things so much easier
Posted on 07-17-17, 09:54 am

Red Goomba
The green psychic


Posts: 14/41
Since: 07-13-17

Last post: 1 day
Last view: 3 hours
The tools are still down.
_________________________
That's what i'm saying. Now honey. Where are my paaaaaaaants?
Posted on 07-17-17, 11:08 am
New user


Posts: 6/10
Since: 07-10-17

Last post: 1 hour
Last view: 7 min.
The tools are still down.

Here you go: Downloads
Didn't you notice the DOWNLOADS section on the top toolbar of neomariogalaxy.bplaced.net, right next to FORUMS, FAQ and SEARCH? Its tools are very useful.
Posted on 07-17-17, 11:22 am

Red Goomba
The green psychic


Posts: 16/41
Since: 07-13-17

Last post: 1 day
Last view: 3 hours
Kay, thanks.
_________________________
That's what i'm saying. Now honey. Where are my paaaaaaaants?