ZemahZalek Posted January 25, 2020 Share Posted January 25, 2020 I'm just wondering if there is a way to develop a mod during runtime? It's quite annoying to restart Minecraft every time I need to change something small. I tried changing textures for a single block, rebuilding the project and then refreshing the textures (F3 + T or whatever the command was) but instead IntelliJ gives an error (something about access denied) and all items and blocks included in the mod lose their textures (even the textures I never touched). Is is possible? And if so, what is changeable during runtime? Quote Link to comment Share on other sites More sharing options...
Ommina Posted January 25, 2020 Share Posted January 25, 2020 To a point. You can Run -> Reload Changed Classes, which will allow you to fiddle with existing functions and see the result without having to restart. But it will only take you so far. You can't add functions, or make any real widespread change. Handy for debugging, but I've found a restart is usually in the near future. Alas, the last I've seen the resource reload work successfully was in 1.12.2. Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted January 25, 2020 Share Posted January 25, 2020 (edited) 10 minutes ago, Ommina said: But it will only take you so far. You can't add functions, or make any real widespread change. Handy for debugging, but I've found a restart is usually in the near future. You can use DCEVM. Edited January 25, 2020 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
ZemahZalek Posted January 26, 2020 Author Share Posted January 26, 2020 On 1/25/2020 at 7:03 AM, Cadiboo said: You can use DCEVM. Interesting. Is there a way to apply this to my project? Anywhere I can input the arguments? Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted January 27, 2020 Share Posted January 27, 2020 Download DCEVM, go to project settings and change the project SDK to DCEVM. You can also select a specific JVM per run config Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
ZemahZalek Posted January 28, 2020 Author Share Posted January 28, 2020 (edited) On 1/27/2020 at 5:23 AM, Cadiboo said: Download DCEVM, go to project settings and change the project SDK to DCEVM. You can also select a specific JVM per run config Should I follow these steps: https://liferay.dev/blogs/-/blogs/java-classes-instant-reloading-using-dcevm-hotswap-agent to set up the DCEVM JDK, or just download the DCEVM (from the same link) and use that as the SDK? Edited January 28, 2020 by ZemahZalek Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted January 29, 2020 Share Posted January 29, 2020 All you need to do is install DCEVM (I do it as a full rather than alt JVM) and then change your project SDK to point to it. HotSwapAgent isn’t necessary. Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
ZemahZalek Posted February 1, 2020 Author Share Posted February 1, 2020 On 1/29/2020 at 8:22 AM, Cadiboo said: All you need to do is install DCEVM (I do it as a full rather than alt JVM) and then change your project SDK to point to it. HotSwapAgent isn’t necessary. I believe I have installed it correctly now. Is there a way to know it's working? I'm not sure of changes that can be made to the code during runtime when using DCEVM. Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted February 2, 2020 Share Posted February 2, 2020 3 hours ago, ZemahZalek said: Is there a way to know it's working? Add/Remove a Field/Method Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
Recommended Posts
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.