Thread: Fix for T X's Basic Quest System.

Results 1 to 8 of 8
  1. #1 Fix for T X's Basic Quest System. 
    k1ng 0f k1ngs
    Guest
    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
    Code:
    if(files[x].endsWith(".class") && files[x].indexOf('$') < 0)
    with this
    Code:
    if(files[x].endsWith(".java") && files[x].indexOf('}') < 0)
    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..
    Code:
    "C:\programmer\Java\jdk1.6.0_07\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/Quests/*.java
    Now you shoulden't have any import problems .

    2).
    Now in Tester.java replace
    Code:
    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... .
    Reply With Quote  
     

  2. #2  
    T X
    Guest
    Amg AMAZING CODA REP? if your willin to rob my reppies?
    Reply With Quote  
     

  3. #3  
    The Godz
    Guest
    Lolled irl @

    "NANANANANANA BATMAN"
    Reply With Quote  
     

  4. #4  
    T X
    Guest
    Quote Originally Posted by Godz View Post
    Lolled irl @

    "NANANANANANA BATMAN"
    i no i sould of done NANANANANANNA TXMAN
    Reply With Quote  
     

  5. #5  
    k1ng 0f k1ngs
    Guest
    Quote Originally Posted by T X View Post
    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..
    Reply With Quote  
     

  6. #6  
    T X
    Guest
    Quote Originally Posted by k1ng 0f k1ngs View Post
    What do you mean? Did I did anything that insulted you? (c).
    I just wanted to help other people.. + I gave you 100% credit...
    It was a joke kid lol
    Reply With Quote  
     

  7. #7  
    k1ng 0f k1ngs
    Guest
    Quote Originally Posted by T X View Post
    It was a joke kid lol
    Lol I thought I insulted you or something... .
    Reply With Quote  
     

  8. #8  
    Registered Member Tzar's Avatar
    Join Date
    Aug 2007
    Posts
    1,046
    Thanks given
    54
    Thanks received
    12
    Discord
    View profile
    Rep Power
    260
    Lol, never heard of insulting anyone by a tutorial



    [Only registered and activated users can see links. ]



    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •