Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Can't find paper field... REALLY, MINECRAFT?


  • Please log in to reply
6 replies to this topic

#1

nerdboy64
    nerdboy64

    Lapis Lazuli Collector

  • Members
  • 1065 posts
  • Location: The Internet
  • Minecraft: nerdboy64

Posted 27 October 2011 - 10:42 PM

So, mnany of you may have heard me whining about me not being able to make a gun mod. Well, I got it working in MCP, but I reobfuscate it and it comes up with this little bucket of joy:

Spoiler:

It seems to be that it can't find the paper code under Item.class when my mod calls for it. The funny thing is, this is only in the actual game, whereas MCP's startclient.bat version is just fine. My code is as follows:

Spoiler:

I have a few other mods, including TMI, Single Player Commands, zeppelin, airship, another mod I made for practice that adds the "Ghast Blaster" (a wand that launches Ghast fireballs), Modloader, the HD patcher, and possible others. These mods worked perfectly together before the addition of my gun mod.

If anyone has some advice, please tell me.
Posted Image
My Website. I make mods for Minecraft and am also making my own game.

Register or log in to remove.

#2

nicaetinismo
  • Location: California
  • Minecraft: nicaetinismo

Posted 27 October 2011 - 11:27 PM

perhaps it wasnt reobfd correctly?
open up the reobfed class file and see if that field was obfuscated properly (as it shouldnt be called "paper" if it was)

Remeber: that little green plus sign is a great way to say thank you!
Posted Image


#3

nerdboy64
    nerdboy64

    Lapis Lazuli Collector

  • Members
  • 1065 posts
  • Location: The Internet
  • Minecraft: nerdboy64

Posted 27 October 2011 - 11:50 PM

I ctrl + f'd for 'paper" and found this in client_reobf.txt:

FD: net/minecraft/src/Item/paper sv/paper
# Field net/minecraft/src/Item/paper renamed to paper from name maker.

I noticed most other items and blocks were renamed to a random letter, whereas a few (including paper) kept their original name. Is this right?
Posted Image
My Website. I make mods for Minecraft and am also making my own game.

#4

force_fail

Posted 28 October 2011 - 03:57 AM

1) recompile 2) reobf
Posted Image

#5

nicaetinismo
  • Location: California
  • Minecraft: nicaetinismo

Posted 28 October 2011 - 05:52 PM

View Postnerdboy64, on 27 October 2011 - 11:50 PM, said:

I ctrl + f'd for 'paper" and found this in client_reobf.txt:

FD: net/minecraft/src/Item/paper sv/paper
# Field net/minecraft/src/Item/paper renamed to paper from name maker.

I noticed most other items and blocks were renamed to a random letter, whereas a few (including paper) kept their original name. Is this right?
no, for some reason its not recompiling correctly, paper should reobf to aL...

Remeber: that little green plus sign is a great way to say thank you!
Posted Image


#6

nerdboy64
    nerdboy64

    Lapis Lazuli Collector

  • Members
  • 1065 posts
  • Location: The Internet
  • Minecraft: nerdboy64

Posted 28 October 2011 - 10:01 PM

View Postnicaetinismo, on 28 October 2011 - 05:52 PM, said:

no, for some reason its not recompiling correctly, paper should reobf to aL...
Great, so that means it's MCP's fault and until an update comes out I am completely and totally screwed?
Posted Image
My Website. I make mods for Minecraft and am also making my own game.

#7

nicaetinismo
  • Location: California
  • Minecraft: nicaetinismo

Posted 28 October 2011 - 10:40 PM

you can always try backing up your sources then reinstalling mcp...

Remeber: that little green plus sign is a great way to say thank you!
Posted Image