Jump to content


Photo

Ufo2000 don't play music


  • Please log in to reply
2 replies to this topic

#1 esniper

esniper

    Squaddie

  • Forum Members
  • PipPip
  • 8 posts

Posted 29 May 2010 - 05:16 AM

In all versions that I ever have no music but .ogg files are copied.

1) Download music from http://downloads.sou...se_mirror=space
2) Unpack and copy .ogg files to "newmusic" folder
3) Start Ufo2000 and nothing music... but sounds are played

In ufo2000.ini:
...
# music volume (from 0 to 255)
music_volume = 250
# soundtracks for background music
menu_music = $(ufo2000)/newmusic/gmstory.ogg
setup_music = $(ufo2000)/newmusic/gmenbase.ogg
editor_music = $(ufo2000)/newmusic/gmdefend.ogg
combat_music1 = $(ufo2000)/newmusic/gmstory.ogg
combat_music2 = $(ufo2000)/newmusic/gmstory.ogg
win_music = $(ufo2000)/newmusic/gmlose.ogg
lose_music = $(ufo2000)/newmusic/gmlose.ogg
net_music1 = $(ufo2000)/newmusic/gmgeo.ogg
net_music2 = $(ufo2000)/newmusic/gmgeo.ogg
...

System is WinXP Pro SP3

Edited by esniper, 29 May 2010 - 05:17 AM.


#2 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 29 May 2010 - 02:44 PM

It's a problem related to DUMB library which was initially used for music playback in UFO2000. DUMB version which we have been using suffers from a security vulnerability (an audio file modified in a special way can theoretically trigger arbitrary code execution when the game tries to play it). Upgrading to a newer fixed version is not easy because they changed API, so this library has been just disabled.

It is not a good state of things for sure and we will try to add music support back.
ufo2000 development team
http://ufo2000.sourceforge.net

#3 esniper

esniper

    Squaddie

  • Forum Members
  • PipPip
  • 8 posts

Posted 29 May 2010 - 04:57 PM

Ok. I understand.