You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, i need to modify only one integer or string in .class files.
Some mods with "All Rights Reserved" license forbid to distribute their .class files, so i can't use Bansoukou.
Other devs using mixins and coremods for this, but i have lack of Java knowledge.
Suggestion
Please add feature to change binary file content without providing whole binary file.
For example, it could be .json with commands that will replace bytes.
Manual example
I have ImmersiveEngineering Silo that i want to change capacity stored in int
publicclassTileEntitySiloextendsTileEntityMultiblockPart<TileEntitySilo>
implementsIEBlockInterfaces.IComparatorOverride {
publicItemStackidentStack = ItemStack.field_190927_a;
publicintstorageAmount = 0;
staticintmaxStorage = 41472; // Value i want to changebooleanlockItem = false;
privateint[] oldComps = newint[6];
When i used Bansoukou for the first time, i opened this .class file with Hex editor, found 00 00 A2 and replace it to 00 FF FF.
So now my code should looks like:
staticintmaxStorage = 16776960;
I saved this file into bansoukou/ folder and its work.
Feature suggestion example
What i want is to do same actions in steps above, but on MC launch.
For example, it could be .json file with arrays of instructions.
In addition to file path it could have special characters that instruct to read file as instructions instead of inject in .jar as is.
In my example, file called TileEntitySilo.class and instructions file called TileEntitySilo.class$$.json
Please add feature to splice bytecode.
Problem
Sometimes, i need to modify only one integer or string in
.class
files.Some mods with "All Rights Reserved" license forbid to distribute their
.class
files, so i can't use Bansoukou.Other devs using mixins and coremods for this, but i have lack of Java knowledge.
Suggestion
Please add feature to change binary file content without providing whole binary file.
For example, it could be
.json
with commands that will replace bytes.Manual example
I have ImmersiveEngineering Silo that i want to change capacity stored in int
When i used Bansoukou for the first time, i opened this
.class
file with Hex editor, found00 00 A2
and replace it to00 FF FF
.So now my code should looks like:
I saved this file into
bansoukou/
folder and its work.Feature suggestion example
What i want is to do same actions in steps above, but on MC launch.
For example, it could be
.json
file with arrays of instructions.In addition to file path it could have special characters that instruct to read file as instructions instead of inject in
.jar
as is.In my example, file called
TileEntitySilo.class
and instructions file calledTileEntitySilo.class$$.json
bansoukou/ImmersiveEngineering-0.12-98/blusunrize/immersiveengineering/common/blocks/metal/TileEntitySilo.class$$.json
Instruction file could have arrays of JS-like .splice() parameters:
When Bansoukou run, it would open
.class
file in binary format, and replace bytes 6574 and 6575 toFF FF
and then save-patched
.jar as usual.The text was updated successfully, but these errors were encountered: