Results 81 to 100 of 100

Thread: Faction-Specific Music

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default

    Faction-Specific Music


    While the other tutorial on how to add music was helpful there were limitations on what I could do with the game based on that tutorial. So this tutorial is designed to enhance on the music tutorial by Trajan.

    Making a music folder

    First of all you need to make sure you have a music folder in your mod. If you don't you need to add one. In this instance DotS means the mod folder to the mod I am associated with. It is a simple task. You literally just create a new folder in your mod data folder and call the folder 'sounds'.
    Spoiler Alert, click show to read: 


    Inside the 'sounds' folder

    Here you can see the contents of the sounds folder. There is a folder called 'music' and here is where you put all your mp3s. Also you will see some other files such as events.dat etc. I copied these from the sounds folder in the original M2TW data folder although I do not think this is necessary.
    Spoiler Alert, click show to read: 

    Spoiler Alert, click show to read: 


    Adding music

    Later I will show you how to make all music faction-specific but first I will show you how to get the new mp3s working in your game... I will use our theme as an example.

    So you go into the descr_sounds_music folder which I have shown here. To make the song heard on start up you need to use the name of the theme you want (in this case Dominion_of_the_SwordEDITMinus_Hastings_Banda) and add the ending '.mp3'. However if the song is a wav file add the ending '.wav'

    The song name needs to go in the region I have highlighted labelled Frontend.
    Spoiler Alert, click show to read: 

    Spoiler Alert, click show to read: 


    To add music to the campaign music for a specific music_type (which I will show you how to change later) you simply copy the name of your added mp3s or wav files (that you have added to the 'sounds' folder) into the state MUSIC_STRATMAP_SUMMER section.

    Here the area I have labelled 'a' is where you add your music for the campaign map.

    The area I have labelled 'b' is for the campaign load music. In this example it is the same as the original M2TW game. When I want to change the music for the campaign music load up for that music_type I will delete the files labelled (Frontend_1)_Amen.mp3 (Euro_Loading_1)_Time_and_Again.mp3 (Euro_Loading_2)_The_Widow.mp3 and add the names of the songs I want that I have placed in the sounds/music folder.
    Spoiler Alert, click show to read: 


    Okay so now to make faction-specific music...

    Defining Music_Types

    Go into the file called descr_sounds as shown here and add all your music_types

    These should be the names of all your factions. They don't have to be the same names as your factions e.g. for our faction the cumans I have named their music 'steppe' but to make things easier generally I'd recommend having the music_types the same names as the factions.
    Spoiler Alert, click show to read: 

    Spoiler Alert, click show to read: 


    Defining Music_Type for each faction

    Now you have defined your music_types go to world folder, then go to maps, then base, there you will see descr_sounds_music_types. Go into that and edit the file how I have done so here.

    The regions define the music_type played in the battle map so here if you are Norwegian but fighting in the province called Aberffraw_Province you will hear the battle music defined in the England Music_Type
    Spoiler Alert, click show to read: 

    Spoiler Alert, click show to read: 

    Spoiler Alert, click show to read: 


    Adding the Music_Types to your descr_sounds_music folder

    Last of all you need to add all your new music_types to your descr_sounds_music folder. Simply copy and paste a whole music_type series of code e.g. for steppe music_type:
    Spoiler Alert, click show to read: 
    music_type steppe


    ;;; BATTLE MAP


    state MUSIC_BATTLE_TENSION
    event
    folder data/sounds/music
    (Arabic_Tension_1)_Kebabka.mp3
    (Arabic_Tension_2)_Starsand.mp3
    end

    state MUSIC_BATTLE_MOBILIZE
    event
    folder data/sounds/music
    (Arabic_Mobilize_1)_High_Winds.mp3
    end

    state MUSIC_BATTLE_BATTLE
    event
    folder data/sounds/music
    (Arabic_Battle_1)_Crack_your_head_with_a_Tabla.mp3
    (Arabic_Battle_2)_Wind_Cuts.mp3
    end

    ;;;; BATTLE MAP RESULT


    state MUSIC_RESULT_WIN_CLOSE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_WIN_AVERAGE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_WIN_CRUSHING
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_LOSE_CLOSE
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3

    end
    state MUSIC_RESULT_LOSE_AVERAGE
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3
    end
    state MUSIC_RESULT_LOSE_CRUSHING
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3
    end
    state MUSIC_RESULT_DRAW
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3
    end


    ;;; CAMPMAP



    state MUSIC_STRATMAP_SUMMER
    event delay 5
    folder data/sounds/music
    Huun_Huur_Tu_Prayer.mp3
    jalghan_ay_calgan_ay_yalghan_ay_yalan_ay.mp3
    Kargyraa.mp3
    Steppe_Kargyraa_Sevek_Aldyn_ool.mp3
    Tuvan_Internationale.mp3

    end

    state MUSIC_CAMPAIGN_LOADING
    event
    folder data/sounds/music
    (Frontend_1)_Amen.mp3
    (Euro_Loading_1)_Time_and_Again.mp3
    (Euro_Loading_2)_The_Widow.mp3
    end


    state MUSIC_PREBATTLE_SCROLL
    event
    folder data/sounds/music
    (Arabic_Camp_Battle_1)_Honour_Of_Sultan.mp3
    end




    state MUSIC_RESULT_STRAT_WIN_CLOSE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_STRAT_WIN_AVERAGE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_STRAT_WIN_CRUSHING
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_STRAT_LOSE_CLOSE
    event
    folder data/sounds/music

    end
    state MUSIC_RESULT_STRAT_LOSE_AVERAGE
    event
    folder data/sounds/music

    end
    state MUSIC_RESULT_STRAT_LOSE_CRUSHING
    event
    folder data/sounds/music

    end
    state MUSIC_RESULT_STRAT_DRAW
    event
    folder data/sounds/music

    end

    ;;; CAMPAIGN RESULT



    state MUSIC_CAMPAIGN_VICTORY
    event looped
    folder data/sounds/music

    end
    state MUSIC_CAMPAIGN_DEFEAT
    event looped
    folder data/sounds/music

    end

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;




    You copy and paste this until you have the correct number of music_types. You then change the music_type name and the songs. Here I have added a song called NEWSONG.mp3 and changed the music type to armenia e.g.
    Spoiler Alert, click show to read: 
    music_type armenia


    ;;; BATTLE MAP


    state MUSIC_BATTLE_TENSION
    event
    folder data/sounds/music
    (Arabic_Tension_1)_Kebabka.mp3
    (Arabic_Tension_2)_Starsand.mp3
    end

    state MUSIC_BATTLE_MOBILIZE
    event
    folder data/sounds/music
    (Arabic_Mobilize_1)_High_Winds.mp3
    end

    state MUSIC_BATTLE_BATTLE
    event
    folder data/sounds/music
    (Arabic_Battle_1)_Crack_your_head_with_a_Tabla.mp3
    (Arabic_Battle_2)_Wind_Cuts.mp3
    end

    ;;;; BATTLE MAP RESULT


    state MUSIC_RESULT_WIN_CLOSE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_WIN_AVERAGE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_WIN_CRUSHING
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_LOSE_CLOSE
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3

    end
    state MUSIC_RESULT_LOSE_AVERAGE
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3
    end
    state MUSIC_RESULT_LOSE_CRUSHING
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3
    end
    state MUSIC_RESULT_DRAW
    event
    folder data/sounds/music
    (Arabic_Lose_1)_Fly_Away.mp3
    end


    ;;; CAMPMAP



    state MUSIC_STRATMAP_SUMMER
    event delay 5
    folder data/sounds/music
    NEWSONG.mp3
    end

    state MUSIC_CAMPAIGN_LOADING
    event
    folder data/sounds/music
    (Frontend_1)_Amen.mp3
    (Euro_Loading_1)_Time_and_Again.mp3
    (Euro_Loading_2)_The_Widow.mp3
    end


    state MUSIC_PREBATTLE_SCROLL
    event
    folder data/sounds/music
    (Arabic_Camp_Battle_1)_Honour_Of_Sultan.mp3
    end




    state MUSIC_RESULT_STRAT_WIN_CLOSE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_STRAT_WIN_AVERAGE
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_STRAT_WIN_CRUSHING
    event
    folder data/sounds/music
    (Arabic_Win_1)_Balalip.mp3

    end
    state MUSIC_RESULT_STRAT_LOSE_CLOSE
    event
    folder data/sounds/music

    end
    state MUSIC_RESULT_STRAT_LOSE_AVERAGE
    event
    folder data/sounds/music

    end
    state MUSIC_RESULT_STRAT_LOSE_CRUSHING
    event
    folder data/sounds/music

    end
    state MUSIC_RESULT_STRAT_DRAW
    event
    folder data/sounds/music

    end

    ;;; CAMPAIGN RESULT



    state MUSIC_CAMPAIGN_VICTORY
    event looped
    folder data/sounds/music

    end
    state MUSIC_CAMPAIGN_DEFEAT
    event looped
    folder data/sounds/music

    end

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    Last edited by Space_Ed; October 02, 2010 at 04:27 PM. Reason: Rasclart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •