Modding Help Custom critter exists, but sprites aren't there.

Discussion in 'Starbound Modding' started by ShirtyScarab554, Apr 30, 2017.

  1. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    So I successfully edited in a small critter about the size of the cliff critter with no problem, but I can't get my larger critter's texture to appear in-game, it's there (I can see the hit-box in debug mode) but no matter what I adjust it won't appear. Would the problem be the size of the frame grid? 41x41
     
  2. Cyel

    Cyel Scruffy Nerf-Herder

    Starbound's log (in the Starbound/storage folder) should tell you what's happening, we can't really help if we don't know what it says; it probably defaults to invisible stuff because it cannot load the sprite, or it's .frame file, or something like that tho
     
  3. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    Can I post it here and have someone else take a look at it, I don't really understand everything in the log yet.
     
    Last edited: May 1, 2017
  4. Cyel

    Cyel Scruffy Nerf-Herder

    Yes, that's what I implied with "we can't really help if we don't know what it says" :catsmile:
     
    ShirtyScarab554 likes this.
  5. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    I think I found the problem, but I can't understand why this is happening.

    Code:
    [22:04:39.634] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png', using placeholder default.
    (JsonParsingException) Cannot parse json file: /monsters/critter/dachoracritter/body.frames
    Caused by: (JsonParsingException) Error parsing json: unexpected character parsing word at 7:66
    [22:04:39.637] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:idle.1', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:idle.1'
    [22:04:39.913] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:idle.2', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:idle.2'
    [22:04:40.331] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:idle.3', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:idle.3'
    [22:04:40.731] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:idle.4', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:idle.4'
    [22:04:41.137] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:idle.5', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:idle.5'
    [22:04:46.716] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:walk.1', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:walk.1'
    [22:04:46.749] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:walk.2', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:walk.2'
    [22:04:46.819] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:walk.3', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:walk.3'
    [22:04:46.849] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:walk.4', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:walk.4'
    [22:04:46.916] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:walk.5', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:walk.5'
    [22:04:46.949] [Error] Could not load image asset '/monsters/critter/dachoracritter/body.png:walk.6', using placeholder default.
    (AssetException) No associated frames file found for image '/monsters/critter/dachoracritter/body.png' while resolving image frame '/monsters/critter/dachoracritter/body.png:walk.6'
    [22:04:48.691] [Error] Could not load image asset '/animations/energyarrowtrail/penergyarrowtrail.png:0', using placeholder default.
    (AssetException) No associated frames file found for image '/animations/energyarrowtrail/penergyarrowtrail.png' while resolving image frame '/animations/energyarrowtrail/penergyarrowtrail.png:0'
    [22:04:48.772] [Error] Could not load image asset '/animations/energyarrowtrail/penergyarrowtrail.png:1', using placeholder default.
    (AssetException) No associated frames file found for image '/animations/energyarrowtrail/penergyarrowtrail.png' while resolving image frame '/animations/energyarrowtrail/penergyarrowtrail.png:1'
    [22:04:48.872] [Error] Could not load image asset '/animations/energyarrowtrail/penergyarrowtrail.png:2', using placeholder default.
    (AssetException) No associated frames file found for image '/animations/energyarrowtrail/penergyarrowtrail.png' while resolving image frame '/animations/energyarrowtrail/penergyarrowtrail.png:2'
    [22:05:19.511] [Info] Application: quit requested
    [22:05:19.511] [Info] Application: quitting...
    [22:05:19.511] [Info] Application: shutdown...
    [22:05:19.517] [Info] UniverseClient: Client disconnecting...
    [22:05:19.536] [Info] Client received world stop packet, leaving: Removed
    [22:05:19.573] [Info] UniverseServer: Client 'Donovan Hunter' <1> (local) disconnected for reason:
    [22:05:19.574] [Info] UniverseServer: Stopping idle world CelestialWorld:484706320:870149919:-10198825:8
    [22:05:19.991] [Info] UniverseServer: Stopping UniverseServer
    [22:05:20.481] [Info] Root: Shutting down Root
    [22:05:21.086] [Info] Application: Destroying SDL Window
    [22:05:21.092] [Info] Application: stopped gracefully
    
     
  6. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    Here's the sprite sheet, each frame is 41x41.
     

    Attached Files:

  7. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    And here is the body.frames code

    Code:
    {
      "frameGrid" : {
        "size" : [41, 41],
        "dimensions" : [15, 2],
    
        "names" : [
          [ null, "idle.1", "idle.2", "idle.3", "idle.4", "idle.5",  ],
          [ null, null, null, null, null, null, null, null, null, "walk.1", "walk.2", "walk.3", "walk.4", "walk.5", "walk.6" ]
        ]
      }
    }
    
     
  8. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    If you need the .monsterpart file or .monstertype let me know.
     
  9. Cyel

    Cyel Scruffy Nerf-Herder

    You have one to many "," in your first "names" array; change it to
    Code:
    {
      "frameGrid" : {
        "size" : [41, 41],
        "dimensions" : [15, 2],
    
        "names" : [
          [ null, "idle.1", "idle.2", "idle.3", "idle.4", "idle.5" ],
          [ null, null, null, null, null, null, null, null, null, "walk.1", "walk.2", "walk.3", "walk.4", "walk.5", "walk.6" ]
        ]
      }
    }
     
  10. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    I'm gonna feel so dumb if that's the problem.
     
  11. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    It worked, now I have to figure out the hitbox shaping, thanks for the help. Sorry it was such a simple thing.
     
    Cyel likes this.
  12. Cyel

    Cyel Scruffy Nerf-Herder

    No need to feel dumb / sorry, syntax errors are as easy to do as they are to overlook; some tools like https://jsonlint.com/ can be of great help. Good luck for the rest of your mod!
     
  13. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    Thanks, and I'll probably post more questions on here soon enough.:catlol:
     

Share This Page