Modding Help Content Patcher- Micro Freezes after editing a specific image

Discussion in 'Mods' started by LumpySpace, Dec 1, 2019.

  1. LumpySpace

    LumpySpace Subatomic Cosmonaut

    Hello!

    I created this mod to work with content patcher and all seemed to be going well. However, a user reported that they experienced micro freezes when using is. I experienced the same thing but assumed it was due to my crappy hardware. However, another user identified the problem which seems to be that the mod edits the image for LooseSprites/temporary_sprites_1 (this mainly edits the appearance of the desert vendor next to the bus stop). I removed the code from the content pack for the specific image and I can confirm that the micro freezes have stopped. Now, I would love to know what I did wrong and if there is a fix. This is how I wrote the content.json files:

    //Temporary Sprites

    { "Action": "EditImage",
    "Target": "LooseSprites/temporary_sprites_1",
    "FromFile": "assets/Random/temp_{{NoNose}}.png",
    "FromArea": { "X": 0, "Y": 614, "Width": 180, "Height": 26 },
    "ToArea": { "X": 0, "Y": 614, "Width": 180, "Height": 26}},

    { "Action": "EditImage",
    "Target": "LooseSprites/temporary_sprites_1",
    "FromFile": "assets/Random/temp_{{NoNose}}.png",
    "FromArea": { "X": 193, "Y": 0, "Width": 15, "Height": 32 },
    "ToArea": { "X": 193, "Y": 0, "Width": 15, "Height": 32}},

    { "Action": "EditImage",
    "Target": "LooseSprites/temporary_sprites_1",
    "FromFile": "assets/Random/temp_{{NoNose}}.png",
    "FromArea": { "X": 354, "Y": 168, "Width": 64, "Height": 32 },
    "ToArea": { "X": 354, "Y": 168, "Width": 64, "Height": 32}},

    { "Action": "EditImage",
    "Target": "LooseSprites/temporary_sprites_1",
    "FromFile": "assets/Random/temp_{{NoNose}}.png",
    "FromArea": { "X": 400, "Y": 394, "Width": 101, "Height": 23 },
    "ToArea": { "X": 400, "Y": 394, "Width": 101, "Height": 23}},

    Thank you so much for your help!
     

    Share This Page