Modding Help New to Modding, attempting to create a Custom SAIL

Discussion in 'Starbound Modding' started by PreludeInZ, Jul 13, 2017.

  1. PreludeInZ

    PreludeInZ Master Chief

    I've got all the basics hammered out, and aside from some muddy animations that need tidying up, almost everything works as intended (I am not an artist/designer, I am very much just an amateur who wanted something and decided to make it myself).

    So, I used what may have been an outdated template/tutorial found here:



    and made myself a passable looking custom SAIL, at least as far as the shipboard tech station and the actual portrait go:

    http://preludeinz.tumblr.com/private/162884140963/tumblr_osyg2oyyQv1rdq5tf

    in the limited time I've had to test it, it's been pretty good, except for one issue I don't know how to solve---the quest portrait is loading the wrong image (in the lower corner, sorry for the shortness of the capture):

    http://preludeinz.tumblr.com/private/162884171726/tumblr_osyg4joqo21rdq5tf

    I can screencap the contents of my mod folder as well, if that'll help, but it's very late and I figured I would just see if anyone knew of an easy fix before I went to bed.

    The questions I have are:

    1) How do I fix the quest portrait?
    2) Is it possible/relatively easy to alter the actual name of the SAIL console?

    Thanks in advance!
     
  2. IHart

    IHart Scruffy Nerf-Herder

    1) The fields from the image that are loaded are defined in a frames file. Edit your image to match the default frames file or add your own frames file. Do not edit the default frames file, you will break other portraits.

    2) The name displayed at the top of the ai window is defined in /interface/ai/ai.config
     
  3. cpeosphoros

    cpeosphoros Orbital Explorer

    @PreludeInZ, you migh want to have a look at this guy's code. Unfortunately I was not able to find his mods here in the forum. Anyways, he does a lot of SAIL mods. You may grab some inspiration from there.
     
  4. Cyel

    Cyel Scruffy Nerf-Herder

    ^I didn't made most of those, just "adapted" existing ones to work with the 'main' mod, which is http://steamcommunity.com/sharedfiles/filedetails/?id=947429656
    The main problem with S.A.I.L. mods is that they need to patch each and every species for it to work with modded ones, which is pretty hardcore; that mod tries to make it easier (both on the user and the modder) (and also adds a bit more stuff) by using easily-made "chips"; if you want to use it, there's a template available there: https://github.com/xn-5o8h/sbmod_scriptedsail_templateaichip/releases
    Main issue of the mod is that it cannot actually modify the radiomessage's portrait.

    I think you're using the wrong spritesheet for your "portraitFrames" parameter (either wrong file or you just copy-pasted it without modifications); radiomessage portaits use the one in /ai/portraits, which is slightly different from the one in /ai/
     
  5. PreludeInZ

    PreludeInZ Master Chief

    I've fixed my original issue, with help from the guy whose tutorial I used, so that's all sorted out. It was exactly what @Cyel said, and once I'd sorted that out it loaded correctly.

    As to the other thing, I still haven't been able to change the AI name. When I unpacked the game files, I didn't find ai.config in the interface/ai/ folder. I think possibly it didn't finish unpacking all the way or something like that, I was going to give it another try this evening, just to make sure I hadn't accidentally missed it. I'm also wondering if there's another element of the interface I can change: namely the little ai portrait up in the top corner of the actual SAIL panel.

    [​IMG]

    Any help is appreciated!
     
  6. Cyel

    Cyel Scruffy Nerf-Herder

    Yes, they're both in /interface/ai/ai.config, all of it is in the "windowtitle" widget
    Code:
      "windowtitle" : {
      "type" : "title",
      "title" : "S.A.I.L.",
      "subtitle" : "Ship-based Artificial Intelligence Lattice",
      "position" : [0, 254],
      "icon" : {
      "type" : "image",
      "file" : "/interface/ai/AIicon.png",
      "position" : [0, -20],
      "zlevel" : -1
      }
      },
     
    IHart likes this.
  7. Aardbeiman

    Aardbeiman Orbital Explorer

  8. DrPvtSkittles

    DrPvtSkittles Master Astronaut

    [​IMG]

    I downloaded your mod off steam. It works for me. Though I didn't use it with the steam version of Starbound, I unpacked it and put it into my mods folder.

    Heads up, .modinfo is outdated. Use _metadata. Steam auto creates one for you if you use the steam uploader.
     

    Attached Files:

  9. Aardbeiman

    Aardbeiman Orbital Explorer

    Thank you so much!

    It seems I still had a different SAIL mod installed. Should have checked that.
    Now I have to fix the texts and stuff.
    Is there any way to make the onboard SAIL frames slower?
     
    Last edited: Aug 4, 2018
  10. DrPvtSkittles

    DrPvtSkittles Master Astronaut

    That's why I try to have no other mods installed just in case :p

    Hummm I would think you would need to repeat frames. Then change the .frames file to reflect your extra frames.
     
  11. DrPvtSkittles

    DrPvtSkittles Master Astronaut

    I should also add, be careful of following older guides, starbound was in beta for a long time, and sadly many guides are outdated.

    I am happy that this one worked for you!
     
  12. Aardbeiman

    Aardbeiman Orbital Explorer

    Is ai.config outdated as well?
    For some reason the text won't change beyond the template I used (forcedminer's fallout one).

    Aaaannndd... It works, for some reason. I really should try to fix my own mistakes more often.
     
    Last edited: Aug 4, 2018
    DrPvtSkittles likes this.

Share This Page