Вот ошибка [ERRO] proto: Reading… · The Chat Archive
Вот ошибка
[ERRO] proto: Reading Robust.Shared.Prototypes.EntityPrototype(GoldenPersonalAI) threw the following exception: Robust.Shared.Serialization.Manager.Exceptions.RequiredFieldNotMappedException: Required field node of type System.String in Content.Server.Construction.Components.ConstructionComponent wasn't mapped.
at lambda_method10287(Closure, ConstructionComponent&, MappingDataNode, SerializationHookContext, ISerializationContext)
at lambda_method17840(Closure, DataNode, SerializationHookContext, ISerializationContext, InstantiationDelegate1) at Robust.Shared.Serialization.Manager.SerializationManager.Read[T](DataNode node, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate1 instanceProvider, Boolean notNullableOverride) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/Manager/SerializationManager.Reading.cs:line 54
at lambda_method17837(Closure, DataNode, SerializationHookContext, ISerializationContext)
at Robust.Shared.Serialization.TypeSerializers.Implementations.ComponentRegistrySerializer.Read(ISerializationManager serializationManager, SequenceDataNode node, IDependencyCollection dependencies, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate1 instanceProvider) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/TypeSerializers/Implementations/ComponentRegistrySerializer.cs:line 68 at lambda_method16720(Closure, DataNode, SerializationHookContext, ISerializationContext, InstantiationDelegate1)
at Robust.Shared.Serialization.Manager.SerializationManager.Read[T](DataNode node, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate1 instanceProvider, Boolean notNullableOverride) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/Manager/SerializationManager.Reading.cs:line 54 at lambda_method3606(Closure, EntityPrototype&, MappingDataNode, SerializationHookContext, ISerializationContext) at lambda_method17702(Closure, DataNode, SerializationHookContext, ISerializationContext, InstantiationDelegate1)
at Robust.Shared.Serialization.Manager.SerializationManager.Read[T](DataNode node, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate`1 instanceProvider, Boolean notNullableOverride) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/Manager/SerializationManager.Reading.cs:line 54
at lambda_method17693(Closure, DataNode, SerializationHookContext, ISerializationContext)
at Robust.Shared.Prototypes.PrototypeManager.TryReadPrototype(Type kind, String id, MappingDataNode mapping, SerializationHookContext hookCtx) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Prototypes/PrototypeManager.cs:line 573
Вот в этом прототипе
type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
state: pai-gold
state: pai-off-overlay
shader: unshaded
map: ["screen"]
type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
type: IntrinsicRadioTransmitter
channels:
type: ActiveRadio
channels:
type: Appearance
type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
type: Construction
graph: GoldenPAI
type: construction
name: позолочённый персональный ИИ
id: GoldenPersonalAI
graph: GoldenPAI
startNode: start
targetNode: icon
category: construction-category-weapons
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
icon: { sprite: Objects/Materials/Scrap/generic.rsi, state: junk-pai-gold }
objectType: Item
type: constructionGraph
id: GoldenPAI
start: start
graph:
node: start
entity: GoldenPersonalAI
edges:
to: icon
steps:
material: Glass
amount: 4
doAfter: 5
tool: Welding
doAfter: 3
node: icon
entity: GoldenPersonalAI
Можешь исправить?
Show full message · 91 lines Assistant2024-10-27 17:05 UTC Copy response
Ошибка, которую вы получаете, связана с отсутствием сопоставления поля node типа System.String в компоненте ConstructionComponent. Это может быть связано с тем, что неправильно настроена или отсутствует структура данных для графа конструкции.
Ближе к концу вашего прототипа явно указаны проблемы, поскольку поле node не распознается должным образом в вашем constructionGraph. Давайте проверим, правильно ли организован ваш граф и убедимся, что все необходимые поля включены.
В вашем constructionGraph следует убедиться, что у каждого узла есть связанные с ним параметры и что ссылки корректны. Также убедитесь, что ваш Construction компонент правильно настроен.
yaml Copy code
- type: constructionGraph
id: GoldenPAI
start: start
graph:
- node: start
entity: GoldenPersonalAI
edges:
- to: icon
steps:
- material: Glass
amount: 4
doAfter: 5
- tool: Welding
doAfter: 3
- node: icon
entity: GoldenPersonalAI
Некоторые шаги для исправления:
Убедитесь, что каждый узел в вашем графе конструкции правильно настроен. Каждый узел должен иметь уникальное имя, связанное с ним состояние (entity), и корректное указание на связи (поля edges).
Проверьте, что идентификатор графа GoldenPAI корректно ссылается на ваш компонент Construction.
Убедитесь, что используемый тип инструмента и материалы правильно привязаны к соответствующему контексту.
Проверьте наличие и корректное определение всех используемых идентификаторов и ссылок: startNode, targetNode, entity в ваших данных графов и узлов.
Если после всех проверок ошибка сохраняется, может быть, стоит ещё раз обратиться к документации по вашей системе или инструментарию, чтобы уточнить специфику интеграции графов конструирования и конструкций.
Попробуй починить прототип, пожалуйста
Assistant2024-10-27 17:07 UTC Copy response
Конечно, давайте попробуем исправить ваш прототип. На основе ошибки и ваших данных на первый взгляд проблема может заключаться в неполной конфигурации графа конструкции или в неверной ссылке на узлы. Вот исправленная версия:
yaml Copy code
- type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
- type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
- state: pai-gold
- state: pai-off-overlay
shader: unshaded
map: ["screen"]
- type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
- type: IntrinsicRadioTransmitter
channels:
- Common
- Command
- type: ActiveRadio
channels:
- Common
- Command
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
- type: Construction
graph: GoldenPAI
node: start
- type: constructionGraph
id: GoldenPAI
start: start
graph:
- node: start
entity: GoldenPersonalAI
edges:
- to: icon
steps:
- material: Glass
amount: 4
doAfter: 5
- tool: Welding
doAfter: 3
- node: icon
entity: GoldenPersonalAI
- type: construction
name: позолочённый персональный ИИ
id: GoldenPersonalAI
graph: GoldenPAI
startNode: start
targetNode: icon
category: construction-category-weapons
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
icon: { sprite: Objects/Materials/Scrap/generic.rsi, state: junk-pai-gold }
objectType: Item
Рецепт не работает. Я хотел сделать как вот тут с заточками, чтобы взаимодействие было с предметом
type: constructionGraph
id: ShivConstruct
start: start
graph:
node: start
entity: ShardGlass
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: Shiv
type: constructionGraph
id: Shiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: GlassShard
name: glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: Shiv
type: constructionGraph
id: ReinforcedShivConstruct
start: start
graph:
node: start
entity: ShardGlassReinforced
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: ReinforcedShiv
type: constructionGraph
id: ReinforcedShiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: ReinforcedGlassShard
name: reinforced glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: ReinforcedShiv
type: constructionGraph
id: PlasmaShivConstruct
start: start
graph:
node: start
entity: ShardGlassPlasma
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: PlasmaShiv
type: constructionGraph
id: PlasmaShiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: PlasmaGlassShard
name: plasma glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: PlasmaShiv
type: constructionGraph
id: UraniumShivConstruct
start: start
graph:
node: start
entity: ShardGlassUranium
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: UraniumShiv
Show full message · 310 lines Assistant2024-10-27 17:19 UTC Copy response
Конечно, давайте попробуем настроить ваш прототип так, чтобы он работал аналогично вашим примерам с заточками. В вашей текущей конфигурации нужно уделить внимание на корректное определение узлов и связей, а также верное использование идентификаторов в графах конструкции.
Вот изменённый прототип, который следует структуре из ваших примеров:
yaml Copy code
- type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
- type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
- state: pai-gold
- state: pai-off-overlay
shader: unshaded
map: ["screen"]
- type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
- type: IntrinsicRadioTransmitter
channels:
- Common
- Command
- type: ActiveRadio
channels:
- Common
- Command
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
- type: Construction
graph: GoldenPAIConstruct
node: icon
- type: constructionGraph
id: GoldenPAIConstruct
start: start
graph:
- node: start
edges:
- to: icon
steps:
- tag: BasicAIFrame
name: basic AI frame
icon: { sprite: Objects/Materials/Frames/basic_ai.rsi, state: frame }
doAfter: 5
- material: Gold
amount: 5
doAfter: 3
- node: icon
entity: GoldenPersonalAI
- type: entity
name: Basic AI Frame
id: BasicAIFrame
description: A basic frame used in AI construction.
components:
- type: Item
Нам не нужен фрейм. Нам нужно из ScrapPAIGold этого делать
Assistant2024-10-27 17:22 UTC Copy response
Понял. Если вы хотите создать GoldenPersonalAI из ScrapPAIGold, мы можем изменить подход для соответствия вашему требованию. Давайте обновим прототип для использования ScrapPAIGold в качестве начального элемента.
yaml Copy code
- type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
- type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
- state: pai-gold
- state: pai-off-overlay
shader: unshaded
map: ["screen"]
- type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
- type: IntrinsicRadioTransmitter
channels:
- Common
- Command
- type: ActiveRadio
channels:
- Common
- Command
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
- type: Construction
graph: GoldenPAIConstruct
node: icon
- type: constructionGraph
id: GoldenPAIConstruct
start: start
graph:
- node: start
entity: ScrapPAIGold
edges:
- to: icon
steps:
- material: Gold
amount: 5
doAfter: 3
- tool: SolderingIron
doAfter: 2
- node: icon
entity: GoldenPersonalAI
- type: entity
name: Scrap PAI Gold
id: ScrapPAIGold
description: Золотой обломок персонального ИИ.
components:
- type: Item
- type: Sprite
sprite: Objects/Materials/Scrap/generic.rsi
state: junk-pai-gold
Ещё раз ознакомься с прототипом. Ты от себя лишнего добавляешь
type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
state: pai-gold
state: pai-off-overlay
shader: unshaded
map: ["screen"]
type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
type: IntrinsicRadioTransmitter
channels:
type: ActiveRadio
channels:
type: Appearance
type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
type: Construction
graph: GoldenPAI
node: start
type: constructionGraph
id: GoldenPAI
start: start
graph:
node: start
entity: ScrapPAIGold
edges:
to: icon
steps:
material: Glass
amount: 4
doAfter: 5
tool: Welding
doAfter: 3
node: icon
entity: GoldenPersonalAI
type: construction
name: позолочённый персональный ИИ
id: GoldenPersonalAI
graph: GoldenPAI
startNode: start
targetNode: icon
category: construction-category-weapons
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
icon: { sprite: /Uploaded/fun/golden_pai.rsi, state: junk-pai-gold }
objectType: Item
Show full message · 74 lines Assistant2024-10-27 17:28 UTC Copy response
Понял вас. Давайте попробуем исправить прототип, не добавляя лишнего, и сосредоточимся на том, чтобы создать ваш GoldenPersonalAI из ScrapPAIGold с использованием вашего текущего графа конструкции.
Вот исправленный вариант:
yaml Copy code
- type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
- type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
- state: pai-gold
- state: pai-off-overlay
shader: unshaded
map: ["screen"]
- type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
- type: IntrinsicRadioTransmitter
channels:
- Common
- Command
- type: ActiveRadio
channels:
- Common
- Command
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
- type: Construction
graph: GoldenPAI
node: start
- type: constructionGraph
id: GoldenPAI
start: start
graph:
- node: start
entity: ScrapPAIGold
edges:
- to: icon
steps:
- material: Glass
amount: 4
doAfter: 5
- tool: Welding
doAfter: 3
- node: icon
entity: GoldenPersonalAI
- type: construction
name: позолочённый персональный ИИ
id: GoldenPersonalAI
graph: GoldenPAI
startNode: start
targetNode: icon
category: construction-category-weapons
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
icon: { sprite: /Uploaded/fun/golden_pai.rsi, state: junk-pai-gold }
objectType: Item
- type: entity
name: Scrap PAI Gold
id: ScrapPAIGold
description: Золотой обломок персонального ИИ.
components:
- type: Item
- type: Sprite
sprite: Objects/Materials/Scrap/generic.rsi
state: junk-pai-gold
Предмет уже есть, его создавать не нужно
Assistant2024-10-27 17:31 UTC Copy response
Спасибо за уточнение. Если предмет ScrapPAIGold уже существует, нам необязательно его определять заново. В этом случае мы просто убедимся, что ваш граф конструкции правильно настроен для преобразования ScrapPAIGold в GoldenPersonalAI. Вот ваша корректированная конфигурация:
yaml Copy code
- type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
- type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
- state: pai-gold
- state: pai-off-overlay
shader: unshaded
map: ["screen"]
- type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
- type: IntrinsicRadioTransmitter
channels:
- Common
- Command
- type: ActiveRadio
channels:
- Common
- Command
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
- type: Construction
graph: GoldenPAI
node: start
- type: constructionGraph
id: GoldenPAI
start: start
graph:
- node: start
entity: ScrapPAIGold
edges:
- to: icon
steps:
- material: Glass
amount: 4
doAfter: 5
- tool: Welding
doAfter: 3
- node: icon
entity: GoldenPersonalAI
- type: construction
name: позолочённый персональный ИИ
id: GoldenPersonalAI
graph: GoldenPAI
startNode: start
targetNode: icon
category: construction-category-weapons
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
icon: { sprite: /Uploaded/fun/golden_pai.rsi, state: junk-pai-gold }
objectType: Item
Вот к слову все мои крафты, но тут для структур, а мне предмет надо
type: entity
id: UnlitCampfire
parent: BaseStructure
name: костёр
suffix: не зажённый
description: Что может быть лучше позднего вечера под открытым небом с гитарой и друзьями.
components:
type: Sprite
noRot: true
sprite: Structures/Decoration/bonfire.rsi
layers:
type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
type: Destructible
thresholds:
trigger:
!type:DamageTrigger
damage: 50
behaviors:
!type:DoActsBehavior
acts: ["Destruction"]
type: Construction
graph: CampfireGraph
node: unlit
type: Physics
bodyType: Static
type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.45"
density: 55
mask:
- Impassable
layer:
- HighImpassable
type: entity
id: LitCampfire
parent: UnlitCampfire
name: костёр
suffix: зажённый
description: Что может быть лучше позднего вечера под открытым небом с гитарой и друзьями.
components:
type: Sprite
noRot: true
sprite: Structures/Decoration/bonfire.rsi
layers:
type: PointLight
radius: 5
energy: 3
color: "#FFC90C"
type: AmbientSound
volume: -5
range: 5
sound:
path: /Audio/Ambience/Objects/fireplace.ogg
type: Construction
graph: CampfireGraph
node: lit
type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Wood
type: Destructible
thresholds:
trigger:
!type:DamageTrigger
damage: 50
behaviors:
!type:DoActsBehavior
acts: ["Destruction"]
type: constructionGraph
id: CampfireGraph
start: start
graph:
Show full message · 1,979 lines Assistant2024-10-27 18:10 UTC Copy response
Чтобы создать новый предмет (например, GoldenPersonalAI) из другого предмета (ScrapPAIGold) с использованием системы конструкций, аналогичной той, которую вы используете для создания структур, нам нужно слегка изменить подход. Мы будем использовать имеющийся образец настройки для структуры, но адаптируем его под предмет.
Вот как это может выглядеть:
yaml Copy code
- type: entity
parent: PersonalAI
id: GoldenPersonalAI
name: позолочённый персональный ИИ
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
components:
- type: Sprite
sprite: /Uploaded/fun/golden_pai.rsi
layers:
- state: pai-gold
- state: pai-off-overlay
shader: unshaded
map: ["screen"]
- type: ToggleableGhostRole
examineTextMindPresent: pai-system-pai-installed
examineTextMindSearching: pai-system-still-searching
examineTextNoMind: pai-system-off
beginSearchingText: pai-system-searching
roleName: pai-system-role-name
roleDescription: pai-system-role-description
roleRules: ghost-role-information-familiar-rules
wipeVerbText: pai-system-wipe-device-verb-text
wipeVerbPopup: pai-system-wiped-device
stopSearchVerbText: pai-system-stop-searching-verb-text
stopSearchVerbPopup: pai-system-stopped-searching
- type: IntrinsicRadioTransmitter
channels:
- Common
- Command
- type: ActiveRadio
channels:
- Common
- Command
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableGhostRoleVisuals.Status:
screen:
Off: { state: pai-off-overlay }
Searching: { state: pai-searching-overlay }
On: { state: pai-on-overlay }
- type: Construction
graph: GoldenPAIConstructGraph
node: crafted
- type: constructionGraph
id: GoldenPAIConstructGraph
start: start
graph:
- node: start
entity: ScrapPAIGold
edges:
- to: crafted
steps:
- material: Glass
amount: 4
doAfter: 5
- tool: Welding
doAfter: 3
- node: crafted
entity: GoldenPersonalAI
- type: construction
name: позолочённый персональный ИИ
id: GoldenPersonalAIConstruction
graph: GoldenPAIConstructGraph
startNode: start
targetNode: crafted
category: construction-category-items
description: Золотой спутник любого уважающего себя члена командования. Превосходно выполняет свои функции.
icon:
sprite: /Uploaded/fun/golden_pai.rsi
state: junk-pai-gold
objectType: Item
conditions:
- !type: TileNotBlocked
Copy first response
Not yet included in a published release.
Добавлено поле node: start в компонент Construction, чтобы указать начальный узел графа, как это требует ваша система.
Убедитесь, что все ссылки на узлы (start и icon) и идентификаторы графа (GoldenPAI) правильно настроены.
Попробуйте эту версию и посмотрите, устранила ли она проблему. Если нет, возможно, проблема может быть более глубокой и связана с кодом, который управляет графами конструкции.
type: constructionGraph
id: UraniumShiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: UraniumGlassShard
name: uranium glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: UraniumShiv
type: entity
name: shiv
parent: [BaseKnife, BaseMinorContraband]
id: Shiv
description: A crude weapon fashioned from a piece of cloth and a glass shard.
components:
type: Tag
tags:
type: Construction
graph: Shiv
node: icon
type: Sprite
sprite: Objects/Weapons/Melee/shiv.rsi
state: icon
type: MeleeWeapon
attackRate: 1.5
damage:
types:
Slash: 5.5
type: Item
sprite: Objects/Weapons/Melee/shiv.rsi
type: DisarmMalus
malus: 0.225
type: constructionGraph
id: ShivConstruct
start: start
graph:
node: start
entity: ShardGlass
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: Shiv
type: constructionGraph
id: Shiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: GlassShard
name: glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: Shiv
type: constructionGraph
id: ReinforcedShivConstruct
start: start
graph:
node: start
entity: ShardGlassReinforced
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: ReinforcedShiv
type: constructionGraph
id: ReinforcedShiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: ReinforcedGlassShard
name: reinforced glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: ReinforcedShiv
type: constructionGraph
id: PlasmaShivConstruct
start: start
graph:
node: start
entity: ShardGlassPlasma
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: PlasmaShiv
type: constructionGraph
id: PlasmaShiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: PlasmaGlassShard
name: plasma glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: PlasmaShiv
type: constructionGraph
id: UraniumShivConstruct
start: start
graph:
node: start
entity: ShardGlassUranium
edges:
to: icon
steps:
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: UraniumShiv
type: constructionGraph
id: UraniumShiv
start: start
graph:
node: start
edges:
to: icon
steps:
tag: UraniumGlassShard
name: uranium glass shard
icon:
sprite: Objects/Materials/Shards/shard.rsi
state: shard1
doAfter: 1
material: Cloth
amount: 1
doAfter: 1
node: icon
entity: UraniumShiv
Починишь исходя из этого?
Создан новый узел GoldenPAIConstruct для графа конструкции, аналогичный тому, что вы привели в примерах с заточками.
Примерный тег BasicAIFrame добавлен в качестве начального компонента сборки, и к нему добавлены необходимые шаги.
Входной материал заменен на Gold и BasicAIFrame, что отражает золотую тему вашего прототипа.
Проверьте этот пример и внесите дальнейшие изменения в зависимости от того, какие материалы и теги соответствуют вашему окружению и нуждам. Это должно помочь в создании предмета по аналогии с примерами конструкций, как у вас с заточками.
Заменен начальный элемент в графе конструкции на ScrapPAIGold.
Добавлены шаги создания, использующие Gold и SolderingIron для завершения сборки. Это пример, и вы можете настроить шаги под свои нужды.
Пожалуйста, протестируйте этот пример и настройте его в зависимости от вашего игрового мира и механики, чтобы он наилучшим образом соответствовал вашему желанию.
Убедитесь, что ScrapPAIGold используется в качестве entity в начальном node.
Скорректируйте шаги, чтобы соответствовать вашим ожиданиям для сборки из стекла и инструмента Welding.
Этот прототип теперь приведен в соответствие с вашим исходным запросом, и изменения минимальны, чтобы подчеркнуть целенаправленное преобразование из ScrapPAIGold. Пожалуйста, протестируйте этот вариант и сообщите мне о результатах.
Убедитесь, что ScrapPAIGold правильно определён в вашем проекте и доступен для использования в качестве начального элемента в графе конструкции. Этот пример должен позволять вам создать GoldenPersonalAI из ScrapPAIGold с использованием указанных шагов.
tool: Prying
doAfter: 1
type: construction
name: костёр
id: UnlitCampfireConstruction
graph: CampfireGraph
startNode: start
targetNode: lit
category: construction-category-furniture
description: Что может быть лучше позднего вечера под открытым небом с гитарой и друзьями.
icon:
sprite: Structures/Decoration/bonfire.rsi
state: burning
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
type: entity
id: FireplaceUnlit
parent: BaseStructure
name: камин
suffix: не зажённый
description: Очаг, в котором горит огонь. Уютно!
components:
type: Sprite
sprite: Structures/Decoration/fireplace.rsi
noRot: true
layers:
state: fireplace
state: fireplacefestive
map: ["christmas"]
visible: false
state: fireplace_fire4
shader: unshaded
visible: false
state: fireplace_glow
shader: unshaded
visible: false
type: Appearance
type: HolidayVisuals
holidays:
festive:
type: GenericVisualizer
visuals:
enum.HolidayVisuals.Holiday:
christmas:
festive: { visible: true }
type: Construction
graph: FireplaceGraph
node: unlit
type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
type: Destructible
thresholds:
trigger:
!type:DamageTrigger
damage: 200
behaviors:
!type:DoActsBehavior
acts: [ "Destruction" ]
type: AlwaysHot
type: entity
id: FireplaceLit
parent: BaseStructure
name: камин
suffix: зажённый
description: Очаг, в котором горит огонь. Уютно!
components:
type: Sprite
sprite: Structures/Decoration/fireplace.rsi
noRot: true
layers:
state: fireplace
state: fireplacefestive
map: ["christmas"]
visible: false
state: fireplace_fire4
shader: unshaded
state: fireplace_glow
shader: unshaded
type: Appearance
type: HolidayVisuals
holidays:
festive:
type: GenericVisualizer
visuals:
enum.HolidayVisuals.Holiday:
christmas:
festive: { visible: true }
type: AmbientSound
volume: -6
range: 5
sound:
path: /Audio/Ambience/Objects/fireplace.ogg
type: PointLight
radius: 3
energy: 3
color: "#FF6F00"
type: Construction
graph: FireplaceGraph
node: lit
type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
type: Destructible
thresholds:
trigger:
!type:DamageTrigger
damage: 200
behaviors:
!type:DoActsBehavior
acts: [ "Destruction" ]
type: AlwaysHot
type: constructionGraph
id: FireplaceGraph
start: start
graph:
type: construction
name: камин
id: FireplaceUnlitConstruction
graph: FireplaceGraph
startNode: start
targetNode: lit
category: construction-category-furniture
description: Очаг, в котором горит огонь. Уютно!
icon:
sprite: Structures/Decoration/fireplace.rsi
state: fireplace
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
Алтарь Хаоса (Chaos Altar)
type: entity
id: AltarChaos
parent: AltarNanotrasen
name: алтарь хаоса
description: Алтарь с элементами хаоса и непредсказуемости.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: chaos
type: Icon
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: chaos
type: Construction
graph: ChaosAltarGraph
node: chaosAltar
type: constructionGraph
id: ChaosAltarGraph
start: start
graph:
type: construction
name: алтарь хаоса
id: ChaosAltar
graph: ChaosAltarGraph
startNode: start
targetNode: chaosAltar
category: construction-category-structures
description: Алтарь с элементами хаоса и непредсказуемости.
icon:
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: chaos
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Алтарь Друидов (Druid Altar)
type: entity
id: AltarDruid
parent: AltarNanotrasen
name: алтарь друидов
description: Алтарь, вдохновленный природой и магией друидов.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: druid
type: Icon
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: druid
type: Construction
graph: DruidAltarGraph
node: druidAltar
type: constructionGraph
id: DruidAltarGraph
start: start
graph:
type: construction
name: алтарь друидов
id: DruidAltar
graph: DruidAltarGraph
startNode: start
targetNode: druidAltar
category: construction-category-structures
description: Алтарь, вдохновленный природой и магией друидов.
icon:
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: druid
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Алтарь Ящика для Инструментов (Toolbox Altar)
type: entity
id: AltarToolbox
parent: AltarNanotrasen
name: алтарь ящика для инструментов
description: Алтарь, напоминающий набор инструментов и рабочий стол.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: toolbox
type: Icon
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: toolbox
type: Construction
graph: ToolboxAltarGraph
node: toolboxAltar
type: constructionGraph
id: ToolboxAltarGraph
start: start
graph:
type: construction
name: алтарь ящика для инструментов
id: ToolboxAltar
graph: ToolboxAltarGraph
startNode: start
targetNode: toolboxAltar
category: construction-category-structures
description: Алтарь, напоминающий набор инструментов и рабочий стол.
icon:
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: toolbox
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Космо-Христианский Алтарь (Space Christian Altar)
type: entity
id: AltarSpaceChristian
parent: AltarNanotrasen
name: космо-Христианский алтарь
description: Алтарь, сверкающий космическим светом веры.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
layers:
state: space-christian
state: space-christian_lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: space-christian
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: SpaceChristianAltarGraph
node: spaceChristianAltar
type: constructionGraph
id: SpaceChristianAltarGraph
start: start
graph:
type: construction
name: космо-Христианский алтарь
id: SpaceChristianAltar
graph: SpaceChristianAltarGraph
startNode: start
targetNode: spaceChristianAltar
category: construction-category-structures
description: Алтарь, сверкающий космическим светом веры.
icon:
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: space-christian
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Сатанинский Алтарь (Satanic Altar)
type: entity
id: AltarSatana
parent: AltarNanotrasen
name: сатанинский алтарь
description: Алтарь с тематикой темных сил и мистики.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
layers:
state: satana
state: satana_lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: satana
type: PointLight
radius: 1.5
energy: 1
color: "#ff6347"
type: Construction
graph: SatanicAltarGraph
node: satanicAltar
type: constructionGraph
id: SatanicAltarGraph
start: start
graph:
type: construction
name: сатанинский алтарь
id: SatanicAltar
graph: SatanicAltarGraph
startNode: start
targetNode: satanicAltar
category: construction-category-structures
description: Алтарь с тематикой темных сил и мистики.
icon:
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: satana
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Алтарь Технологий (Technology Altar)
type: entity
id: AltarTechnology
parent: AltarNanotrasen
name: алтарь технологий
description: Алтарь, посвященный поклонению технологиям и прогрессу.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
layers:
state: technology
state: technology_lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: technology
type: PointLight
radius: 1.5
energy: 1
color: "#e0ffff"
type: Construction
graph: TechnologyAltarGraph
node: technologyAltar
type: constructionGraph
id: TechnologyAltarGraph
start: start
graph:
type: construction
name: алтарь технологий
id: TechnologyAltar
graph: TechnologyAltarGraph
startNode: start
targetNode: technologyAltar
category: construction-category-structures
description: Алтарь, посвященный поклонению технологиям и прогрессу.
icon:
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
state: technology
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Праздничный Алтарь (Festival Altar)
type: entity
id: AltarConvertFestival
parent: AltarBase
name: праздничный алтарь
description: Деревянный алтарь, украшенный для праздников и торжеств.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: festival
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: festival
type: Damageable
damageModifierSet: Wood
type: Destructible
thresholds:
trigger:
!type:DamageTrigger
damage: 100
behaviors:
!type:DoActsBehavior
acts: [ "Destruction" ]
trigger:
!type:DamageTrigger
damage: 15
behaviors:
!type:PlaySoundBehavior
sound:
collection: WoodDestroyHeavy
!type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank:
min: 1
max: 5
MaterialCloth1:
min: 1
max: 3
!type:DoActsBehavior
acts: [ "Destruction" ]
type: Tag
tags:
type: Construction
graph: FestivalAltarGraph
node: festivalAltar
type: constructionGraph
id: FestivalAltarGraph
start: start
graph:
type: construction
name: праздничный алтарь
id: FestivalAltar
graph: FestivalAltarGraph
startNode: start
targetNode: festivalAltar
category: construction-category-structures
description: Деревянный алтарь, украшенный для праздников и торжеств.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: festival
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Алтарь Техтуннелей (Maint Altar)
type: entity
id: AltarConvertMaint
parent: AltarConvertFestival
name: алтарь техтуннелей
description: Алтарь, скрытый в тенях технических туннелей.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: maint
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: maint
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: MaintAltarGraph
node: maintAltar
type: constructionGraph
id: MaintAltarGraph
start: start
graph:
type: construction
name: алтарь техтуннелей
id: MaintAltar
graph: MaintAltarGraph
startNode: start
targetNode: maintAltar
category: construction-category-structures
description: Алтарь, скрытый в тенях технических туннелей.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: maint
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Синий Алтарь (Blue Altar)
type: entity
id: AltarConvertBlue
parent: AltarConvertFestival
name: синий алтарь
description: Алтарь, излучающий спокойствие и мир синих оттенков.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: blue
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: blue
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: BlueAltarGraph
node: blueAltar
type: constructionGraph
id: BlueAltarGraph
start: start
graph:
type: construction
name: синий алтарь
id: BlueAltar
graph: BlueAltarGraph
startNode: start
targetNode: blueAltar
category: construction-category-structures
description: Алтарь, излучающий спокойствие и мир синих оттенков.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: blue
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Алтарь Бремени (Burden Altar)
type: entity
id: AltarConvertBurden
parent: AltarConvertFestival
name: алтарь бремени
description: Алтарь, несущий на себе тяжесть мировых проблем.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: convertaltar
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: convertaltar
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: BurdenAltarGraph
node: burdenAltar
type: constructionGraph
id: BurdenAltarGraph
start: start
graph:
type: construction
name: алтарь бремени
id: BurdenAltar
graph: BurdenAltarGraph
startNode: start
targetNode: burdenAltar
category: construction-category-structures
description: Алтарь, несущий на себе тяжесть мировых проблем.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: convertaltar
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Алтарь Обращения (Convert Altar)
type: entity
id: AltarConvert
parent: AltarConvertFestival
name: алтарь обращения
description: Алтарь, символизирующий перемены и обращение.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: convertaltar
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: convertaltar
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: ConvertAltarGraph
node: convertAltar
type: constructionGraph
id: ConvertAltarGraph
start: start
graph:
type: construction
name: алтарь обращения
id: ConvertAltar
graph: ConvertAltarGraph
startNode: start
targetNode: convertAltar
category: construction-category-structures
description: Алтарь, символизирующий перемены и обращение.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: convertaltar
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Оранжевый Алтарь (Orange Altar)
type: entity
id: AltarConvertOrange
parent: AltarConvertFestival
name: оранжевый алтарь
description: Алтарь с яркими и теплые оттенками оранжевого.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: orange
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: orange
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: OrangeAltarGraph
node: orangeAltar
type: constructionGraph
id: OrangeAltarGraph
start: start
graph:
type: construction
name: оранжевый алтарь
id: OrangeAltar
graph: OrangeAltarGraph
startNode: start
targetNode: orangeAltar
category: construction-category-structures
description: Алтарь с яркими и теплые оттенками оранжевого.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: orange
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Красный Алтарь (Red Altar)
type: entity
id: AltarConvertRed
parent: AltarConvertFestival
name: красный алтарь
description: Алтарь, полный страсти и энергии красных оттенков.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: red
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: red
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: RedAltarGraph
node: redAltar
type: constructionGraph
id: RedAltarGraph
start: start
graph:
type: construction
name: красный алтарь
id: RedAltar
graph: RedAltarGraph
startNode: start
targetNode: redAltar
category: construction-category-structures
description: Алтарь, полный страсти и энергии красных оттенков.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: red
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Белый Алтарь (White Altar)
type: entity
id: AltarConvertWhite
parent: AltarConvertFestival
name: белый алтарь
description: Алтарь, символизирующий чистоту и светлые намерения.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: white
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: white
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: WhiteAltarGraph
node: whiteAltar
type: constructionGraph
id: WhiteAltarGraph
start: start
graph:
type: construction
name: белый алтарь
id: WhiteAltar
graph: WhiteAltarGraph
startNode: start
targetNode: whiteAltar
category: construction-category-structures
description: Алтарь, символизирующий чистоту и светлые намерения.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: white
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Желтый Алтарь (Yellow Altar)
type: entity
id: AltarConvertYellow
parent: AltarConvertFestival
name: жёлтый алтарь
description: Алтарь, излучающий радость и тепло желтых оттенков.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
state: yellow
state: lightning
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: yellow
type: PointLight
radius: 1.5
energy: 1
color: "#fbceb1"
type: Construction
graph: YellowAltarGraph
node: yellowAltar
type: constructionGraph
id: YellowAltarGraph
start: start
graph:
type: construction
name: жёлтый алтарь
id: YellowAltar
graph: YellowAltarGraph
startNode: start
targetNode: yellowAltar
category: construction-category-structures
description: Алтарь, излучающий радость и тепло желтых оттенков.
icon:
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
state: yellow
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Небесный Алтарь (Heaven Altar)
type: entity
id: AltarHeaven
parent: AltarBase
name: небесный алтарь
description: Алтарь, устремленный к свету и высшим силам.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Cults/heaven.rsi
layers:
state: full
state: blood
shader: unshaded
type: Icon
sprite: Structures/Furniture/Altars/Cults/heaven.rsi
state: full
type: Destructible
thresholds:
trigger:
!type:DamageTrigger
damage: 125
behaviors:
!type:DoActsBehavior
acts: [ "Destruction" ]
trigger:
!type:DamageTrigger
damage: 25
behaviors:
!type:PlaySoundBehavior
sound:
collection: MetalBreak
!type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 5
!type:DoActsBehavior
acts: [ "Destruction" ]
type: PointLight
radius: 1.5
energy: 1
color: "#f08080"
type: Construction
graph: HeavenAltarGraph
node: heavenAltar
type: constructionGraph
id: HeavenAltarGraph
start: start
graph:
type: construction
name: небесный алтарь
id: HeavenAltar
graph: HeavenAltarGraph
startNode: start
targetNode: heavenAltar
category: construction-category-structures
description: Алтарь, устремленный к свету и высшим силам.
icon:
sprite: Structures/Furniture/Altars/Cults/heaven.rsi
state: full
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Клыкастый Алтарь (Fangs Altar)
type: entity
id: AltarFangs
parent: AltarHeaven
name: клыкастый алтарь
description: Алтарь с угрожающими клыками и мистической аурой.
components:
type: Sprite
sprite: Structures/Furniture/Altars/Cults/fangs.rsi
type: Icon
sprite: Structures/Furniture/Altars/Cults/fangs.rsi
type: Construction
graph: FangsAltarGraph
node: fangsAltar
type: constructionGraph
id: FangsAltarGraph
start: start
graph:
type: construction
name: клыкастый алтарь
id: FangsAltar
graph: FangsAltarGraph
startNode: start
targetNode: fangsAltar
category: construction-category-structures
description: Алтарь с угрожающими клыками и мистической аурой.
icon:
sprite: Structures/Furniture/Altars/Cults/fangs.rsi
state: full
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Статуя "StatueVenusRed"
type: entity
id: StatueVenusRed
parent: BaseStructure
name: статуя непорочной девы
suffix: Красная
description: Древняя мраморная статуя. Она изображена с косой до пола и с красным ящиком для инструментов.
components:
type: Sprite
noRot: true
sprite: Structures/Decoration/statues.rsi
state: venus_red
drawdepth: Mobs
offset: "0.0,0.5"
type: Construction
graph: VenusRedStatueGraph
node: statueRed
type: constructionGraph
id: VenusRedStatueGraph
start: start
graph:
type: construction
name: статуя непорочной девы
id: VenusRedStatue
graph: VenusRedStatueGraph
startNode: start
targetNode: statueRed
category: construction-category-structures
description: Древняя мраморная статуя. Она изображена с косой до пола и с красным ящиком для инструментов.
icon:
sprite: Structures/Decoration/statues.rsi
state: venus_red
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Статуя "StatueVenusBlue"
type: entity
id: StatueVenusBlue
parent: BaseStructure
name: статуя непорочной девы
suffix: Синяя
description: Древняя мраморная статуя. Она изображена с косой до пола и с синим ящиком для инструментов.
components:
type: Sprite
noRot: true
sprite: Structures/Decoration/statues.rsi
state: venus_blue
drawdepth: Mobs
offset: "0.0,0.5"
type: Construction
graph: VenusBlueStatueGraph
node: statueBlue
type: constructionGraph
id: VenusBlueStatueGraph
start: start
graph:
type: construction
name: статуя непорочной девы
id: VenusBlueStatue
graph: VenusBlueStatueGraph
startNode: start
targetNode: statueBlue
category: construction-category-structures
description: Древняя мраморная статуя. Она изображена с косой до пола и с синим ящиком для инструментов.
icon:
sprite: Structures/Decoration/statues.rsi
state: venus_blue
objectType: Structure
placementMode: SnapgridCenter
canRotate: false
canBuildInImpassable: false
conditions:
Конструирование пустой раковины (Sink)
type: constructionGraph
id: SinkGraph
start: start
graph:
type: construction
name: раковина
id: SinkConstruction
graph: SinkGraph
startNode: start
targetNode: sinkEmpty
category: construction-category-furniture
description: Удобная пустая раковина для ваших нужд.
icon:
sprite: Structures/Furniture/sink.rsi
state: sink_stem
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
type: entity
name: раковина
id: Sink
parent: SinkEmpty
description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает."
suffix: Пустой
components:
type: Sprite
sprite: Structures/Furniture/sink.rsi
layers:
state: sink_stem
map: [ "enum.SolutionContainerLayers.Fill" ]
state: sink-fill-1
visible: false
type: Appearance
type: SolutionContainerVisuals
maxFillLevels: 1
fillBaseName: sink-fill-
solutionName: drainBuffer
type: SolutionContainerManager
solutions:
drainBuffer:
maxVol: 200
tank:
reagents:
- ReagentId: Water
Quantity: 500
type: Construction
graph: SinkGraph
node: sinkEmpty
Конструирование пустой широкой раковины (SinkWide)
type: constructionGraph
id: SinkWideGraph
start: start
graph:
type: construction
name: широкая раковина
id: SinkWideConstruction
graph: SinkWideGraph
startNode: start
targetNode: sinkWide
category: construction-category-furniture
description: Пустая широкая раковина для больших нужд.
icon:
sprite: Structures/Furniture/sink.rsi
state: sink_wide
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
type: entity
name: широкая раковина
id: SinkWide
parent: Sink
description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает."
suffix: Пустая
components:
type: Sprite
sprite: Structures/Furniture/sink.rsi
layers:
state: sink_wide
map: [ "enum.SolutionContainerLayers.Fill" ]
state: sink_wide-fill-1
visible: false
type: SolutionContainerVisuals
maxFillLevels: 1
fillBaseName: sink_wide-fill-
solutionName: drainBuffer
type: Construction
graph: SinkWideGraph
node: sinkWide
Конструирование пустой бесстебельной раковины (SinkStemless)
type: constructionGraph
id: SinkStemlessGraph
start: start
graph:
type: construction
name: раковина без опоры
id: SinkStemlessConstruction
graph: SinkStemlessGraph
startNode: start
targetNode: sinkStemlessEmpty
category: construction-category-furniture
description: Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает.
icon:
sprite: Structures/Furniture/sink.rsi
state: sink
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
type: entity
name: раковина
id: SinkStemless
parent: SinkEmpty
description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает."
suffix: Пустая
components:
type: Sprite
sprite: Structures/Furniture/sink.rsi
layers:
state: sink
map: [ "enum.SolutionContainerLayers.Fill" ]
state: sink-fill-1
visible: false
type: Construction
graph: SinkStemlessGraph
node: sinkStemlessEmpty
Конструирование дренажа (FloorDrain)
type: constructionGraph
id: DrainGraph
start: start
graph:
type: construction
name: дренаж
id: DrainConstruction
graph: DrainGraph
startNode: start
targetNode: floorDrain
category: construction-category-furniture
description: Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях.
icon:
sprite: Objects/Specific/Janitorial/drain.rsi
state: icon
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
type: entity
id: FloorDrain
name: дренаж
description: Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях.
placement:
mode: SnapgridCenter
components:
type: Sprite
drawdepth: FloorObjects
sprite: Objects/Specific/Janitorial/drain.rsi
layers:
type: InteractionOutline
type: Clickable
type: Transform
anchored: true
type: Physics
bodyType: Static
canCollide: false
type: AmbientSound
enabled: false
volume: -8
range: 8
sound:
path: /Audio/Ambience/Objects/drain.ogg
type: Drain
type: DumpableSolution
solution: drainBuffer
type: Appearance
type: SolutionContainerVisuals
maxFillLevels: 1
fillBaseName: fill-
solutionName: drainBuffer
type: SolutionContainerManager
solutions:
drainBuffer:
maxVol: 1000
type: DrainableSolution
solution: drainBuffer
type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
type: Destructible
thresholds:
trigger:
!type:DamageTrigger
damage: 200
behaviors:
!type:DoActsBehavior
acts: [ "Destruction" ]
trigger:
!type:DamageTrigger
damage: 100
behaviors:
!type:DoActsBehavior
acts: [ "Destruction" ]
!type:PlaySoundBehavior
sound:
collection: MetalBreak
type: Construction
graph: DrainGraph
node: floorDrain
Создан новый constructionGraph для GoldenPersonalAI.
ScrapPAIGold используется как начальная сущность.
GoldenPersonalAI — это то, что получится в конечном результате.
Шаги и процедуры для создания указаны по аналогии с примерами.
Изменен раздел objectType на Item, чтобы указать, что набор относится к предметам.
Теперь вы можете протестировать эту конфигурацию в вашей системе, убедившись, что она соответствует специализированным требованиям игры и механики предметов.