Ir para o conteúdo
Riot Bits

Riot Bits

  • Lar
  • Notícias
  • Guias
  • Guias de vídeo
  • Notas do Patch
  • Denunciar abuso
  • Alternar formulário de pesquisa

Estelar – Livro de espíritos Patching Manual Guide

postado em 12/29/202312/29/2023 Por Chofranc Sem comentários em Estelar – Livro de espíritos Patching Manual Guide
  • Título: Estelar
  • Data de lançamento: Julho 22, 2016
  • Desenvolvedor: Chucklefish
  • Editor: Chucklefish

This guide is about fixing the Starbound mod called Book of Spirits – NPC & Monster Name Displayer. The goal is to include built-in assistance for custom NPCs, Monstros, and talkative objects.

Visão geral

This mod is crucial, and it should be loaded before any other mods using its features. You don’t have to include it in your metadata file. The key features involve showing the name of the entity, a custom title if it has one, and for monsters, indicating if they are rare breeds (like Albino Poptop, Fire Gleap) and elite.

There are two displayers: a name displayer and a title displayer. They automatically show based on the entity’s configuration, which I’ll explain in the sections below.

Even if I say something is harmless, it means your mod will work fine even without “Book of Spirits – NPC & Monster Name Displayer” instalado. It’s recommended to unpack the mod because there are files you might need to copy into your mod, helping you understand what to patch.

Naming rules for hostile NPCs: I’ve set a fixed name for generic hostile NPCs (bandidos, zumbis, lackeys, etc.) since in most video games, only important hostile NPCs have names to highlight their significance over regular mobs.

NPC parameters

The name displayer chooses the NPC’s name from one of these configurations:

  1. O “npcname” variável.
  2. O “nome” variable that can be assigned within their identity table.
  3. The randomly generated name assigned to them.

It’s a personal choice, but you might want to set a name for generic hostile NPCs (Zumbis, Bandidos, Lackeys, etc.) that function as monsters.

For the title displayer, it selects the following variable added by this mod, which is harmless:

  • displayTitle

There’s also a new harmless behavior script added by this mod. If an NPC is overriding the base behavior script (like Merchants, por exemplo), you should copy this script:

/scripts/bookofspirits/bookofspirits_interact_support.lua

This script displays the displayer when interacting (pressing ‘E’) with an NPC. If the displayer doesn’t show up during interaction, you need to add this script to your NPC.

NPC Patching-Support

The patching process is as follows, but you can add it directly to your mod for easier understanding of variable positions.

To give an NPC a title, and if it’s overriding the behavior script (por exemplo, merchant.npctype):

[
[{ "op" : "adicionar", "caminho" : "/displayTitle", "valor" : "Merchant"}]
,[{ "op": "adicionar", "caminho": "/scripts/-", "valor": "/scripts/bookofspirits/bookofspirits_interact_support.lua" }]
]

Resultado:

{
  "tipo" : "comerciante",
  "baseType" : "base",
  ...
  "displayTitle" : "Merchant",
  "roteiros" : [
    "/npcs/bmain.lua"
    ,"/scripts/bookofspirits/bookofspirits_interact_support.lua" 
  ]
}

To set a fixed name for the npc(mutantminer.npctype):

[{ "op" : "adicionar", "caminho" : "/identity", "valor": { "nome":"Mutant Miner" }}]

Resultado:

{
  "identity" :
  {
     "nome":"Mutant Miner"
  }
}

Chatty Objects Parameters

The following variables and script are harmless additions from this mod:

For the name displayer, it uses the following object configuration as their NPC name:

  • npcName

The title displayer selects the following harmless variable added by this mod:

  • displayTitle

There’s also a new script that you must copy into your mod:

/scripts/bookofspirits/bookofspirits_interact_support.lua

This script displays the displayer when interacting (pressing ‘E’) with an object. If the displayer doesn’t show up during interaction, you need to add this script to your object.

Aviso:

  • You cannot use this feature if the object has an “interactAction” parameter.
  • This feature is only applicable if the object can be made “chatty,” typically having “roteiros” e “chatOptions” arrays.

Chatty Object Patching-Support

To give an object a name and title(Ou seja: techlabscientist.object):

[
[{ "op" : "adicionar", "caminho" : "/npcName", "valor" : "Elliot"}]
,[{ "op" : "adicionar", "caminho" : "/displayTitle", "valor" : "Tech Lab Scientist"}]
,[{ "op": "adicionar", "caminho": "/scripts/-", "valor": "/scripts/bookofspirits/bookofspirits_interact_support.lua" }]
]

