Posted June 6, 201510 yr So my mod has an auto updater that downloads a new jar file from the Internet and replaces the current one. I am wondering if it updates in game, if it will mess with the game or the effects only take place after restart. By mess with the game, I mean start using the new jar file
June 6, 201510 yr Read about Java ClassLoader. Answer is a simple NO (it won't). Once classes are loaded nothing from outside changes them, only thing that can "mess" with anything is when you would reference .jar file directly and expect it to have something that it doesn't. As to assets - they will probably get reloaded (from new .jar) when you'd reload resources, but I am not sure. As to auto-reloading - it would be possible to reload whole .jar in runtime, but sadly MC/Forge are not designed to help you, so you probably can't. 1.7.10 is no longer supported by forge, you are on your own.
June 6, 201510 yr So my mod has an auto updater that downloads a new jar file from the InternetNEVER do that -.- I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
June 7, 201510 yr Author Read about Java ClassLoader. Answer is a simple NO (it won't). Once classes are loaded nothing from outside changes them, only thing that can "mess" with anything is when you would reference .jar file directly and expect it to have something that it doesn't. As to assets - they will probably get reloaded (from new .jar) when you'd reload resources, but I am not sure. As to auto-reloading - it would be possible to reload whole .jar in runtime, but sadly MC/Forge are not designed to help you, so you probably can't. Ok, that's what I thought, good. So my mod has an auto updater that downloads a new jar file from the InternetNEVER do that -.- It's not like automatic. It asks the player if they would like to update and if they say yes, then it replaces the jar file
June 7, 201510 yr Still not a good idea. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
June 7, 201510 yr meh. It seems that you don't like anything. No I don't like anything that causes the end users frustration, mod pack creators to yell at me. Leaves open untold security holes as standard practice and is just plane annoying. Do not download executable code and run it. Simple as that. If users wanna take the risk of running random things then they should know what they are doing. On top of that, what if you accidentally break something in an 'update' the headake would be enormous if it just instantly shipped to everyone. This is one of those cases that you just have to defer to my 20+ years of experience on the subject. DO NOT DO IT. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.