Modding Help Tiled: WTH is going on...

Discussion in 'Starbound Modding' started by Tremerion, Aug 16, 2016.

  1. Tremerion

    Tremerion Existential Complex

    Tileset is loading into Tiled properly, but in game my world is still not working with modded object.
    My map .json code. Modded object is apexshop
    Code:
    { "backgroundcolor":"#000000",
    "height":56,
    "layers":[
      {
      "compression":"zlib",
      "data":"eJzt2bENwkAQRUGXQWVE1ETNJAQ4IEFC\/8maYGKf7iV73udxHE\/gqzsJerTo0aJHix4terTo0aJHix4terTo0aJHix4terTo0aJHy+cO5MHUegcGAHBl61mP88y7PgfnHut3Kef3+foc6FGkR4seLXq06NGiR4seLXq0rP+bAQDXs94\/rK3vX492j\/X8X7BuoIceZesGeuhRtm7wa4\/b2+LO\/vntdQM99NBDj6v3uKp1Ayh7ASwdEVA=",
      "encoding":"base64",
      "height":56,
      "name":"back",
      "opacity":0.5,
      "type":"tilelayer",
      "visible":true,
      "width":100,
      "x":0,
      "y":0
      },
      {
      "compression":"zlib",
      "data":"eJzt0cEJACAQwLDb\/+HM\/h1AK6SQCbpmZgF8RG\/zo5Ufrfxo5UcrP1r50cqPVn608qOVH638aOVHKz9a+dHKj1Z+tPKjlR+t\/GjlRys\/WvnRyo9WfrTyo5Ufrfxo5UcrP1r50cqPVn608qPV+QMAAAAAAACAuzYTpBAM",
      "encoding":"base64",
      "height":56,
      "name":"front",
      "opacity":1,
      "type":"tilelayer",
      "visible":true,
      "width":100,
      "x":0,
      "y":0
      },
      {
      "color":"#5555ff",
      "draworder":"topdown",
      "height":0,
      "name":"mods",
      "objects":[],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      },
      {
      "color":"#ff0000",
      "draworder":"topdown",
      "height":0,
      "name":"objects",
      "objects":[
      {
      "gid":6925,
      "height":76,
      "id":796,
      "name":"teleporter",
      "properties":
      {
    
      },
      "rotation":0,
      "type":"",
      "visible":true,
      "width":42,
      "x":104,
      "y":296
      },
      {
      "gid":2147486492,
      "height":48,
      "id":808,
      "name":"wardrobe",
      "properties":
      {
    
      },
      "rotation":0,
      "type":"",
      "visible":true,
      "width":63,
      "x":17,
      "y":296
      },
      {
      "gid":2845,
      "height":48,
      "id":809,
      "name":"woodplatform",
      "properties":
      {
    
      },
      "rotation":0,
      "type":"",
      "visible":true,
      "width":88,
      "x":201.666666666667,
      "y":296
      },
      {
      "gid":4007,
      "height":40,
      "id":810,
      "name":"gamestation",
      "properties":
      {
    
      },
      "rotation":0,
      "type":"",
      "visible":true,
      "width":24,
      "x":345.666666666667,
      "y":296
      },
      {
      "gid":8094,
      "height":32,
      "id":816,
      "name":"apexshop",
      "properties":
      {
    
      },
      "rotation":0,
      "type":"",
      "visible":true,
      "width":133,
      "x":391,
      "y":279
      }],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      },
      {
      "color":"#ffff00",
      "draworder":"topdown",
      "height":0,
      "name":"wiring - lights & guns",
      "objects":[],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      },
      {
      "color":"#ff0000",
      "draworder":"topdown",
      "height":0,
      "name":"monsters & npcs",
      "objects":[],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      },
      {
      "color":"#00ffff",
      "draworder":"topdown",
      "height":0,
      "name":"wiring - locked door",
      "objects":[],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      },
      {
      "draworder":"topdown",
      "height":0,
      "name":"outside the map",
      "objects":[],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      },
      {
      "draworder":"topdown",
      "height":0,
      "name":"anchors etc",
      "objects":[
      {
      "gid":194,
      "height":8,
      "id":797,
      "name":"start",
      "properties":
      {
    
      },
      "rotation":0,
      "type":"",
      "visible":true,
      "width":8,
      "x":121,
      "y":261
      }],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      },
      {
      "draworder":"topdown",
      "height":0,
      "name":"items",
      "objects":[],
      "opacity":1,
      "type":"objectgroup",
      "visible":true,
      "width":0,
      "x":0,
      "y":0
      }],
    "nextobjectid":817,
    "orientation":"orthogonal",
    "renderorder":"right-down",
    "tileheight":8,
    "tilesets":[
      {
      "firstgid":1,
      "source":"..\/tilesets\/packed\/materials.json"
      },
      {
      "firstgid":191,
      "source":"..\/tilesets\/packed\/miscellaneous.json"
      },
      {
      "firstgid":211,
      "source":"..\/tilesets\/packed\/liquids.json"
      },
      {
      "firstgid":239,
      "source":"..\/tilesets\/packed\/supports.json"
      },
      {
      "firstgid":275,
      "source":"..\/tilesets\/packed\/objects-by-race\/generic.json"
      },
      {
      "firstgid":2040,
      "source":"..\/tilesets\/packed\/objects-by-race\/ancient.json"
      },
      {
      "firstgid":2157,
      "source":"..\/tilesets\/packed\/objects-by-race\/apex.json"
      },
      {
      "firstgid":2525,
      "source":"..\/tilesets\/packed\/objects-by-race\/avian.json"
      },
      {
      "firstgid":2829,
      "source":"..\/tilesets\/packed\/objects-by-race\/floran.json"
      },
      {
      "firstgid":3024,
      "source":"..\/tilesets\/packed\/objects-by-race\/glitch.json"
      },
      {
      "firstgid":3249,
      "source":"..\/tilesets\/packed\/objects-by-race\/human.json"
      },
      {
      "firstgid":3528,
      "source":"..\/tilesets\/packed\/objects-by-race\/hylotl.json"
      },
      {
      "firstgid":3759,
      "source":"..\/tilesets\/packed\/objects-by-race\/novakid.json"
      },
      {
      "firstgid":3785,
      "source":"..\/tilesets\/packed\/objects-by-category\/crafting.json"
      },
      {
      "firstgid":3861,
      "source":"..\/tilesets\/packed\/objects-by-category\/decorative.json"
      },
      {
      "firstgid":5162,
      "source":"..\/tilesets\/packed\/objects-by-category\/door.json"
      },
      {
      "firstgid":5278,
      "source":"..\/tilesets\/packed\/objects-by-category\/farmable.json"
      },
      {
      "firstgid":5353,
      "source":"..\/tilesets\/packed\/objects-by-category\/furniture.json"
      },
      {
      "firstgid":5679,
      "source":"..\/tilesets\/packed\/objects-by-category\/light.json"
      },
      {
      "firstgid":6096,
      "source":"..\/tilesets\/packed\/objects-by-category\/other.json"
      },
      {
      "firstgid":6392,
      "source":"..\/tilesets\/packed\/objects-by-category\/pot.json"
      },
      {
      "firstgid":6689,
      "source":"..\/tilesets\/packed\/objects-by-category\/sapling.json"
      },
      {
      "firstgid":6690,
      "source":"..\/tilesets\/packed\/objects-by-category\/spawner.json"
      },
      {
      "firstgid":6705,
      "source":"..\/tilesets\/packed\/objects-by-category\/storage.json"
      },
      {
      "firstgid":6923,
      "source":"..\/tilesets\/packed\/objects-by-category\/teleporter.json"
      },
      {
      "firstgid":6955,
      "source":"..\/tilesets\/packed\/objects-by-category\/tools.json"
      },
      {
      "firstgid":6960,
      "source":"..\/tilesets\/packed\/objects-by-category\/trap.json"
      },
      {
      "firstgid":7164,
      "source":"..\/tilesets\/packed\/objects-by-category\/wire.json"
      },
      {
      "firstgid":7349,
      "source":"..\/tilesets\/packed\/objects-by-type\/container.json"
      },
      {
      "firstgid":7618,
      "source":"..\/tilesets\/packed\/objects-by-type\/farmable.json"
      },
      {
      "firstgid":7696,
      "source":"..\/tilesets\/packed\/objects-by-type\/loungeable.json"
      },
      {
      "firstgid":7952,
      "source":"..\/tilesets\/packed\/objects-by-type\/noisy.json"
      },
      {
      "firstgid":7993,
      "source":"..\/tilesets\/packed\/objects-by-type\/teleporter.json"
      },
      {
      "firstgid":8018,
      "source":"..\/tilesets\/packed\/huge-objects.json"
      },
      {
      "firstgid":8094,
      "source":"..\/..\/..\/..\/..\/..\/..\/..\/Users\/AllofUs\/Desktop\/galacticshops.json"
      }],
    "tilewidth":8,
    "version":1,
    "width":100
    }
    
    As seen in Tiled
    tiled_map.png
     
    Last edited by a moderator: Aug 23, 2016
  2. Inf_Wolf14

    Inf_Wolf14 Parsec Taste Tester

    Map file looks fine, but for the image in Tiled, try cropping and using a one-frame image for the shop.
    Not sure if it would break it but, the image you provide determines the object width and height in the map.

    (For example, my Scholar Bookcase has 5 frames, but the image in Tiled only shows the first one.)
    (Also, put a spoiler around your file contents. :p)
     
  3. The | Suit

    The | Suit Agent S. Forum Moderator

    Please keep code in [code] [/code] tags.
    This prevents massive pages from forming and keeps it nice and clean.
     
  4. Tremerion

    Tremerion Existential Complex

    Ok. This is still not working with custom Tileset.
    Tileset .json file.
    Code:
    { "columns":0,
     "margin":0,
     "name":"galacticshops",
     "properties" : {},
     "spacing":0,
     "tilecount":1,
     "tileheight":32,
      "tileproperties" : {
      "0" : {
      "//description" : "...",
      "//name" : "apexshop",
      "//shortdescription" : "Apex Shop",
      "imagePositionX" : "0",
      "imagePositionY" : "0",
      "object" : "apexshop"
      }
      },
     "tiles":
      {
      "0":
      {
      "image":"..\/..\/..\/Program Files (x86)\/Steam\/steamapps\/common\/Starbound\/mods\/Galactic Shops by Tremerion\/objects\/crafting\/apexshop\/apexshop_tiled.png"
      }
      },
     "tilewidth":19
    }
    
    Dungeon is crashing when using this object. Without it, all works great. Am I doing something wrong?
     
  5. Mirau

    Mirau Pangalactic Porcupine

    I don't have anything in particular to add as far as helping, but I'm very curious to see how this gets resolved.
     
  6. Mjollna

    Mjollna Phantasmal Quasar

    Hi !

    When your dungeon is crashing, the error log doesn't say anything useful ? Since your problem has evolved since your first post, maybe the error has changed a little bit too... ?
    Also another question : is your object working outside the dungeon placing problem ? If you try to spawn the item ingame (with the admin command for example), is it all ok ?

    I've tried to create a custom dungeon with a custom asset today for testing purposes, and after hours I finally managed to do it, so maybe I can help.

    Here's what I've done (it's my first attempt, so maybe some stuff is not optimal) :
    (I use Tiled 0.14.2)

    - My mod subfolder :
    dungeons/missions/mydungeon/mydungeon.json + .dungeon file
    objects/myobjectfolder/myobject.object + .png and .frames
    tilesets/packed/mytileset.json
    patch files for dungeon_worlds, instance_worlds + modinfo

    - Starbound with unpacked assets folder for Tiled :
    Starbound/game/tiled/packed/objects/myobject.png (this is the path I use for the json tileset image value : "../../../../tiled/packed/objects/myobject.png")
    Starbound/game/assets/packed/tilesets/packed/mytileset.json (it's a copy of the file in the mods folder)
    Starbound/game/assets/packed/dungeons/missions/mydungeon/ (also identical to the mods content folder)
     
  7. Tremerion

    Tremerion Existential Complex

    I was trying to add my object from one of my mods to dungeon.

    It is working now!!! :D Epic Thanks fo you! :D Finaly it is working! :D
     
  8. Mjollna

    Mjollna Phantasmal Quasar

    Yay I'm happy your problem is solved \o/
     

Share This Page