Increase capacity of music to GunZ [1.5 / C + +]

Results 1 to 7 of 7
  1. #1
    Enthusiast PROX1239 is offline
    MemberRank
    Dec 2012 Join Date
    35Posts

    cool Increase capacity of music to GunZ [1.5 / C + +]

    Well as the subject says, I come to give something very simple for me, but that surely must mean something to you.

    to make the changes we need to open our source two libraries: ZSoundEngine.cpp & ZSoundEngine.h

    Let's first with the ZSoundEngine.cpp

    Search for:
    static char m_stSndFileName[MAX_BGM][64] =
    will see that there are many mp3 or ogg files

    recommend leaving this way

    static char m_stSndFileName[MAX_BGM][64] = {"CharSelect.mp3",
    "Lobby.mp3",
    "Ingame1.mp3",
    "Ingame2.mp3",
    "Ingame3.mp3",
    "Ingame4.mp3",
    "Ingame5.mp3",
    "Ingame6.mp3",
    "Ingame7.mp3",
    "Ingame8.mp3",
    "Ingame9.mp3",
    "Ingame10.mp3",
    "Ingame11.mp3",
    "Ingame12.mp3",
    "Ingame13.mp3",
    "Ingame14.mp3",
    "Ingame15.mp3",
    "Ingame16.mp3",
    "EndGame.mp3" };
    then seek

    const char* ZSoundEngine::GetBGMFileName(int nBgmIndex)
    and do the same mentioned above, leave it like this.

    static char m_stSndFileName[MAX_BGM][64] = {"CharSelect.mp3",
    "Lobby.mp3",
    "Ingame1.mp3",
    "Ingame2.mp3",
    "Ingame3.mp3",
    "Ingame4.mp3",
    "Ingame5.mp3",
    "Ingame6.mp3",
    "Ingame7.mp3",
    "Ingame8.mp3",
    "Ingame9.mp3",
    "Ingame10.mp3",
    "Ingame11.mp3",
    "Ingame12.mp3",
    "Ingame13.mp3",
    "Ingame14.mp3",
    "Ingame15.mp3",
    "Ingame16.mp3",
    "EndGame.mp3" };
    after having done that, go with the ZSoundEngine.h

    seek:
    #define BGMID_INTRO 0
    While this is the easiest part, define the placement of the music through the different stages or scenarios (Lobby, Finish, Intro, etc.)

    let's focus on this, by default you have it so

    #define BGMID_INTRO 0
    #define BGMID_LOBBY 1
    #define BGMID_BATTLE 2
    #define BGMID_FIN 12
    in the part that says "# define BGMID_FIN" see you have a 12, it was because before we had 13 files, well now we have 19,
    and then you should be well

    #define BGMID_INTRO 0
    #define BGMID_LOBBY 1
    #define BGMID_BATTLE 2
    #define BGMID_FIN 18
    then must change

    #define MAX_BGM 13
    to

    #define MAX_BGM 19
    and I think that's it. Greetings.

    Credits:

    adz28 >> Explanation of basic C + + concepts
    Me >> All contribute.


  2. #2
    Member SkipChopJD is offline
    MemberRank
    May 2013 Join Date
    70Posts

    Re: Increase capacity of music to GunZ [1.5 / C + +]

    Nice Post.!!!!

  3. #3
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: Increase capacity of music to GunZ [1.5 / C + +]

    #define BGMID_FIN 12
    I don't think/sure you need to edit this part...

  4. #4
    Enthusiast PROX1239 is offline
    MemberRank
    Dec 2012 Join Date
    35Posts

    Re: Increase capacity of music to GunZ [1.5 / C + +]

    Quote Originally Posted by sahar042 View Post
    I don't think/sure you need to edit this part...
    they did so myself, and it worked correctly, if you look at the original statement there is a 12 as there are 13 files!, it indicates that the file 12 is to fund the battle songs, and 12 -13 (the number 13 obviously) start the songs of "Final" the end of the game, just a matter of talent, has not changed anything in the statements, only the values​​. :) greetings

  5. #5
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: Increase capacity of music to GunZ [1.5 / C + +]

    Quote Originally Posted by PROX1239 View Post
    they did so myself, and it worked correctly, if you look at the original statement there is a 12 as there are 13 files!, it indicates that the file 12 is to fund the battle songs, and 12 -13 (the number 13 obviously) start the songs of "Final" the end of the game, just a matter of talent, has not changed anything in the statements, only the values​​. :) greetings

    This is what you said:
    in the part that says "# define BGMID_FIN" see you have a 12, it was because before we had 13 files, well now we have 19,
    and then you should be well
    And you also changed it to:
    #define BGMID_FIN 18
    Maybe i am stupid but
    #define BGMID_INTRO 0
    #define BGMID_LOBBY 1
    #define BGMID_BATTLE 2
    #define BGMID_FIN 12
    1,2,12 = 15?
    Can you tell me how did you calculate it? Again maybe i wrong.
    Now i am confused.
    Last edited by sahar042; 31-07-13 at 11:26 AM.

  6. #6
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: Increase capacity of music to GunZ [1.5 / C + +]

    Quote Originally Posted by sahar042 View Post
    This is what you said:


    And you also changed it to:


    Maybe i am stupid but

    1,2,12 = 15?
    Can you tell me how did you calculate it? Again maybe i wrong.
    Now i am confused.
    Because arrays have zero-indexing. Array[18] is the 19th element in that array.

  7. #7
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: Increase capacity of music to GunZ [1.5 / C + +]

    Quote Originally Posted by Solaire View Post
    Because arrays have zero-indexing. Array[18] is the 19th element in that array.
    Ah fine thank you



Advertisement