Jump to content

[1.7] Encrypted Vanilla Code


chrissiOnAir

Recommended Posts

Help, please.

This one has to be in the Forge Forums, and this is the best place to be, i hope.

 

I'm an old school php-programmerer for years and the last months i learned more OOP (yes, indeed ;)) and Java.

I play Minecraft since 1.0 and with mods from 1.3. Last week i wanted to start modding and i'm thru some Tut-scripts.

I now installed the last version of forge.

But there is one thing i don't get:

 

Is this deobfuscated vanilla code?! (got it from a world.gen.feature)

 

 

void func_150529_a(int p_150529_1_, int p_150529_2_, int p_150529_3_, float p_150529_4_, byte p_150529_5_, Block p_150529_6_)

    {

        int l = (int)((double)p_150529_4_ + 0.618D);

        byte b1 = otherCoordPairs[p_150529_5_];

        byte b2 = otherCoordPairs[p_150529_5_ + 3];

        int[] aint = new int[] {p_150529_1_, p_150529_2_, p_150529_3_};

 

 

Well, if it is, i think there is something wrong with Minecraft modding.

Please, don't get me wrong, but i refuse to work with these called Searge-names (func_1234_f). I don't want to get insane.

Even if there are completed lists and tools to translate every single parameter or function. Ok, if it's only one click to translate it all, then it's ok. But there isn't, is it?

 

As every programmer knows, method names, for example, should have proper names to understand.

As every modder knows, you need to understand vanilla-code to start and see what is there. Again, i'm not talking of editing, only understanding.

And doesn't Mojang support all modders? Of course they do! They are so big, and one reason is its modding community! And also Mojang works for the modding API.

So why can't we have an understandable vanilla-code?! This is against the community philosophy seriously.

 

I will now start with 1.6.2.

If vanilla stays "encrypted" in future, then there is no future for me as a modder. I'm too old to start as an encrypter.

 

Please be patient with me. I'm a new modder. I highly assume that i got something wrong.

But i couldn't find more information about it in the last 2 days. One of the last is from Searge at MCP. (and even he is talking from 'things getting easier for modders')

I think all new modders need a clear official statement about it.

.. well at least i'm happy with short answers, too :P

Thank you so much!

Link to comment
Share on other sites

Unfortunately, yes, that's what quite a lot of the code still looks like in 1.7.2, and even some in 1.6.4, but for the most part, even in 1.7.2 the most commonly used bits of code are entirely deobfuscated with human readable names; looks like you just found one of the more obscure ones :P

 

Don't give up, it's not so bad!

Link to comment
Share on other sites

There is a bot named "MCPBot" in the forge IRC channel, where you can contribute.

i think i will 8)

 

Make sure that if you give a obfuscated function a better name include good Javadoc.  Once you've renamed a function it's almost impossible for someone else to come along later and make the Javadoc better because in order to do so we have to rename the function.

 

And MCBot will not let you rename a function that's already been renamed.  Doesn't even matter that it's being renamed to the same thing.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Hi

 

PHP huh?

 

You might be just the person to write the web-based interface that replaces MCPbot... seriously...

http://www.minecraftforge.net/forum/index.php/topic,15823.0.html

http://www.minecraftforge.net/forum/index.php/topic,13353.msg81827.html#msg81827

http://www.minecraftforge.net/forum/index.php/topic,13353.msg81663.html#msg81663

 

If you could figure out a way to let modders do the deobfuscation / renaming using their IDE and just upload to the server instead of relying on chatbot, with some sort of quality control / voting / reputation etc to prevent sabotage, it would take a huge load off the MCP guys and probably speed things up enormously.  MCPbot is better than nothing but it's pretty cumbersome.

 

-TGG

 

 

Link to comment
Share on other sites

If you could figure out a way to let modders do the deobfuscation / renaming using their IDE and just upload to the server instead of relying on chatbot, with some sort of quality control / voting / reputation etc to prevent sabotage, it would take a huge load off the MCP guys and probably speed things up enormously.  MCPbot is better than nothing but it's pretty cumbersome.

 

-TGG

This part I so agree with. While the names in large part have made sense, there are a few cases of method names that have me pulling out my hair - because the don't really represent the purpose of the method (or field in some cases.) But, overall, I'd like to see peer-reviewed changes to the srg names automatically used.

Link to comment
Share on other sites

PHP huh?

 

