Page 5 of 5 FirstFirst 12345
Results 81 to 100 of 100

Thread: Faction-Specific Music

  1. #81
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    This tutorial should explain the basics.










  2. #82

    Default Re: Faction-Specific Music

    I know Trajan's guide, ~2 years ago I started using this way of adding music but his tutorial is different, for faction regions and you only work with one file. I want music for each faction separately. It doesn't help to understand tutorial from this thread.

  3. #83
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    You can have music culture based and accent based, not sure how faction based would actually work.










  4. #84

    Default Re: Faction-Specific Music

    I'd like to add music for each separate faction but for whole faction not only for that faction regions. I mean if I play as England, I want to hear England tracks even outside their own lands. In every battle regardless of region. Same with other factions. I don't want to hear eg France music in France regions when playing as England or Scottish music when fighting with them on their lands. I want to hear only my own faction music, faction that I choose to play. It works by using Trajan's totorial but it's only for group of factions when I want unique music for each. Is it possible?

  5. #85
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    Let me see if I get it together for you:

    step 1
    Defining Music_Types

    Go into the file called descr_sounds as shown here and add all your music_types (I named it 'testmusic':
    Code:
    ; List of used music types
    music_types_enum northern_european eastern_european southern_european middle_eastern mesoamerican testmusic
    step 2
    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 (used region list from my Bare Geomod installation).
    Code:
    music_type testmusic
    
    regions Inverness_Province Oslo_Province Stockholm_Province Helsinki_Province Arhus_Province
    regions Edinburgh_Province Dublin_Province York_Province Caernarvon_Province Nottingham_Province
    regions Stettin_Province Hamburg_Province Antwerp_Province Magdeburg_Province London_Province
    regions Bruges_Province Frankfurt_Province Metz_Province Caen_Province Prague_Province
    regions Rheims_Province Rennes_Province Nuremburg_Province Paris_Province Hohenstauffen_Province
    regions Angers_Province Vienna_Province Dijon_Province Bern_Province Innsbruck_Province
    regions Bordeaux_Province Toulouse_Province Marseille_Province
    
    factions england
    The region setting apparently over writes the faction setting, so in your case I would remove all region entries, else you will hear other music specified in other section's region list when being active over that region or fighting battles there.

    step3
    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 the whole music_type series of code below for each custom music_type:
    Code:
    music_type testmusic
    
    
    ;;; 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 
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    I guess you know how to replace individual music pieces (see custom entry in first entry of CampMap section) and where to put that new music piece? And that you have then to delete the IDX\DAT file to generate a new set?
    Last edited by Gigantus; January 13, 2016 at 11:26 PM.










  6. #86

    Default Re: Faction-Specific Music

    Wow, now I should manage thanks a lot I know about deleting idx/dat but I don't understand what you mean with
    I guess you know how to replace individual music pieces (see custom entry in first entry of CampMap section) and where to put that new music piece?
    You're saying about pasting .mp3 into music folder and editing descr_sounds_music file?

  7. #87
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    Quote Originally Posted by revar View Post
    Wow, now I should manage thanks a lot I know about deleting idx/dat but I don't understand what you mean with
    You're saying about pasting .mp3 into music folder and editing descr_sounds_music file?
    That's what I meant. Good luck.










  8. #88

    Default Re: Faction-Specific Music

    Hey, last question. Do I have to remove other entries in other places that are associated with faction or region/music type I have changed? Let's say Denmark is north-european. I added new music type "norths" assigned Denmark to it and their own music etc how you said in your tutorial post above, but there are still some files where Denmark is assigned to north-european or their regions. E.g in descr_sound_music I have to put:

    Code:
    music_type norths
    
    
    ;;; BATTLE MAP 
    
    
    state MUSIC_BATTLE_TENSION
        event 
            folder data/sounds/music
            (Arabic_Tension_1)_Kebabka.mp3
            (Arabic_Tension_2)_Starsand.mp3
    but there is also:

    Code:
    NORTHERN MUSIC     music_type northern_european
    
    
            state MUSIC_FRONTEND
                event 
                    folder data/sounds/music
                    (Frontend).mp3
                end
        
    ;;; BAttlE MAP            
                
                
            state MUSIC_BATTLE_TENSION
                event 
                    folder data/sounds/music
    (Arabic_Tension_1)_Kebabka.mp3
    But in descr_sound_music_types there is

    Code:
    music_type norths
    
    factions denmark
    along with
    Code:
    music_type northern_european
    
    regions Visby_Province Roskilde_Province Lund_Province....
    
    factions denmark...

    Just an example. So do I have to remove other original entries too or just do what is in tutorial and the rest of entries will not interfere or overwrite music in game?

  9. #89
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    In descr_sounds_music you just add your new culture's entries - no need to remove anything.

    In descr_sound_music_types you should remove your second entry as it may cause a conflict - although I think the second instance of the faction entry will be simply ignored.










  10. #90

    Default Re: Faction-Specific Music

    Great, thanks for quick reply. So I'll report when I'm done if it works without problems

  11. #91
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    Let us know - any new info is always welcome.










  12. #92

    Default Re: Faction-Specific Music

    i got 21 music types added , and i got CTD in camping map ...i don't know what a problem ,but when i back up events.dat and idx CTD gone... and i can see it getting worst when i add new music type ...and when i got 21 game just crushed in first load camping music,all mp3 files is fine ,looks like it overload may be in descr_sounds_music.txt
    HELP!!!

  13. #93

    Default Re: Faction-Specific Music

    i had different mp3 kbps like 320kbps, 128kbps, 141kbps, 179kbps, 96kbps... may be it is problem?

  14. #94
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    I don't think the kbps should cause a problem but I can't confirm. There might be a limit to music types or you made a simple spelling mistake. Add them one at a time and test. Not a good idea anyhow to make bulk changes, makes it difficult to narrow down error causes.
    Which text editor do you use?










  15. #95

    Default Re: Faction-Specific Music

    Quote Originally Posted by Gigantus View Post
    I don't think the kbps should cause a problem but I can't confirm. There might be a limit to music types or you made a simple spelling mistake. Add them one at a time and test. Not a good idea anyhow to make bulk changes, makes it difficult to narrow down error causes.
    Which text editor do you use?
    Yes u right , the problem was my metodth, i use to work ,with sound files...i use sound files from the folder without creating Music.dat and idx ,and use dead ones with 1KB so the game use files from the music folder ....it was work , till i got too much music files ...and the game got the CTD ...now i know - creating new Music.dat and idx files it only right way

  16. #96

    Default Re: Faction-Specific Music

    Hey Gigantus,
    I finally found time to try your music method and did everything as you listed above in post #85 but i have some issues. I can only hear my own music while on campaign map and pre battle/win/lose/draw panel. I can't hear my music while on battle map.

    If i remove all regions in descr_sounds_music_types i can't hear my own music in battle map.
    If i add all regions to only my faction and remove all from the rest, i hear my own music during the battle but even if i play as any other faction. So it assign my music to all factions in the game ;/
    If i add all regions to all factions then i hear everything in everywhere.

    I can't make it work no matter how i try ;(
    I hope you can help me somehow.

    Edit: Like if you go back to first page, author of this guide said: "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" And this is exactly what i wan't to change because i want to hear faction music i already play.
    Last edited by revar; September 25, 2017 at 04:05 PM.

  17. #97
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,144
    Blog Entries
    36

    Default Re: Faction-Specific Music

    You are trying to change a hard coded mechanic I am afraid: "The regions define the music_type played in the battle map"

    The music in battle is defined by the region's entry in descr_sound_music_types, the default (if there are no region entries) will be your faction entry. Once you remove the faction as well I assume it will be the very first music_type listed in the relevant sound text file.










  18. #98

    Default Re: Faction-Specific Music

    Then why they put factions there in descr_sound_music_types if regions overwrites the faction settings anyway? This is so stupid, why i can't just make England music play for England on all regions, Norway music play for Norway on all regions and so on with every single faction.

    1. If i keep regions for each and don't remove them, playing as England i hear Norway music on their lands which is what i don't want.
    2. If i remove all regions and leave only music_type and factions, the game use default music or as you said very first music_type in txt file.
    3. If i remove all regions except for England i can hear my music but if i choose to play other faction i hear England music too which is what i don't want too.


    It's bad either way :|
    Last edited by revar; September 26, 2017 at 04:24 PM.

  19. #99

    Default Re: Faction-Specific Music

    Sorry, guys, do you know if there is size or lenght limitations for music files?

  20. #100
    El Monstero29's Avatar Semisalis
    Join Date
    Sep 2013
    Location
    St. Louis, USA
    Posts
    436

    Default Re: Faction-Specific Music

    Quote Originally Posted by Aveliumar View Post
    Sorry, guys, do you know if there is size or lenght limitations for music files?
    Your question is answered in my tutorial at the top of this forum. To save you some time scrolling through it all, yes, the limit for the size of your Music file is 1.41gbs. When that is rebuilt into Music.Dat it will be 1.5gbs give or take a few mbs.

Page 5 of 5 FirstFirst 12345

Posting Permissions

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