How do I make images modifiable?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AlyphRat

I want to make my game fully moddable, with the source code + all the project files.

However, there was no success.
I have tried deleting the main .PCK files in the game’s root folder and putting all the project files in it, and it worked. The source code is affected when I change a few lines here or change their values, however, the images still persist even after modifying them multiple times.

What should I do now?

:bust_in_silhouette: Reply From: Calinou

If you want to make your game fully moddable, the best way is to release the project source on a version control platform such as GitHub or GitLab.

I don’t recommend letting the export template read its data outside of a PCK file, as you’re losing out on the various optimizations performed when exporting the project. Also, it won’t work when modifying images as the project will be relying on the hidden .import/ folder instead of the source PNG images. (This is why modifying the images in the exported project does nothing in your case.)

Understandable, so I’ll release the project to GitHub instead then. It would be nice if I could find a way to make the user import custom sprites into the game, or set a texture to a sprite from a external .png for example. I’ll do that as of now, thanks!

AlyphRat | 2022-02-20 17:05