Resultado:

{
  "objectName" : "techlabscientist",
  "colonyTags" : ["posto avançado"],
  ...
  "npcName" : "Elliot",
  "displayTitle" : "Tech Lab Scientist",
  "roteiros" : ["/scripts/chattyObject.lua","/scripts/bookofspirits/bookofspirits_interact_support.lua"]
}

Monster Parameters

For the name displayer, it selects the following configuration of the monster as their name:

  • shortdescription

The title displayer picks the following harmless variable added by this mod, added as a statusProperties:

  • displayTitle

Observação: Rare monster variants have a custom title in the format (check /monsters/flyers/agrobat/iceagrobat.monstertype.patch):

^yellow; Rare Breed ^reset;

Adicionalmente, there’s a new harmless script added by this mod. You must copy it if there’s a monster that can be set as elite or can have dynamic custom titles and dynamic names, such as Generated monsters:

/scripts/bookofspirits/bookofspirits_monster_support.lua

There’s also a new file containing additional configurations for Generated Monsters. If you’re adding new types of generated monsters, check this file for more details:

/monsters/bookofspirits_generated.config

Monster Patching-Support

To give a Monster a name, title and display it as elite if is configured as elite(Ou seja: punchy.monstertype):

[
[{ "op" : "adicionar", "caminho" : "/shortdescription", "valor" : "Punchy"}]
,[{ "op" : "adicionar", "caminho" : "/baseParameters/statusSettings/statusProperties/displayTitle", "valor" : "Test Dummy"}]
,[{ "op" : "adicionar", "caminho" : "/baseParameters/scripts/-", "valor" : "/scripts/bookofspirits/bookofspirits_monster_support.lua"}]
]

Resultado:

{
  "tipo" : "punchy",
  "categorias" : [],
  ...
   "shortdescription" : "Punchy",
   "baseParameters" : {
       "statusSettings" : {
          "statusProperties" : {
              "displayTitle" : "Test Dummy"
          }
       }
      ,"roteiros" : [
        "/monsters/monster.lua",
       ,"/scripts/bookofspirits/bookofspirits_monster_support.lua"
      ]
   }
}

Generated Monster Parameters

Generated Monsters have a dedicated configuration file that includes parameters for setting the name and custom title based on their parts. The configuration file is located at:

/monsters/bookofspirits_generated.config

Adicionalmente, there’s a new script at “/scripts/bookofspirits/bookofspirits_monster_support.lua” that must be copied into your mod. Make sure to add this script to the script array of the generated monster.

skillPrefixes

Here’s a JSON array of objects containing a list of skill types from the special skill of the monster. This list is used to determine the prefix of the monster name.

  • nome: This is the string name that will be displayed alongside the monster name.
  • skillName: This is the skill name type (por exemplo, inkSprayAttack) that will be used to compare if the monster has that skill.
  • asSuffix (opcional): If set to true, the skill name will be added after the monster name.

monsterTypes

This list contains the names of monster types and their variants. It’s used to determine the monster name and title based on the head part of the monster or a specific part pattern of your choice.

  • monster type (por exemplo, “largeflying”): The name of the list should match the “tipo” parameter in the .monstertype file.
  • variantes: In this JSON array of objects, you include different part combinations that the generated monster can have.

Variants Parameters

This JSON array of objects includes variables used to configure the generated monster name and title based on the given parts. It supports multiple part patterns, but it’s recommended to prioritize entries with just the head part first.

  • nome: The monster name that will be displayed.
  • título (opcional): The title that will be displayed.
  • prefixo (opcional): A prefix added to the monster name.
  • peças: An array of strings containing the names of folders containing the monster’s parts.
  • addSkillPrefix (opcional): If set to false, it won’t add a skill prefix to the monster name.

Observação:

  • If you want to set a specific pattern, that entry must include all the part types used by the monster type.
    • Por exemplo, se “largefish” usa 3 parts as configured in its “peças” variedade, the pattern should also have 3 parts..

{“nome” : “SunShark”, “título” : “Large Fish Monster”, “peças” : [“tubarão”,”sunfish”,”sunfish”]}

Generated Monsters Patching-Support For New Types

Para este exemplo, I’ll use the “sb_hugebiped.monstertype” from Betabound, which is a new type of generated monster.

Remember to copy “/scripts/bookofspirits/bookofspirits_monster_support.lua” into your mod in the same folder path.

To provide support for a new generated monster type (add it directly to your mod or patch it if you are patching another user’s mod):

