Mattzz Posted April 12, 2012 Posted April 12, 2012 does anyone know how technic launches minecraft? I'm referring to classes, what class does it use as main or whatever, i just want to know how to launch mc via cmd even if its just the vannila minecraft.
BurningCake Posted April 12, 2012 Posted April 12, 2012 I dunno myself, but I would guess that there is a line(s) of code that tells Java to run MC/Technic along a specified path (where the .jar or .exe is).
Mattzz Posted April 15, 2012 Author Posted April 15, 2012 still nothing? also BurningCake, Technic is a jar file, what it does is it launches the minecraft.jar in the "%appdata%/.technic/<Modpackname>/bin/" to make minecraft.jar login it launches a certain class file. best way to understand this is to learn some java. now it launches that class file with certain arguments and i dont know what class it is. either the arguments are the user and pass or the user and session id (the default minecraft.exe i think does the authentication then passes it on to the jar). any one know please reply, if you dont know what you talking about or how it does it dont bother
Ragnar Homsar Posted April 15, 2012 Posted April 15, 2012 I don't claim to know how the launcher works, but it probably runs org.spoutcraft.launcher.ModpackBuild.class from technic-launcher.jar after the update check's done, which probably combines minecraft.jar with modpack.jar, then it runs the combined files. As I said, I have nothing to do with the actual launcher, I just gave the .jar's innards a quick look with 7Zip.
Mattzz Posted April 15, 2012 Author Posted April 15, 2012 i highly suggest not using 7zip to check it, in the technic 6 ssp tab scroll down a little and you will see the git hub link, it has all the files (classes and jars) all setup for eclipse and viewing. if theres something that is easy and accessible, use it :)
Ragnar Homsar Posted April 15, 2012 Posted April 15, 2012 i highly suggest not using 7zip to check it, in the technic 6 ssp tab scroll down a little and you will see the git hub link, it has all the files (classes and jars) all setup for eclipse and viewing. if theres something that is easy and accessible, use it Oh yeah. Upon actually reading the source ModpackBuild is for determining what version the modpack is. Nevermind me then!
Mattzz Posted April 15, 2012 Author Posted April 15, 2012 i think it runs the net.minecraft.client.MinecraftApplet (trying to remember what it said in the source) and passes the user and session id onto it but im not sure
Beer Posted April 15, 2012 Posted April 15, 2012 This seems like a perfect question to ask in the Technic Launcher forum.
Mattzz Posted April 17, 2012 Author Posted April 17, 2012 This seems like a perfect question to ask in the Technic Launcher forum. ill attempt to delete this one (if i can) and redo it in the launcher cat otherwise it would be nice if someone with the permissions could possibly delete it for me *hint hint*
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now