Modding Help How do I force the terrain generator to place a dungeon?

Discussion in 'Starbound Modding' started by latias1290, Apr 7, 2015.

  1. latias1290

    latias1290 Phantasmal Quasar

    I have been looking for a glitch codex for the quest The Good Book and I am using this rather cheaty method of finding castles or villages by looking at the log after going to a new planet. For instance, when it says "Placing tombthing at (x,y) (NOT FORCED)" it means it placed a tomb at that location. However, that it says "(NOT FORCED)" leads me to believe that there is a way to force it to place a dungeon of a certain type at a location. Is there any way to do that, and if so, how?
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    No.
    But you can use admin commands just to quickly spawn the item
    http://community.playstarbound.com/threads/collection-of-admin-codes-for-nightly-build.80548/

    Or if you want a less cheaty method
    Create a mod - modifying terrestial_config which has a 100% chance to spawn the dungeon on a particular type of planet.

    Though I will let you figure out the 2nd part since it is a bit too lengthy to explain it outright and the file is pretty much self explanatory.
     
    lazarus78 and latias1290 like this.
  3. lazarus78

    lazarus78 The Waste of Time

    Took me about 5 minutes of tinkering but I figured it out. Thanks! Now I can mess around with dungeons on moons!
     
    The | Suit likes this.
  4. latias1290

    latias1290 Phantasmal Quasar

    I did what you said, in a way, but it doesn't generate prisons on 100% and even generates dungeons I removed from the list.

    I put a file named "terrestrial_worlds.config" on the top folder of my mod which also contains the .modinfo file. I left all other code in there but I changed the parts that seemed like the right ones to me (all the dungeon names and count ranges).
    This is what I have for each biome:
    Code:
    "(BIOME)" : {
         ...
          "layers" : {
            "surface" : {
              "dungeonCountRange" : [1, 1],
              "dungeons" : ["humanprison" ]
            },
            ...
          }
        },
    (Note: I found one legitimately before I read your answer, and I got the mission to get a USCM penal colony sign which took me too long to find.)
    I removed all other dungeon types and set the count range to be 1, which to me should always generate a prison, and only one prison. But it still generates other stuff like avian towers and apex research labs. What is wrong here?

    Starbound.log says it has loaded my mod successfully after the vanilla assets, and it shows my mod on the title screen.
     
  5. lazarus78

    lazarus78 The Waste of Time

    Do a patch, not a replace.

    I added mine to the moons because they have nothing on them normally:
    Code:
    [
        {
            "op":"add",
            "path":"/planetTypes/moon/layers/surface",
            "value": {
                "primaryRegion" : [ "moon" ],
                "dungeonCountRange" : [5, 5],
                "dungeons" : [ "LazOutpost" ] 
            }
        }
    ]
    
    The 5 out of 5 makes sure they are easily found. I had to include the "primaryregion" even though it is already defined because I couldnt get it to add the other lines without removing the first.

    Make sure to delete the world file to ensure the game regenerates everything following the patched generation rules.
     
    1nfinitezer0 likes this.
  6. latias1290

    latias1290 Phantasmal Quasar

    Where did you put that code? When I put it in terrestrial_planets.config.patch it generates a shitton of incoherent errors and crashes... I didn't know where to put it otherwise?
     
    Last edited: Apr 9, 2015
  7. lazarus78

    lazarus78 The Waste of Time

    Goes in the mod root folder as terrestrial_planets.config.patch
     
  8. latias1290

    latias1290 Phantasmal Quasar

    It still generates errors :/
     
  9. lazarus78

    lazarus78 The Waste of Time

    What errors? And if you copied my code, did you change the "LazOutpost" part?
     
  10. latias1290

    latias1290 Phantasmal Quasar

    This is my code:
    Code:
    [
        {
            "op" : "add",
            "path" : "/planetTypes/moon/layers/surface",
            "value" : {
                "primaryRegion" : [ "moon" ],
                "dungeonCountRange" : [5, 5],
                "dungeons" : [ "humanprison" ]
            }
        }
    ]
    And these are the errors:

    Code:
    Info: Done fully loading Star::Root
    [18:35:56.576] Info: Renderer destroyed
    [18:35:56.998] Error: Exception caught loading asset: /terrestrial_worlds.config, (AssetException) Could not read variant asset /terrestrial_worlds.config
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star13StarExceptionC2ESs+0x75) [0x10e1dc5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star13StarExceptionC2ESsRKSt9exception+0x2d) [0x10e221d]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star14AssetExceptionC2ESsRKSt9exception+0x23) [0x9a6893]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9a19ad]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets16processAssetDataESt8functionIFSt10shared_ptrINS0_9AssetDataEEvEE+0x33) [0x998e63]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets11loadVariantERKNS_6StringE+0x52) [0x998f22]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets9loadAssetERKNS0_7AssetIdE+0x23c) [0x9a47ec]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets6doLoadERKNS0_7AssetIdE+0x22) [0x9a4da2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets8getAssetENS0_7AssetIdE+0x153) [0x9a5033]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets7variantERKNS_6StringE+0xac) [0x9a519c]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star34generateTerrestrialWorldParametersERKNS_6StringES2_m+0x84) [0xcf9bf4]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19CelestialParametersC2ENS_19CelestialCoordinateEmNS_6StringENS_7VariantE+0x340) [0xa0bc10]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase13produceSystemERNS_12RandomSourceERKNS_6VectorIiLm3EEE+0xc2f) [0x9de80f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase12produceChunkERKNS_6VectorIiLm2EEE+0x4b6) [0x9e05a6]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e158b]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e1c65]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase11scanSystemsERKNS_3BoxIiLm2EEE+0xaf) [0x9e1f2f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase15findRandomWorldEjjSt8functionIFbNS_19CelestialCoordinateEEE+0xd7) [0x9dbbf7]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star5TitleC1ESt10shared_ptrINS_6PlayerEES1_INS_13PlayerStorageEES1_INS_9CinematicEES1_INS_5MixerEES1_INS_8RendererEES1_INS_22AssetTextureCollectionEE+0x392) [0x82eff2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN9__gnu_cxx13new_allocatorIN4Star5TitleEE9constructIS2_IRSt10shared_ptrINS1_6PlayerEERS5_INS1_13PlayerStorageEERS5_INS1_9CinematicEES5_INS1_5MixerEERS5_INS1_8RendererEERS5_INS1_22AssetTextureCollectionEEEEEvPT_DpOT0_+0x103) [0x7cee83]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNSt12__shared_ptrIN4Star5TitleELN9__gnu_cxx12_Lock_policyE2EEC1ISaIS1_EIRSt10shared_ptrINS0_6PlayerEERS7_INS0_13PlayerStorageEERS7_INS0_9CinematicEES7_INS0_5MixerEERS7_INS0_8RendererEERS7_INS0_22AssetTextureCollectionEEEEESt19_Sp_make_shared_tagRKT_DpOT0_+0x72) [0x7cefd2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star17ClientApplication6updateEv+0x55c) [0x7c98ac]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19StarApplicationBase3runEv+0x1af) [0x100946f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(main+0x7c8) [0x7b5818]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fe3de925ec5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x7c394d]
    Caused by: (JsonParsingException) Cannot parse json file: /terrestrial_worlds.config
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star13StarExceptionC2ESs+0x75) [0x10e1dc5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star13StarExceptionC2ESsRKSt9exception+0x2d) [0x10e221d]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets11readVariantERKNS_6StringE+0x323) [0x99fcf3]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9a18a5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets16processAssetDataESt8functionIFSt10shared_ptrINS0_9AssetDataEEvEE+0x33) [0x998e63]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets11loadVariantERKNS_6StringE+0x52) [0x998f22]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets9loadAssetERKNS0_7AssetIdE+0x23c) [0x9a47ec]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets6doLoadERKNS0_7AssetIdE+0x22) [0x9a4da2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets8getAssetENS0_7AssetIdE+0x153) [0x9a5033]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets7variantERKNS_6StringE+0xac) [0x9a519c]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star34generateTerrestrialWorldParametersERKNS_6StringES2_m+0x84) [0xcf9bf4]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19CelestialParametersC2ENS_19CelestialCoordinateEmNS_6StringENS_7VariantE+0x340) [0xa0bc10]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase13produceSystemERNS_12RandomSourceERKNS_6VectorIiLm3EEE+0xc2f) [0x9de80f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase12produceChunkERKNS_6VectorIiLm2EEE+0x4b6) [0x9e05a6]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e158b]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e1c65]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase11scanSystemsERKNS_3BoxIiLm2EEE+0xaf) [0x9e1f2f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase15findRandomWorldEjjSt8functionIFbNS_19CelestialCoordinateEEE+0xd7) [0x9dbbf7]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star5TitleC1ESt10shared_ptrINS_6PlayerEES1_INS_13PlayerStorageEES1_INS_9CinematicEES1_INS_5MixerEES1_INS_8RendererEES1_INS_22AssetTextureCollectionEE+0x392) [0x82eff2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN9__gnu_cxx13new_allocatorIN4Star5TitleEE9constructIS2_IRSt10shared_ptrINS1_6PlayerEERS5_INS1_13PlayerStorageEERS5_INS1_9CinematicEES5_INS1_5MixerEERS5_INS1_8RendererEERS5_INS1_22AssetTextureCollectionEEEEEvPT_DpOT0_+0x103) [0x7cee83]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNSt12__shared_ptrIN4Star5TitleELN9__gnu_cxx12_Lock_policyE2EEC1ISaIS1_EIRSt10shared_ptrINS0_6PlayerEERS7_INS0_13PlayerStorageEERS7_INS0_9CinematicEES7_INS0_5MixerEERS7_INS0_8RendererEERS7_INS0_22AssetTextureCollectionEEEEESt19_Sp_make_shared_tagRKT_DpOT0_+0x72) [0x7cefd2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star17ClientApplication6updateEv+0x55c) [0x7c98ac]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19StarApplicationBase3runEv+0x1af) [0x100946f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(main+0x7c8) [0x7b5818]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fe3de925ec5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x7c394d]
    Caused by: (VariantPatchException) Could not apply patch to base. Could not apply operation to base. Attempted to add a value to already existing key: surface
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star13StarExceptionC2ESs+0x75) [0x10e1dc5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star21VariantPatchExceptionC2ESs+0x23) [0x10d5753]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star12variantPatchERKNS_7VariantES2_+0x1ae) [0x10d2cbe]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets11readVariantERKNS_6StringE+0x1ba) [0x99fb8a]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9a18a5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets16processAssetDataESt8functionIFSt10shared_ptrINS0_9AssetDataEEvEE+0x33) [0x998e63]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets11loadVariantERKNS_6StringE+0x52) [0x998f22]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets9loadAssetERKNS0_7AssetIdE+0x23c) [0x9a47ec]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets6doLoadERKNS0_7AssetIdE+0x22) [0x9a4da2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets8getAssetENS0_7AssetIdE+0x153) [0x9a5033]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets7variantERKNS_6StringE+0xac) [0x9a519c]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star34generateTerrestrialWorldParametersERKNS_6StringES2_m+0x84) [0xcf9bf4]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19CelestialParametersC2ENS_19CelestialCoordinateEmNS_6StringENS_7VariantE+0x340) [0xa0bc10]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase13produceSystemERNS_12RandomSourceERKNS_6VectorIiLm3EEE+0xc2f) [0x9de80f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase12produceChunkERKNS_6VectorIiLm2EEE+0x4b6) [0x9e05a6]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e158b]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e1c65]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase11scanSystemsERKNS_3BoxIiLm2EEE+0xaf) [0x9e1f2f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase15findRandomWorldEjjSt8functionIFbNS_19CelestialCoordinateEEE+0xd7) [0x9dbbf7]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star5TitleC1ESt10shared_ptrINS_6PlayerEES1_INS_13PlayerStorageEES1_INS_9CinematicEES1_INS_5MixerEES1_INS_8RendererEES1_INS_22AssetTextureCollectionEE+0x392) [0x82eff2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN9__gnu_cxx13new_allocatorIN4Star5TitleEE9constructIS2_IRSt10shared_ptrINS1_6PlayerEERS5_INS1_13PlayerStorageEERS5_INS1_9CinematicEES5_INS1_5MixerEERS5_INS1_8RendererEERS5_INS1_22AssetTextureCollectionEEEEEvPT_DpOT0_+0x103) [0x7cee83]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNSt12__shared_ptrIN4Star5TitleELN9__gnu_cxx12_Lock_policyE2EEC1ISaIS1_EIRSt10shared_ptrINS0_6PlayerEERS7_INS0_13PlayerStorageEERS7_INS0_9CinematicEES7_INS0_5MixerEERS7_INS0_8RendererEERS7_INS0_22AssetTextureCollectionEEEEESt19_Sp_make_shared_tagRKT_DpOT0_+0x72) [0x7cefd2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star17ClientApplication6updateEv+0x55c) [0x7c98ac]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19StarApplicationBase3runEv+0x1af) [0x100946f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(main+0x7c8) [0x7b5818]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fe3de925ec5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x7c394d]
    [18:35:57.172] Info: Shutting down Star::Root
    [18:35:59.626] Error: Fatal Exception Caught: (AssetException) Error loading asset /terrestrial_worlds.config
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star13StarExceptionC2ESs+0x75) [0x10e1dc5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star14AssetExceptionC1ESs+0x23) [0x9a6833]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets8getAssetENS0_7AssetIdE+0x1cd) [0x9a50ad]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star6Assets7variantERKNS_6StringE+0xac) [0x9a519c]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star34generateTerrestrialWorldParametersERKNS_6StringES2_m+0x84) [0xcf9bf4]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19CelestialParametersC2ENS_19CelestialCoordinateEmNS_6StringENS_7VariantE+0x340) [0xa0bc10]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase13produceSystemERNS_12RandomSourceERKNS_6VectorIiLm3EEE+0xc2f) [0x9de80f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNK4Star23CelestialMasterDatabase12produceChunkERKNS_6VectorIiLm2EEE+0x4b6) [0x9e05a6]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e158b]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x9e1c65]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase11scanSystemsERKNS_3BoxIiLm2EEE+0xaf) [0x9e1f2f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star23CelestialMasterDatabase15findRandomWorldEjjSt8functionIFbNS_19CelestialCoordinateEEE+0xd7) [0x9dbbf7]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star5TitleC1ESt10shared_ptrINS_6PlayerEES1_INS_13PlayerStorageEES1_INS_9CinematicEES1_INS_5MixerEES1_INS_8RendererEES1_INS_22AssetTextureCollectionEE+0x392) [0x82eff2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN9__gnu_cxx13new_allocatorIN4Star5TitleEE9constructIS2_IRSt10shared_ptrINS1_6PlayerEERS5_INS1_13PlayerStorageEERS5_INS1_9CinematicEES5_INS1_5MixerEERS5_INS1_8RendererEERS5_INS1_22AssetTextureCollectionEEEEEvPT_DpOT0_+0x103) [0x7cee83]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZNSt12__shared_ptrIN4Star5TitleELN9__gnu_cxx12_Lock_policyE2EEC1ISaIS1_EIRSt10shared_ptrINS0_6PlayerEERS7_INS0_13PlayerStorageEERS7_INS0_9CinematicEES7_INS0_5MixerEERS7_INS0_8RendererEERS7_INS0_22AssetTextureCollectionEEEEESt19_Sp_make_shared_tagRKT_DpOT0_+0x72) [0x7cefd2]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star17ClientApplication6updateEv+0x55c) [0x7c98ac]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(_ZN4Star19StarApplicationBase3runEv+0x1af) [0x100946f]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound(main+0x7c8) [0x7b5818]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fe3de925ec5]
    /home/dirk/.steam/steam/steamapps/common/Starbound/linux64/starbound() [0x7c394d]
    
     
  11. lazarus78

    lazarus78 The Waste of Time

    Not sure why its having problems. Works perfectly fine for me. Looks like you are on Linux, not sure how that differs if any from Windows for this.
     
  12. latias1290

    latias1290 Phantasmal Quasar

    I changed the op part to have "replace" instead of "add" when I saw a part of the error log saying something like "surface already exists on planetTypes/moon/layers". It works now. At least, it doesn't crash. I'll put the outcome in a bit.

    Edit: Soo it now still doesn't generate a prison on any moon, leave alone 5 of them. But it doesn't crash, and that's a good thing I guess.
     
  13. The | Suit

    The | Suit Agent S. Forum Moderator

    Not the best way to do it - because this [ the way you did it ] overwrites and not adds
    So it will cause conflict with other mods

    The proper way to do it is. This will have no compatibility issues with other mods.

    Code:
    [
        {
            "op" : "add",
            "path":"/planetTypes/moon/layers/surface/dungeonCountRange",
            "value":[5, 5]
        },
        {
            "op" : "add",
            "path":"/planetTypes/moon/layers/surface/dungeons",
            "value":["LazOutpost"]
        }
    ]
     
    lazarus78 likes this.
  14. lazarus78

    lazarus78 The Waste of Time

    Thanks. I had a feeling I was doing something wrong.
     
  15. The | Suit

    The | Suit Agent S. Forum Moderator

    In case you were courious - post this code in JSON patcher [ you will need to remove the comments from terrestia config http://tools.krza.de/jscs/JSCodeStripper.html ]
    http://json-schema-validator.herokuapp.com/jsonpatch.jsp
    Code:
    [
        {
            "op" : "add",
            "path":"/planetTypes/moon/layers/surface/dungeonCountRange",
            "value":[9, 9]
        },
        {
            "op" : "add",
            "path":"/planetTypes/moon/layers/surface/dungeons",
            "value":["Bob"]
        },
        {
            "op":"add",
            "path":"/planetTypes/moon/layers/surface",
            "value": {
                "primaryRegion" : [ "moon" ],
                "dungeonCountRange" : [5, 5],
                "dungeons" : [ "LazOutpost" ]
            }
        }
    ]
    You will notice that dungeon bob doesn't get added.

    Next move the first 2 operations on bottom and your operation on top.
    You will notice dungeon bob and laz gets added and 9,9 will overwrite 5,5.[DOUBLEPOST=1428599437][/DOUBLEPOST]
    It will only generate on moons you never visited before.
     
    1nfinitezer0 likes this.
  16. lazarus78

    lazarus78 The Waste of Time

    That makes sense. Thanks for the info. I didn't realize it was replacing because there is a function "replace" as well, so I kinda just assumed. (Classic mistake. lol)
     
  17. latias1290

    latias1290 Phantasmal Quasar

    This did not cause it to crash, but it still doesn't generate prisons on moons.
     
  18. The | Suit

    The | Suit Agent S. Forum Moderator

    It will only generate on moons you never visited before
     
  19. latias1290

    latias1290 Phantasmal Quasar

    I know that, I went to a new moon and it didn't generate one.
     
  20. The | Suit

    The | Suit Agent S. Forum Moderator

    Which prision are you doing? floranhell or humanprison?

    Because floranhell might be too big for the moon.
    The names have to be exactly that.


    edit:
    Its better to choose another planet besides the moon.
    Such as Barren
     

Share This Page