2006Redone Release - Highly Accurate Runescape 2006 Remake

I can't pickup global item spawns and 2 items spawn on ground(iron daggers in goblin house near river).

EDIT: Now I can pickup some of the items, some items are still stuck though.
 
Had a go with this last night lots of content but code is absolutely horrible and so many bugs, things like the player chopping the tree from a mile away lol
 
When I try to apply the createGroundItem fix, I get an error in Eclipse. "Exception in thread "main" java.lang.Error: Unresolved compilation problem: The public type ItemHandler must be defined in its own file [br] [br] at redone.world.ItemHandler.<init>(ItemHandler - default.java:26 at redone.Server.<clinit>(Server.java:63)

It should be noted I'm a total newbie at RSPS.
 
This source doesn't work.

All caches are there, I am running in eclipse. and when i go to run the 3 files i get:

2006redone Server folder:

Build.bat
"Error: Unable to access jarfile libs/javac++.jar"

initiate.bat
"Error: Could not find or load main class server.Server"

2006File_Server

start.cmd:
"Error: Could not find or load main class org.apollo.jagcached.FileServer"

2006redone Client:

compile.bat
"The system cannot find the path specified."

run.bat
"Error: Could not find or load main class Main"


I have really lost patience trying to figure this out. There is no instruction on how to run this source and client, other then "through Eclipse" which it doesnt work.
 
Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module xpp3 contains package javax.xml.namespace, module java.xml exports package javax.xml.namespace to xpp3

Whenever I try to run this with Eclipe I get this error.

With IntelliJ I get these:

\2006Redone\2006Redone Client\src\SoundPlayer.java:8:17
java: package sun.audio does not exist

\2006Redone\2006Redone Client\src\SoundPlayer.java:45:24
java: package AudioPlayer does not exist

Can someone help me?
 
Whenever I try to run this with Eclipe I get this error.

With IntelliJ I get these:



Can someone help me?

replace the whole file with this:

Code:
import java.io.InputStream;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.FloatControl;

public class SoundPlayer implements Runnable {

	private AudioInputStream stream;
	private DataLine.Info info;
	private Clip sound;

	private InputStream soundStream;
	private Thread player;
	private int delay;
	private int soundLevel;
	public static int volume;

	/**
	 * Initializes the sound player.
	 * [MENTION=141703]Param[/MENTION] stream
	 * [MENTION=141703]Param[/MENTION] level
	 * [MENTION=141703]Param[/MENTION] delay
	 */
	public SoundPlayer(InputStream stream, int level, int delay) {
		if (level == 0 || volume == 4 || level - volume <= 0) {
			return;
		}
		this.soundStream = stream;
		this.soundLevel = level;
		this.delay = delay;
		player = new Thread(this);
		player.start();
	}

	/**
	 * Plays the sound.
	 */
	@Override
	public void run() {
		try {
			stream = AudioSystem.getAudioInputStream(soundStream);
			info = new DataLine.Info(Clip.class, stream.getFormat());
			sound = (Clip) AudioSystem.getLine(info);
			sound.open(stream);
			FloatControl volume = (FloatControl) sound.getControl(FloatControl.Type.MASTER_GAIN);
			volume.setValue(getDecibels(soundLevel - getVolume()));
			if (delay > 0) {
				Thread.sleep(delay);
			}
			sound.start();
			while (sound.isActive()) {
				Thread.sleep(250);
			}
			Thread.sleep(10000);
			sound.close();
			stream.close();
			player.interrupt();
		} catch (Exception e) {
			player.interrupt();
			e.printStackTrace();
		}
	}

	/**
	 * Sets the client's volume level.
	 * [MENTION=141703]Param[/MENTION] level
	 */
	public static void setVolume(int level) {
		volume = level;
	}

	/**
	 * Returns the client's volume level.
	 */
	public static int getVolume() {
		return volume;
	}

	/**
	 * Returns the decibels for a given volume level.
	 * [MENTION=141703]Param[/MENTION] level
	 * [MENTION=181420]Return[/MENTION]
	 */
	public float getDecibels(int level) {
		switch (level) {
			case 1:
				return (float) -80.0;
			case 2:
				return (float) -70.0;
			case 3:
				return (float) -60.0;
			case 4:
				return (float) -50.0;
			case 5:
				return (float) -40.0;
			case 6:
				return (float) -30.0;
			case 7:
				return (float) -20.0;
			case 8:
				return (float) -10.0;
			case 9:
				return (float) -0.0;
			case 10:
				return (float) 6.0;
			default:
				return (float) 0.0;
		}
	}
}
 
replace the whole file with this:

Code:
import java.io.InputStream;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.FloatControl;

public class SoundPlayer implements Runnable {

	private AudioInputStream stream;
	private DataLine.Info info;
	private Clip sound;

	private InputStream soundStream;
	private Thread player;
	private int delay;
	private int soundLevel;
	public static int volume;

	/**
	 * Initializes the sound player.
	 * [MENTION=141703]Param[/MENTION] stream
	 * [MENTION=141703]Param[/MENTION] level
	 * [MENTION=141703]Param[/MENTION] delay
	 */
	public SoundPlayer(InputStream stream, int level, int delay) {
		if (level == 0 || volume == 4 || level - volume <= 0) {
			return;
		}
		this.soundStream = stream;
		this.soundLevel = level;
		this.delay = delay;
		player = new Thread(this);
		player.start();
	}

	/**
	 * Plays the sound.
	 */
	@Override
	public void run() {
		try {
			stream = AudioSystem.getAudioInputStream(soundStream);
			info = new DataLine.Info(Clip.class, stream.getFormat());
			sound = (Clip) AudioSystem.getLine(info);
			sound.open(stream);
			FloatControl volume = (FloatControl) sound.getControl(FloatControl.Type.MASTER_GAIN);
			volume.setValue(getDecibels(soundLevel - getVolume()));
			if (delay > 0) {
				Thread.sleep(delay);
			}
			sound.start();
			while (sound.isActive()) {
				Thread.sleep(250);
			}
			Thread.sleep(10000);
			sound.close();
			stream.close();
			player.interrupt();
		} catch (Exception e) {
			player.interrupt();
			e.printStackTrace();
		}
	}

	/**
	 * Sets the client's volume level.
	 * [MENTION=141703]Param[/MENTION] level
	 */
	public static void setVolume(int level) {
		volume = level;
	}

	/**
	 * Returns the client's volume level.
	 */
	public static int getVolume() {
		return volume;
	}

	/**
	 * Returns the decibels for a given volume level.
	 * [MENTION=141703]Param[/MENTION] level
	 * [MENTION=181420]Return[/MENTION]
	 */
	public float getDecibels(int level) {
		switch (level) {
			case 1:
				return (float) -80.0;
			case 2:
				return (float) -70.0;
			case 3:
				return (float) -60.0;
			case 4:
				return (float) -50.0;
			case 5:
				return (float) -40.0;
			case 6:
				return (float) -30.0;
			case 7:
				return (float) -20.0;
			case 8:
				return (float) -10.0;
			case 9:
				return (float) -0.0;
			case 10:
				return (float) 6.0;
			default:
				return (float) 0.0;
		}
	}
}



It worked! Thank you very much!
 
I really have no idea what im doing with anything at all in terms of coding and the likes, just wanna get into making this build into my own kinda preferred type of server yet there isn't any tutorials on this anywhere, anyone got any links or anyone that can help me??
 

Users who are viewing this thread (total: 1, members: 0, guests: 1)