FAQFAQ    Board RulesBoard Rules    SearchSearch    LotteryLottery    RouletteRoulette    UsergroupsUsergroups
     RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Shop    Log inLog in 
View posts since last visit View your posts View unanswered posts

Audio Zones Help(Mafia 1).

 
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Mafia Mod Help
View previous topic :: View next topic  
Author Message
edicu2000

New Member
New Member


Joined: 19 Aug 2015
Posts: 3

15 Bank Notes
Items

PostPosted: Sat Nov 21, 2015 8:42 pm    Post subject: Audio Zones Help(Mafia 1). Reply with quote

I have a question about Audio zones in the city. (e.g Belleville playing in Central Island). How can you change the area where a certain song is playing. As in playing one song for the whole city without the game having to restart/change each time you get into a different area.
Back to top
View user's profile Send private message
ASM.

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 10 Jan 2014
Posts: 79

183 Bank Notes
Items

PostPosted: Sun Dec 06, 2015 9:30 pm    Post subject: Audio Zones Help(Mafia 1). Reply with quote

From what I know the music zones are defined in scene2.bin via objects of type 0x0E. I've never had a deeper look at this object type, but from the looks of it it appears to describe a mesh.

In order to just have a single song playing throughout the entire map you could try two things:

  • If you don't mind fiddling with a hex editor, delete all objects of type 0x0E except one, and replace its mesh with a huge cube mesh spanning the map area. Going by a quick test it seems the actual ogg file played in the zone is deduced from the zone's name. For this to work the zone and the song file name must have the format city_music_XX.
  • Start your own audio stream in one of the mission's init scripts using stream_create, stream_play and stream_setloop.

The second approach is probably the easiest.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Mafia Mod Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Generation Time: 0.011 | Queries: 19