Page 1 of 1

[Solved] Some items missing from items/entities file in base

Posted: Wed Mar 30, 2016 10:52 am
by Homusubi
I can't seem to find the code for some items (e.g. steam engines) in the items.lua or entities.lua files in the vanilla game. Where have they gone?

Also, is it possible (for someone who couldn't code if his life depended on it) to create a machine which produces power, but by consuming a certain fluid resource, without producing anything other than electricity?

Re: Some items missing from items/entities file in base

Posted: Wed Mar 30, 2016 10:54 am
by Koub
Some items are declared in the "demo" files, which are referred to in the "non demo" game files.
I wouldn't be surprised if it was the case for what you're looking for.

Re: Some items missing from items/entities file in base

Posted: Wed Mar 30, 2016 2:35 pm
by DaveMcW
Homusubi wrote:Also, is it possible (for someone who couldn't code if his life depended on it) to create a machine which produces power, but by consuming a certain fluid resource, without producing anything other than electricity?
No. Steam engines take any fluid, and it must be heated first. There are ways to hack it in if you could code.

Re: Some items missing from items/entities file in base

Posted: Wed Mar 30, 2016 5:45 pm
by Homusubi
Thanks, I've found all the items I was looking for!

Re: power generation, I've found a way around it, but it would require the ability to use liquids as a fuel. Can this be done, and, if not, which part of the code do I have to change in order to make it work?

EDIT: if I can't do this, how do I make a pseudo-boiler that outputs water at 100 degrees?

Re: Some items missing from items/entities file in base

Posted: Wed Mar 30, 2016 5:59 pm
by DaveMcW

Re: Some items missing from items/entities file in base

Posted: Thu Mar 31, 2016 11:12 am
by Homusubi
You just saved my mod with that second link. Thanks!