Jump to content

Recommended Posts

Posted

Hi! I have done a mod to replace skin and cape with the hd support. It work perfectly in eclipse but I have always the same error when I run minecraft Forge normally, there is a crash:

[00:16:33 INFO]: Client> 2014-07-06 00:16:33 [iNFOS] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* INSIDE OBFUSCATED AbstractClientPlayer TRANSFORMER ABOUT TO PATCH: beu

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: <init> Desc:(Labw;Ljava/lang/String;)V

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: l Desc:()V

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: p Desc:()Lbic;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: q Desc:()Lbic;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: r Desc:()Lbjo;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: s Desc:()Lbjo;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: a Desc:(Lbjo;Ljava/lang/String;)Lbic;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: b Desc:(Lbjo;Ljava/lang/String;)Lbic;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: a Desc:(Lbjo;Ljava/lang/String;Lbjo;Lbfi;)Lbic;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: d Desc:(Ljava/lang/String;)Ljava/lang/String;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Inside target method1!

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] Patching Method1 Complete!

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Method Name: e Desc:(Ljava/lang/String;)Ljava/lang/String;

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] ********* Inside target2 method!

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [iNFOS] [sTDOUT] Patching Method2 Complete!

[00:16:36 INFO]: Client> 2014-07-06 00:16:36 [GRAVE] [ForgeModLoader] Unable to launch

[00:16:36 INFO]: Client> java.lang.reflect.InvocationTargetException

[00:16:36 INFO]: Client> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[00:16:36 INFO]: Client> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

[00:16:36 INFO]: Client> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

[00:16:36 INFO]: Client> at java.lang.reflect.Method.invoke(Unknown Source)

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

[00:16:36 INFO]: Client> Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityClientPlayerMP

[00:16:36 INFO]: Client> at net.minecraft.client.main.Main.main(SourceFile:37)

[00:16:36 INFO]: Client> ... 6 more

[00:16:36 INFO]: Client> Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityClientPlayerMP

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.loadClass(Unknown Source)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.loadClass(Unknown Source)

[00:16:36 INFO]: Client> ... 7 more

[00:16:36 INFO]: Client> Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityPlayerSP

[00:16:36 INFO]: Client> at java.lang.ClassLoader.defineClass1(Native Method)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.defineClass(Unknown Source)

[00:16:36 INFO]: Client> at java.security.SecureClassLoader.defineClass(Unknown Source)

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)

[00:16:36 INFO]: Client> ... 9 more

[00:16:36 INFO]: Client> Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityPlayerSP

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.loadClass(Unknown Source)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.loadClass(Unknown Source)

[00:16:36 INFO]: Client> ... 13 more

[00:16:36 INFO]: Client> Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/entity/AbstractClientPlayer

[00:16:36 INFO]: Client> at java.lang.ClassLoader.defineClass1(Native Method)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.defineClass(Unknown Source)

[00:16:36 INFO]: Client> at java.security.SecureClassLoader.defineClass(Unknown Source)

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)

[00:16:36 INFO]: Client> ... 15 more

[00:16:36 INFO]: Client> Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.AbstractClientPlayer

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.loadClass(Unknown Source)

[00:16:36 INFO]: Client> at java.lang.ClassLoader.loadClass(Unknown Source)

[00:16:36 INFO]: Client> ... 19 more

[00:16:36 INFO]: Client> Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: bic

[00:16:36 INFO]: Client> at org.objectweb.asm.ClassWriter.getCommonSuperClass(Unknown Source)

[00:16:36 INFO]: Client> at org.objectweb.asm.ClassWriter.a(Unknown Source)

[00:16:36 INFO]: Client> at org.objectweb.asm.Frame.a(Unknown Source)

[00:16:36 INFO]: Client> at org.objectweb.asm.Frame.a(Unknown Source)

[00:16:36 INFO]: Client> at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)

[00:16:36 INFO]: Client> at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)

