prefab.json - How do I import?

Discussion in 'Content Creation' started by davidinark, Nov 28, 2023.

  1. davidinark

    davidinark
    Expand Collapse

    Joined:
    Jan 9, 2016
    Messages:
    156
    I created a log cabin using logs in East Coast USA. I selected all the bits and packed them into a prefab, which generated a prefab.json file. I did NOT save the level, thinking I could come back and add the cabin anytime. The cabin does not show up in the asset browser, but is still saved in the art\prefabs folder.

    How do I bring that prefab back into my map?

    Thanks!
     
  2. charge_1

    charge_1
    Expand Collapse

    Joined:
    Nov 11, 2020
    Messages:
    1,005
    Hmm. Maybe try to clear cache. If all else fails game reinstall?

    disclaimer: I have no idea what I’m doing so you probably shouldn’t take information from me
     
  3. ltntai

    ltntai
    Expand Collapse

    Joined:
    Mar 18, 2017
    Messages:
    671
    I tried to replicate your situation and managed to salvage unsaved prefab objects.

    - Copy-paste the {"class":"TSStatic",... lines from the prefab.json to the items.level.json in your map's main/MissionGroup/LevelObjects/
    - Remove the prefab.json from the map files
    - The log house should show up on the map and the logs should be in SceneTree/SimGroup_/
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice