Modding Help Modding help! Need to make a projectile look like sushi.

Discussion in 'Starbound Modding' started by GingerMeTimbers, Feb 15, 2014.

  1. GingerMeTimbers

    GingerMeTimbers Scruffy Nerf-Herder

    I'm moderately modding-saavy, but I don't know how to do this. My sword has an actionOnReap that makes it fire the glowingrain.projectile, but I want the glowing rain drop to look like a piece of sushi from the game, that way it will keep its sparkle trail as it is fired. I tried putting the sushi.png into a folder along with the glowingrain.projectile, and then opening up the glowingrain.projectile file with Notepad++, I tried replacing the glowingrain.png with sushi.png. However, when I tested it in game, there is no image for a projectile, I only see the sparkle trail, so basically it turns my projectile invisible. I tried this along with other various techniques to get it to work, but to no avail. I figure there has to be a specific way to do this, so that's why I'm on here asking for help.
     
  2. Julyuary

    Julyuary Phantasmal Quasar

    Have you done proper modifications to glowingrain.frames? You need to change the "size" property to the dimensions of the frames in your sushi image. The "dimensions" property can be thought of as the columns and rows of the animation. The .frames file for glowingrain looks like this.

    Code:
    {
      "frameGrid" : {
        "size" : [11, 3],
        "dimensions" : [1, 1],
    
        "names" : [
          [ "0" ]
        ]
      }
    }
    
    So, you're specifying the size of a single frame, and then the number of frames in that animation. For example, dragonprojectile.png looks like this:
    [​IMG]

    and dragonprojectile.frames looks like this:
    Code:
    {
      "frameGrid" : {
        "size" : [77, 40],
        "dimensions" : [4, 1],
    
        "names" : [
          [ "0", "1", "2", "3" ]
        ]
      }
    }
    
    The size of every frame is 77 by 40 pixels, so "size" is [77, 40]. There is one row of frames, and there are four frames on that row, making "dimensions" [4, 1]. "names" is presumably a name for each frame. I don't believe it to be necessary, since it isn't present in every .frames file. Hope my explanation makes sense.
    Edit: The width of a single frame in glowingrain is pretty small, which might have something to do with the invisibility of your sushi, as it clips the image at a very small width of 3 pixels.
     
  3. GingerMeTimbers

    GingerMeTimbers Scruffy Nerf-Herder

    I just tried what you told me. The size of the frames for the sushi image are [16, 16]. So I edited the glowingrain.frames to change the size, and also edited the glowingrain.projectile to change the image to the sushi.png. It didn't work though; still invisible.
     
  4. Julyuary

    Julyuary Phantasmal Quasar

Share This Page