[00:16:36 INFO]: Client> at org.objectweb.asm.tree.MethodNode.accept(Unknown Source)

[00:16:36 INFO]: Client> at org.objectweb.asm.tree.ClassNode.accept(Unknown Source)

[00:16:36 INFO]: Client> at pickandcraftSkin.SkinClassTransformer.patchClassASM(SkinClassTransformer.java:157)

[00:16:36 INFO]: Client> at pickandcraftSkin.SkinClassTransformer.transform(SkinClassTransformer.java:30)

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:274)

[00:16:36 INFO]: Client> at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:172)

[00:16:36 INFO]: Client> ... 21 more

[00:16:36 INFO]: Game ended with no troubles detected (exit code 0)

 

I suppose that src are not obsfuscated but I don't understand why!

 

Posted

Use [ spoiler ] tags for posting error logs.

 

It is generally bad practice to write comments in anything but English if you expect anyone else to have to look at your code.

 

You are modifying vanilla code. I could be wrong, but I don't believe that will work.

 

Additionally ... 1.6.4?

Posted

Ah. Well, that makes sense - but it seems a dangerous and incompatible way to go about it. Nevertheless, depending on the circumstances I can see that being useful.

Posted

It seems the mod in question in this topic is modifying the source code rather than the bytecode.

 

I have had a look at modifying bytecode - it seemed approachable, but reflection is less of a hassle for now, with what I am trying to do.

 

The information on coremods is absolutely valued and appreciated though, as many of the ideas I have for mods probably require coremods.

 

Thank you!

Posted

Ok so I will to change to patch only parseskin.

I have a problem to optifine: We don't see the skin when optifine is installed. do you know why?

And how access to the field imageheight et imagewidht with asm?

Posted

I can get the field with field visitor but how change the fields?

And how call a method like hastransparence since a other class with asm?

Posted

I want to rewrite parseUserSkin to support the hd. I think the most easy is to do this:

- I will delete all the the instructions

- I add a call to a method

- I rewrite parseUserSkin in this method

But, to do this, I need to access to the field and change their value

 

So I think use fieldvisitor to have the value of the field but I don't know how change the value and call functions in ImageBufferDownload.

Posted

I try to patch the class line to line like in  this tutorial http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571568-tutorial-1-6-2-changing-vanilla-without-editingbut i have almost all the line to change is very laborious!

How can do this differently? I think delete all the instruction and call a function like I have do to the getSkin function but I cant because I need to change field and call metho of the class ImageBufferDownload

Posted

