Modding Help Inspect descriptions does not work

Discussion in 'Starbound Modding' started by Melendroach, Jul 14, 2017.

  1. Melendroach

    Melendroach Subatomic Cosmonaut

    I'm making a polish translation mod for Starbound. However, after I've changed some of the objects' descriptions, they wouldn't display in the game. Same goes for buttons in the interface, like accept and back. I've just copied the original objects from the files, placed them in proper folders in my mod folder, and changed their descriptions only. It does work for radio messages, npcs' lines and cinematics, though. Here's an example of such file:

    Code:
    {
      "objectName" : "protectorateamp",
      "rarity" : "Common",
      "category" : "decorative",
      "price" : 50,
      "printable" : false,
    
      "description" : "Brakuje tylko gitary.",
      "shortdescription" : "Glosnik Protektoratu",
      "race" : "protectorate",
    
      "apexDescription" : "Silny wzmacniacz.",
      "avianDescription" : "To pudlo jest podlaczone do gitary.",
      "floranDescription" : "Glosssny dzwiekowy karton.",
      "glitchDescription" : "Podziw. Dobrej jakosci wzmacniacz. Ktos zainwestowal w to duzo pikseli.",
      "humanDescription" : "Wzmacniacz!",
      "hylotlDescription" : "Wzmacniacz.",
      "novakidDescription" : "Wzmacniacz. Do wzmacniania.",
    
      "inventoryIcon" : "protectorateampicon.png",
      "orientations" : [
        {
          "image" : "protectorateamp.png:<color>",
          "imagePosition" : [0, 0],
          "frames" : 1,
          "animationCycle" : 0.5,
    
          "spaceScan" : 0.1,
          "anchors" : []
    
        }
      ]
    }
    
    
     
  2. projectmayhem

    projectmayhem Spaceman Spiff

    Try a patch file like this, see if it works.


    Code:
    [
      {
        "op": "replace",
        "path": "/description",
        "value": "Brakuje tylko gitary."
      },
      {
        "op": "replace",
        "path": "/shortdescription",
        "value": "Glosnik Protektoratu"
      },
      {
        "op": "replace",
        "path": "/apexDescription",
        "value": "Silny wzmacniacz."
      },
      {
        "op": "replace",
        "path": "/avianDescription",
        "value": "To pudlo jest podlaczone do gitary."
      },
      {
        "op": "replace",
        "path": "/floranDescription",
        "value": "Glosssny dzwiekowy karton."
      },
      {
        "op": "replace",
        "path": "/glitchDescription",
        "value": "Podziw. Dobrej jakosci wzmacniacz. Ktos zainwestowal w to duzo pikseli."
      },
      {
        "op": "replace",
        "path": "/humanDescription",
        "value": "Wzmacniacz!"
      },
      {
        "op": "replace",
        "path": "/hylotlDescription",
        "value": "Wzmacniacz."
      },
      {
        "op": "replace",
        "path": "/novakidDescription",
        "value": "Wzmacniacz. Do wzmacniania."
      }
    ]
     
    bk3k and lazarus78 like this.
  3. lazarus78

    lazarus78 The Waste of Time

    bk3k likes this.
  4. Melendroach

    Melendroach Subatomic Cosmonaut

    Oh god, thank you sooo much for helping me... again :p Where do I put this? Do I place it under the original descriptions?
     
  5. Melendroach

    Melendroach Subatomic Cosmonaut

  6. lazarus78

    lazarus78 The Waste of Time

    Make a file with the exact same name in the exact same spot as the one you want to patch, but append ".patch" to it. IE, MyConfig.config.patch

    The patch file actually appends the origional when it is loaded up in the game, so you are not replacing anything directly.

    You don't need the origional config in your mod, just the patch file. The code that was posted earlier, that is all you need in there.
     
  7. Melendroach

    Melendroach Subatomic Cosmonaut

    Thanks! Just when I thought there's no help in this forum after 4 unanswered questions, you guys proved me wrong :)
     
  8. lazarus78

    lazarus78 The Waste of Time

    I generally answer any questions I can. Ill take a look at your other questions, but if I cant help, then I will just leave them be.
     
    projectmayhem likes this.
  9. projectmayhem

    projectmayhem Spaceman Spiff

    I try to help too, when I know what the answer is lol. I'm still a noob though, so that isnt too much
     
  10. lazarus78

    lazarus78 The Waste of Time

    We all start somewhere.
     
  11. Melendroach

    Melendroach Subatomic Cosmonaut

    Well, here's an update: Only objects' shortdescriptions (names) work. Rest stays untranslated. Here's an example of a patch:

    Code:
    [
      {
        "op": "replace",
        "path": "/description",
        "value": "Lawka z Protektoratu."
      },
      {
        "op": "replace",
        "path": "/shortdescription",
        "value": "Lawka Protektoratu"
      },
      {
        "op": "replace",
        "path": "/apexDescription",
        "value": "Dobra, praktyczna lawka."
      },
      {
        "op": "replace",
        "path": "/avianDescription",
        "value": "To jest lawka do siedzenia. Niestety, nie mam teraz na to czasu."
      },
      {
        "op": "replace",
        "path": "/floranDescription",
        "value": "Lawka wyglada ssstrasznie przyjemnie. Floran nie ma czassu!"
      },
      {
        "op": "replace",
        "path": "/glitchDescription",
        "value": "Uwaga. To jest lawka z metalu."
      },
      {
        "op": "replace",
        "path": "/humanDescription",
        "value": "Ta lawka miesci pare osob. Co najmniej trzy!"
      },
      {
        "op": "replace",
        "path": "/hylotlDescription",
        "value": "Szeroka lawka."
      },
      {
        "op": "replace",
        "path": "/novakidDescription",
        "value": "Jakby czas mnie nie gonil, usiadlbym. Ale goni."
      }
    ]
    
    

    yes, every file has .patch at the end (for example protectoratebench.object.patch) and here's an example of a path:

    Starbound\mods\myModName\objects\protectorate\objects\protectoratebench\protectoratebench.object.patch

    Why is this wrong?
     
  12. Melendroach

    Melendroach Subatomic Cosmonaut

    @lazarus78
    Anothe update. I've tried translating food, and it's the same problem as with objects. Only shortdescriptions work. I used this site, and I'm 100% sure everything correct, but yet descriptions stay untranslated. What can I do?
     
  13. IHart

    IHart Scruffy Nerf-Herder

    Share a zip of your mod folder.
     
  14. Melendroach

    Melendroach Subatomic Cosmonaut

  15. IHart

    IHart Scruffy Nerf-Herder

    It is not acting as you described. It is just crashing as a result of things that have already been explained to you in this thread.

    Edit: it only crashes some of the time.

    Edit edit: The ones that are set up correctly work fine for me. You either don't have a clean Dev environment or maybe you need to spawn a new copy of the item.
     
    Last edited: Jul 19, 2017
  16. Qbi Wan

    Qbi Wan Pangalactic Porcupine

    But i have tried to patch descriptions for single intro protectorate object, and it did not work too.
    And spawning protectorate decorations is even possible?
     
  17. Melendroach

    Melendroach Subatomic Cosmonaut

    I don't know how clean is your Dev environment, but game doesn't ever crash for me. Like I said, the only problem is that descriptions stay unchanged. Item names (shortdescriptions) work just fine. And I don't know what you mean by "crashing as a result of things that have already been explained to you in this thread", I have patched everything and there's not a single item or object in my mod that doesn't have a .patch extension. Interface buttons are an exception, but I don't think they're causing the problem.
     
  18. IHart

    IHart Scruffy Nerf-Herder

    I found a few files missing their .patch.
     
  19. Melendroach

    Melendroach Subatomic Cosmonaut

    You're probably talking about cinematics, npcs and radiomessages. I started my work with these, and everything worked just fine. That is, until I've started work on objects and items. So I don't think these 3 are a problem.
     
  20. IHart

    IHart Scruffy Nerf-Herder

    protectorate books 2 object.
    Also you will want to convert the rest of your edits to the patch method as well. Probably add in a few "test" functions.
     

Share This Page