![]() ![]() Simply ask the developer to make an update for you. So that is how you would do it, but it's not really worth your time. If it's a float going into an int, it'll just be automatically converted to an int. Every spot that getter is called, its expecting an int return value. You not only would need to change the data type, but every spot that data type is used and its get method is called. (I say easiest, but if you've never seen assembly before, it'll all look like Greek to you.)īack to the issue: You're talking about changing a data type. You would find the instruction, change the value, and you would be golden. Java is compiled into assembly code that is specifically used by the JVM. The second option, and this would be the easiest if not for needing to change a field type, is editing the machine code. There were plenty of errors resulting from the recompilation, because it's not going to be a completely accurate decompilation. I've tried doing this once before, and it really doesn't work well. There are a couple ways to do this, and I don't see one of them listed, so I'll mention that.įirst, you can decompile/recompile. If it were just changing a variable, that might be simple, but now you're also talking about changing a field's type. You technically can do this, but it's going to be a pain. This indicated to me that if I edit the class file it corrupts it anyways. However there are 2 problems with this ġ, I also need to edit a method that getInt() to getFloat() which I cannot do.Ģ, When I save the newly edited class file, then try to reopen it using this JOE editor IT IS GIVING ME A FILE ERROR. It let's me edit the field with the int to float. Something to add: I downloaded this class file editor This seems very long-winded for a simple line of code editing.Įdit: I haven't figured it out yet. People say that you might need to set up a modding environment, decompile the code, then recompile it after the changes. class obviously corrupts the file.įor the past hour I've been trying to Google the answer. Writing my own text file and changing the extension to. class file into intelliJ, but it is readable only. ![]() class file, so that I may be able to use 0.5 or something less than 1 to decrease the chance of these gardens spawning. This rarity is an int, and I want to change it to a float inside this Mod's jar's. There is a config file for this mod, however the lowest possible value for rarity = 1 is still too high. The reason is that in the game these "gardens" inside the mod spawn too often. I'm trying to edit a single line in Pam's Harvestcraft mod. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |