|
|
Getting this error when trying to add sounds:
This is my method90: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)
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);
}
}
}
This is sooooooooooooooo Frustrating D: I've followed the whole tutorial and still get damn 100 errors can someone help me please.....

Im using Eclipse and it doesn't show errors in my script on the compiler does ?

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![]()
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)
| « OSRS Item Recolourings | Autowrapping text » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |