How can I re-import an image after I've made changes to the original png?

Started by StationKeeper on

Topic category: Help with MCreator software

Last seen on 16:10, 23. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I re-import an image after I've made changes to the original png?
Fri, 07/29/2022 - 20:24 (edited)

Hello there! I imported some pngs as block textures. Then I made some changes in my paint program and saved the new pngs. (It was one pixel off from perfect tiling smh.) Now I would like to keep the old Block Elements, keep the old Texture Resources, and simply replace the current image within one of those Resources with the new contents of the updated png file.

I can't find a Texture import button in the menu other than the one that creates a new Resource (which fails because the name matches an existing Resource,) and I also can't seem to copy and paste from Krita into Mcreator using the OS's clipboard (unless the hotkey is something other than Ctrl+V and I completely missed it in the UI.)

Is there currently any way to do this?

Thanks for making such a great tool. :)

Edited by StationKeeper on Fri, 07/29/2022 - 20:24
Last seen on 16:10, 23. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Figured it out. The quickest…
Sat, 07/30/2022 - 01:14

Figured it out. The quickest way seems to be to delete the old Texture Resource, accept the warning about broken textures, then re-import the texture and re-add it to all the blocks that used it. Mcreator will incorrectly display the old version of the texture, but you can wait for the gradle to finish its tasks, exit, and then re-launch Mcreator, and it will display the new texture.

If anyone knows a more efficient workflow for replacing textures, please let me know. :) The moral of the story is to plan ahead and make those changes early so there's less work to redo.

Last seen on 16:02, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a more efficient…
Sat, 07/30/2022 - 01:24

There is a more efficient way to do this- if you just import a texture file with the same name as an existing one, it will replace the existing one- you just have to open the texture file and save it for the texture to update. Alternatively, you can delete the texture, and if you then import a texture with an identical name, none of your textures should break.

Last seen on 16:10, 23. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My bad. I just found out…
Sat, 07/30/2022 - 01:28

My bad. I just found out that there's no need to mess with the Block Elements at all! You just delete the old Texture Resource, import the new one, and as long as the name is exactly the same, Mcreator will link up the new texture under-the-hood. It does the sensible thing you'd expect it to do automatically. The only catch is it doesn't show you that it's done it until you restart the app.

I hope this thread helps somebody else who was as confused as I was about this. :)

Last seen on 16:10, 23. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, hi there, Mindthemoods…
Sat, 07/30/2022 - 01:36

Oh, hi there, Mindthemoods. You snuck in while I was typing my post. XD

So far, I have not been able to "import a texture file with the same name as an existing one." It shows me a modal dialogue that only gives me the option to Cancel or pick a different name. "Overwrite" or "Re-import" or "Update texture" or anything like that do not appear to be options:

Cancel or Rename only?

Last seen on 16:02, 15. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Weird- I might have been…
Sat, 07/30/2022 - 01:37

Weird- I might have been thinking about 3D model files or something. Anyways, glad it's working!