You might be just the person to write the web-based interface that replaces MCPbot... seriously...

First let me say that i thank you for your wonderful online Forge Concept Tutorial! :) Actually this was my first tut i went through ..

And the other forum-links you sent me, i read them before i posted here :)

 

Meanwhile i understand the whole story a lot better, and i just tried the MCP Mapping Viewer from bspkrs, which seems to be great! You all surely know that tool, do you? There is a button to communicate with the MCPBot, but it seems that it does it without warning, if you did some mess in the fields. So this is to hand carefully.

http://www.minecraftforum.net/topic/2115030-mcp-mapping-viewer/

 

A webtool with a kind of validation would really be great and i totally understand what you are thinking of.

Well, but i think i'm not the right person for coding it right now. It's not that i think i'm not a smart ass :) .. haha .. but i did not code php for a longer time now and i started with Java only some weeks ago. So i have to get into it again, to be more prof ..

yeah, sorry, but for now i can't do it, but i will think about it, because i like the idea.

 

wow, these days ..

Link to comment
Share on other sites

I know it is already explained above, but just to really emphasize to those (like me) who are fairly new to Minecraft modding: it can be extremely frustrating working with the early versions of Forge after a major upgrade of Minecraft because so many functions are still obfuscated.  I know just enough programming to sometimes figure out a few pieces of the obfuscated code, but generally once you hit the obfuscated functions you may get stuck going much further. For example, in 1.6.4 I was quite capable to make custom furnaces and stuff fairly handily, but now I keep getting stuck on 1.7.2 after getting to a certain point where the obfuscation gets in the way.  Basically, be prepared to hit limits depending on what you delve into.

 

Thanks to all those at MCP who are working to break through this for us lesser programmers!

 

I do like the idea of a crowd-sourced de-obfuscation.  I have certainly been able to figure out a few functions that would probably be useful to others.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

I do like the idea of a crowd-sourced de-obfuscation.  I have certainly been able to figure out a few functions that would probably be useful to others.

I also agree. I wonder if there's something out there that already exists? It would be awesome if writing mods was easy as writing a bukkit plugin: a centeralized(ish) API, no obfuscated code, and readable error messages!

I hope that Mojang fixes it with their modder api.