I have the vanilla class ImageBufferDownload and I want to transform the vanilla function parseUserSkin (http://pastebin.com/E9burVR4) to http://pastebin.com/TSinTCsA.

So I try to change line to line like in the tutorial. But here, I have a lot of change. I think this method isn't feasible in this case.

 

I looked for a other method to change the function. I think to do this: remove all instruction in parseUserSkin and, instead of instruction add a call to a static function. But I can't do this beacause in parseUserSkin I need to call functions and change field witch are in ImageBufferDownload

Posted

Ok But I need label to add condition

if(this.imageHeight != this.imageWidth/2){

                return null;

            }

with the opcode IFNONNULL no ? Or I must use LINENUMBER?

And what is FRAME SAME ?

 

 

the bytecode of  "this.imageWidth = par1BufferedImage.getWidth();" :

 

mv.visitVarInsn(ALOAD, 0);

mv.visitVarInsn(ALOAD, 1);

mv.visitMethodInsn(INVOKEVIRTUAL, "java/awt/image/BufferedImage", "getWidth", "()I", false);

mv.visitFieldInsn(PUTFIELD, "net/minecraft/client/renderer/ImageBufferDownload", "imageWidth", "I");

 

Why there is ALOAD 0? It serve no purpose!

Posted

Ok!

Before to try to do the condition I try to change

            this.imageWidth = 64;

            this.imageHeight = 32;

to

            this.imageWidth = par1BufferedImage.getWidth();

            this.imageHeight = par1BufferedImage.getHeight();

So It's the bytecode of the vanilla function: http://pastebin.com/3WZ3yfnc

And I do this: http://pastebin.com/tcXz3uZx

But I have a crash http://pastebin.com/35umU3Tm

 

I don't understand why!

Posted

Y

  On 7/8/2014 at 1:01 PM, diesieben07 said:

Your error is because you didn't load "this" onto the stack for the PUTFIELD call.

You first load the bufferedImage, then call getWidth / getHeight with INVOKEVIRTUAL.

Yes but aload 0 is alredy before bipush

 

All my problem come to targetnode affectation and bipush index. I have resolved this problem

What there are two opcode -1?

In my eclipse plugin bytecode outline I see one opcode FRAME SAME?

 

  Quote

First of all: it's generally considered good practice to make comments to your code in English if you intend others to read it.

Sorry I don't think to translate my comments  ;)

 

 

I have finish to patch the function... AND I HAVE A ERROR  :'(

The crash report http://pastebin.com/7yvyMShG

obviously there is a cast problem.

My code:

http://pastebin.com/0TXer5jp

I lose hope... :(

Posted

Oh my god AMAZING! It works! Thanks a lot for your help! thanks to you I can fix all errors!

width=165 height=85http://img15.hostingpics.net/thumbs/mini_74611620140709001037.png[/img]

 

But it I reobfbuscate I will have error no? For instance

toInjectAreaOpaque2.add(new FieldInsnNode(GETFIELD, "net/minecraft/client/renderer/ImageBufferDownload", "imageHeight", "I"));

 

will don't work because the obuscate name of ImageBufferDownload it's bfn?

Posted

And I have a error without eclipse, with the reobuscate class:

48:12 [iNFOS] [sTDERR] Exception in thread "Skin downloader: http://antibiotique.perso.sfr.fr/skins/gargan.png" java.lang.NoSuchFieldError: imageHeight

[00:48:12 INFO]: Client> 2014-07-09 00:48:12 [iNFOS] [sTDERR] at net.minecraft.client.renderer.ImageBufferDownload.func_78432_a(SourceFile:15)

[00:48:12 INFO]: Client> 2014-07-09 00:48:12 [iNFOS] [sTDERR] at net.minecraft.client.renderer.ThreadDownloadImageDataINNER1.run(SourceFile:76)

 

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

    • Short Term Loans Online: A Reliable Source of Fast Cash   If you are experiencing financial difficulties, you don't have to worry about this challenge. This is the quickest and best method for handling financial catastrophes. You can pick short term loans online without reluctance, and you can apply for the payday loan you want online and have it the same day without any issues. With two to four weeks to repay the loan, you may often borrow between $100 and $1000 without having to offer any collateral.   As implied by the title, those with bad credit histories—defaults, arrears, foreclosure, late or missed payments, judgments against you, insolvency or IVA, etc.—are welcome to apply for online short term loans without having to go through any challenging procedures. Interest rates are a bit high in comparison to other loans. A thorough internet search can be used to determine the greatest rate for a financed loan.   You don't have to waste your precious time searching the internet for short term funding payday loans. In just a few minutes, you can apply for the finance you desire by completing a brief online application. The lender will approve the loan once he has verified that you have provided accurate information on this brief form. This loan is carefully deposited into your bank account in the least amount of time. You can utilize the money in a number of ways without running into any problems. Usually, the money can be used to settle debts like credit card balances, overdue bank overdrafts, tuition or school fees for children, energy bills, housing costs, and more.   Loans Lucre makes it simple to apply for short term loans online, so there's no need to drive across town. Additionally, you won't have to wait weeks for a response from us. Additionally, having bad credit shouldn't be a deal-breaker. We evaluate your entire financial history rather than just your FICO score. We approve many debtors who had been rejected by banks.   Once you are approved, Loans Lucre puts your online installment loans directly into your bank account, giving you instant access to your funds. The repayment plan is broken down into simple, reasonably priced monthly installments. Loans Lucre also rejects rollovers. Instead, we help borrowers get back on track when they encounter difficulties with the repayment process. Borrowers who regularly make their payments on time are eligible for lower annual percentage rates (APRs) on their subsequent these loans. That is truly win-win!   You will be communicating with the lender whether you apply for online personal loans through a cash advance broker or directly from the lender. The cost and duration of the transaction will be increased by any third parties you deal with through the direct lender. This will lead to a faulty perception of the "instant approval" of your payday loan, in addition to raising the cost of your transaction. When asking for a payday loan, it is therefore essential that you work with a trustworthy direct lender; a lender with a solid online reputation and satisfied clients is a wise choice.   You can apply for a short term loans online through internet platforms in addition to conventional lenders. A quicker and more convenient application process is frequently provided by these platforms. In the end, it is feasible to get a $500 loan with low credit or no credit at all, but it will need effort and careful evaluation of your financial possibilities. The lender's requirements will always determine approval, so be careful to give accurate information and look into several lenders to determine which one best suit your needs. https://loanslucre.com/  
    • Apply For Fast Cash Loans Online Today To Get Money Right Away   Do you have to deal with your money issues right away? You don't need to go anywhere because you can get fast cash loans online with just a computer and an internet connection. This suggests that you don't need to waste any time applying for these loans. All you have to do is fill out the form accurately and submit it to the lender online. They will check it and determine whether to approve the loan within the specified time frame. The money is moved to your bank account shortly after approval.   The same-day financing loan facility offers the most beneficial cash assistance in quantities ranging from $100 to $1000, with a flexible payback period of 2-4 weeks from the date of acceptance. You can use the borrowed funds to cover your child's tuition or school fees, small vacation expenses, past credit card payments, laundry costs, minor house repairs, your mother's checkups, and other emergencies.   To be qualified for same day funding loans, you must meet specific conditions regardless of your credit score—fair or low. A valid proof of domicile and proof of residence for the last 12 months, a current bank account with an SSN, being employed permanently with a monthly wage of at least $1000, and being at least eighteen years of age are prerequisites. If you satisfy the qualifications, you can apply for same-day payday loans directly without undergoing a credit check if you have bankruptcy, CCJs, IVAs, foreclosure, arrears, or defaults. As a result, getting a loan is fairly easy in the current credit market.   You must complete an application with information about your bank account and job in order to apply for a fast cash loan online from a physical payday lender. You also need to provide the lender with postdated checks that will be deposited on the scheduled repayment date. In return, you get paid right away.   Applicants can apply for same day payday loans at any time, from the comfort of their homes, eliminating the need to travel across town to a payday loan outlet. However, online payday lenders do not frequently provide same-day loans. Instead, payouts are made straight into borrowers' bank accounts via the Automated Clearing House (ACH) system; processing for this method takes at least one business day.   You must think about if you can pay back the loan in full within the allotted time because same day payday loans may have payback periods as little as one week or ten days. If you are unable to pay the full amount due, the lender might accept a token payment from you. The remaining sum will be restructured as a rollover, which is a new loan with fresh interest and administrative costs and the same short payback period. After a few rollovers, a significant number of little payday loans accumulate to the point that debtors still owe more than they originally borrowed, even after making consistent payments for months or years.   You should be ready to submit the required paperwork and supporting proof when applying for a payday loans online same day with bad credit. Usually, lenders will evaluate your present financial state, work status, and loan-repayment capacity. Many lenders specialize in bad credit loans and are willing to take on the risk of lending to those with poor credit, despite the difficulties presented by a low credit score. This implies that you are not automatically denied a loan because of poor credit or no credit at all. https://nuevacash.com/
    • I have removed stevekunglib and it is still crashing again https://pastebin.com/9vE8pji0
    • It looks like an issue with stevekunglib or a mod requiring it
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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