Thread: Hyperion itemDefinitions Editor

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Hyperion itemDefinitions Editor 
    Registered Member
    Join Date
    May 2007
    Age
    31
    Posts
    133
    Thanks given
    0
    Thanks received
    2
    Rep Power
    45
    I've made this tool to make changes to the itemDefinitions.bin file that Hyperion uses to load up all of the item data. It allows you to change any of the values for the items, and even add new ones in there. (If you've ever tried to spawn something about 7955 and found that it doesn't work, this will enable you to do that.)

    Finally, You can also use it to write the bonuses from a .cfg that I've included into the .bin as well. The size added is only 23kb. If you're going to write the bonuses in, I've only tested it with the basic files in there. I don't know how it'd work if you don't have the same number of definitions in each file, or anything. So do that right away if you want to.

    The code in it is also probably pretty cruddy, but it works. I suggest making a backup of your file before editing it, incase anything goes wrong, because it can ruin it. It's in the attached .zip file. It's an Eclipse project, and has a batch file to run it with as well. Enjoy.



    ------------

    To make your source load the .bin with the bonuses included, change the load() method to include this part at the bottom:
    Code:
    				boolean bonuses;
    				int[] bonus;
    					bonuses = buffer.get() == 1 ? true : false;
    					bonus = new int[12];
    					if(bonuses) {
    						for(int i2 = 0; i2 < 12; i2++) {
    							int b = buffer.getShort() & 0xFFFF;
    							if(b < (65435)) {
    								bonus[i2] = b;
    							} else {
    								bonus[i2] = -(65536 - b);
    							}
    						}
    					} else {
    						for(int i2 = 0; i2 < 12; i2++) {
    							bonus[i2] = 0;
    						}
    					}
    				definitions[i] = new ItemDefinition(i, name, examine, noted, noteable, stackable, parentId, notedId, members, shop, highAlc, lowAlc);
    				forId(i).bonus = bonus;
    			}
    			logger.info("Loaded " + definitions.length + " definitions.");
    		} finally {
    			raf.close();
    		}
    And you can delete the BufferedReader part. This also means you'll have some unused imports that you can get rid of.
    Hyperion itemDefinitions Editor Attached Files
     

  2. Thankful users:


  3. #2  
    Registered Member danman88's Avatar
    Join Date
    May 2008
    Posts
    60
    Thanks given
    0
    Thanks received
    0
    Rep Power
    4
    nice release man, you worked hard on it
    War never solved anything, except slavery, oppression, communism, and nazism...now for terrorism.
    You are never forgotten.
     

  4. #3  
    Registered Member
    thing1's Avatar
    Join Date
    Aug 2008
    Posts
    2,111
    Thanks given
    131
    Thanks received
    1,099
    Rep Power
    2402
    You
     

  5. #4  
    Registered Member D4NyZ's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    664
    Thanks given
    50
    Thanks received
    10
    Rep Power
    30
    Thanks!
    Spoiler for Retard below:

    Quote Originally Posted by dani_gonzales View Post
    dany i know u hate me because i am better then u,,,so stfu noob and stop spaming my posts or i conntact a moderator!

     

  6. #5  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    Thanks for this I making my own GUI atm and going to look at some of your codes.

    Rep++
     

  7. #6  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    love yo ass.

     

  8. #7  
    Registered Member
    Join Date
    May 2007
    Age
    31
    Posts
    133
    Thanks given
    0
    Thanks received
    2
    Rep Power
    45
    No problem everyone, Thanks for the replies.
    Worth making it, for everyone that uses the hyperion source.
    And it's another reason to use it, if you're not already.
     

  9. #8  
    Registered Member 'iHybrid's Avatar
    Join Date
    Mar 2010
    Posts
    110
    Thanks given
    47
    Thanks received
    18
    Rep Power
    3
    Thank you. I'll try this. ^.^
    ...Wondering...
    ^ so bored :3 .. friend me to waste time? xD ^
    (¯`v´¯)
    .`·.¸.·´ )
    ¸.·´¸.·´¨) ¸.·*¨)
    (¸.·´ (¸.·´ .·´ ¸. ♥♥♥ `iihybridd~ .................. mah L.O.V.E ooo my L.O.V.E.
     

  10. #9  
    Registered Wizard

    Jesse's Avatar
    Join Date
    Sep 2009
    Age
    29
    Posts
    5,119
    Thanks given
    1,519
    Thanks received
    1,148
    Rep Power
    5000
    nice man repped



     

  11. #10  
    Derp.
    BenjaR's Avatar
    Join Date
    May 2008
    Age
    29
    Posts
    2,083
    Thanks given
    167
    Thanks received
    125
    Rep Power
    915
    Thanks Should come in handy
     

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

Tags for this Thread

View Tag Cloud

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