Thread: [RuneLimited]Enabling Sounds/Music (start-up music)

Results 1 to 8 of 8
  1. #1 [RuneLimited]Enabling Sounds/Music (start-up music) 
    What....Do you mind?

    Join Date
    May 2007
    Age
    29
    Posts
    552
    Thanks given
    27
    Thanks received
    24
    Rep Power
    14
    Alright well as seeing it has the Sounds file and the Music file, all you need to do is do these codes. didn't take long to figure it but sharing it

    Start-Up music since it doesn't have one:

    Code:
    if(!lowMem)
    			{
    				nextSong = 0;
    				try
    				{
    					nextSong = Integer.parseInt(getParameter("music"));
    				}
    				catch(Exception _ex) { }
    				songChanging = true;
    				onDemandFetcher.method558(2, nextSong);
    				while(onDemandFetcher.getNodeCount() > 0)
    				{
    					processOnDemandQueue();
    					try
    					{
    						Thread.sleep(100L);
    					}
    					catch(Exception _ex) { }
    					if(onDemandFetcher.anInt1349 > 3)
    					{
    						loadError();
    						return;
    					}
    				}
    			}
    And now for the enabling of sounds since the sounds.dat doesn't even exist to load (if you have it Server sided already you wont hear anything well this fixes it).

    Code:
    			if(!lowMem)
    			{
    				drawLoadingText(90, "Unpacking sounds");
    				byte abyte0[] = streamLoader_5.getDataForName("sounds.dat");
    				ByteVector stream = new ByteVector(abyte0);
    				Sounds.unpack(stream);
    			}

    Enjoy.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member
    gomomo11's Avatar
    Join Date
    May 2010
    Posts
    2,383
    Thanks given
    268
    Thanks received
    196
    Rep Power
    177
    Does that mean that if we don't use music we can remove sounds.dat file?

    no external links without affiliate
    Reply With Quote  
     

  4. #3  
    What....Do you mind?

    Join Date
    May 2007
    Age
    29
    Posts
    552
    Thanks given
    27
    Thanks received
    24
    Rep Power
    14
    Quote Originally Posted by gomomo11 View Post
    Does that mean that if we don't use music we can remove sounds.dat file?
    I don't think you can as its part of the Cache, the code i posted just allows it to be used

    Also back-up your cache and try it
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Banned
    TrustedDealer's Avatar
    Join Date
    Jan 2011
    Posts
    915
    Thanks given
    98
    Thanks received
    241
    Rep Power
    0
    Nice work Bro
    Reply With Quote  
     

  7. #5  
    What....Do you mind?

    Join Date
    May 2007
    Age
    29
    Posts
    552
    Thanks given
    27
    Thanks received
    24
    Rep Power
    14
    Quote Originally Posted by TrustedDealer View Post
    Nice work Bro
    indeed, not sure if people will use but i guess its a feature for some users maybe
    Reply With Quote  
     

  8. #6  
    Registered Member Kristjan's Avatar
    Join Date
    Apr 2009
    Posts
    1,579
    Thanks given
    706
    Thanks received
    187
    Rep Power
    563
    Thanks for this.
    Spoiler for Signature:
    Previously known as: 508gu
    Quote Originally Posted by SamSoft View Post
    Vouch for Korra Legit, First pin Sold So now the 9m is off the table.
    Quote Originally Posted by Zoltz View Post
    vouch, quick trade very smooth will trade w/ again.
    Quote Originally Posted by Bundy View Post
    Very Legit Seller, Bought 170k Already, Still Buying More Of Him, Cheap Prices!
    Quote Originally Posted by Bundy View Post
    Vouch, Very Good Guy, Purchased Again !
    Quote Originally Posted by eduber1 View Post
    vouch service went fast and smoothly
    Quote Originally Posted by Jinrake View Post
    vouch bru
    Reply With Quote  
     

  9. #7  
    Registered Member
    Join Date
    Mar 2012
    Posts
    186
    Thanks given
    16
    Thanks received
    10
    Rep Power
    25
    Thanks, how would I stop or fade the music on login?

    What methods do I use, I have searched for musicStop() / musicFade() and similar things but I can't find any.

    edit: won't let me thank the main post, but I rep'd you.

    soundeffect.close(); // Closes SoundPlayer would this work?
    Spoiler for Midgets:


    Quote Originally Posted by four View Post
    You aren't really... wrong, but you are retarded.
    Reply With Quote  
     

  10. #8  
    Registered Member

    Join Date
    May 2011
    Age
    27
    Posts
    1,765
    Thanks given
    379
    Thanks received
    514
    Rep Power
    222
    Nice grave dig.
    Reply With Quote  
     

  11. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. enabling music
    By Tamatea in forum Requests
    Replies: 0
    Last Post: 08-02-2011, 06:52 AM
  2. enabling music tab?
    By Humbler in forum Help
    Replies: 1
    Last Post: 10-20-2010, 03:56 PM
  3. Enabling music tab?
    By Unity in forum Help
    Replies: 1
    Last Post: 07-15-2009, 04:53 AM
  4. enabling music tab
    By harmy in forum Help
    Replies: 0
    Last Post: 03-19-2009, 10:47 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •