Thread: [PI] Need Help Eclipse Error (Rep+Thanks)

Results 1 to 10 of 10
  1. #1 [PI] Need Help Eclipse Error (Rep+Thanks) 
    Registered Member Lil Peep's Avatar
    Join Date
    Oct 2012
    Posts
    882
    Thanks given
    234
    Thanks received
    58
    Rep Power
    0
    Quote Originally Posted by -3clipse- View Post
    On the 2 lines that you're getting errors on, change "item" to "item.getId()" or "item.id", whichever variable returns the item's ID. That will work.
    Hey I'm having problems having to add this to initialize into when the server loads:
    Code:
    These methods will need to be invoked, upon server initiation:
    Code:
    XStreamUtil.initializeXStream();
    NPCDrop.loadDrops();
    My Server.java:
    [Only registered and activated users can see links. ]

    cause my server is different from PI somewhat ill give you an example:





    Whenever I try to add the two lines above anywhere, even without errors they still dont drop from the npc i listed in the xml file with the drops. (BTW i made sure that the name of the file was the same as the input file path and everything) If you could help with this problem id be grateful thanks. (Rep+thanks again in your future )
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2014
    Posts
    435
    Thanks given
    18
    Thanks received
    35
    Rep Power
    11
    Easy fix, go to server.java
    add this
    Code:
    public static ItemHandler itemHandler = new ItemHandler();
    above
    Code:
    public static PlayerHandler playerHandler = new PlayerHandler();


    OSRS Pure
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member Lil Peep's Avatar
    Join Date
    Oct 2012
    Posts
    882
    Thanks given
    234
    Thanks received
    58
    Rep Power
    0
    Quote Originally Posted by degawski View Post
    Easy fix, go to server.java
    add this
    Code:
    public static ItemHandler itemHandler = new ItemHandler();
    above
    Code:
    public static PlayerHandler playerHandler = new PlayerHandler();
    I already have that it's not the problem. I'm pretty sure it's using the List and not considering it an int, rather than it being considered an "Item"

    Reply With Quote  
     

  4. #4  
    Banned Market Banned Market Banned

    -3clipse-'s Avatar
    Join Date
    May 2015
    Posts
    841
    Thanks given
    101
    Thanks received
    311
    Rep Power
    389
    On the 2 lines that you're getting errors on, change "item" to "item.getId()" or "item.id", whichever variable returns the item's ID. That will work.
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Registered Member
    Join Date
    Mar 2013
    Posts
    318
    Thanks given
    86
    Thanks received
    56
    Rep Power
    0
    Wow lol
    [Only registered and activated users can see links. ]
    Need a reliable programmer for your website?
    Add me on skype and let's talk!
    (Cheap and active, 24/7 support)
    Reply With Quote  
     

  7. #6  
    Registered Member Lil Peep's Avatar
    Join Date
    Oct 2012
    Posts
    882
    Thanks given
    234
    Thanks received
    58
    Rep Power
    0
    Quote Originally Posted by -3clipse- View Post
    On the 2 lines that you're getting errors on, change "item" to "item.getId()" or "item.id", whichever variable returns the item's ID. That will work.
    Hey I'm having problems having to add this to initialize into when the server loads:
    Code:
    These methods will need to be invoked, upon server initiation:
    Code:
    XStreamUtil.initializeXStream();
    NPCDrop.loadDrops();
    My Server.java:
    [Only registered and activated users can see links. ]

    cause my server is different from PI somewhat ill give you an example:





    Whenever I try to add the two lines above anywhere, even without errors they still dont drop from the npc i listed in the xml file with the drops. (BTW i made sure that the name of the file was the same as the input file path and everything) If you could help with this problem id be grateful thanks. (Rep+thanks again in your future )
    Reply With Quote  
     

  8. #7  
    Registered Member Lil Peep's Avatar
    Join Date
    Oct 2012
    Posts
    882
    Thanks given
    234
    Thanks received
    58
    Rep Power
    0
    Bump ^
    Reply With Quote  
     

  9. #8  
    Banned

    Join Date
    Jul 2015
    Posts
    610
    Thanks given
    521
    Thanks received
    660
    Rep Power
    0
    Pm me your Skype
    Reply With Quote  
     

  10. #9  
    Registered Member Lil Peep's Avatar
    Join Date
    Oct 2012
    Posts
    882
    Thanks given
    234
    Thanks received
    58
    Rep Power
    0
    Quote Originally Posted by Swiffy View Post
    Pm me your Skype
    Sent pm, also bump in case
    Reply With Quote  
     

  11. #10  
    Registered Member Lil Peep's Avatar
    Join Date
    Oct 2012
    Posts
    882
    Thanks given
    234
    Thanks received
    58
    Rep Power
    0
    bump
    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

Similar Threads

  1. help eclipse error rep++ and thanking!!!
    By nusenia in forum Help
    Replies: 3
    Last Post: 10-16-2014, 10:48 PM
  2. [PI] Need help fixing dupe (REP)
    By 'Whip in forum Help
    Replies: 3
    Last Post: 02-25-2012, 09:20 AM
  3. Replies: 1
    Last Post: 03-24-2011, 06:25 AM
  4. [PI] Need help on things [Rep++]
    By Debugger in forum Help
    Replies: 10
    Last Post: 11-03-2010, 07:22 AM
  5. [PI] need help making command[REP ++]
    By jorjus16 in forum Help
    Replies: 10
    Last Post: 10-14-2010, 05:08 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •