Thread: [help] Item bonus packer run

Results 1 to 4 of 4
  1. #1 [help] Item bonus packer run 
    Registered Member
    Join Date
    Feb 2014
    Posts
    129
    Thanks given
    122
    Thanks received
    35
    Rep Power
    46
    This is my run.bat
    Code:
    @echo off
    title Bonuses Packer
    "C:/Program Files (x86)/Java/jre1.8.0_25/bin/java.exe" -Xmx815m -cp bin;lib/*; com.rs.tools.ItemBonusesPacker true true false
    pause
    but when i run it I get this

    here is my packer:
    Code:
    package com.rs.tools;
    
    import java.io.BufferedReader;
    import java.io.DataOutputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.IOException;
    
    import com.rs.cache.Cache;
    import com.rs.utils.Utils;
    
    public class ItemBonusesPacker {
    
        public static final void main(String[] args) throws IOException {
    	Cache.init();
    	DataOutputStream out = new DataOutputStream(new FileOutputStream("data/items/bonuses.ib"));
    	for (int itemId = 0; itemId < Utils.getItemDefinitionsSize(); itemId++) {
    	    File file = new File("bonuses/" + itemId + ".txt");
    	    if (file.exists()) {
    		BufferedReader reader = new BufferedReader(new FileReader(file));
    		out.writeShort(itemId);
    		reader.readLine();
    		// att bonuses
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		reader.readLine();
    		// def bonuses
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		reader.readLine();
    		// Damage absorption
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		reader.readLine();
    		// Other bonuses
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    		out.writeShort(Integer.valueOf(reader.readLine()));
    
    		reader.close();
    		if (reader.readLine() != null)
    		    throw new RuntimeException("Should be null line" + itemId);
    	    }
    	}
    	out.flush();
    	out.close();
        }
    
    }
    I underlined line 25 red. Can anyone help please im not sure i need to add stats to a item i have added
    Thanks!! - I also get the same error running it on eclipse is it to do with my jre
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2014
    Posts
    129
    Thanks given
    122
    Thanks received
    35
    Rep Power
    46
    Still cant fix it , dos anyone know ?
    Reply With Quote  
     

  3. #3  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    You have nulled files in ("bonuses/" + itemId + ".txt") that don't have any data. Use windows explorer window (search by size) and delete/redo the empty (0kb) files.
    Project thread
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Feb 2014
    Posts
    129
    Thanks given
    122
    Thanks received
    35
    Rep Power
    46
    Quote Originally Posted by clem585 View Post
    You have nulled file in ("bonuses/" + itemId + ".txt") that doesn't have any data. Use windows explorer window (search by size) and delete/redo the empty (0kb) files.
    Oo okay Ty! I will check it out
    Edit- thank you Got new bonus folder and packer, worked perfect!
    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. Replies: 9
    Last Post: 05-30-2014, 01:01 AM
  2. item bonus packer
    By terrel8125 in forum Help
    Replies: 3
    Last Post: 12-17-2013, 05:56 AM
  3. Item Bonus Packer - PLEASE HELP
    By Zach in forum Help
    Replies: 6
    Last Post: 10-13-2013, 01:07 AM
  4. Item bonuses packer not packing?
    By Rampage48 in forum Help
    Replies: 3
    Last Post: 09-01-2013, 12:50 AM
  5. Dumper GUI (Item bonus, packer, examine)
    By Sonicforce41 in forum Downloads
    Replies: 47
    Last Post: 10-22-2011, 03:44 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
  •