Thread: [Pi] Stackables [Pi]

Results 1 to 9 of 9
  1. #1 [Pi] Stackables [Pi] 
    Registered Member
    Join Date
    Apr 2011
    Posts
    159
    Thanks given
    5
    Thanks received
    15
    Rep Power
    23
    So I fudgeed up something lol. I edited something awhile ago. I have no idea what it was. But now EVERY SINGLE item is stackable. What file did I mess up to make EVERYTHING stackable? Somebody help. This problem is HUGE.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Apr 2012
    Posts
    3,225
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    Item class (.java); search for
    Code:
    itemStackable[
    ?
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Apr 2011
    Posts
    159
    Thanks given
    5
    Thanks received
    15
    Rep Power
    23
    This is all I got

    Code:
    				if (c == 0) {
    					itemStackable[counter] = false;
    				} else {
    					itemStackable[counter] = true;
    				}
    Reply With Quote  
     

  5. #4  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by b00mz1029 View Post
    This is all I got

    Code:
    				if (c == 0) {
    					itemStackable[counter] = false;
    				} else {
    					itemStackable[counter] = true;
    				}
    Show us what c is.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member
    Join Date
    Apr 2011
    Posts
    159
    Thanks given
    5
    Thanks received
    15
    Rep Power
    23
    Code:
    while ((c = dataIn.read()) != -1) {
    Reply With Quote  
     

  8. #6  
    Registered Member
    Join Date
    Apr 2011
    Posts
    159
    Thanks given
    5
    Thanks received
    15
    Rep Power
    23
    Anyone?
    Reply With Quote  
     

  9. #7  
    Banned

    Join Date
    Aug 2013
    Age
    27
    Posts
    1,128
    Thanks given
    373
    Thanks received
    754
    Rep Power
    0
    Code:
    		try {
    			FileInputStream dataIn = new FileInputStream(new File("./Data/data/stackable.dat"));
    			while ((c = dataIn.read()) != -1) {
    				if (c == 0) {
    					itemStackable[counter] = false;
    				} else {
    					itemStackable[counter] = true;
    				}
    				counter++;
    			}
    			dataIn.close();
     			int[] stackableItems = {itemidhere,itemidhere,itemidhere,itemidhere};
    			for (int i = 0; i < stackableItems.length; i++) {
    				itemStackable[stackableItems[i]] = true;
    			}
    		} catch (IOException e) {
    			System.out.println("Critical error while loading stackabledata! Trace:");
    			e.printStackTrace();
    		}
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Registered Member
    Join Date
    Apr 2011
    Posts
    159
    Thanks given
    5
    Thanks received
    15
    Rep Power
    23
    Will that make it so i can make items stackable. But also make it so that not every item is stackable?
    Reply With Quote  
     

  12. #9  
    Registered Member
    Join Date
    Apr 2011
    Posts
    159
    Thanks given
    5
    Thanks received
    15
    Rep Power
    23
    Anyone?
    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. [pi] Stackables Dupe fix
    By Raverz in forum Snippets
    Replies: 12
    Last Post: 08-18-2014, 11:53 PM
  2. Coins Not Stackable [PI]
    By Nuno555 in forum Help
    Replies: 14
    Last Post: 12-30-2012, 07:53 PM
  3. PI Stackable Equipment Dupe Fix
    By Harlan in forum Snippets
    Replies: 20
    Last Post: 01-08-2012, 12:29 AM
  4. [PI] Stackable
    By Files' in forum Help
    Replies: 13
    Last Post: 04-23-2011, 11:27 PM
  5. [PI]FantasyDream[PI]
    By Analed in forum Advertise
    Replies: 30
    Last Post: 06-05-2010, 09:03 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
  •