|
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:
And you can delete the BufferedReader part. This also means you'll have some unused imports that you can get rid of.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(); }
nice release man, you worked hard on it
You
Thanks!
Thanks for this I making my own GUI atm and going to look at some of your codes.
Rep++
love yo ass.
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.
Thank you. I'll try this. ^.^
Thanks Should come in handy
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |