Page 1 of 1
Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 10:05 am
by binbinhfr
Hi,
I need to make a fake radar for a new mod. I will unactivate it, but I don't want it to display the "missing electricity" symbol.
I wonder if there is a way to make an entity autonomous in electricity (i.e. integrate in the entity a hiden free source of energy ? maybe with the new energy_source features ?)
But I did not succeed for the moment...
Any idea ?
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 10:39 am
by Klonan
binbinhfr wrote:Hi,
I need to make a fake radar for a new mod. I will unactivate it, but I don't want it to display the "missing electricity" symbol.
I wonder if there is a way to make an entity autonomous in electricity (i.e. integrate in the entity a hiden free source of energy ? maybe with the new energy_source features ?)
But I did not succeed for the moment...
Any idea ?
In energy source you can use the definition something like this:
Code: Select all
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
input_flow_limit = "1MW",
buffer_capacity = "10MJ",
render_no_network_icon = false,
render_no_power_icon = false
},
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 12:18 pm
by binbinhfr
Hi Klonan,
s
Thx for the answer, but with your trick , it seems that the derivated radar still needs to be connected to an electric network.
It cannot work autonomous.
I would like an integrated illimited free source of energy.
I want a radar that I can just put alone on the ground and it works. Is it possible ?
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 12:39 pm
by Ranakastrasz
binbinhfr wrote:Hi Klonan,
s
Thx for the answer, but with your trick , it seems that the derivated radar still needs to be connected to an electric network.
It cannot work autonomous.
I would like an integrated illimited free source of energy.
I want a radar that I can just put alone on the ground and it works. Is it possible ?
If you set the power consumtion to 0, does it work?
Also, the Render booleans are something I really wish I had a while ago.
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 12:43 pm
by binbinhfr
Ranakastrasz wrote:If you set the power consumtion to 0, does it work?
On the radar, a 0kW consulmption is not accepted.
I suppose the behaviour of the radar is calculating the frequency of the scans on the consumption and cost of one scan. So it would create a /0 error...
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 12:46 pm
by Ranakastrasz
binbinhfr wrote:Ranakastrasz wrote:If you set the power consumtion to 0, does it work?
On the radar, a 0kW consulmption is not accepted.
I suppose the behaviour of the radar is calculating the frequency of the scans on the consumption and cost of one scan. So it would create a /0 error...
Hmm. Set it to 1 Watt, and script on placement, give it a gigawatt of power. That would last several years. Real life years.
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 2:10 pm
by binbinhfr
Yes good idea, but the problem is that I cannot set the energy of this entity : it accepts the command (under LUA or under console), I see teh electricity bar jumping and coming immediatly back to 0. I put 1GJ buffer ! and the entity consumes only 10kW... I wonder if we are allowed to tweak energy variable on any type of derivated entity...
Infact on the info of teh derivated radar, there is an electricity bar, but no energy bar (like on accus).
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 2:20 pm
by ratchetfreak
IIRC there was a new energy type that is just a infinite source
Re: Electricity autonomous entity ?
Posted: Fri Jul 08, 2016 2:28 pm
by binbinhfr
maybe you are talking about the electric-energy-interface ?
but it's an entity type by itself.
I wonder if there was a way to integrate an hidden infinite source directly into an entity. Klonan seems to think that there is... Klonan, do you have any clue ?