Sound Problems

  • #1, by brut69Wednesday, 14. May 2014, 23:25 7 years ago
    I have the following problem and I was wondering if anyone could help

    During the testing phase of my game the sounds work perfectly. I am using a .wav file for walking sound and a .mp3 music file for the background music

    Once I build the game and replay it... everything again work perfectly....

    The problem starts when I save and then reload the game.

    When that happens the sounds do not come back. I managed to force the walking sound back by calling an action which everytime the hero leaves the room the stepping sounds get reassigned to him.
    This doesnt work with the background music and I am stumped

    I checked the log file and I get this :

    ------------
    00:18:40: SetupParents finished. Needed time: 0 ms
    00:18:40: SortLinks finished. Needed time: 0 ms
    00:18:41: Error: can't open file 'GAME3\India Music.mp3' (error 3: the system cannot find the path specified.)
    00:18:41: Error: Could not open file 'GAME3\India Music.mp3'
    00:18:41: Error: Failed to open soundfile 'GAME3\India Music.mp3'. Audio format is probably not supported or file is corrupt.
    00:18:41: A cutscene was started in action "Save: Load: Left click" (data id: 66) but was not terminated
    00:18:42: Error: can't open file 'Sounds\footsteps.wav' (error 3: the system cannot find the path specified.)
    00:18:42: Error: Could not open file 'Sounds\footsteps.wav'
    00:18:42: Error: Failed to open soundfile 'Sounds\footsteps.wav'. Audio format is probably not supported or file is corrupt.
    ---------------

    The problem is that the files are not corrupted and they work fine the first time around... and this ONLY happens after I build the game and I test the .exe file.

    Any clues?

    Great Poster

    264 Posts


  • #2, by BigStansWednesday, 14. May 2014, 23:47 7 years ago
    Hi, which version?
    It looks like the sound files are not in the .vis file.
    Did you have an .log File after the building process?

    Great Poster

    361 Posts

  • #3, by brut69Wednesday, 14. May 2014, 23:56 7 years ago
    In version 4. The files are there since they work the first time around. The weird thing is that nothing is being changed besides Saving/Loading and then the sound dies. I am trying to convert the files now the the "recommended" extension (.ogg or .opus) to see if that solves it.

    Great Poster

    264 Posts

  • #4, by BigStansThursday, 15. May 2014, 00:04 7 years ago
    Or did you use the "vispath:" script "prefix"?
    If you do not understand what i mean, you're right to convert and try it again, because we rewritten the audio engine part for cross-platform compatibility too.

    You can use an ffmpeg batch file to convert all files to ogg or opus and then search and replace all ogg / wav extensions with an editor like notepad++ in the .ved.

    Great Poster

    361 Posts

  • #5, by brut69Thursday, 15. May 2014, 00:11 7 years ago
    I did not use the "vispath:"

    I do not have a lot of sounds so I do not need to batch do the procedure.
    I used this "http://audio.online-convert.com/convert-to-ogg" to convert the files. The same thing happens.

    Just to be clear :

    1. I save
    2. Exit the game
    3. Load to previous = No sound

    If I
    1. Save
    2. Load = Works

    Great Poster

    264 Posts

  • #6, by BigStansThursday, 15. May 2014, 00:24 7 years ago
    Hm… I try to reproduce it with the demogame.
    You're using .vis files right?
    Then i must try to reproduce it with .vis files. Tomorrow i can check it better than tonight smile

    Great Poster

    361 Posts

  • #7, by brut69Thursday, 15. May 2014, 00:25 7 years ago
    Yes I am using .vis files
    Are there any others? O.o

    Great Poster

    264 Posts

  • #8, by afrlmeThursday, 15. May 2014, 01:50 7 years ago
    You should keep files to one single format - ogg (vorbis) being the recommended format. I would also recommend downloading Audacity, as it's a really good audio conversion tool & it's completely free. wink

    When you export your game, it is better to export things into separate files instead of including them in the main data .vis file.

    Imperator

    6846 Posts

  • #9, by BigStansThursday, 15. May 2014, 14:19 7 years ago
    Yes, .ved if you start directly from the editor.
    Ah, we've fixed an bug in the beta with the .vis files. Did you create the .vis with the 4.0 RC ? smile

    Great Poster

    361 Posts

  • #10, by brut69Thursday, 15. May 2014, 15:15 7 years ago
    With conversion the problem still persists
    I have Vis 4.0 Beta (Build 1164)

    Is there a newer version?

    Great Poster

    264 Posts

  • #11, by afrlmeThursday, 15. May 2014, 16:01 7 years ago
    yeah there's an rc version released late last week.

    Imperator

    6846 Posts

Write post