Modding Help Spring Objects Coordinates?

Discussion in 'Mods' started by Thaylie, Dec 14, 2018.

  1. Thaylie

    Thaylie Void-Bound Voyager

    Hi, so I am trying to make a small mod for personal use, just a replacer for the Rabbit's Foot item. I've been looking at some Content Pack mods as a reference, and am a bit confused. If I want to edit only one item for the spring objects xnb file, it seems like I need the X and Y coordinates for that specific sprite.

    As an example, the reference mod I'm using edits the Void Egg, and uses the command:
    {
    "Action": "EditImage",
    "Target": "Maps/springobjects",
    "FromFile": "assets/EggAyam.png",
    "ToArea": { "X": 276, "Y": 197, "Width": 8, "Height": 10 }
    },

    I want to do the same, only for the Rabbit's Foot, how do I find the exact coordinates for it?
     
    • Pathoschild

      Pathoschild Tiy's Beard

      @Thaylie The easiest way is...
      1. Unpack the Maps/springobjects file to get the image inside.
      2. Open it in an image editor (the default Paint app on Windows is fine).
      3. Select the area around the rabbit's foot in the opened image.
      4. Look at the bottom (usually) to find the X, Y, width, and height values. For example, Paint shows x=384, y=544, and width/height=16:
        upload_2018-12-13_23-34-40.png
       
      • Thaylie

        Thaylie Void-Bound Voyager

        Thank you!
         

        Share This Page