[
[{ "op" : "adicionar", "caminho" : "/baseParameters/scripts/-", "valor" : "/scripts/bookofspirits/bookofspirits_monster_support.lua"}]
]

Resultado:

{
  "tipo" : "sb_hugebiped",
  "categorias" : ["sb_hugebiped"],
   ...
  ,"baseParameters" : {
    "roteiros" : [
      "/monsters/monster.lua",
      "/monsters/sb_miniboss.lua"
     ,"/scripts/bookofspirits/bookofspirits_monster_support.lua"
     ]
   }
}

Then you must patch the file “/monsters/bookofspirits_generated.config” as a file “/monsters/bookofspirits_generated.config.patch“:

[
    {
        "op": "adicionar",
        "caminho": "/monsterTypes/sb_hugebiped",
        "valor": {
            "variantes": [
                {
                    "nome": "Birdzilla",
                    "título": "Huge Biped Monster",
                    "peças": ["beak"]
                },
                {
                    "nome": "Dragonzilla",
                    "título": "Huge Biped Monster",
                    "peças": ["dragão"]
                },
                {
                    "nome": "Featherzilla",
                    "título": "Huge Biped Monster",
                    "peças": ["feather"]
                },
				{
                    "nome": "Rhinozilla",
                    "título": "Huge Biped Monster",
                    "peças": ["rhino"]
                }
            ]
        }
    }
]

Resultado:

{
  ,"monsterTypes" :
  {
   "largeflying" : {...}
    ...
    ,"sb_hugebiped" : {
      "variantes" : [
        {"nome" : "Birdzilla","título" : "^red;Huge Biped Monster","peças" : ["beak"]}
        ,{"nome" : "Dragonzilla", "título" : "^red;Huge Biped Monster","peças" : ["dragão"]}
        ,{"nome" : "Featherzilla","título" : "^red;Huge Biped Monster","peças" : ["feather"]}
        ,{"nome" : "Rhinozilla","título" : "^red;Huge Biped Monster","peças" : ["rhino"]}
       ]
     }
  }
}

Generated Monster Patching-Support Existing Type

To add a new variant to an existing monster type(Ou seja: largequadruped.monstertype), you must patch the file “/monsters/bookofspirits_generated.config” as a file “/monsters/bookofspirits_generated.config.patch“:

[
    {
	"op": "adicionar", "caminho": "/monsterTypes/largequadruped/variants/-",
	"valor": {"nome": "New Quadruped 1","título": "Large Quadruped Monster",	"peças": ["blabla1"]}
    }
	,{
	"op": "adicionar", "caminho": "/monsterTypes/largequadruped/variants/-",
	"valor": {"nome": "New Quadruped 2","título": "Large Quadruped Monster",	"peças": ["blabla2"]}
    }
]

Resultado:

  ,"monsterTypes" :
  {
    "largeflying" : {...}
   ...
    ,"largequadruped" : {
      "variantes" : [
        {"nome" : "Anthurix","prefixo" : "Adulto", "título" : "Large Quadruped Monster","peças" : ["seta"]}
        ...
      ,{"nome": "New Quadruped 1","título": "Large Quadruped Monster",	"peças": ["blabla1"]}
      ,{"nome": "New Quadruped 2","título": "Large Quadruped Monster",	"peças": ["blabla2"]}

Isso é tudo o que estamos compartilhando hoje para isso Estelar guia. Este guia foi originalmente criado e escrito por Chofranc. Caso não atualizemos este guia, você pode encontrar a atualização mais recente seguindo este link.

Se você acredita que algum conteúdo deste site viola seus direitos, incluindo seus direitos de propriedade intelectual, entre em contato conosco imediatamente usando nosso formulário de contato.
Guias Tag:Estelar

Navegação de artigos

Postagem anterior: Monster Hunter World – Guia de espada longa, Pontas, e truques
próxima postagem: In Stars And Time – Bomb Requirements and How to Create

Deixe um comentário Cancelar resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *

  • Título: Estelar
  • Data de lançamento: Julho 22, 2016
  • Desenvolvedor: Chucklefish
  • Editor: Chucklefish

Isenção de responsabilidade

Todo o conteúdo citado é derivado de suas respectivas fontes. Se você acha que usamos seu conteúdo sem permissão, certifique-se de entrar em contato conosco e levaremos isso a sério.
  • Sobre nós
  • Contate-nos
  • política de Privacidade
  • Termos de serviço

direito autoral © 2025 Riot Bits.

Distribuído por PressBook Notícias tema WordPress