Modding Help Custom Ship Pet

Discussion in 'Starbound Modding' started by projectmayhem, Mar 12, 2017.

  1. projectmayhem

    projectmayhem Spaceman Spiff

    I copied the Human Ship files and added a new object into my object/ships/techstation folder. Its a copy of the humantechstation where everything is the same, except the pet. I changed it to petr2d2 instead of petcat.

    I renamed the file wookietechstation, and in the blockKey.config file , I changed humantechstation to wookietechstation.
    I load in as my Wookie species, and there is my R2D2 pet following me around. However, I cant progress past the reboot dialog. it repeats over and over. Any idea why this would be happening?

    I'm taking a break for the night and going to tackle it again in the morning.
     
  2. bk3k

    bk3k Oxygen Tank

    Did you change the "uniqueId" on it?

    The object I mean.

    By the way while on the subject, give me your species "name" string
    You already provided the pet's string.

    I have to compile this from all the races, and yours will be one less to look at. I have a script to choose the race appropriate pet for custom races. But I need to build a list before that's useful.
     
  3. HerrJunky

    HerrJunky Void-Bound Voyager

    Ok I can't help you without a full log of this event, because it seems to be an error related to your techstations scripts i think...
    Could you just include your renamed techstation files as well ?
    I think you're just missing the right scriptpath or something, but it would help a lot.

    Edit: i just had an idea of how to hook into the game and do my stuff (not related to this topic, its related to mine :nuruwink:)
    Thank you so much :nuruawe:
     
  4. projectmayhem

    projectmayhem Spaceman Spiff


    I didn't change the uniqueId, I started digging through the Skelekin Race mod I downloaded and his uniqueId wasnt changed, so I left mine the same too.

    As for the species name string, is this what you mean? "kind" : "wookie",
     
  5. projectmayhem

    projectmayhem Spaceman Spiff

    I did have the colonyTags and race set to wookie, but I changed them back to human when it wasnt working last night too see if it would help. Its just a copy of the human tech station folder, but everything in the folder is renamed wookie, and I changed the names in the techstation file to reflect the new file names


    {
    "objectName" : "wookietechstation",
    "colonyTags" : ["human"],
    "printable" : false,
    "rarity" : "Common",

    "interactAction" : "OpenAiInterface",

    "category" : "decorative",
    "lightColor" : [61, 88, 102],
    "lightPosition" : [-1, 0],

    "description" : "Ship-based Artificial Intelligence Lattice, or S.A.I.L for short.",
    "shortdescription" : "S.A.I.L",
    "race" : "human",

    "apexDescription" : "I can talk to SAIL through this console.",
    "avianDescription" : "I can use this station to talk to SAIL.",
    "floranDescription" : "Floran use thisss magic panel to talk to SAIL!",
    "glitchDescription" : "Happy. This station allows me to talk to SAIL.",
    "humanDescription" : "This station allows me to communicate with SAIL.",
    "hylotlDescription" : "This console allows me to communicate with SAIL.",
    "novakidDescription" : "This here station let's me talk with SAIL.",

    "inventoryIcon" : "wookietechstationicon.png",
    "orientations" : [
    {
    "imageLayers" : [ { "image" : "wookietechstation.png:<color>.<frame>", "fullbright" : true }, { "image" : "wookietechstationlit.png:<color>.<frame>" } ],
    "imagePosition" : [-16, -8],
    "frames" : 32,
    "animationCycle" : 3.0,

    "spaceScan" : 0.1,
    "anchors" : [ "background" ]

    }
    ],

    "offeredQuests" : [ "gaterepair" ],

    "animation" : "/objects/ship/techstation.animation",
    "scripts" : [
    "/objects/spawner/techstation.lua"
    ],
    "scriptDelta" : 20,
    "shipPetType" : "petr2d2",
    "spawnOffset" : [2, -1],

    "chatPortrait" : "/ai/portraits/humanportrait.png:yell.1",
    "dialog" : {
    "wakeUp" : [
    [ "Rebooting...", "/ai/portraits/humanportrait.png:unique.1" ],
    [ "I am S.A.I.L, your Ship-based Artificial Intelligence Lattice. I manage the maintainance of your ship.", "/ai/portraits/humanportrait.png:talk.0" ],
    [ "I am also programmed to offer you information and advice.", "/ai/portraits/humanportrait.png:talk.1" ],
    [ "Earth was attacked by an unknown force, and was subsequently annihilated.", "/ai/portraits/humanportrait.png:talk.0" ],
    [ "The ship's navigation systems were damaged in our escape. Our location is currently unknown.", "/ai/portraits/humanportrait.png:talk.1" ]
    ],
    "wakePlayer" : [
    [ "System is down, please reboot.", "/ai/portraits/humanportrait.png:unique.1"],
    [ "Please reboot the system.", "/ai/portraits/humanportrait.png:unique.1"],
    [ "Reboot process remains uninitiated.", "/ai/portraits/humanportrait.png:unique.1"],
    [ "To make use of your S.A.I.L please reboot.", "/ai/portraits/humanportrait.png:unique.1" ],
    [ "Rebooting has shown to improve ship interaction satisfaction levels by 73%.", "/ai/portraits/humanportrait.png:unique.1"],
    [ "Rebooting requires a conscious entity to interact with the S.A.I.L console.", "/ai/portraits/humanportrait.png:unique.1" ]
    ]
    },

    "uniqueId" : "techstation"
    }
     
  6. projectmayhem

    projectmayhem Spaceman Spiff

    Here is the blockKey file where I changed the techstation from human to wookie. But like the other files, I left everything the same and just changed the one part from humantechstation to wookietechstation


    {
    "blockKey" : [
    {
    "value" : [255, 255, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : false
    },

    {
    "value" : [0, 0, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true
    },

    {
    "value" : [255, 0, 0, 255],
    "foregroundBlock" : true,
    "backgroundBlock" : true
    },

    {
    "value" : [0, 255, 0, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipwall",
    "flags" : [ "shipLockerPosition" ],
    "object" : "humanshiplocker",
    "objectParameters" : {
    "treasurePools" : [ "humanStarterTreasure" ],
    "level" : 0.5,
    "unbreakable" : true
    },
    "objectResidual" : true
    },

    {
    "value" : [0, 128, 0, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipwall",
    "object" : "humanshiplockerTier0",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [142, 255, 142, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipwall",
    "object" : "wookietechstation",
    "objectParameters" : {
    "unbreakable" : true
    },
    "objectResidual" : true
    },

    {
    "value" : [255, 87, 81, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "brokenhumanfuelhatch",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [255, 90, 90, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "humanfuelhatch",
    "objectParameters" : {
    "unbreakable" : true
    },
    "objectResidual" : true
    },

    {
    "value" : [255, 255, 0, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipdetails",
    "object" : "apexshiplight",
    "objectResidual" : true
    },

    {
    "value" : [191, 191, 0, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipdetails",
    "object" : "apexshiplightBroken",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [128, 128, 0, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipdetails",
    "object" : "apexshiplight",
    "objectParameters" : {
    "unbreakable" : true,
    "defaultLightState" : false
    }
    },

    {
    "value" : [255, 102, 0, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : false,
    "object" : "humanshipdoor",
    "objectResidual" : true
    },

    {
    "value" : [128, 51, 0, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : false,
    "object" : "humanshipdoorBroken",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [174, 137, 81, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "shipengine",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [156, 0, 255, 255],
    "anchor" : true,
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipdetails",
    "object" : "humanteleporter",
    "flags" : [ "playerSpawn" ],
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [79, 0, 128, 255],
    "anchor" : true,
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipdetails",
    "object" : "humanteleporterTier0",
    "flags" : [ "playerSpawn" ],
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [167, 167, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "boosterflamehuman",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [168, 168, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "boosterflamehuman2",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [180, 180, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "boosterflamehuman3",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [166, 166, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "boosterflame",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [100, 100, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "bigboosterflameavian",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [200, 200, 200, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "bigboosterflamehuman",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [168, 168, 168, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "smallboosterflame",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [190, 190, 190, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "smallboosterflamehuman2",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [0, 255, 255, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "humancaptainschair",
    "objectDirection" : "right",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [122, 122, 122, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "invisiblelight",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [255, 232, 128, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "object" : "invisiblesparker",
    "objectParameters" : {
    "unbreakable" : true
    }
    },

    {
    "value" : [255, 255, 144],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipwall"
    },

    {
    "value" : [255, 117, 144],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipdetails"
    },

    {
    "value" : [255, 117, 255],
    "foregroundBlock" : false,
    "backgroundBlock" : true,
    "backgroundMat" : "apexshipsupport"
    },

    {
    "value" : [255, 255, 220],
    "foregroundBlock" : true,
    "backgroundBlock" : false,
    "foregroundMat" : "hazard",
    "foregroundResidual" : true
    },

    {
    "value" : [255, 200, 220],
    "foregroundBlock" : true,
    "backgroundBlock" : true,
    "foregroundMat" : "hazard",
    "foregroundResidual" : true,
    "backgroundMat" : "apexshipdetails"
    }
    ]
    }

     
  7. projectmayhem

    projectmayhem Spaceman Spiff

    I tried changing the uniqueId to see what would happen, all the tech station will do after that is bring up the crew/quest screen and say Zzzz....Zzzz..
     
  8. bk3k

    bk3k Oxygen Tank

    Is there anything at all - any errors - in starbound.log?

    I'm about to head to bed but you'd want to post that anyhow.

    And yes, "wookie" is what I needed to know because that's what the game should report your species as. Now I've added you to the table lookup and they won't have a pet cat with my techstations. It is getting added to the Shipyard, but also Hull Plating Blocks which has several versions(old styled I guess).
     
  9. projectmayhem

    projectmayhem Spaceman Spiff

    08:53:19.806] [Error] Exception caught loading asset: /ships/wookie/wookieblockKey.config:blockKey, (AssetException) Could not read JSON asset /ships/wookie/wookieblockKey.config:blockKey

    Caused by: (AssetException) No such asset '/ships/wookie/wookieblockKey.config'


    [08:53:19.815] [Error] UniverseServer: exception caught: (AssetException) Error loading asset /ships/wookie/wookieblockKey.config:blockKey


    [08:53:19.924] [Error] UniverseServer: exception caught: (AssetException) Error loading asset /ships/wookie/wookieblockKey.config:blockKey

    it repeats that one a lot. I didnt even think to look at the log file last night, i figured since I wasnt actually crashing, it wouldnt have anything.
     
  10. projectmayhem

    projectmayhem Spaceman Spiff

    ok, renamed my blockkey file to wookieblockkey and everything is working now. For some reason I only changed it in the tier1 ship.
     
    bk3k likes this.

Share This Page