Bad dupe bug and no fix for a long time.What's the reason that ExtraCells is disabled? I would like to use it, will enabling it cause problems?
https://github.com/ExtraCells/ExtraCells2/issues/222What's the reason that ExtraCells is disabled? I would like to use it, will enabling it cause problems?
Thank you, I think I can manage to avoid that bug.https://github.com/ExtraCells/ExtraCells2/issues/222
(given the link, you can decide for yourself if the problems are problems)
But there is also this duplication bug in it -> https://github.com/ExtraCells/ExtraCells2/issues/249Thank you, I think I can manage to avoid that bug.
GregTech_API.sThaumcraftCompat.addResearch(
string aResearch = tKey,
String aName = "Advanced Metallurgic Transmutation",
String aText = "Mastering the basic metals",
String[] aParentResearches = new String[] { "GT_TRANSBISMUTH", "GT_IRON_TO_STEEL", "GT_TRANSSOLDERINGALLOY", "GT_TRANSBATTERYALLOY", "GT_TRANSBRASS", "GT_TRANSELECTRUM",
"GT_TRANSCUPRONICKEL", "GT_TRANSINVAR" },
String aCategory = "ALCHEMY",
ItemStack aIcon = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L),
int aComplexity=4,
int aType=4,
int aX=16,
int aY=14,
List<TC_AspectStack> aAspects = Arrays.asList(
new TC_Aspects.TC_AspectStack[]
{
new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 50L),
new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 20L),
new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 20L),
new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 20L),
new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 20L),
new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 20L) }),
ItemStack[] aResearchTriggers=null,
Object[] aPages=new Object[] { "gt.research.page.1." + tKey });
This is (sortof) the code in github for Advanced Metallurgic TRansmutation. (Sortof because I prefaced all the parameters with the parameter-name from the interface)
Btw, what's "L" after a number in Java? Long?
I'm guessing "aComplexity" determines how difficult the research will be.
aX and aY probably define visually where the research appears on the tab.
No idea what aType does.
Little confused about aResearchTriggers being null.
My best guess was that the "aAspects" parameter defined what aspects you need and the amount of each aspect you need to unlock the research, so I bumped up my nebrisum and magneto to 20 each. Didn't work. Tried knowledge note after doing it, I still just get 7 fragments back.
Utterly at a loss here.
Like I said, I tinkered with the code for clarity. At this point its pseudo code, because I'm not looking for syntax bugs. That array instantiation is itself a parameter, hence the comma.The L is needed for java to forcefully convert numbers (integers) into their "long" version: http://stackoverflow.com/questions/769963/javas-l-number-long-specification
I'm not sure why you need long numbers for normal use, that might cause an error if the program doesn't accept long numbers.
Tho at the same time the program might expect a long number and that might be missing and that could cause an error.. probably.
To understand more clearly i would need the thaumcraft api and manual or something.
This kinda bothers me:
List<TC_AspectStack> aAspects = Arrays.asList
(new TC_Aspects.TC_AspectStack[]
{ a1, a2, a3, a4, a5, a6 }
), ////<---- why the last decimal here?
Is ItemStack[] and Object[] part of the <TC AspectStack> List?
Could be wrong but what i know, do you not need semicolons for java? i googled and it seems it is required.
Hmm i see, there isn't a single semicolon, is this because of forum post? or is it minecraft java? or TC java? or is decimal just as good?? argghh
GregTech_API.sThaumcraftCompat.addResearch(tKey, "Advanced Metallurgic Transmutation", "Mastering the basic metals", new String[] { "GT_TRANSBISMUTH", "GT_IRON_TO_STEEL", "GT_TRANSSOLDERINGALLOY", "GT_TRANSBATTERYALLOY", "GT_TRANSBRASS", "GT_TRANSELECTRUM", "GT_TRANSCUPRONICKEL", "GT_TRANSINVAR" }, "ALCHEMY", GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Iron, 1L), 4, 4, 16, 14, Arrays.asList(new TC_Aspects.TC_AspectStack[] { new TC_Aspects.TC_AspectStack(TC_Aspects.METALLUM, 50L), new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 20L), new TC_Aspects.TC_AspectStack(TC_Aspects.COGNITO, 20L), new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTIO, 20L), new TC_Aspects.TC_AspectStack(TC_Aspects.NEBRISUM, 20L), new TC_Aspects.TC_AspectStack(TC_Aspects.MAGNETO, 20L) }), null, new Object[] { "gt.research.page.1." + tKey });
I dunno myself, this is just half the code needed or even less if we count in minecraft as well to go down the the source of the problem.Like I said, I tinkered with the code for clarity. At this point its pseudo code, because I'm not looking for syntax bugs. That array instantiation is itself a parameter, hence the comma.
This is the actual (decompiled) code:
I'm not suggesting there's a problem.I dunno myself, this is just half the code needed or even less if we count in minecraft as well to go down the the source of the problem.
Everything seperated by decimals in this code is another argument to the original function (does it even return anything?, maybe this is a "procedure"?) it all depends on how the recieving end of the function looks like.
It could be expecting short ints or floating numbers and then this wouldn't work i think.
I notice that not all numbers are long in this code, might have been forgotten to make aComplexity, aType, aX, aY into long variables.
Those names doesn't even appear in the decompile (might be intentional) but they aren't long numbers.
They appear as: 4,4,16,14 instaid of maybe: 4L, 4L, 16L, 14L.
Or maybe their declaration is wrong and instaid of "int" it should be "long".. meh so many things that can be wrong.
Sry i'm a beginner.
But has anybody been able to unlock aluminium duplication? it might simply be a bug.I'm not suggesting there's a problem.
That line of code is one big function call. There's nothing weird about it, it looks fine syntactically.
Some numbers are ints instead of longs because the method expects ints instead of longs.
All I'm curious about is if anyone sees any hints as to what kinds of things I can try. For instance, I saw 20 Nebrisum, so I tried getting 20 nebrisum research points.
Remarkable. However, most of these (all but the storage container thing) are easily avoided. I don't recall having done anything like this in any game I ever played. How do people find these things?But there is also this duplication bug in it -> https://github.com/ExtraCells/ExtraCells2/issues/249
and that dupe bug https://github.com/ExtraCells/ExtraCells2/issues/236
and apparently this dupe bug https://github.com/ExtraCells/ExtraCells2/issues/110
and this https://github.com/ExtraCells/ExtraCells2/issues/253
its not often that you find a mod with 5 different duplication bugs...
Awesome blood thx.I did go trough the TC research code a bit and could only find out that it indeed not work as intended...
1. Research: GT_TRANSBISMUTH,GT_IRON_TO_STEEL, GT_TRANSSOLDERINGALLOY, GT_TRANSBATTERYALLOY, GT_TRANSBRASS, GT_TRANSELECTRUM, GT_TRANSCUPRONICKEL ,GT_TRANSINVAR
2. Use Research note to unlock.
As easy fix, in the next GT version it will not be a hidden research anymore and can directly researched once all prior researches are done.
I could try to make it unlock by scanning aluminium, but that would take another hour of testing... That's not worth it.