Posted December 10, 201311 yr Hello, guys. I would like to know: is it possible create authentication in launcher by using the possibilities Forge. If yes, please tell me how to do it. I'll be very grateful to you.
December 10, 201311 yr Hi Is this what you mean? http://www.minecraftforge.net/wiki/Forge_Development_in_IntelliJ_IDEA (see "Set up run & debug configurations") -TGG
December 11, 201311 yr Author No. Example, I have database of players who signed up for my project. I would like them login in the launcher, got some data(e.g. id from my database) and then could connect to the server. In short I would like to make my system administration and vip-account.
December 11, 201311 yr I'm sorry mate you lost me completely in what the database should do and what all this is for. Your sentences is quite confusing, you may want to re-phrase yourself. If you guys dont get it.. then well ya.. try harder...
December 11, 201311 yr Author That's what I want to get the result: 1) The user starts the launcher and enters username and password, which he enters at registration on my project. 2) If the data is correct, the user enters the server. Perhaps this is a classical problem, tell me the best way to solve it.
December 11, 201311 yr Connecting to a database is easy, there are several ways to do it. I would recommend googling basic Java questions or go to dedicated java forums like the ones on DreamInCode Anyways here you go: docs.oracle.com/javase/tutorial/jdbc/basics/ If you guys dont get it.. then well ya.. try harder...
December 11, 201311 yr Author You didn't understand me. I know how to work with databases. I don't know where need to rewrite code in MCP, to add my own authorization via the launcher.
December 11, 201311 yr Then I suggest you start by examining the launcher code, and take notes from how it works..? If you guys dont get it.. then well ya.. try harder...
December 11, 201311 yr Well, last time I checked Minecraft Launcher is NOT Minecraft Game. Since Forge is modification for Minecraft Game which is loaded by Launcher you cannot possibly make something that loads data in reverse without going into Launchers code. Thing you'll need here is to write whole new launcher and totally screw minecraft.net using your databases and then downloading game (non-premium) from your repo. Or you can make minecraft.net account checking AND your own in addition which wil be held in some variables that will be used by your Forge Mod inside Minecraft Game. I did thing described here, but this would take at least 10 hours (only if you are good) to write in GOOD way with whole graphics and nice handling of code (took me about 30h if not more to finish) Conclusion: Nope, you cannot modify launcher by forge. (Or am I wrong?) 1.7.10 is no longer supported by forge, you are on your own.
December 11, 201311 yr Conclusion: Nope, you cannot modify launcher by forge. (Or am I wrong?) That would be correct. What you could do is to write a mod with forge that only lets you join servers if the server can verify you by taking in a username(minecraft name?) and a supplied password. You could make a GUI screen which is shown when you try to connect to a server while having your mod which would send the info to the server and the server can then authenticate you using the db If you guys dont get it.. then well ya.. try harder...
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.