Modding Help What's with Cobblestone and dungeon generation?

Discussion in 'Starbound Modding' started by xaliber, Aug 3, 2017.

  1. xaliber

    xaliber Scruffy Nerf-Herder

    So I was making (editing) a dungeon in a kind of old fashioned way (PNG). I tried utilizing cobblestone in the dungeon (code inside the spoiler)

    Code:
    {
          "value": [
            149,  151,   97,    255
          ],
          "comment": "foreground cobblestone",
          "brush": [
            [  "clear"   ],
            [  "back",   "cobblestonematerial"    ],
            [  "front",   "cobblestonematerial"    ]
          ],
          "connector": false,
          "connector-value": [
            0,    0,    0,     0
          ]
      }
    


    But each time the game tries to generate the dungeon, it always returns error. See the full log here https://pastebin.com/L8jeEPZF (I included some other mods because it depends on it and/or I need the mods to travel faster, i.e. Explorer Pods)

    Here is the peculiar error:

    Code:
    Caused by: (MapException) Key 'cobblestonematerial' not found in Map::get()
    I've double checked to the wiki to make sure I don't mistype, and I don't. I tried to change the cobblestone to limestone or sand2, then tried to /reload, - and poof, the error just gone. I can teleport to the world without no trouble.

    This is confusing. What's wrong with cobblestonematerial?
     
    Last edited: Aug 3, 2017
  2. xaliber

    xaliber Scruffy Nerf-Herder

    Okay I'm sorry. This is embarrassing. Apparently the correct ID is cobblestone and not cobblestonematerial... duh. :zzz: Really should've tried that before. The game actually refers to the file name instead of the materialName defined in the file.

    There's also another interesting bits: I can use rock01, rock02, etc to show something that looks like cobblestone but is not.
     
  3. projectmayhem

    projectmayhem Spaceman Spiff

    You are looking at the item cobblestone, you need to look at the tile cobblestone. As you can see, it IS named cobblestone. It drops cobblestonematerial when broken.

    Code:
    {
      "materialId" : 3,
      "materialName" : "cobblestone",
      "particleColor" : [149, 149, 149, 255],
      "itemDrop" : "cobblestonematerial",
      "shortdescription" : "Cobblestone",
      "description" : "Hard cobblestones, smooth to the touch.",
      "glitchDescription" : "Facinated. These cobblestones are naturally smooth.",
      "floranDescription" : "Ssmooth cobblessstone rockss.",
      "novakidDescription" : "Ain't uncommon to run across cobblestone rocks like this.",
      "footstepSound" : "/sfx/blocks/footstep_stone3.ogg",
      "health" : 4,
      "category" : "materials",
    
      "renderTemplate" : "/tiles/classicmaterialtemplate.config",
      "renderParameters" : {
        "texture" : "cobblestone.png",
        "variants" : 5,
        "lightTransparent" : false,
        "multiColored" : true,
        "occludesBelow" : true,
        "zLevel" : 1640
      }
    }
    
     
    xaliber likes this.
  4. xaliber

    xaliber Scruffy Nerf-Herder

    Dang, you're right. I was really careless. Thanks for the clarification. Leaving the thread here in case someone googled and found similar newbie problem.
     

Share This Page