Thread: Sounds & Music

Page 16 of 19 FirstFirst ... 61415161718 ... LastLast
Results 151 to 160 of 182
  1. #151  
    Registered Member
    Join Date
    Jul 2012
    Posts
    79
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Getting this error when trying to add sounds:
    java.lang.NullPointerException
    at client.method90(client.java:8391)
    at client.mainGameProcessor(client.java:4086)
    at client.processGameLoop(client.java:3222)
    at RSApplet.run(RSApplet.java:101)
    at client.run(client.java:5760)
    at java.lang.Thread.run(Unknown Source)
    This is my method90:

    public final void method90() {
    for (int index = 0; index < anInt1062; index++) {
    //if (anIntArray1250[index] <= 0) {
    boolean flag1 = false;
    try {
    Stream stream = Sounds.method241(anIntArray1241[index], anIntArray1207[index]);
    new SoundPlayer((InputStream) new ByteArrayInputStream(stream.buffer, 0, stream.currentOffset), soundVolume[index], anIntArray1250[index]);
    if (System.currentTimeMillis() + (long) (stream.currentOffset / 22) > aLong1172 + (long) (anInt1257 / 22)) {
    anInt1257 = stream.currentOffset;
    aLong1172 = System.currentTimeMillis();
    }
    } catch (Exception exception) {
    exception.printStackTrace();
    }
    if (!flag1 || anIntArray1250[index] == -5) {
    anInt1062--;
    for (int j = index; j < anInt1062; j++) {
    anIntArray1207[j] = anIntArray1207 [j + 1];
    anIntArray1241[j] = anIntArray1241[j + 1];
    anIntArray1250[j] = anIntArray1250[j + 1];
    soundVolume[j] = soundVolume[j + 1];
    }
    index--;
    } else {
    anIntArray1250[index] = -5;
    }
    /*} else {
    anIntArray1250[index]--;
    }*/
    }

    if (prevSong > 0) {
    prevSong -= 20;
    if (prevSong < 0)
    prevSong = 0;
    if (prevSong == 0 && musicEnabled) {
    nextSong = currentSong;
    songChanging = true;
    onDemandFetcher.method558(2, nextSong);
    }
    }
    }
    Reply With Quote  
     

  2. #152  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Age
    24
    Posts
    325
    Thanks given
    6
    Thanks received
    15
    Rep Power
    47
    Quote Originally Posted by WhiteBear View Post
    This is a snippet.. not a tutorial..
    I said his explanation not his tutorial. ah dump people everywhere.

    Doing my best
    Reply With Quote  
     

  3. #153  
    Banned
    Join Date
    May 2013
    Posts
    231
    Thanks given
    9
    Thanks received
    54
    Rep Power
    0
    Quote Originally Posted by rojeh View Post
    I said his explanation not his tutorial. ah dump people everywhere.
    dumb*
    Reply With Quote  
     

  4. #154  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Age
    24
    Posts
    325
    Thanks given
    6
    Thanks received
    15
    Rep Power
    47
    Quote Originally Posted by WhiteBear View Post
    dumb*
    dump and dumb both exists if you really want to know (i meant to say dump , dumbass)

    Doing my best
    Reply With Quote  
     

  5. #155  
    Registered Member
    Join Date
    Jun 2013
    Posts
    19
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    This is sooooooooooooooo Frustrating D: I've followed the whole tutorial and still get damn 100 errors can someone help me please.....
    Reply With Quote  
     

  6. #156  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    25
    Posts
    4,142
    Thanks given
    1,079
    Thanks received
    1,137
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by DeathKn1ght View Post
    This is sooooooooooooooo Frustrating D: I've followed the whole tutorial and still get damn 100 errors can someone help me please.....
    Help yourself by using an IDE.
    Reply With Quote  
     

  7. #157  
    Registered Member
    Join Date
    Jun 2013
    Posts
    19
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Im using Eclipse and it doesn't show errors in my script on the compiler does ?
    Reply With Quote  
     

  8. #158  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    25
    Posts
    4,142
    Thanks given
    1,079
    Thanks received
    1,137
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by DeathKn1ght View Post
    Im using Eclipse and it doesn't show errors in my script on the compiler does ?
    English?
    Reply With Quote  
     

  9. #159  
    Registered Member
    Join Date
    Sep 2012
    Posts
    119
    Thanks given
    74
    Thanks received
    11
    Rep Power
    36
    I added this correctly on eclipse no errors or anything but when I open my client no music plays and when i login it just stays on this screen for the whole time



    EDIT: Fixed the login issue but still no music is playing
    Reply With Quote  
     

  10. #160  
    Registered Member
    Join Date
    Apr 2010
    Posts
    12
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hey there, sorry for bumping, but I'm trying to add this to [Only registered and activated users can see links. ]

    I've fixed some of the other errors by renaming, but I can't get past this. (I'm only adding in sounds, if thats a problem) I get these errors when tryign to log into the server. All I get is a black screen that says loading please wait

    Exception in thread "Thread-5" java.lang.Error: Unresolved compilation problems:
    currentSound cannot be resolved to a variable
    SoundPlayer cannot be resolved to a type
    currentSound cannot be resolved to a variable
    currentSound cannot be resolved to a variable
    soundDelay cannot be resolved to a variable
    previousSong cannot be resolved to a variable
    previousSong cannot be resolved to a variable
    previousSong cannot be resolved to a variable
    previousSong cannot be resolved to a variable
    previousSong cannot be resolved to a variable

    at client.method90(client.java:7330)
    at client.mainGameProcessor(client.java:3328)
    at client.processGameLoop(client.java:2427)
    at RSApplet.run(RSApplet.java:169)
    at client.run(client.java:4787)
    at java.lang.Thread.run(Unknown Source)
    Reply With Quote  
     

Page 16 of 19 FirstFirst ... 61415161718 ... LastLast

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. Replies: 7
    Last Post: 03-14-2012, 02:54 PM
  2. Sounds and Music
    By Dennis in forum Help
    Replies: 2
    Last Post: 06-01-2010, 01:31 AM
  3. Music and Sounds
    By Viii in forum Tutorials
    Replies: 43
    Last Post: 07-05-2009, 01:12 PM
  4. Sounds, music and more.
    By Inside Sin in forum Requests
    Replies: 0
    Last Post: 10-05-2008, 06:40 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
  •