This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
modding:replacing_images [2021/09/16 20:30] kodicraft4 created |
modding:replacing_images [2021/09/17 16:03] (current) kodicraft4 [Generating an image delta] Added link to file-types |
||
|---|---|---|---|
| Line 47: | Line 47: | ||
| //Note: Certain enemies, notably enemies that can feel more emotions than just SAD, ANGRY and HAPPY will have more vertical sprites in their image// | //Note: Certain enemies, notably enemies that can feel more emotions than just SAD, ANGRY and HAPPY will have more vertical sprites in their image// | ||
| - | ====== Putting the images in a mod ====== | + | ===== Putting the images in a mod ===== |
| After editing your images, you must put them in your **mod folder** under the same path relative to your decrypted ''/ | After editing your images, you must put them in your **mod folder** under the same path relative to your decrypted ''/ | ||
| Line 71: | Line 71: | ||
| And done! Your modified file should now appear in game in the place that you replaced. | And done! Your modified file should now appear in game in the place that you replaced. | ||
| - | TODO: Talk about image deltas. | + | ====== Image Deltas ====== |
| + | Image deltas are a special type of file introduced in [[:installing_oneloader|OneLoader]] V1.0.0. They provide a new way to edit images in your mods, by storing the difference between the original image and the new one. While this technique takes a bit of time to load when the game starts, | ||
| + | |||
| + | It is often recommended to use image deltas instead of replacing images if you are only changing a small part of an image, for instance if you are adding an accessory or a detail to a face. | ||
| + | |||
| + | ===== Generating an image delta ===== | ||
| + | To generate an image delta, simply follow the following steps | ||
| + | - Visit the [[https:// | ||
| + | {{: | ||
| + | - Upload the original unmodified file as the //Source file// | ||
| + | - Upload the modified file as the //Target file// | ||
| + | - Press process | ||
| + | |||
| + | You will be given a [[modding: | ||
| + | |||
| + | ===== Applying an image delta ===== | ||
| + | Putting an image delta in an OMORI mod is similar to [[modding: | ||
| + | - Put your olid file anywhere in your **mod folder** and take note of its path | ||
| + | - Add the entry ''" | ||
| + | - Add an entry with the syntax '' | ||
| + | |||
| + | For instance, if you have modified the file '' | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | {" | ||
| + | ] | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | And done! Your modified file should now appear in game in the place that you replaced. | ||
| + | |||
| + | |||