Hi their, I'm relatively new to modding but starting to get it. Not enough to say what I do and Don't understand but enough to get some stuff done.
ANYWAY! I'm trying to make a mob that does a buncha stuff, for reasons? Any way (need to stop saying that)
I Found an older Mod called the Hoipoi mod. I remember it loading with Forge, thought lets face it my memories screwy, but a much older forge. When I load it into current forge I get a buncha errors tied to a buncha imports and commands that I'm not sure people even use anymore.
I was wondering if some people on the forum could help me go through them, tell me what they do, and find a current version Forge (well 1.6.4 mine craft forge) equivalent.
Or at least tell me were they came from so I can go find out myself, (like I all ways do DX)
y? (I seriously doubt this is an unknown command, probably just a coordinate command messed up by all the errors and incompatibility, Though now that I think of it you can ask for context on the commands I'll look it up.
p (Eg: p.K, p.b, p.c)
at
an
nj
ih
bU
2 more things, one: this mod seems to be written for Japanese users,
Two: I had to copy paste this mod into Eclipse using Jd-GUI, their were 2 .Java files I couldn't get a hold of, but I they were the exact same name of the two class files I was able to grab so I'm thinking they just had the same information. If that's not so pleas don't fixate on that, If I'm right or not this is NOT what the questions is, just extra information to help you answer the question, (also I seriously doubt all these commands came from those 2 files, epically when they import so many other files with the same name as the commands used.)
1. This is obfuscated code, you probably wouldn't want to work with obfuscated code unless you want to spend two hours working out what a single variable represents. By the sounds of your reaction to the naming, the obfuscation has done exactly what it was meant to do; confuse you. The idea with obfuscation is that all objects that belong to a program are given random names, and this is done to confuse any potential hackers, crackers and thieves. The imports are classes and those "commands" (see point 3) are methods that belong to the class it's referencing; they're completely different.
2. This is ModLoader mod, not Forge. The reason why it loaded with Forge was Forge used to include compatibility with ModLoader as there was a small group of people who refused to move on from the then-dying ModLoader (it's officially dead now). So, you're going to have issues translating this to work with Forge as both loaders do things a little differently (in most cases, pretty differently).
3. Judging from your knowledge, I assume you are new to Java. If so, I would highly advise against trying to work with decompiled code and obfuscated code; those things you called "commands" are actually method calls, something different to a command; especially in the JVM. I'd advise you to try and find an entity tutorial to work off of rather than looking at ancient code (this is a ModLoader mod, which ModLoader was in use over a year, probably longer, ago, and even then it was uncommon to see a ModLoader mod, so I'd say this was 2 or more years ago that the source was written).
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
I didn't say to not reverse engineer, I said to code it fresh. You should of course look at other implementations including the Minecraft source and reverse engineer them, However, copying and editing someone else's implementation is usually going to cause trouble and isn't true reverse engineering. So learn from the other mods' code and then code your own mod fresh. It will turn out better and you'll learn more.
If it's resolved, edit the thread from the Tools menu and add the Resolved tag.
If you don't want to be notified of any more posts in it, unsubcribe from the Tools menu.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Hi their, I'm relatively new to modding but starting to get it. Not enough to say what I do and Don't understand but enough to get some stuff done.
ANYWAY! I'm trying to make a mob that does a buncha stuff, for reasons? Any way (need to stop saying that)
I Found an older Mod called the Hoipoi mod. I remember it loading with Forge, thought lets face it my memories screwy, but a much older forge. When I load it into current forge I get a buncha errors tied to a buncha imports and commands that I'm not sure people even use anymore.
I was wondering if some people on the forum could help me go through them, tell me what they do, and find a current version Forge (well 1.6.4 mine craft forge) equivalent.
Or at least tell me were they came from so I can go find out myself, (like I all ways do DX)
Here I'll go get the info:
IMPORTS:
import nj;
import og;
import oo;
import rj;
import up;
import jn;
import jw;
import ModLoader;
import aig;
import aji;
import ajq;
import an;
import at;
import ih;
import rh;
import oe;
COMMANDS:
rh
qg
aig
awi
rj
up
jw
ajq
y? (I seriously doubt this is an unknown command, probably just a coordinate command messed up by all the errors and incompatibility, Though now that I think of it you can ask for context on the commands I'll look it up.
p (Eg: p.K, p.b, p.c)
at
an
nj
ih
bU
2 more things, one: this mod seems to be written for Japanese users,
Two: I had to copy paste this mod into Eclipse using Jd-GUI, their were 2 .Java files I couldn't get a hold of, but I they were the exact same name of the two class files I was able to grab so I'm thinking they just had the same information. If that's not so pleas don't fixate on that, If I'm right or not this is NOT what the questions is, just extra information to help you answer the question, (also I seriously doubt all these commands came from those 2 files, epically when they import so many other files with the same name as the commands used.)
OH yeah, this ties into the mob mod because I want to use some of the functionality of the mod for my mob. whopsies forgot that.
I honestly have no clue what you just posted.
I got something about a mob, however; so I'll link you to wuppy29's mod tutorials. Follow the one he did on entities.
Click Here to view my WIP Mod!
Currently developing a Tech/Space mod. PM if you can/want to help!
Do you even have permission to post their code?
Making a mob that "does a bunch of stuff" shouldn't need any old mod code. Just code it fresh for whatever Forge version you want.
A couple of things.
1. This is obfuscated code, you probably wouldn't want to work with obfuscated code unless you want to spend two hours working out what a single variable represents. By the sounds of your reaction to the naming, the obfuscation has done exactly what it was meant to do; confuse you. The idea with obfuscation is that all objects that belong to a program are given random names, and this is done to confuse any potential hackers, crackers and thieves. The imports are classes and those "commands" (see point 3) are methods that belong to the class it's referencing; they're completely different.
2. This is ModLoader mod, not Forge. The reason why it loaded with Forge was Forge used to include compatibility with ModLoader as there was a small group of people who refused to move on from the then-dying ModLoader (it's officially dead now). So, you're going to have issues translating this to work with Forge as both loaders do things a little differently (in most cases, pretty differently).
3. Judging from your knowledge, I assume you are new to Java. If so, I would highly advise against trying to work with decompiled code and obfuscated code; those things you called "commands" are actually method calls, something different to a command; especially in the JVM. I'd advise you to try and find an entity tutorial to work off of rather than looking at ancient code (this is a ModLoader mod, which ModLoader was in use over a year, probably longer, ago, and even then it was uncommon to see a ModLoader mod, so I'd say this was 2 or more years ago that the source was written).
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
HOLY CRAP! That took hours! but after using that jar download site, old mod loader, the mod, and old MCP I THINK I GOT IT XD
Thanks Jimmy04creeper and jcm2606 for teaching me what obfuscation is so I could undo it.
Annnnddddddd as for jabela, I learn from reverse engineering... Don't knock it.
I didn't say to not reverse engineer, I said to code it fresh. You should of course look at other implementations including the Minecraft source and reverse engineer them, However, copying and editing someone else's implementation is usually going to cause trouble and isn't true reverse engineering. So learn from the other mods' code and then code your own mod fresh. It will turn out better and you'll learn more.
I guess I'm don with the thread?
what do I do now?
If it's resolved, edit the thread from the Tools menu and add the Resolved tag.
If you don't want to be notified of any more posts in it, unsubcribe from the Tools menu.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Hey thanks!
Hey thanks!