Difficulty: 0/10.
Purpose: Fixing the errors you got during T X's tutorial..
Programs Edited: Questloader, Quests, Tester.
Credits: 100% T X. (I'm not a greedy noob, so I won't take credits for fixing.)
Tutorials you need to do first: [Only registered and activated users can see links. ]
1).
Okay first if you had any import problems they would do to that T X told you to create a folder called Quests in ./bin/data. And that gave me a lot package does not exsist errors..
So to change that open your Questloader.java and replace this line
That will make the Questloader search for a directory with .java files instead of .class files, and with the statement } instead of the $ statement.
Which means that you'll no longer need your Quest folder in ./bin/data, so just delete that -and add this into your compiler..
public Tester(Player owner, Integer uid) {
super(owner, UID);
}
with
Code:
public Tester(Player owner, Integer uid) {
super(owner, uid);
}
for else you'll get a cannot find variable: UID error..
Now open Quests.java and replace
Code:
public abstract class Quests {
with
Code:
public abstract class Quests
{
Quests(Player owner, int uid) {
}
This will handle the Default constructor in your Tester.java...
For else your compiler will give you an error where it tries to tell you that you need to handle the Default constructor in Quests.java..
3). Now go into Tester.java again and replace this line
Code:
setFinalStage("7");
with this one
Code:
setFinalStage(7);
If you don't do this you'll get a compiling error that tells you that public final void setFinalStage(int stage) { in Quests.java cannot be applied to a String as setFinalStage("7"); is..
If still get any errors please post them and I'll try to help you fixing them... .
Amg AMAZING CODA REP? if your willin to rob my reppies?
What do you mean? Did I did anything that insulted you? (c).
I just wanted to help other people.. + I gave you 100% credit...
If you want me to rep++ you for making the basic quest system post I'm willing to do that..