Jump to content

Pedestal Artifacts yaml files?


Recommended Posts

Just now, Histekia said:

Hey does anyone has all the yaml files of the artifacts from oni that an be put on pedestals?

Perhaps you get quicker result in the mod section for this, because @Rainbowdesign @Nightinggale and other modders are there.
https://forums.kleientertainment.com/forums/forum/204-oxygen-not-included-mods-and-tools/

2 minutes ago, Oozinator said:

Perhaps you get quicker result in the mod section for this, because @Rainbowdesign @Nightinggale and other modders are there.
https://forums.kleientertainment.com/forums/forum/204-oxygen-not-included-mods-and-tools/

Thanks but I dont know if thats what modders do, since I dont actually a Mod, but the yaml files  to download for the tamplate, since the artifacts arent spawn able with sandbox tool

Looks like you are asking for ArtifactConfig in C#

Spoiler

using STRINGS;
using System;
using System.Collections.Generic;
using TUNING;
using UnityEngine;

public class ArtifactConfig : IMultiEntityConfig
{
	public delegate void PostInitFn(GameObject gameObject);

	public static List<string> artifactItems = new List<string>();

	public List<GameObject> CreatePrefabs()
	{
		List<GameObject> list = new List<GameObject>();
		list.Add(ArtifactConfig.CreateArtifact("Sandstone", UI.SPACEARTIFACTS.SANDSTONE.NAME, UI.SPACEARTIFACTS.SANDSTONE.DESCRIPTION, "idle_layered_rock", "ui_layered_rock", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Sink", UI.SPACEARTIFACTS.SINK.NAME, UI.SPACEARTIFACTS.SINK.DESCRIPTION, "idle_kitchen_sink", "ui_sink", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RubiksCube", UI.SPACEARTIFACTS.RUBIKSCUBE.NAME, UI.SPACEARTIFACTS.RUBIKSCUBE.DESCRIPTION, "idle_rubiks_cube", "ui_rubiks_cube", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("OfficeMug", UI.SPACEARTIFACTS.OFFICEMUG.NAME, UI.SPACEARTIFACTS.OFFICEMUG.DESCRIPTION, "idle_coffee_mug", "ui_coffee_mug", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Obelisk", UI.SPACEARTIFACTS.OBELISK.NAME, UI.SPACEARTIFACTS.OBELISK.DESCRIPTION, "idle_tallstone", "ui_tallstone", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("OkayXray", UI.SPACEARTIFACTS.OKAYXRAY.NAME, UI.SPACEARTIFACTS.OKAYXRAY.DESCRIPTION, "idle_xray", "ui_xray", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Blender", UI.SPACEARTIFACTS.BLENDER.NAME, UI.SPACEARTIFACTS.BLENDER.DESCRIPTION, "idle_blender", "ui_blender", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Moldavite", UI.SPACEARTIFACTS.MOLDAVITE.NAME, UI.SPACEARTIFACTS.MOLDAVITE.DESCRIPTION, "idle_moldavite", "ui_moldavite", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("VHS", UI.SPACEARTIFACTS.VHS.NAME, UI.SPACEARTIFACTS.VHS.DESCRIPTION, "idle_vhs", "ui_vhs", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Saxophone", UI.SPACEARTIFACTS.SAXOPHONE.NAME, UI.SPACEARTIFACTS.SAXOPHONE.DESCRIPTION, "idle_saxophone", "ui_saxophone", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("ModernArt", UI.SPACEARTIFACTS.MODERNART.NAME, UI.SPACEARTIFACTS.MODERNART.DESCRIPTION, "idle_abstract_blocks", "ui_abstract_blocks", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("AmeliasWatch", UI.SPACEARTIFACTS.AMELIASWATCH.NAME, UI.SPACEARTIFACTS.AMELIASWATCH.DESCRIPTION, "idle_earnhart_watch", "ui_earnhart_watch", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("TeaPot", UI.SPACEARTIFACTS.TEAPOT.NAME, UI.SPACEARTIFACTS.TEAPOT.DESCRIPTION, "idle_teapot", "ui_teapot", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("BrickPhone", UI.SPACEARTIFACTS.BRICKPHONE.NAME, UI.SPACEARTIFACTS.BRICKPHONE.DESCRIPTION, "idle_brick_phone", "ui_brick_phone", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RobotArm", UI.SPACEARTIFACTS.ROBOTARM.NAME, UI.SPACEARTIFACTS.ROBOTARM.DESCRIPTION, "idle_robot_arm", "ui_robot_arm", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("ShieldGenerator", UI.SPACEARTIFACTS.SHIELDGENERATOR.NAME, UI.SPACEARTIFACTS.SHIELDGENERATOR.DESCRIPTION, "idle_hologram_generator_loop", "ui_hologram_generator", DECOR.SPACEARTIFACT.TIER2, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("BioluminescentRock", UI.SPACEARTIFACTS.BIOLUMROCK.NAME, UI.SPACEARTIFACTS.BIOLUMROCK.DESCRIPTION, "idle_bioluminescent_rock", "ui_bioluminescent_rock", DECOR.SPACEARTIFACT.TIER2, delegate(GameObject go)
		{
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.BIOLUMROCK_COLOR;
			light2D.Color = LIGHT2D.BIOLUMROCK_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.BIOLUMROCK_DIRECTION;
			light2D.Offset = LIGHT2D.BIOLUMROCK_OFFSET;
			light2D.shape = LightShape.Cone;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Stethoscope", UI.SPACEARTIFACTS.STETHOSCOPE.NAME, UI.SPACEARTIFACTS.STETHOSCOPE.DESCRIPTION, "idle_stethocope", "ui_stethoscope", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("EggRock", UI.SPACEARTIFACTS.EGGROCK.NAME, UI.SPACEARTIFACTS.EGGROCK.DESCRIPTION, "idle_egg_rock_light", "ui_egg_rock_light", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("HatchFossil", UI.SPACEARTIFACTS.HATCHFOSSIL.NAME, UI.SPACEARTIFACTS.HATCHFOSSIL.DESCRIPTION, "idle_fossil_hatch", "ui_fossil_hatch", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RockTornado", UI.SPACEARTIFACTS.ROCKTORNADO.NAME, UI.SPACEARTIFACTS.ROCKTORNADO.DESCRIPTION, "idle_whirlwind_rock", "ui_whirlwind_rock", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("PacuPercolator", UI.SPACEARTIFACTS.PERCOLATOR.NAME, UI.SPACEARTIFACTS.PERCOLATOR.DESCRIPTION, "idle_percolator", "ui_percolator", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("MagmaLamp", UI.SPACEARTIFACTS.MAGMALAMP.NAME, UI.SPACEARTIFACTS.MAGMALAMP.DESCRIPTION, "idle_lava_lamp", "ui_lava_lamp", DECOR.SPACEARTIFACT.TIER3, delegate(GameObject go)
		{
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.MAGMALAMP_COLOR;
			light2D.Color = LIGHT2D.MAGMALAMP_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.MAGMALAMP_DIRECTION;
			light2D.Offset = LIGHT2D.MAGMALAMP_OFFSET;
			light2D.shape = LightShape.Cone;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("DNAModel", UI.SPACEARTIFACTS.DNAMODEL.NAME, UI.SPACEARTIFACTS.DNAMODEL.DESCRIPTION, "idle_dna", "ui_dna", DECOR.SPACEARTIFACT.TIER4, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RainbowEggRock", UI.SPACEARTIFACTS.RAINBOWEGGROCK.NAME, UI.SPACEARTIFACTS.RAINBOWEGGROCK.DESCRIPTION, "idle_egg_rock_rainbow", "ui_egg_rock_rainbow", DECOR.SPACEARTIFACT.TIER4, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("PlasmaLamp", UI.SPACEARTIFACTS.PLASMALAMP.NAME, UI.SPACEARTIFACTS.PLASMALAMP.DESCRIPTION, "idle_plasma_lamp_loop", "ui_plasma_lamp", DECOR.SPACEARTIFACT.TIER4, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.PLASMALAMP_COLOR;
			light2D.Color = LIGHT2D.PLASMALAMP_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.PLASMALAMP_DIRECTION;
			light2D.Offset = LIGHT2D.PLASMALAMP_OFFSET;
			light2D.shape = LightShape.Circle;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("SolarSystem", UI.SPACEARTIFACTS.SOLARSYSTEM.NAME, UI.SPACEARTIFACTS.SOLARSYSTEM.DESCRIPTION, "idle_solar_system_loop", "ui_solar_system", DECOR.SPACEARTIFACT.TIER5, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Moonmoonmoon", UI.SPACEARTIFACTS.MOONMOONMOON.NAME, UI.SPACEARTIFACTS.MOONMOONMOON.DESCRIPTION, "idle_moon", "ui_moon", DECOR.SPACEARTIFACT.TIER5, null, SimHashes.Creature));
		foreach (GameObject current in list)
		{
			ArtifactConfig.artifactItems.Add(current.name);
		}
		return list;
	}

	public static GameObject CreateArtifact(string id, string name, string desc, string initial_anim, string ui_anim, ArtifactTier artifact_tier, ArtifactConfig.PostInitFn postInitFn = null, SimHashes element = SimHashes.Creature)
	{
		GameObject gameObject = EntityTemplates.CreateLooseEntity("artifact_" + id.ToLower(), name, desc, 25f, true, Assets.GetAnim("artifacts_kanim"), initial_anim, Grid.SceneLayer.Ore, EntityTemplates.CollisionShape.RECTANGLE, 1f, 1f, true, SORTORDER.BUILDINGELEMENTS, element, new List<Tag>
		{
			GameTags.MiscPickupable
		});
		OccupyArea occupyArea = gameObject.AddOrGet<OccupyArea>();
		occupyArea.OccupiedCellsOffsets = EntityTemplates.GenerateOffsets(1, 1);
		DecorProvider decorProvider = gameObject.AddOrGet<DecorProvider>();
		decorProvider.SetValues(artifact_tier.decorValues);
		decorProvider.overrideName = gameObject.name;
		SpaceArtifact spaceArtifact = gameObject.AddOrGet<SpaceArtifact>();
		spaceArtifact.SetUIAnim(ui_anim);
		spaceArtifact.SetArtifactTier(artifact_tier);
		gameObject.AddOrGet<KSelectable>();
		gameObject.GetComponent<KBatchedAnimController>().initialMode = KAnim.PlayMode.Loop;
		if (postInitFn != null)
		{
			postInitFn(gameObject);
		}
		KPrefabID component = gameObject.GetComponent<KPrefabID>();
		component.AddTag(GameTags.PedestalDisplayable);
		component.AddTag(GameTags.Artifact);
		return gameObject;
	}

	public void OnPrefabInit(GameObject inst)
	{
	}

	public void OnSpawn(GameObject inst)
	{
	}
}

 

 

6 minutes ago, Nightinggale said:

Looks like you are asking for ArtifactConfig in C#

  Reveal hidden contents


using STRINGS;
using System;
using System.Collections.Generic;
using TUNING;
using UnityEngine;

public class ArtifactConfig : IMultiEntityConfig
{
	public delegate void PostInitFn(GameObject gameObject);

	public static List<string> artifactItems = new List<string>();

	public List<GameObject> CreatePrefabs()
	{
		List<GameObject> list = new List<GameObject>();
		list.Add(ArtifactConfig.CreateArtifact("Sandstone", UI.SPACEARTIFACTS.SANDSTONE.NAME, UI.SPACEARTIFACTS.SANDSTONE.DESCRIPTION, "idle_layered_rock", "ui_layered_rock", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Sink", UI.SPACEARTIFACTS.SINK.NAME, UI.SPACEARTIFACTS.SINK.DESCRIPTION, "idle_kitchen_sink", "ui_sink", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RubiksCube", UI.SPACEARTIFACTS.RUBIKSCUBE.NAME, UI.SPACEARTIFACTS.RUBIKSCUBE.DESCRIPTION, "idle_rubiks_cube", "ui_rubiks_cube", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("OfficeMug", UI.SPACEARTIFACTS.OFFICEMUG.NAME, UI.SPACEARTIFACTS.OFFICEMUG.DESCRIPTION, "idle_coffee_mug", "ui_coffee_mug", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Obelisk", UI.SPACEARTIFACTS.OBELISK.NAME, UI.SPACEARTIFACTS.OBELISK.DESCRIPTION, "idle_tallstone", "ui_tallstone", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("OkayXray", UI.SPACEARTIFACTS.OKAYXRAY.NAME, UI.SPACEARTIFACTS.OKAYXRAY.DESCRIPTION, "idle_xray", "ui_xray", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Blender", UI.SPACEARTIFACTS.BLENDER.NAME, UI.SPACEARTIFACTS.BLENDER.DESCRIPTION, "idle_blender", "ui_blender", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Moldavite", UI.SPACEARTIFACTS.MOLDAVITE.NAME, UI.SPACEARTIFACTS.MOLDAVITE.DESCRIPTION, "idle_moldavite", "ui_moldavite", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("VHS", UI.SPACEARTIFACTS.VHS.NAME, UI.SPACEARTIFACTS.VHS.DESCRIPTION, "idle_vhs", "ui_vhs", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Saxophone", UI.SPACEARTIFACTS.SAXOPHONE.NAME, UI.SPACEARTIFACTS.SAXOPHONE.DESCRIPTION, "idle_saxophone", "ui_saxophone", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("ModernArt", UI.SPACEARTIFACTS.MODERNART.NAME, UI.SPACEARTIFACTS.MODERNART.DESCRIPTION, "idle_abstract_blocks", "ui_abstract_blocks", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("AmeliasWatch", UI.SPACEARTIFACTS.AMELIASWATCH.NAME, UI.SPACEARTIFACTS.AMELIASWATCH.DESCRIPTION, "idle_earnhart_watch", "ui_earnhart_watch", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("TeaPot", UI.SPACEARTIFACTS.TEAPOT.NAME, UI.SPACEARTIFACTS.TEAPOT.DESCRIPTION, "idle_teapot", "ui_teapot", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("BrickPhone", UI.SPACEARTIFACTS.BRICKPHONE.NAME, UI.SPACEARTIFACTS.BRICKPHONE.DESCRIPTION, "idle_brick_phone", "ui_brick_phone", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RobotArm", UI.SPACEARTIFACTS.ROBOTARM.NAME, UI.SPACEARTIFACTS.ROBOTARM.DESCRIPTION, "idle_robot_arm", "ui_robot_arm", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("ShieldGenerator", UI.SPACEARTIFACTS.SHIELDGENERATOR.NAME, UI.SPACEARTIFACTS.SHIELDGENERATOR.DESCRIPTION, "idle_hologram_generator_loop", "ui_hologram_generator", DECOR.SPACEARTIFACT.TIER2, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("BioluminescentRock", UI.SPACEARTIFACTS.BIOLUMROCK.NAME, UI.SPACEARTIFACTS.BIOLUMROCK.DESCRIPTION, "idle_bioluminescent_rock", "ui_bioluminescent_rock", DECOR.SPACEARTIFACT.TIER2, delegate(GameObject go)
		{
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.BIOLUMROCK_COLOR;
			light2D.Color = LIGHT2D.BIOLUMROCK_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.BIOLUMROCK_DIRECTION;
			light2D.Offset = LIGHT2D.BIOLUMROCK_OFFSET;
			light2D.shape = LightShape.Cone;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Stethoscope", UI.SPACEARTIFACTS.STETHOSCOPE.NAME, UI.SPACEARTIFACTS.STETHOSCOPE.DESCRIPTION, "idle_stethocope", "ui_stethoscope", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("EggRock", UI.SPACEARTIFACTS.EGGROCK.NAME, UI.SPACEARTIFACTS.EGGROCK.DESCRIPTION, "idle_egg_rock_light", "ui_egg_rock_light", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("HatchFossil", UI.SPACEARTIFACTS.HATCHFOSSIL.NAME, UI.SPACEARTIFACTS.HATCHFOSSIL.DESCRIPTION, "idle_fossil_hatch", "ui_fossil_hatch", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RockTornado", UI.SPACEARTIFACTS.ROCKTORNADO.NAME, UI.SPACEARTIFACTS.ROCKTORNADO.DESCRIPTION, "idle_whirlwind_rock", "ui_whirlwind_rock", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("PacuPercolator", UI.SPACEARTIFACTS.PERCOLATOR.NAME, UI.SPACEARTIFACTS.PERCOLATOR.DESCRIPTION, "idle_percolator", "ui_percolator", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("MagmaLamp", UI.SPACEARTIFACTS.MAGMALAMP.NAME, UI.SPACEARTIFACTS.MAGMALAMP.DESCRIPTION, "idle_lava_lamp", "ui_lava_lamp", DECOR.SPACEARTIFACT.TIER3, delegate(GameObject go)
		{
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.MAGMALAMP_COLOR;
			light2D.Color = LIGHT2D.MAGMALAMP_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.MAGMALAMP_DIRECTION;
			light2D.Offset = LIGHT2D.MAGMALAMP_OFFSET;
			light2D.shape = LightShape.Cone;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("DNAModel", UI.SPACEARTIFACTS.DNAMODEL.NAME, UI.SPACEARTIFACTS.DNAMODEL.DESCRIPTION, "idle_dna", "ui_dna", DECOR.SPACEARTIFACT.TIER4, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RainbowEggRock", UI.SPACEARTIFACTS.RAINBOWEGGROCK.NAME, UI.SPACEARTIFACTS.RAINBOWEGGROCK.DESCRIPTION, "idle_egg_rock_rainbow", "ui_egg_rock_rainbow", DECOR.SPACEARTIFACT.TIER4, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("PlasmaLamp", UI.SPACEARTIFACTS.PLASMALAMP.NAME, UI.SPACEARTIFACTS.PLASMALAMP.DESCRIPTION, "idle_plasma_lamp_loop", "ui_plasma_lamp", DECOR.SPACEARTIFACT.TIER4, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.PLASMALAMP_COLOR;
			light2D.Color = LIGHT2D.PLASMALAMP_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.PLASMALAMP_DIRECTION;
			light2D.Offset = LIGHT2D.PLASMALAMP_OFFSET;
			light2D.shape = LightShape.Circle;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("SolarSystem", UI.SPACEARTIFACTS.SOLARSYSTEM.NAME, UI.SPACEARTIFACTS.SOLARSYSTEM.DESCRIPTION, "idle_solar_system_loop", "ui_solar_system", DECOR.SPACEARTIFACT.TIER5, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Moonmoonmoon", UI.SPACEARTIFACTS.MOONMOONMOON.NAME, UI.SPACEARTIFACTS.MOONMOONMOON.DESCRIPTION, "idle_moon", "ui_moon", DECOR.SPACEARTIFACT.TIER5, null, SimHashes.Creature));
		foreach (GameObject current in list)
		{
			ArtifactConfig.artifactItems.Add(current.name);
		}
		return list;
	}

	public static GameObject CreateArtifact(string id, string name, string desc, string initial_anim, string ui_anim, ArtifactTier artifact_tier, ArtifactConfig.PostInitFn postInitFn = null, SimHashes element = SimHashes.Creature)
	{
		GameObject gameObject = EntityTemplates.CreateLooseEntity("artifact_" + id.ToLower(), name, desc, 25f, true, Assets.GetAnim("artifacts_kanim"), initial_anim, Grid.SceneLayer.Ore, EntityTemplates.CollisionShape.RECTANGLE, 1f, 1f, true, SORTORDER.BUILDINGELEMENTS, element, new List<Tag>
		{
			GameTags.MiscPickupable
		});
		OccupyArea occupyArea = gameObject.AddOrGet<OccupyArea>();
		occupyArea.OccupiedCellsOffsets = EntityTemplates.GenerateOffsets(1, 1);
		DecorProvider decorProvider = gameObject.AddOrGet<DecorProvider>();
		decorProvider.SetValues(artifact_tier.decorValues);
		decorProvider.overrideName = gameObject.name;
		SpaceArtifact spaceArtifact = gameObject.AddOrGet<SpaceArtifact>();
		spaceArtifact.SetUIAnim(ui_anim);
		spaceArtifact.SetArtifactTier(artifact_tier);
		gameObject.AddOrGet<KSelectable>();
		gameObject.GetComponent<KBatchedAnimController>().initialMode = KAnim.PlayMode.Loop;
		if (postInitFn != null)
		{
			postInitFn(gameObject);
		}
		KPrefabID component = gameObject.GetComponent<KPrefabID>();
		component.AddTag(GameTags.PedestalDisplayable);
		component.AddTag(GameTags.Artifact);
		return gameObject;
	}

	public void OnPrefabInit(GameObject inst)
	{
	}

	public void OnSpawn(GameObject inst)
	{
	}
}

 

 

I dont know what they are called but since they all have artifact in their name probably yes

@Nightinggale

do you have the yaml files of all of them?

23 minutes ago, Histekia said:

do you have the yaml files of all of them?

It doesn't look like there is a yaml file for them at all. They are hardcoded into C#, which is likely the quick solution for Klei, but it certainly isn't the most modding friendly solution.

I would actually call this a bug in the modding support, but I wouldn't start to talk with Klei about it right now. Not only are there preview bugs, which would take priority, I would like to know what they have to tell about the new modding system before saying a lot of stuff about how the modding system could be improved. Quoted from the release announcement of the preview:

On 6/27/2019 at 8:31 PM, Ipsquiggle said:

The mods system has also had some refinement, and tutorials showing will be posted shortly showing off all the new tools.

@Nightinggale

Well I thought that someine here who has all of them IN Game could make yaml files rea quick by using the tamplate, save them and then upload it here from the folder.

At least thats what I have seen other people doing with such stuff in the past before sandbox, like in this one
 

 

Looks like there is a TemplateContainer containing SaveToYaml code. It's linked to some debug button I don't know anything about. Other than that, I don't know anything about this. This is most certainly something we should ask Klei about if it's not included in their future modding tutorials.

On 29.6.2019 at 5:14 PM, Nightinggale said:

It doesn't look like there is a yaml file for them at all. They are hardcoded into C#, which is likely the quick solution for Klei, but it certainly isn't the most modding friendly solution.

I would actually call this a bug in the modding support, but I wouldn't start to talk with Klei about it right now. Not only are there preview bugs, which would take priority, I would like to know what they have to tell about the new modding system before saying a lot of stuff about how the modding system could be improved. Quoted from the release announcement of the preview:

 

I got them. After 2 days hardcore Rocket launching, I'm just missing 7, but I'm gonna post the first of them here if someone else ever needs them

If I get the other 7, I will post them too, thanks for the answers

Artifact Archaic Tech.yaml

Artifact Blender.yaml

Artifact Double Helix Model.yaml

Artifact Egg Shaped Rock (Rainbow).yaml

Artifact Egg Shaped Rock (White).yaml

Artifact Encrusted Teapot.yaml

Artifact Mangled Saxophone.yaml

Artifact Moldavite.yaml

Artifact Old X Ray.yaml

Artifact Perculator.yaml

Artifact Pristine Fossil.yaml

Artifact Robot Arm.yaml

Artifact Rubiks Cube.yaml

Artifact Sandstone.yaml

Artifact Self Contained System.yaml

Artifact Shield Generator.yaml

Artifact Small Obelisk.yaml

Artifact Stethoscope.yaml

Artifact Strange Brick.yaml

Artifact Tornado Rock.yaml

Artifact Wrist Watch.yaml

15 hours ago, Nightinggale said:

How did you get them?

first you need debug template, best you follow this you tube video for it

Then go into your ...\Your-Steam-folder\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\StreamingAssets\templates\ folders and download  yaml files  and put them there if you want or take already made ones of your folder and share if you want.
Lets say your base. You can save your base with debug and spawn it in the next world or spawn  geysers etc that are not spawnable via sandbox right now.
You can find most of them in this one

 

For missing artifacts, you can edit your yaml file such as Artifact Archaic Tech.yaml with Notepad and change the name in id row to the missing one. For example;

- id: artifact_vhs

changes to

- id: artifact_moonmoonmoon

and save as a new .yaml file.

Note: You can find artifact name after the word ArtifactConfig.CreateArtifact(...)

On 6/29/2019 at 9:36 PM, Nightinggale said:

Looks like you are asking for ArtifactConfig in C#

  Hide contents


using STRINGS;
using System;
using System.Collections.Generic;
using TUNING;
using UnityEngine;

public class ArtifactConfig : IMultiEntityConfig
{
	public delegate void PostInitFn(GameObject gameObject);

	public static List<string> artifactItems = new List<string>();

	public List<GameObject> CreatePrefabs()
	{
		List<GameObject> list = new List<GameObject>();
		list.Add(ArtifactConfig.CreateArtifact("Sandstone", UI.SPACEARTIFACTS.SANDSTONE.NAME, UI.SPACEARTIFACTS.SANDSTONE.DESCRIPTION, "idle_layered_rock", "ui_layered_rock", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Sink", UI.SPACEARTIFACTS.SINK.NAME, UI.SPACEARTIFACTS.SINK.DESCRIPTION, "idle_kitchen_sink", "ui_sink", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RubiksCube", UI.SPACEARTIFACTS.RUBIKSCUBE.NAME, UI.SPACEARTIFACTS.RUBIKSCUBE.DESCRIPTION, "idle_rubiks_cube", "ui_rubiks_cube", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("OfficeMug", UI.SPACEARTIFACTS.OFFICEMUG.NAME, UI.SPACEARTIFACTS.OFFICEMUG.DESCRIPTION, "idle_coffee_mug", "ui_coffee_mug", DECOR.SPACEARTIFACT.TIER0, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Obelisk", UI.SPACEARTIFACTS.OBELISK.NAME, UI.SPACEARTIFACTS.OBELISK.DESCRIPTION, "idle_tallstone", "ui_tallstone", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("OkayXray", UI.SPACEARTIFACTS.OKAYXRAY.NAME, UI.SPACEARTIFACTS.OKAYXRAY.DESCRIPTION, "idle_xray", "ui_xray", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Blender", UI.SPACEARTIFACTS.BLENDER.NAME, UI.SPACEARTIFACTS.BLENDER.DESCRIPTION, "idle_blender", "ui_blender", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Moldavite", UI.SPACEARTIFACTS.MOLDAVITE.NAME, UI.SPACEARTIFACTS.MOLDAVITE.DESCRIPTION, "idle_moldavite", "ui_moldavite", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("VHS", UI.SPACEARTIFACTS.VHS.NAME, UI.SPACEARTIFACTS.VHS.DESCRIPTION, "idle_vhs", "ui_vhs", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Saxophone", UI.SPACEARTIFACTS.SAXOPHONE.NAME, UI.SPACEARTIFACTS.SAXOPHONE.DESCRIPTION, "idle_saxophone", "ui_saxophone", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("ModernArt", UI.SPACEARTIFACTS.MODERNART.NAME, UI.SPACEARTIFACTS.MODERNART.DESCRIPTION, "idle_abstract_blocks", "ui_abstract_blocks", DECOR.SPACEARTIFACT.TIER1, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("AmeliasWatch", UI.SPACEARTIFACTS.AMELIASWATCH.NAME, UI.SPACEARTIFACTS.AMELIASWATCH.DESCRIPTION, "idle_earnhart_watch", "ui_earnhart_watch", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("TeaPot", UI.SPACEARTIFACTS.TEAPOT.NAME, UI.SPACEARTIFACTS.TEAPOT.DESCRIPTION, "idle_teapot", "ui_teapot", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("BrickPhone", UI.SPACEARTIFACTS.BRICKPHONE.NAME, UI.SPACEARTIFACTS.BRICKPHONE.DESCRIPTION, "idle_brick_phone", "ui_brick_phone", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RobotArm", UI.SPACEARTIFACTS.ROBOTARM.NAME, UI.SPACEARTIFACTS.ROBOTARM.DESCRIPTION, "idle_robot_arm", "ui_robot_arm", DECOR.SPACEARTIFACT.TIER2, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("ShieldGenerator", UI.SPACEARTIFACTS.SHIELDGENERATOR.NAME, UI.SPACEARTIFACTS.SHIELDGENERATOR.DESCRIPTION, "idle_hologram_generator_loop", "ui_hologram_generator", DECOR.SPACEARTIFACT.TIER2, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("BioluminescentRock", UI.SPACEARTIFACTS.BIOLUMROCK.NAME, UI.SPACEARTIFACTS.BIOLUMROCK.DESCRIPTION, "idle_bioluminescent_rock", "ui_bioluminescent_rock", DECOR.SPACEARTIFACT.TIER2, delegate(GameObject go)
		{
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.BIOLUMROCK_COLOR;
			light2D.Color = LIGHT2D.BIOLUMROCK_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.BIOLUMROCK_DIRECTION;
			light2D.Offset = LIGHT2D.BIOLUMROCK_OFFSET;
			light2D.shape = LightShape.Cone;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Stethoscope", UI.SPACEARTIFACTS.STETHOSCOPE.NAME, UI.SPACEARTIFACTS.STETHOSCOPE.DESCRIPTION, "idle_stethocope", "ui_stethoscope", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("EggRock", UI.SPACEARTIFACTS.EGGROCK.NAME, UI.SPACEARTIFACTS.EGGROCK.DESCRIPTION, "idle_egg_rock_light", "ui_egg_rock_light", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("HatchFossil", UI.SPACEARTIFACTS.HATCHFOSSIL.NAME, UI.SPACEARTIFACTS.HATCHFOSSIL.DESCRIPTION, "idle_fossil_hatch", "ui_fossil_hatch", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RockTornado", UI.SPACEARTIFACTS.ROCKTORNADO.NAME, UI.SPACEARTIFACTS.ROCKTORNADO.DESCRIPTION, "idle_whirlwind_rock", "ui_whirlwind_rock", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("PacuPercolator", UI.SPACEARTIFACTS.PERCOLATOR.NAME, UI.SPACEARTIFACTS.PERCOLATOR.DESCRIPTION, "idle_percolator", "ui_percolator", DECOR.SPACEARTIFACT.TIER3, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("MagmaLamp", UI.SPACEARTIFACTS.MAGMALAMP.NAME, UI.SPACEARTIFACTS.MAGMALAMP.DESCRIPTION, "idle_lava_lamp", "ui_lava_lamp", DECOR.SPACEARTIFACT.TIER3, delegate(GameObject go)
		{
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.MAGMALAMP_COLOR;
			light2D.Color = LIGHT2D.MAGMALAMP_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.MAGMALAMP_DIRECTION;
			light2D.Offset = LIGHT2D.MAGMALAMP_OFFSET;
			light2D.shape = LightShape.Cone;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("DNAModel", UI.SPACEARTIFACTS.DNAMODEL.NAME, UI.SPACEARTIFACTS.DNAMODEL.DESCRIPTION, "idle_dna", "ui_dna", DECOR.SPACEARTIFACT.TIER4, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("RainbowEggRock", UI.SPACEARTIFACTS.RAINBOWEGGROCK.NAME, UI.SPACEARTIFACTS.RAINBOWEGGROCK.DESCRIPTION, "idle_egg_rock_rainbow", "ui_egg_rock_rainbow", DECOR.SPACEARTIFACT.TIER4, null, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("PlasmaLamp", UI.SPACEARTIFACTS.PLASMALAMP.NAME, UI.SPACEARTIFACTS.PLASMALAMP.DESCRIPTION, "idle_plasma_lamp_loop", "ui_plasma_lamp", DECOR.SPACEARTIFACT.TIER4, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
			Light2D light2D = go.AddOrGet<Light2D>();
			light2D.overlayColour = LIGHT2D.PLASMALAMP_COLOR;
			light2D.Color = LIGHT2D.PLASMALAMP_COLOR;
			light2D.Range = 2f;
			light2D.Angle = 0f;
			light2D.Direction = LIGHT2D.PLASMALAMP_DIRECTION;
			light2D.Offset = LIGHT2D.PLASMALAMP_OFFSET;
			light2D.shape = LightShape.Circle;
			light2D.drawOverlay = true;
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("SolarSystem", UI.SPACEARTIFACTS.SOLARSYSTEM.NAME, UI.SPACEARTIFACTS.SOLARSYSTEM.DESCRIPTION, "idle_solar_system_loop", "ui_solar_system", DECOR.SPACEARTIFACT.TIER5, delegate(GameObject go)
		{
			go.AddOrGet<LoopingSounds>();
		}, SimHashes.Creature));
		list.Add(ArtifactConfig.CreateArtifact("Moonmoonmoon", UI.SPACEARTIFACTS.MOONMOONMOON.NAME, UI.SPACEARTIFACTS.MOONMOONMOON.DESCRIPTION, "idle_moon", "ui_moon", DECOR.SPACEARTIFACT.TIER5, null, SimHashes.Creature));
		foreach (GameObject current in list)
		{
			ArtifactConfig.artifactItems.Add(current.name);
		}
		return list;
	}

	public static GameObject CreateArtifact(string id, string name, string desc, string initial_anim, string ui_anim, ArtifactTier artifact_tier, ArtifactConfig.PostInitFn postInitFn = null, SimHashes element = SimHashes.Creature)
	{
		GameObject gameObject = EntityTemplates.CreateLooseEntity("artifact_" + id.ToLower(), name, desc, 25f, true, Assets.GetAnim("artifacts_kanim"), initial_anim, Grid.SceneLayer.Ore, EntityTemplates.CollisionShape.RECTANGLE, 1f, 1f, true, SORTORDER.BUILDINGELEMENTS, element, new List<Tag>
		{
			GameTags.MiscPickupable
		});
		OccupyArea occupyArea = gameObject.AddOrGet<OccupyArea>();
		occupyArea.OccupiedCellsOffsets = EntityTemplates.GenerateOffsets(1, 1);
		DecorProvider decorProvider = gameObject.AddOrGet<DecorProvider>();
		decorProvider.SetValues(artifact_tier.decorValues);
		decorProvider.overrideName = gameObject.name;
		SpaceArtifact spaceArtifact = gameObject.AddOrGet<SpaceArtifact>();
		spaceArtifact.SetUIAnim(ui_anim);
		spaceArtifact.SetArtifactTier(artifact_tier);
		gameObject.AddOrGet<KSelectable>();
		gameObject.GetComponent<KBatchedAnimController>().initialMode = KAnim.PlayMode.Loop;
		if (postInitFn != null)
		{
			postInitFn(gameObject);
		}
		KPrefabID component = gameObject.GetComponent<KPrefabID>();
		component.AddTag(GameTags.PedestalDisplayable);
		component.AddTag(GameTags.Artifact);
		return gameObject;
	}

	public void OnPrefabInit(GameObject inst)
	{
	}

	public void OnSpawn(GameObject inst)
	{
	}
}

 

 

artifact_bioluminescentrock.yaml

artifact_magmalamp.yaml

artifact_modernart.yaml

artifact_moonmoonmoon.yaml

artifact_officemug.yaml

artifact_plasmalamp.yaml

artifact_sink.yaml

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...