[Solved] VS4 Final - background music is not working

  • #1, by andy-rinaldiTuesday, 05. August 2014, 08:36 10 years ago
    Hi guys,
    when I run the game in the editor (run game), background music works but in the game built, just background music no works. Sound effects, voices, music inserted as "at beginning of scene" and then play sound work but the background music no. Why?
    I tried on my 2 PCs...
    Please help me.

    Thanks.

    Forum Fan

    160 Posts


  • #2, by SimonSTuesday, 05. August 2014, 11:21 10 years ago
    Hi there,
    the option "continue music" was reintroduced (for some reason i don't know), you might want to uncheck that for every scene and set the music again. Other question could be that the music volume is set to 0, take a look into your config.ini. You can also try it per lua: setVolume(eMusicVolume, 100)

    Thread Captain

    1580 Posts

  • #3, by andy-rinaldiTuesday, 05. August 2014, 13:04 10 years ago
    Hi,
    all "continue music" are unchecked, Every scene has his background music. These background music no work in all the scenes.
    Before I was working with VS4 beta version and I had the same issue.
    The volume in all my scenes is set to 100%.
    This is the content of my config.ini:

    FILE = ASA_Remastered_Update20140804.vis
    # 
    # FULLSCREEN = {yes|no}
    # yes - starts the game in fullscreen
    # no - starts the game in a window
    FULLSCREEN = yes
    # 
    # RESOLUTION = {Auto|Desktop|Game}
    # Auto - wide-screen support is activated if a wide-screen display is detected
    # Desktop - current desktop resolution is used when game is started in full screen mode
    # Game - game is initialized with the resolution specified in the game
    RESOLUTION = desktop
    # 
    # INTRO = {yes|no}
    # yes - Show the intro movie on start-up
    # no - Don't show the intro movie
    # 
    # LANGUAGE = {German|English|...}
    # 
    # LOGLEVEL = {Info|Warning|Error}
    LOGLEVEL = error
    


    Sound as a build error...

    Where can I find the log error? Can you please help me?
    Thanks.

    Forum Fan

    160 Posts

  • #4, by afrlmeTuesday, 05. August 2014, 13:31 10 years ago
    log files should be located in the same place you found the config.ini file.

    P.S: you should set log level to info because it logs a lot more stuff besides errors.

    Imperator

    7278 Posts

  • #5, by brut69Tuesday, 05. August 2014, 14:19 10 years ago
    I had the same problem.
    IF you are testing your game with the Save&Run option it will work just fine THE FIRST TIME.
    If you save your game and add/fix a few things and you return to see if they work , the music does not work.

    The reason for that (For some weird reason) is the change in the file name when you saved the newer version.

    If for some reason , the name of the file does not change when you Save&Run then the music works fine , if you change it , the music fall apart and the Log file will say the the music file is corrupt when it is not.

    Great Poster

    266 Posts

  • #6, by andy-rinaldiTuesday, 05. August 2014, 14:24 10 years ago
    I always use Save&Run option without change the file name and it works fine!
    I have the problem just when I build the game...

    Forum Fan

    160 Posts

  • #7, by brut69Tuesday, 05. August 2014, 14:30 10 years ago
    "without change the file name and it works fine" --> Without the change it works fine.
    The error usually appears when you change the file name.

    If you are building it then it must be something else.

    Are you using .mp3 or .ogg?

    Have you tried a different type of build? (Include everything packed together instead of separate)

    Great Poster

    266 Posts

  • #8, by afrlmeTuesday, 05. August 2014, 14:35 10 years ago
    The recommended export method is to separate everything into its own category instead of packaging everything in the main data.vis file itself. There are multiple reasons for this.

    The resource files were all added into their own folders yes & not the root folder of the .ved file itself?

    Imperator

    7278 Posts

  • #9, by andy-rinaldiTuesday, 05. August 2014, 15:17 10 years ago
    - Save&Run without change name --> bg music, sfx and voices .ogg work fine
    - Save with change name, Run Game --> bg music, sfx and voices .ogg work fine

    - Build game with Store each xxx in a separate xxx output file --> bg music .ogg NO works (sfx and voices .ogg work fine)
    - Build game with Store all xxx in the output file --> bg music .ogg NO works (sfx and voices .ogg work fine)

    - I put the same sound file in "at beginning of the scene", then play sound, save then build the game and... it works fine.
    - I put a mp3 file in bg music in a scene, save then build the game and it NO works.

    Finally, bg music no works. Which is the difference between bg music and play sound?

    Forum Fan

    160 Posts

  • #10, by AlexTuesday, 05. August 2014, 15:22 10 years ago
    Are there any errors in the log (Help -> Log-Window) after building the game? is the sound file in a subfolder where the ved-file is located?
    After building the game a file called 'report.txt' is created where all exported files are listed for each container. Can you find all your sound files in the report?

    Great Poster

    378 Posts

  • #11, by andy-rinaldiTuesday, 05. August 2014, 16:19 10 years ago
    Hi Alex,
    I get some errors in the logs (in attachment) but nothing about sound files.
    In the report.txt file, I can see all the sound files, even those that do not work.

    Thanks.

    Forum Fan

    160 Posts