The White Guardian

[1.3.X] INSTANTIATOR

Recommended Posts

INSTANTIATOR

They say an image speaks a thousand words. Therefore, here is a demonstration of what INSTANTIATOR can do:

8AXp9pe.png

Note: the blue accretion disk is INSTANTIATOR's work

Precisely, INSTANTIATOR makes it possible to spawn objects inside the planetary system to enrich the KSP experience. From corona-effects to accretion disks.

 

DOWNLOAD

SpaceDock [V1.0]

Source code available on GitHub

 

Disclaimer

INSTANTIATOR was originally created by forum user @Artyomka15. I (The White Guardian) only maintain the mod in their absence so that mods depending on it can continue.

Edited by The White Guardian

Share this post


Link to post
Share on other sites

*hears chanting in the background*

this better not be the next TexturesUnlimited, with everyone adding it to everything.

Share this post


Link to post
Share on other sites
3 hours ago, The Cuttlefish Empire said:

Does it still have the log file spam thing when put around stars, or is that fixed now?

That should be fixed indeed.

Share this post


Link to post
Share on other sites
48 minutes ago, GrandProtectorDark said:

Hopes for Kargantua to be Revived soon

As far as we know, Artyomka, the dev of the mod, has disappeared. Unfortunately all assets in the latest Kargantua mod are under a license that prevents anyone from modifying and redistributing its content (CC-BY-NC-ND... despite the fact that all cloud textures in Kargantua are stolen, which in itself is something I do not want to dive back into). These assets are also quite dated and will not function without a heavy rewriting of the code and configs.

Don't get your hopes up with Soon™...

Share this post


Link to post
Share on other sites

so.. is this a mod for other modes to use?
IS anyone using it yet? Which may add things in their planet packs?

Share this post


Link to post
Share on other sites
8 hours ago, Agustin said:

so.. is this a mod for other modes to use?
IS anyone using it yet? Which may add things in their planet packs?

@Gameslinx's Planet Overhaul, for example, uses INSTANTIATOR to add an accretion disk to Olu'um.

INSTANTIATOR is indeed a tool for other modders to enrich their mods.

21 hours ago, Adstriduum said:

Wait, so is SCALE the size? is it in kilometers?

It's in Unity units, and those are up to the game to define. I'm personally not sure as to what scale the INSTANTIATOR 'scale' would be, it's mostly a trial and error process currently.

Share this post


Link to post
Share on other sites
19 minutes ago, The White Guardian said:

@Gameslinx's Planet Overhaul, for example, uses INSTANTIATOR to add an accretion disk to Olu'um.

INSTANTIATOR is indeed a tool for other modders to enrich their mods.

It's in Unity units, and those are up to the game to define. I'm personally not sure as to what scale the INSTANTIATOR 'scale' would be, it's mostly a trial and error process currently.

ok. thanks :) 

Share this post


Link to post
Share on other sites

Now the texture isn't working.

B8GSlEO.png

I made sure the file and path was right many times and there are no broken links. I'm just doing this as a test.

Here is the code:

INSTANTIATOR
{
	SCALED_OBJECT //You can make as many SCALED_OBJECT and INSTANTIATOR nodes as you want, and wherever you want. There can be an infinite amount of SCALED_OBJECT nodes in an INSTANTIATOR node; One object per SCALED_OBJECT node.
	{
		Name = mundisk
		Body = Mun
		Scale = 18000, 0.0001, 18000
		Shader = Unlit
		Rotation = 0, 0, 0 
		InvertNormals = false
		Texture = intest/mundisk.png
		Type = Cube
		IgnoreLight = true
	}
}

 

Share this post


Link to post
Share on other sites
10 hours ago, Adstriduum said:

Now the texture isn't working.

B8GSlEO.png

I made sure the file and path was right many times and there are no broken links. I'm just doing this as a test.

Here is the code:


INSTANTIATOR
{
	SCALED_OBJECT //You can make as many SCALED_OBJECT and INSTANTIATOR nodes as you want, and wherever you want. There can be an infinite amount of SCALED_OBJECT nodes in an INSTANTIATOR node; One object per SCALED_OBJECT node.
	{
		Name = mundisk
		Body = Mun
		Scale = 18000, 0.0001, 18000
		Shader = Unlit
		Rotation = 0, 0, 0 
		InvertNormals = false
		Texture = intest/mundisk.png
		Type = Cube
		IgnoreLight = true
	}
}

 

The problem is the shader targeting.

INSTANTIATOR internally runs 'Shader.Find()' to target a shader, and for this to succeed, you must feed it a valid shader path. In Unity, 'Unlit' is a group consisting of four shaders, the one you're likely looking for is 'Unlit/Transparent'. Give that a try and see what happens.

Ergo, change the Shader entry from

'Shader = Unlit'

To

'Shader = Unlit/Transparent'

Edited by The White Guardian

Share this post


Link to post
Share on other sites
9 hours ago, The White Guardian said:

The problem is the shader targeting.

INSTANTIATOR internally runs 'Shader.Find()' to target a shader, and for this to succeed, you must feed it a valid shader path. In Unity, 'Unlit' is a group consisting of four shaders, the one you're likely looking for is 'Unlit/Transparent'. Give that a try and see what happens.

Ergo, change the Shader entry from

'Shader = Unlit'

To

'Shader = Unlit/Transparent'

Ok, thank you.

Edited by Adstriduum

Share this post


Link to post
Share on other sites

is there a guide to how to build planets?

 

Share this post


Link to post
Share on other sites

May we please list this on CKAN? We have a request to install it from the copy bundled in Gameslinx's Planet Overhaul, but we prefer to track each mod's individual downloads and set up proper dependencies instead, and INSTANTIATOR isn't yet in the index.

Share this post


Link to post
Share on other sites
38 minutes ago, The White Guardian said:

@HebaruSan I have no idea how CKAN works, so I cannot do this myself. If you'd be willing to do this, then please do, it'd be very much appreciated. :)

Yup, I'll take care of it (for both). Thanks!

Share this post


Link to post
Share on other sites

I just thought I should record it here that im working on adding ambient planet sounds to INSTANTIATOR. By that I mean that if you get within a certain distance of the planet, a certain sound starts playing. The altitude at which this occurs, the body around which it happens, and the sound will all be configurable. Below is the syntax i've worked out so far. Once it is done, i'd love for TheWhiteGuardian to integrate it into the main mod, but if that isn't possible I understand completely.

INSTANTIATOR
{
    LOCAL_AUDIO
    {
        Name = //unique name for the audio clip. no spaces
        Body = //any celestial body, use name not displayName
        audioPath = //path inside GameData to the audio file, use wav or ogg
        audioRadius = // at what altitude should the sound stop, in KSP units
    }
}

 

Share this post


Link to post
Share on other sites

Any Info on if it's possible to tell instantiator on which layer order to place objects when there are more than one added to a body (Like kargantua had it)

Share this post


Link to post
Share on other sites
17 hours ago, _DannezDoDooDoo_ said:

What's the news on the 1.4 update? I haven't tested the mod yet, but has anyone else?

Works fine on 1.4.x :) 

Share this post


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.