Thread: [PI]Firemaking compiling error!

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1 [PI]Firemaking compiling error! 
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    45
    So I wanted to use this: http://www.rune-server.org/runescape...eal-100-a.html
    I did exactly as it said, and I changed the packaging to match mine.
    But then I get these errors:

    Code:
    src\server\model\players\packets\ItemClick2OnGroundItem.java:7: error: cannot fi
    nd symbol
    public class ItemClick2OnGroundItem implements PacketType {
                                                   ^
      symbol: class PacketType
    src\server\model\players\Client.java:62: error: constructor Firemaking in class
    Firemaking cannot be applied to given types;
            private Firemaking firemaking = new Firemaking(this);
                                            ^
      required: no arguments
      found: Client
      reason: actual and formal argument lists differ in length
    src\server\model\players\skills\firemaking\Firemaking.java:56: error: non-static
     variable heightLevel cannot be referenced from a static context
                                    if (Region.getClipping((x - 1), y, Player.height
    Level, -1, 0)) {
                                                                             ^
    src\server\model\players\PacketHandler.java:128: error: incompatible types
                    packetId[253] = new ItemClick2OnGroundItem();
                                    ^
      required: PacketType
      found:    ItemClick2OnGroundItem
    src\server\model\players\packets\ItemClick2OnGroundItem.java:9: error: method do
    es not override or implement a method from a supertype
            @Override
            ^
    src\server\world\ObjectManager.java:26: error: cannot find symbol
                                    for (final Player player : PlayerHandler.players
    ) {
                                               ^
      symbol:   class Player
      location: class ObjectManager
    src\server\world\ObjectManager.java:29: error: package Server does not exist
                                                    Server.itemHandler.createGroundI
    tem(c, 592, o.objectX, o.objectY, 1, c.playerId);
                                                          ^
    7 errors
    Press any key to continue . . .
    Can someone please tell me why I get these errors and maybe how to fix them?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    45
    Hey thanks man, your advice worked, now I just have this error.
    Code:
    src\server\model\players\skills\firemaking\Firemaking.java:56: error: non-static
     variable heightLevel cannot be referenced from a static context
                                    if (Region.getClipping((x - 1), y, Player.height
    Level, -1, 0)) {
                                                                             ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    45
    Quote Originally Posted by Logic View Post
    Well u can fix it by making variable heightLevel in Player static but i dont think thats correct.. It will work but i remember it not being a good solution, u gotta ask someone who does server sided stuffs
    Yeah if I made that static wouldn't everyone have the same height level or..?
    I don't know I guess I will just wait for another person but thank you for your help.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    Try calling it from a static context, make a getter and setter for player maybe? Also, i'm not sure what your fire-making class looks like, but you can try defining the class as static.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    45
    Quote Originally Posted by Gershon View Post
    Try calling it from a static context, make a getter and setter for player maybe? Also, i'm not sure what your fire-making class looks like, but you can try defining the class as static.
    from a static context, I believe it is already static.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    Quote Originally Posted by havixil View Post
    from a static context, I believe it is already static.
    If it already was static you wouldn't receive this:
    Code:
    error: non-static
    non-static variable heightLevel cannot be referenced from a static context
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    45
    Quote Originally Posted by Gershon View Post
    If it already was static you wouldn't receive this:
    Code:
    error: non-static
    non-static variable heightLevel cannot be referenced from a static context
    But I recieved this:
    Code:
    error: non-static
     variable heightLevel cannot be referenced from a static context
    So I thought it was.
    Reply With Quote  
     

  8. #8  
    Donator
    Insanity_'s Avatar
    Join Date
    Apr 2013
    Age
    31
    Posts
    63
    Thanks given
    6
    Thanks received
    3
    Rep Power
    11
    pm me your skype so i can see what your player class and firemaking class look like. then i can help you more
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    45
    Well my firemaking class looks near identical to: http://www.rune-server.org/runescape...eal-100-a.html except for a few things here and there.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    45
    Bump, still need to know how to get heightLevel without getting the error.
    Reply With Quote  
     

Page 1 of 2 12 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. [PI] Few Compiling Errors
    By #Trilla in forum Help
    Replies: 2
    Last Post: 04-23-2011, 05:23 PM
  2. Replies: 8
    Last Post: 04-22-2011, 10:30 AM
  3. [PI] Commands Compiler Error [PI]
    By Sillhouette in forum Help
    Replies: 4
    Last Post: 04-22-2011, 04:01 AM
  4. [PI] 1 Compiling Error - Rip++ [PI]
    By Kickyamom in forum Help
    Replies: 10
    Last Post: 11-28-2010, 02:08 AM
  5. [PI] Simple Compiler Error?
    By Emchie in forum Help
    Replies: 9
    Last Post: 09-07-2010, 12:45 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •