BGM From Folder

Results 1 to 9 of 9
  1. #1
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    BGM From Folder

    ZSoundEngine.cpp - Search bool ZSoundEngine::OpenMusic(const char* szFileName, MZFileSystem* pfs)

    c/p

    Spoiler:

    Code:
    bool ZSoundEngine::OpenMusic(const char* szFileName, MZFileSystem* pfs)
    {
        if( !m_bSoundEnable ) return false;
    
        m_pfs = pfs;
        if (!strcmp(m_szOpenedMusicName, szFileName)) return false;
        if (m_szOpenedMusicName[0] != 0) CloseMusic();
        strcpy(m_szOpenedMusicName, szFileName);
        
        MZFile mzf;
        mzf.SetReadMode(MZIPREADFLAG_ZIP | MZIPREADFLAG_MRS | MZIPREADFLAG_MRS2 | MZIPREADFLAG_FILE);
        if(!mzf.Open(szFileName, pfs)) return false;
        m_pMusicBuffer = new char[mzf.GetLength()+1];
        mzf.Read(m_pMusicBuffer, mzf.GetLength());
        m_pMusicBuffer[mzf.GetLength()] = 0;
    
        int len = mzf.GetLength();
    
        return ZGetSoundFMod()->OpenStream( m_pMusicBuffer, len );
    }


    in ZSoundEngine.cpp search #define BGM_FOLDER

    there are 2 places for this it is were your music will go by default it goes to sound/bgm

    you can change this to anywhere in your client and it will beable to read from an mrs or folder etc.

    the other stuff renaming stuff(songs) should be around each of those.

    Credits: Vusion - got info from Tomi and told me to look for how files are read.
    Last edited by ThunderZ; 17-04-12 at 12:41 AM.


  2. #2
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: BGM From Folder

    or
    Code:
    MZFile::SetReadMode( MZIPREADFLAG_MRS2 | MZIPREADFLAG_FILE );

  3. #3
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: BGM From Folder

    Quote Originally Posted by qet123 View Post
    or
    Code:
    MZFile::SetReadMode( MZIPREADFLAG_MRS2 | MZIPREADFLAG_FILE );
    or stop posting useless posts for the same exact code..

  4. #4
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: BGM From Folder

    Credit Tomi.

  5. #5
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: BGM From Folder

    Quote Originally Posted by Vusion View Post
    Credit Tomi.
    Why?

    Pretty sure he does nothing and anyways i found it by myself remember?

    When you wouldn't give it to me.

  6. #6
    Proficient Member Akunji is offline
    MemberRank
    Feb 2012 Join Date
    The NetherlandsLocation
    160Posts

    Re: BGM From Folder

    Quote Originally Posted by ThunderZ View Post
    Why?

    Pretty sure he does nothing and anyways i found it by myself remember?

    When you wouldn't give it to me.
    Pretty sure he does nothing?????

    What do you mean with that?
    Hes doing things with wizkid nobody has done before.

  7. #7
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: BGM From Folder

    Quote Originally Posted by Akunji View Post
    Pretty sure he does nothing?????

    What do you mean with that?
    Hes doing things with wizkid nobody has done before.
    What i meant was he did not do this for me nor did help..

    sorry for mis-communication was carried away with something on league lol o.o;

  8. #8
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: BGM From Folder

    Quote Originally Posted by ThunderZ View Post
    What i meant was he did not do this for me nor did help..

    sorry for mis-communication was carried away with something on league lol o.o;
    He invertedly did by helping me and I helping you.

  9. #9
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: BGM From Folder

    Quote Originally Posted by Vusion View Post
    He invertedly did by helping me and I helping you.
    But you didn't help me really you made me look for it and figure it out myself.

    but anyways i guess ill add credits...whatever



Advertisement