0
0

Hi,

We have a fev project for all the game levels. Considering the disk layout, it might not be a good idea to have all the fsb files in one single place. Can we output the fsb files into different sub folders? Or we need to use different fev files to achieve that?

Thank you~

  • You must to post comments
0
0

FMOD looks for all FSBs associated with a single FEV in two locations: the FEV’s location, and the event system media path (set with setMediaPath) that was set at the time the FEV was loaded. You may be able to use this to your advantage by doing something like:

[code:3m8a5ooh]
// FEV is media/game.fev
// level 1 FSBs are in media/level1/
// level 2 FSBs are in media/level2/
// common FSBs are in media/

// level 1
eventsystem->setMediaPath("media/level1/");
// FEV path is relative to the media path
eventsystem->load("../game.fev", ...);

// level 2
eventsystem->setMediaPath("media/level2/");
// FEV path is relative to the media path
eventsystem->load("../game.fev", ...);
[/code:3m8a5ooh]

Note that this means you would have to reload the FEV when changing levels. Also, if you attempt to load an event when the wrong media path is set, you will get an FMOD_ERR_FILE_NOTFOUND error.

If you want more control over how your FSBs are loaded, look at preloadFSB and unloadFSB.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.