BUG with the songs.

Heraldic

Chieftain
Joined
Oct 9, 2018
Messages
45
C2C has a cool way in which you can choose a folder of songs to play during the game. One thing I particularly loved.
But as your map gets more detailed and advanced, the songs you choose stop playing and return to normal music gameplay.
Anyone know how I can solve this?
 
C2C has a cool way in which you can choose a folder of songs to play during the game. One thing I particularly loved.
But as your map gets more detailed and advanced, the songs you choose stop playing and return to normal music gameplay.
Anyone know how I can solve this?
Isn't that a vanilla feature...In the regular Audio options?
 
It's normal for songs to change as you progress the eras, unless that's not what you are referring to?

Don't forget to edit CIV4EraInfos.xml so that your songs get played in different eras.
 
Isn't that a vanilla feature...In the regular Audio options?

Yes. I choose the music directory in the normal audio settings

It's normal for songs to change as you progress the eras, unless that's not what you are referring to?

Don't forget to edit CIV4EraInfos.xml so that your songs get played in different eras.

In this case they stop playing in the same era. The songs in the folder I choose stop playing and replay the original songs of the mod. Also, when it comes back in the original, I can not get back with mine without having to open the game again. But how do I edit the CIV4EraInfos.xml ?? And where is he?
 
CIV4EraInfos.xml ?? And where is he?
/Assets/XML/GameInfo

As for how to edit it, I would say, if you have to ask, don't...;)
 
/Assets/XML/GameInfo

As for how to edit it, I would say, if you have to ask, don't...;)

It would be a big problem for me to edit it because I do not even know where to start. But in this case do I even need to edit XML? Because I have not added any music directly to the game. My problem is in the progress of the list of songs that I put to play, with the vanilla tour.
 
Have you tried ctrl-M to turn the music off and back on? Typical customer support suggestion, but it would be awfully convenient if it works. Otherwise you might have to exit and re-enter the mod, or even the game.
 
Have you tried ctrl-M to turn the music off and back on? Typical customer support suggestion, but it would be awfully convenient if it works. Otherwise you might have to exit and re-enter the mod, or even the game.

Yes. I used this command. But it only interweaves the standard songs. And I can not get mine again. I can only put it just by having to reopen the game. But the problem repeats itself.
 
Why don't you just play the music you want in a MP3 player like winamp and turn off music volume within the game?

I installed it here, but I can not change the songs in full screen, as I would with the command ctrl + m.
 
Add a hotkey for winamp then.
Autohotkey can he useful. install it and try it out.

Here's some autohotkey code for my winamp hotkeys.
Code:
; Semicolon is the start of a comment, anything behind it will not be processes as code.

; modifier keys legend:
; # = Win , ^ = Ctrl , ! = Alt , + = Shift , & = combine , < = left , > = right

;Winamp specific control

    ; Delete current winamp track. Requires winamp global hotkey "general: Copy file path" assigned to CTRL+HOME.

        !+Delete::

            Process, Exist, winamp.exe        ; check to see if winamp is running.
            if (ErrorLevel = 0)
                return

            ClipCache := ClipboardAll    ; Backup clipboard.
            Clipboard =                    ; Clear clipboard.
            send, ^{Home}                ; Copy file path to clipboard
            DetectHiddenWindows, On        ; Allows WM_Command to reach winamp.
            PostMessage, 0x111,40047,,,ahk_class Winamp v1.x    ; Stop playback.
            PostMessage, 0x111,40048,,,ahk_class Winamp v1.x    ; Next track.
            FileRecycle, %Clipboard%    ; Delete file of the previous track.
            Clipboard := ClipCache        ; Restore the original clipboard. Note the use of Clipboard and not ClipboardAll.
            ClipCache =                    ; Clear ClipCache.
            sleep 10
            PostMessage, 0x111,40045,,,ahk_class Winamp v1.x    ; Start playback.
            PostMessage, 0x111,40222,,,ahk_class Winamp PE        ; Removes missing tracks from playlist. Glitchy with a large playlist.
            DetectHiddenWindows, Off

        return

    ; Volume Control

        ^!NumpadAdd::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40058,,,ahk_class Winamp v1.x
        return

        ^!NumpadSub::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40059,,,ahk_class Winamp v1.x
        return

    ; Other

        ^!NumpadMult::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40022,,,ahk_class Winamp v1.x ; Toggle repeat
        return

        ^!NumpadDiv::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40023,,,ahk_class Winamp v1.x ; Toggle shuffle
        return

        ^!Numpad0::
            IfWinNotExist ahk_class Winamp v1.x
                return
            SendMessage, 0x400,0,104,,ahk_class Winamp v1.x
                if errorlevel = 0
                    PostMessage, 0x111,40045,,,ahk_class Winamp v1.x ; Play from start
                else
                    PostMessage, 0x111,40046,,,ahk_class Winamp v1.x ; Play/Pause
        return