Link to comment
Share on other sites

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

    • 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑 🤑DAFTAR & LOGIN🤑   Daftar Slot Ratuasia77 adalah bocoran slot rekomendasi gacor dari Ratuasia77 yang bisa anda temukan di SLOT Ratuasia77. Situs SLOT Ratuasia77 hari ini yang kami bagikan di sini adalah yang terbaik dan bersiaplah untuk mengalami sensasi tak terlupakan dalam permainan slot online. Temukan game SLOT Ratuasia77 terbaik dengan 100 pilihan provider ternama yang dipercaya akan memberikan kepuasan dan kemenangan hari ini untuk meraih x500. RTP SLOT Ratuasia77 merupakan SLOT Ratuasia77 hari ini yang telah menjadi pilihan utama bagi pemain judi online di seluruh Indonesia. Setiap harinya jutaan pemain memasuki dunia maya untuk memperoleh hiburan seru dan kemenangan besar dalam bermain slot dengan adanya bocoran RTP SLOT Ratuasia77. Tidak ada yang lebih menyenangkan daripada mengungguli mesin slot dan meraih jackpot x500 yang menggiurkan di situs SLOT Ratuasia77 hari ini yang telah disediakan SLOT Ratuasia77. Menangkan jackpot besar x500 rajanya maxwin dari segala slot dan raih kemenangan spektakuler di situs Ratuasia77 terbaik 2024 adalah tempat yang menyediakan mesin slot dengan peluang kemenangan lebih tinggi daripada situs slot lainnya. Bagi anda yang mencari pengalaman judi slot paling seru dan mendebarkan, situs bo SLOT Ratuasia77 terbaik 2024 adalah pilihan yang tepat. Jelajahi dunia slot online melalui situs SLOT Ratuasia77 di link SLOT Ratuasia77.
    • 20 SLOT DEMO GRATIS PRAGMATIC PLAY x500 RUPIAH ANTI LAG & 20 DEMO SLOT MAHJONG WAYS PG SOFT GRATIS ANTI RUNGKAD KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << SITUS SLOT GACOR 88 MAXWIN X500 HARI INI TERBAIK DAN TERPERCAYA GAMPANG MENANG Dunia Game gacor terus bertambah besar seiring berjalannya waktu, dan sudah tentu dunia itu terus berkembang serta merta bersamaan dengan berkembangnya SLOT GACOR sebagai website number #1 yang pernah ada dan tidak pernah mengecewakan sekalipun. Dengan banyaknya member yang sudah mempercayakan untuk terus menghasilkan uang bersama dengan SLOT GACOR pastinya mereka sudah percaya untuk bermain Game online bersama dengan kami dengan banyaknya testimoni yang sudah membuktikan betapa seringnya member mendapatkan jackpot besar yang bisa mencapai ratusan juta rupiah. Best online Game website that give you more money everyday, itu lah slogan yang tepat untuk bermain bersama SLOT GACOR yang sudah pasti menang setiap harinya dan bisa menjadikan bandar ini sebagai patokan untuk mendapatkan penghasilan tambahan yang efisien dan juga sesuatu hal yang fix setiap hari nya. Kami juga mendapatkan julukan sebagai Number #1 website bocor yang berarti terus memberikan member uang asli dan jackpot setiap hari nya, tidak lupa bocor itu juga bisa diartikan dalam bentuk berbagi promosi untuk para official member yang terus setia bermain bersama dengan kami. Berbagai provider Game terus bertambah banyak setiap harinya dan terus melakukan support untuk membuat para official member terus bisa menang dan terus maxwin dalam bentuk apapun maka itu langsung untuk feel free to try yourself, play with SLOT GACOR now or never !
    • BOCORAN POLA SLOT GACOR MAHJONG WAYS MAXWIN x500 PETIR MERAH HARI INI HINGGA MALAM INI KLIK DISINI DAFTAR SLOT VVIP << KLIK DISINI DAFTAR SLOT VVIP << KLIK DISINI DAFTAR SLOT VVIP << KLIK DISINI DAFTAR SLOT VVIP << SITUS SLOT GACOR 88 MAXWIN X500 HARI INI TERBAIK DAN TERPERCAYA GAMPANG MENANG Dunia Game gacor terus bertambah besar seiring berjalannya waktu, dan sudah tentu dunia itu terus berkembang serta merta bersamaan dengan berkembangnya SLOT GACOR sebagai website number #1 yang pernah ada dan tidak pernah mengecewakan sekalipun. Dengan banyaknya member yang sudah mempercayakan untuk terus menghasilkan uang bersama dengan SLOT GACOR pastinya mereka sudah percaya untuk bermain Game online bersama dengan kami dengan banyaknya testimoni yang sudah membuktikan betapa seringnya member mendapatkan jackpot besar yang bisa mencapai ratusan juta rupiah. Best online Game website that give you more money everyday, itu lah slogan yang tepat untuk bermain bersama SLOT GACOR yang sudah pasti menang setiap harinya dan bisa menjadikan bandar ini sebagai patokan untuk mendapatkan penghasilan tambahan yang efisien dan juga sesuatu hal yang fix setiap hari nya. Kami juga mendapatkan julukan sebagai Number #1 website bocor yang berarti terus memberikan member uang asli dan jackpot setiap hari nya, tidak lupa bocor itu juga bisa diartikan dalam bentuk berbagi promosi untuk para official member yang terus setia bermain bersama dengan kami. Berbagai provider Game terus bertambah banyak setiap harinya dan terus melakukan support untuk membuat para official member terus bisa menang dan terus maxwin dalam bentuk apapun maka itu langsung untuk feel free to try yourself, play with SLOT GACOR now or never !
    • Museumbola merupakan wadah judi online terkhusus untuk sbobet atau judi bola. Dengan daftar dan deposit menggunakan BANK BCA, Anda berkesempatan mendapatkan prediksi jitu pertandingan secara update setiap hari yang bisa anda jadikan acuan untuk bermain judi bola. Hanya dengan 10 ribu rupiah dan anda bermain Mix Parlay menggunakan prediksi yang telah di sediakan oleh kami, anda akan memenangkan jutaan rupiah. Yuk segera klik DAFTAR sekarang juga.
    • I was just trying to play my modded world when i randomly got this crash for no reason. I sorted through like every mod and eventually I realized it was LLibrary but I can't seem to find a solution to fix the crashing. I can't lose the world that I have that uses this mod please help me. Here's the report: https://pastebin.com/0D00B79i If anyone has a solution please let me know.  
  • Topics

×
×
  • Create New...

Important Information

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