Infectedd Posted August 12, 2012 Posted August 12, 2012 Is there a way I can change EMC values of items and blocks without fiddling with the code itself? If not, where are they defined in the code? Quote
jakj Posted August 13, 2012 Posted August 13, 2012 They are stored in a simple collection that you can alter by reflection, but nothing simple like a config. I forget the file name, but just decompile it and look for a giant list. Quote
saintnicster Posted August 14, 2012 Posted August 14, 2012 https://github.com/cpw/ironchest/blob/master/IronChests2/common/cpw/mods/ironchest/IronChest.java#L85 Here's how IronChests sets the EMC values for its chests Quote
Infectedd Posted August 18, 2012 Author Posted August 18, 2012 https://github.com/cpw/ironchest/blob/master/IronChests2/common/cpw/mods/ironchest/IronChest.java#L85 Here's how IronChests sets the EMC values for its chests I see, yet I can't understand how to define what for each values is. Like, 8 * 8 + 256 * 8 + 2048 * 8 is the value, but how does it know it's for a gold chest? EDIT: Found the file for the default values : EEmaps.class . saintnicster, wouldn't have managed to do it without the code you sent Thank you! Quote
Dr. Dutch Posted August 31, 2012 Posted August 31, 2012 HELP! I keep trying to change the Uranium EMC value back to its previous value, but everytime I access the EEMaps.class file using Notepad, this strange computor code comes up on the screen. Any tips? Quote
jakj Posted August 31, 2012 Posted August 31, 2012 HELP! I keep trying to change the Uranium EMC value back to its previous value, but everytime I access the EEMaps.class file using Notepad, this strange computor code comes up on the screen. Any tips? Yeah, stop trying. If you've got such a lack of understanding that you're trying to do something -that- dumb, no amount of instruction is going to help you do it the right way. Quote
silentatheos Posted August 31, 2012 Posted August 31, 2012 I see, yet I can't understand how to define what for each values is. Like, 8 * 8 + 256 * 8 + 2048 * 8 is the value, but how does it know it's for a gold chest? EDIT: Found the file for the default values : EEmaps.class . saintnicster, wouldn't have managed to do it without the code you sent Thank you! That's all well and good, but what do you need to do to change it? EDIT: I decompiled the EEmaps.class, and I've found the table thing. Now I just need to find all the other class files that tell me which id's indicate which items. Thanks anyway. Quote
gotyaoi Posted August 31, 2012 Posted August 31, 2012 Hmm... I think I see the problem here. There is a distinct lack of progress bars. How on earth are we supposed to get anything done if there's not a progress bar telling us how close we are to hacking the gibson? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.