Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14.4 - IntelliJ] Develop during runtime
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 2
ZemahZalek

[1.14.4 - IntelliJ] Develop during runtime

By ZemahZalek, January 25, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

ZemahZalek    0

ZemahZalek

ZemahZalek    0

  • Tree Puncher
  • ZemahZalek
  • Members
  • 0
  • 15 posts
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

Share this post


Link to post
Share on other sites

Ommina    6

Ommina

Ommina    6

  • Stone Miner
  • Ommina
  • Members
  • 6
  • 65 posts
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

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
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)

Share this post


Link to post
Share on other sites

ZemahZalek    0

ZemahZalek

ZemahZalek    0

  • Tree Puncher
  • ZemahZalek
  • Members
  • 0
  • 15 posts
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

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
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)

Share this post


Link to post
Share on other sites

ZemahZalek    0

ZemahZalek

ZemahZalek    0

  • Tree Puncher
  • ZemahZalek
  • Members
  • 0
  • 15 posts
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

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
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)

Share this post


Link to post
Share on other sites

ZemahZalek    0

ZemahZalek

ZemahZalek    0

  • Tree Puncher
  • ZemahZalek
  • Members
  • 0
  • 15 posts
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

Share this post


Link to post
Share on other sites

Cadiboo    365

Cadiboo

Cadiboo    365

  • Reality Controller
  • Cadiboo
  • Members
  • 365
  • 3624 posts
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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 2
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DrCowiber
      Failed To Start Minecraft Server

      By DrCowiber · Posted 1 minute ago

      Im wondering if changing the launch options for the main server jar will fix that? I saw some threads where some peoples launch files had "-o" as a launch option, is there a way I can change the launch options for when the vanilla server is launched?
    • DrCowiber
      Failed To Start Minecraft Server

      By DrCowiber · Posted 11 minutes ago

      When I run my forge Server it goes fine, but when I try to host off my Raspberry Pi 4 Model B 8GB RAM, using the 32-bit raspbian and 64-bit raspbian, I get this error at the end of log.   jpotsimple.UnrecognizedOptionException: o is not a recognized option     The full log file: https://pastebin.com/n4GpC53Q
    • KBomb
      Forge 1.12.2 Server Crashing On Start-up

      By KBomb · Posted 15 minutes ago

      I have been able to run the server in vanilla, but after adding the mods the server is crashing during the start-up. I will attach the crash report. I also have screenshots of what the server console was displaying if that may be necessary. crash-2021-02-24_18.58.56-server.txt
    • milkman69
      My game keeps crashing and I haven't even added any mods on yet

      By milkman69 · Posted 1 hour ago

      here's the crash report or whatever:  Failed to download file. Name: 1.16.4-forge-35.1.37.jar URL: https://s3.amazonaws.com/Minecraft.Download/versions/1.16.4-forge-35.1.37/1.16.4-forge-35.1.37.jar Filename on disk: 1.16.4-forge-35.1.37.jar Path: C:\Users\donov\AppData\Roaming\.minecraft\versions\1.16.4-forge-35.1.37\1.16.4-forge-35.1.37.jar Exists: File
    • Skyriis
      [1.16.5] Adding a Button to KeyBindings

      By Skyriis · Posted 2 hours ago

      Hi Guys,   i'm trying to add a Button on the left of each keybinding in the Controls Screen. Is there a way to do that without replacing the whole Screen?
  • Topics

    • DrCowiber
      1
      Failed To Start Minecraft Server

      By DrCowiber
      Started 11 minutes ago

    • KBomb
      0
      Forge 1.12.2 Server Crashing On Start-up

      By KBomb
      Started 15 minutes ago

    • milkman69
      0
      My game keeps crashing and I haven't even added any mods on yet

      By milkman69
      Started 1 hour ago

    • Skyriis
      0
      [1.16.5] Adding a Button to KeyBindings

      By Skyriis
      Started 2 hours ago

    • pxscxl
      2
      Can't join forge Server anymore (1.16.4)

      By pxscxl
      Started Monday at 09:53 AM

  • Who's Online (See full list)

    • Babelincoln1809
    • DrCowiber
    • JoanSam
    • mcnuggies
    • ZetaLuxray
    • NullDev
    • remotewtf
    • RoyalRejectStudios
    • KBomb
    • digital_trucker
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14.4 - IntelliJ] Develop during runtime
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community