Modding Help nightly capturepods

Discussion in 'Starbound Modding' started by magewish4, Jan 7, 2016.

Tags:
  1. magewish4

    magewish4 Pangalactic Porcupine

    I'm trying to get my creaturecages mod working with nightly (since the current stable has only critters :( ). Unfortunatly, I'm having trouble figuring out how the attach a script to the monster that will be displayed.

    Previously:
    Code:
     creature["arguments"]["scripts"] = {"/objects/generic/creaturecage/cagedcreatureai.lua"}
    world.spawnMonster(creature["type"], {entity.position()[1], entity.position()[2] + 2}, creature["arguments"])
    
    Now:
    Code:
    parameters["scripts"] = "/objects/generic/creaturecage/cagedcreatureai.lua"
    storage.displayMonster = world.spawnMonster(monsterStored.config.type, entity.position(), parameters)
    
    However, the new parameters for spawning a monster don't seem to have a scripts parameter and trying to add one results in "Could not spawn Monster of type 'gleap', exception caught: (JsonException) Improper conversion to JsonArray from string"

    Any ideas about attaching a script to these guys?
     

Share This Page