WohlSoft / Moondust-Project

Moondust Project by Wohlstand
https://wohlsoft.ru/projects/Moondust/
GNU General Public License v3.0
250 stars 39 forks source link

Music does not play #15

Closed Alucard648 closed 10 years ago

Alucard648 commented 10 years ago

I have encountered this issue pretty much as soon as I launched the editor. Tried everything, like:

  1. Everything mentioned in FAQ. No effect.
  2. Redownloading music pack. No effect.
  3. Checked sound settings. Works fine in all other apps.
  4. Re-assigning music choise in level section properties. When I try to browse for custom music. Editor tries to search entire Disk for music files, which results in "Too Many Subfolders" message if the exe is launched from Disk "C". No effect. Any way how to solve this issue? P.S. The sound testing button in Events settings window also does nothing.
KevinW1998 commented 10 years ago

Lemme have a look...

Wohlstand commented 10 years ago

Check: 1) Music pack must be places to data/music/xxxx.mp3 where xxxx - any files (defined into music.ini from configs/SMBX) 2) File must be saved, AND reloaded for use custom musics. Here I forgot fix bug: level's current dir must be refreshed after save, but I didn't made them :P and need full level reload. fetch whole C:* drive because "untitled" mark disabled, but "." current dir didn't refreshed, I will fix. 3) Try in events common settings and try play sounds, is they works by "Test" button?

KevinW1998 commented 10 years ago

Uhm, I have a feeling what's wrong:

as 4th suggestion: Put the data folder in one upper dir: i.e.: Main EXE: X:\SomePath\Editor\Main\theexe.exe Data: X:\SomePath\Editor\data\ The path is just an example!

Wohlstand commented 10 years ago

Alucard648, get fixed files http://engine.wohlnet.ru/docs/_sources/dev_built/pge_editor.zip, here path for custom music was fixed (this bug appears only on save file, if you open exist file or reload after save into new path - will work normal)

Paths MUST be: xxx.exe data/music/xxx.mp3 data/graphics/level/npc/xxx.gif configs/SMBX/main.ini //here defined paths to staff musics, graphics, etc configs/SMBX/music.ini //here defiled staff music files languages/xxx.qm //here placed translates for application

Alucard648 commented 10 years ago

Updated to new files. All paths are correct, but music and sounds still don`t play.

Wohlstand commented 10 years ago

Hm... All libraries you have? I just extract archive to my virtual Windows Server: mp3-files just playing, on my PC playing inside editor but on server - no. I think, my mistake with deploy, I will check DLL's and will repack them

Wohlstand commented 10 years ago

Try THIS test: 1) get this file: http://wohlnet.ru/sentfile/xx.bat and place them into application dir 2) Edit them into Notepad (replace path to your application path) 3) Run them and I have result:

Result: Need set path to Qt Plugins, I.e. inside folder must be mediaservice and imageformats folder with his DLLs

Alucard648 commented 10 years ago

Tried this Bat and have exactly the same result.

Wohlstand commented 10 years ago

You forgot EDIT them, replace defined in them path to YOUR path to application Or: 1) open Control Pannel -> System 2) Open "Advanced system settimgs" (Windows 7) http://wohlnet.ru/sentfile/Scr_2014.06.30_22-21-53-499.jpg in Windows XP/Server 2003 this window will be opened directly http://wohlnet.ru/sentfile/Scr_2014.06.30_22-29-38-803.jpg 3) Set "System Envoriment" http://wohlnet.ru/sentfile/Scr_2014.06.30_22-22-00-330.jpg 4) Add into variables list QT_PLUGIN_PATH and set value as full path to your PGE-Editor, and save. Try pge_editor directly without BAT file http://wohlnet.ru/sentfile/Scr_2014.06.30_22-22-23-319.jpg

Alucard648 commented 10 years ago

I was meant: When ran trough BAT file, music works fine... But now I have another problem: custom music (besides default SMBX tracks) refuses to play.

Wohlstand commented 10 years ago

did you set "Custom" checkbox? If you set "Custom" music string, it is not means "play them now!", need set music to "play custom music"

Alucard648 commented 10 years ago

Yes.

Wohlstand commented 10 years ago

Now playing?

Alucard648 commented 10 years ago

No. Checked on SM3DW music.

Wohlstand commented 10 years ago

Hm...Quick question: you enter string manually or select file by "..." button? You can set custom music file automatically with special dialog

Alucard648 commented 10 years ago

Used in-app browser ("..." button) for custom music.

Wohlstand commented 10 years ago

What format of music file? Please, open for test THIS level: http://engine.wohlnet.ru/docs/Levels/OPL_Music/ (unpack to any folder, and drag LVL file into Application window) ! Don't forget to press the "play music" button

Alucard648 commented 10 years ago

mp3

Wohlstand commented 10 years ago

See: for play custom music

http://wohlnet.ru/sentfile/Scr_2014.06.30_23-12-05-448.png

Alucard648 commented 10 years ago

This track does not play in editor. This one works fine. Both files are are placed in app`s directory. To download MP3 file, right click on link and "Save As..."

Wohlstand commented 10 years ago

both files you must save with saved Level file. I tryd both musics by editor - both playing on my PC (will try on Server)

Wohlstand commented 10 years ago

Just tested on Server:

BUT

after I reconvert this file to valid format, it already played AND by player, AND by editor. Get fixed MP3 file for test here: http://wohlnet.ru/sentfile/1-03_Super_Bell_Hill.mp3

Alucard648 commented 10 years ago

Thanks, now It works. I thought it was an editor`s issue, because original file plays fine in my XMPlay player. P.S. Any way, how to fix the rest of this soundtrack (76 tracks) like that one?

Wohlstand commented 10 years ago

I used Waver, but you can use Audacity and ffmpeg for read mp3 data.

Wohlstand commented 10 years ago

For convert lots of mp3s I recommend to try ffmpeg by command line

Alucard648 commented 10 years ago

With the bit of info added into FAQ, I can close this ticket.