; Mouse Hotkeys
    ; Multimedia

        MButton & RButton::Send {vkB1sc110}        ; Prev.track
        MButton & LButton::Send {vkB0sc119}        ; Next track
        MButton & XButton1::Send {vkB3sc122}    ; Play/Pause
        MButton & XButton2::Send {vkADsc120}    ; Vol. Mute
        MButton & WheelDown::Send {vkAEsc12E}    ; Vol. Down
        MButton & WheelUp::Send {vkAFsc130}        ; Vol. Up
I'll attach the entire autohotkey script that I always have running on my computer.
You can delete the parts in it that you won't use.
 

Attachments

  • General Use.7z
    2.4 KB · Views: 162
Last edited:
Autohotkey can set up multimedia function hotkeys that some keybards have inbuilt.
I don't use these as I have the controls inbuilt in my keybard by default, but maybe you would want them...

;next song
+F1::Send {Media_Next}

;previous song
+F2::Send {Media_Prev}

;play/pause
+F3::Send {Media_Play_Pause}

;stop
+F4::Send {Media_Stop}
 
Add a hotkey for winamp then.
Autohotkey can he useful. install it and try it out.

Here's some autohotkey code for my winamp hotkeys.
Code:
; Semicolon is the start of a comment, anything behind it will not be processes as code.

; modifier keys legend:
; # = Win , ^ = Ctrl , ! = Alt , + = Shift , & = combine , < = left , > = right

;Winamp specific control

    ; Delete current winamp track. Requires winamp global hotkey "general: Copy file path" assigned to CTRL+HOME.

        !+Delete::

            Process, Exist, winamp.exe        ; check to see if winamp is running.
            if (ErrorLevel = 0)
                return

            ClipCache := ClipboardAll    ; Backup clipboard.
            Clipboard =                    ; Clear clipboard.
            send, ^{Home}                ; Copy file path to clipboard
            DetectHiddenWindows, On        ; Allows WM_Command to reach winamp.
            PostMessage, 0x111,40047,,,ahk_class Winamp v1.x    ; Stop playback.
            PostMessage, 0x111,40048,,,ahk_class Winamp v1.x    ; Next track.
            FileRecycle, %Clipboard%    ; Delete file of the previous track.
            Clipboard := ClipCache        ; Restore the original clipboard. Note the use of Clipboard and not ClipboardAll.
            ClipCache =                    ; Clear ClipCache.
            sleep 10
            PostMessage, 0x111,40045,,,ahk_class Winamp v1.x    ; Start playback.
            PostMessage, 0x111,40222,,,ahk_class Winamp PE        ; Removes missing tracks from playlist. Glitchy with a large playlist.
            DetectHiddenWindows, Off

        return

    ; Volume Control

        ^!NumpadAdd::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40058,,,ahk_class Winamp v1.x
        return

        ^!NumpadSub::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40059,,,ahk_class Winamp v1.x
        return

    ; Other

        ^!NumpadMult::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40022,,,ahk_class Winamp v1.x ; Toggle repeat
        return

        ^!NumpadDiv::
            IfWinNotExist ahk_class Winamp v1.x
                return
            PostMessage, 0x111,40023,,,ahk_class Winamp v1.x ; Toggle shuffle
        return

        ^!Numpad0::
            IfWinNotExist ahk_class Winamp v1.x
                return
            SendMessage, 0x400,0,104,,ahk_class Winamp v1.x
                if errorlevel = 0
                    PostMessage, 0x111,40045,,,ahk_class Winamp v1.x ; Play from start
                else
                    PostMessage, 0x111,40046,,,ahk_class Winamp v1.x ; Play/Pause
        return

; Mouse Hotkeys
    ; Multimedia

        MButton & RButton::Send {vkB1sc110}        ; Prev.track
        MButton & LButton::Send {vkB0sc119}        ; Next track
        MButton & XButton1::Send {vkB3sc122}    ; Play/Pause
        MButton & XButton2::Send {vkADsc120}    ; Vol. Mute
        MButton & WheelDown::Send {vkAEsc12E}    ; Vol. Down
        MButton & WheelUp::Send {vkAFsc130}        ; Vol. Up
I'll attach the entire autohotkey script that I always have running on my computer.
You can delete the parts in it that you won't use.

Perfect! I have explored extensively to try to understand these codes to a minimum.
I was able to replace the keys with a list that comes with the program.
It worked very well here. Now I can perfectly control the songs, even better than the old haha way.


Many thanks, Comrade! :goodjob::goodjob::goodjob:
 
Top Bottom