[YAFR] Let song command play songs from a list randomly and repeat indefinitly.

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Limith

Modding for Myself
18 Badges
Apr 7, 2010
3.740
369
  • Darkest Hour
  • Deus Vult
  • East India Company
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Heir to the Throne
  • Rome: Vae Victis
  • Rome Gold
  • Sword of the Stars
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Stellaris Sign-up
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
If a country is given a country specific song playlist, it doesn't change the music played if war/peace is changed. Thus, I created an event based song playlist change event system based on if a country is at war or peace. Songs changed this way don't play forever. This is for my CG mod specifically.
 

Fernando Torres

Darkest Hour Game Designer
48 Badges
Dec 2, 2006
10.182
39
rayan-nezzar.fr
  • Rome: Vae Victis
  • Penumbra - Black Plague
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Ship Simulator Extremes
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
  • Victoria 2
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Elven Legacy Collection
  • Hearts of Iron II: Beta
  • Pride of Nations
  • Rise of Prussia
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Achtung Panzer
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • For The Glory
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • East India Company
  • East India Company Collection
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Arsenal of Democracy
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Legio
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • March of the Eagles
I see. But this is the way it's supposed to work in vanilla.
I just added events-triggered speeches (don't spread the word :happy:). When the speech is over, the game reads the war/peace playlist again.
But feel free to suggest syntax extension for this command. I will log it on our Mantis but don't expect this to be done anytime soon. Martin already has a 200+ planned features list..
 

Limith

Modding for Myself
18 Badges
Apr 7, 2010
3.740
369
  • Darkest Hour
  • Deus Vult
  • East India Company
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Heir to the Throne
  • Rome: Vae Victis
  • Rome Gold
  • Sword of the Stars
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Stellaris Sign-up
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
I see. Didn't think of speeches...hmm.....I do have a .mkv audio ripper software and audacity to lift Charles zi Britannia's speech....but I digress, CG is on the backburner for a while.

It's fine if this isn't worked on for a while, just that song worked differently in Hoi2:ArmA. I look forward to 200 improvements. :D

2 ways to approach my suggestion which would achieve what I am looking for

Option A:
-Expand song command to have an optional parameter (ex. when = 0/1) and a second one (where = 0/1) that repeats indefinitely and shuffles the playlist.
Option B:
-Create two country specific war/peace playlist command/scenario parameter (which is essentially what my event based music system is doing). I already wrote why song = "playlist.txt" in a .eug doesn't work well (especially since one must define that for a suggested country and I don't think its possible to define it for a non-suggested country or emerging country...for the latter, it'd probably be best for it to be event based command). Basically this would change the war/peace playlist for a country, making my event chain obsolete for CG, but adding a working flavor feature.
ex: command = warsong
command = peacesong
alternatively, this could be added to song:
command = song what = 0/1/2 # 0 = speech/current, 1 = changes peacetime, 2 = changes wartime.