Page 1 of 1
Opening an entity
Posted: Fri Jun 03, 2016 7:01 am
by Lacni
Hi,
I'm making a mod in which i'm making a nuclear reactor. For now, I basicly copied the entity code of the steam generator. However, I want it to be openable like a furnace would be in order to add ingredients to it. I tried adding
inside my file but it did not work. Is it because my entity is of type generator and generators can't be opened/have ingredients int them?
Thanks in advance!
Re: Opening an entity
Posted: Fri Jun 03, 2016 2:01 pm
by Adil
Yes, it is.
Prototypes are basically hardcoded, and there are only a few undocumented combinations of parameters that are not represented in base game and yet are working.
Re: Opening an entity
Posted: Fri Jun 03, 2016 3:42 pm
by Lacni
Ok so is it possible to have it open or should I go a different path like using a assembling machine and making it produce electricity somehow?
Re: Opening an entity
Posted: Fri Jun 03, 2016 11:21 pm
by DRY411S
Perhaps a boiler or a smelter entity might be usable? They both accept fuel.
There is also a diesel generator that produces electricity from oil, and the wind generator in the popular
KS Power Mod
Re: Opening an entity
Posted: Fri Jun 03, 2016 11:47 pm
by Lacni
I thought about using a boiler since I mainly want my entity to accept fuel and water to produce electricity. The problem is that a boiler doesn't produce electricity. So I should I do this? I thought about placing an invisible steam generator on top of my entity to produce electricity when the right conditions are met. Would this way be usable?
PS. I also checked the KS Power mod but the diesel generator basically works like a steam generator (meaning it can't be opened). The windmill also can't be opened.
Re: Opening an entity
Posted: Fri Jun 03, 2016 11:54 pm
by DRY411S
There is the burner generator in the KS Power mod too. You also find mods for both fusion and fission, producing power and ammo
I cannot offer advice on which may be suitable for your needs, I just know that they exist..
Re: Opening an entity
Posted: Sat Jun 04, 2016 12:20 am
by Lacni
I looked at the burner generator and it seems like he iis doing it the way I mentioned earlier (meaning he places an invisible steam generator on top of is burner to produce the electricity).
So it seems I will try this out since it looks like the only doable way of doing it. Even though it seems a bit cheated
Thanks for the help everyone if you have any more tricks to make this work, feel free to let me know

Re: Opening an entity
Posted: Sat Jun 04, 2016 2:06 am
by Supercheese
You could wait for 0.13; a new entity prototype is coming that will make implementing your idea much simpler.