Jump to content

Recommended Posts

Posted

I'm stumped. I currently began a re-write of my mod to remove as much version dependency as possible. This involved switching from Notch names to Srg names and switching my @IFMLLoadingPlugin.SortingIndex() from 100 to 1001 to run all changes post runtime deobfuscation. This worked perfectly well, but once I went on to testing out an idea for finding a LocalVariableNode's index based on it's name/desc I ran into something I don't quite understand.

 

public void setIsSpawningFromSpawnerTrue(MethodNode method)
{
	BnBTweaks.Log.info("Printing " + method.localVariables.size() + " LocalVariableNodes in: " + method.name);
	for (LocalVariableNode lvNode : method.localVariables)
	{
		BnBTweaks.Log.info(lvNode.name + " " + lvNode.desc + " " + lvNode.index + " " + lvNode.signature);
	}

 

Above is a code snippet I wrote to get some information about local variables within the current method that I could use to write a method for finding the local variable indexs. Back when I was running pre runtime obfuscation, this would've printed out everything quite nicely for me. Now that I'm running post though, it seems that method.localVariables.size() is 0, and therefore I can get no information.

[11:27:52] [server thread/INFO] [bnBTweaks/]: Printing 0 LocalVariableNodes in: func_98278_g

 

Why might this be?

Posted

Haha, of course! As usual, the thing I got stuck on was obvious from outside the cloud of frustration :P. Wish I had thought to check the thread again before deleting literally everything and re-downloading to be sure it wasn't a corruption issue :P.

 

Now to just think of some other way to verify variables are correctly targeted (without using a second transformer :P). Can't think of a different approach yet though....

 

I feel properly dumb now :D. Many thank yous diesieben07!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.