Page 1 of 1

[0.9.3] Energy consumption

Posted: Sat Mar 15, 2014 7:13 am
by DRBLN
There is something wrong

Image

Re: [0.9.3] Energy consumption

Posted: Sat Mar 15, 2014 7:51 pm
by DRBLN
The same game a bit later:
Image

Saved game
https://dl.dropboxusercontent.com/u/87127053/Energy.zip

Re: [0.9.3] Energy consumption

Posted: Mon Mar 17, 2014 7:42 pm
by DRBLN
Is that bug caused by mods?

Re: [0.9.3] Energy consumption

Posted: Mon Mar 17, 2014 8:12 pm
by ficolas

Re: [0.9.3] Energy consumption

Posted: Mon Mar 17, 2014 8:16 pm
by kovarex
Anyway, what is the bug? Is it that the total production doesn't match the production of steam engines?

Re: [0.9.3] Energy consumption

Posted: Mon Mar 17, 2014 8:19 pm
by ficolas
kovarex wrote:Anyway, what is the bug? Is it that the total production doesn't match the production of steam engines?
Try to open the electric production screen a bunch of times, sometimes it displays the real number multiplied by 1000, so if it 1MW it may display 1GW.

Re: [0.9.3] Energy consumption

Posted: Mon Mar 17, 2014 8:22 pm
by ficolas
MMmmm I cant seem to reproduce what I saw the other day, I tried in modded with my mod, without my mod and with lots of mods, but nothing D:

Re: [0.9.3] Energy consumption

Posted: Tue Mar 18, 2014 3:47 am
by DRBLN
kovarex wrote:Anyway, what is the bug? Is it that the total production doesn't match the production of steam engines?
1) 1 mining drill should consume ~ 90kw.
So, 7 mining drills should consume 630 kw

However, in the 1st screenshot you see, that they consume 161 MW!!! That's a wrong figure.

2) At the same time, total consumption is less, than 1 MW.
Seems illogical.

Re: [0.9.3] Energy consumption

Posted: Tue Mar 18, 2014 4:25 pm
by slpwnd
I couldn't really reproduce it as it is on the screenshot (the consumption numbers looked reasonable). I have tried the provided save specifically with F-mod and Dytech. However in that save the output was showing 3.2 GW which was obviously wrong. That was a bug and it is now fixed for 0.9.4. It could fix the consumption numbers as well but I would like to test it on a reproducible scenario so If someone has specific steps to reproduce this then please write them down.

Re: [0.9.3] Energy consumption

Posted: Tue Mar 18, 2014 4:36 pm
by ficolas
slpwnd wrote:I couldn't really reproduce it as it is on the screenshot (the consumption numbers looked reasonable). I have tried the provided save specifically with F-mod and Dytech. However in that save the output was showing 3.2 GW which was obviously wrong. That was a bug and it is now fixed for 0.9.4. It could fix the consumption numbers as well but I would like to test it on a reproducible scenario so If someone has specific steps to reproduce this then please write them down.
I noticed what the problem was, I had a entity, that didnt comsume energy, but in the script, I was doing every tick entity.energy=entity.energy-1000, so it was allways compsuming energy, and it showed really weird values, it is with the f-mod, and not even the released version, I dont know what was the problem when I did it in vanilla, I guess it was the other bug.

Re: [0.9.3] Energy consumption

Posted: Tue Mar 18, 2014 5:26 pm
by kovarex
ficolas wrote:
slpwnd wrote:I couldn't really reproduce it as it is on the screenshot (the consumption numbers looked reasonable). I have tried the provided save specifically with F-mod and Dytech. However in that save the output was showing 3.2 GW which was obviously wrong. That was a bug and it is now fixed for 0.9.4. It could fix the consumption numbers as well but I would like to test it on a reproducible scenario so If someone has specific steps to reproduce this then please write them down.
I noticed what the problem was, I had a entity, that didnt comsume energy, but in the script, I was doing every tick entity.energy=entity.energy-1000, so it was allways compsuming energy, and it showed really weird values, it is with the f-mod, and not even the released version, I dont know what was the problem when I did it in vanilla, I guess it was the other bug.
Well, the write property of energy didn't check for negative values, so it could cause strange things, it is fixed for 0.9.4 now.

Re: [0.9.3] Energy consumption

Posted: Tue Mar 18, 2014 5:40 pm
by ficolas
kovarex wrote:
ficolas wrote:
slpwnd wrote:I couldn't really reproduce it as it is on the screenshot (the consumption numbers looked reasonable). I have tried the provided save specifically with F-mod and Dytech. However in that save the output was showing 3.2 GW which was obviously wrong. That was a bug and it is now fixed for 0.9.4. It could fix the consumption numbers as well but I would like to test it on a reproducible scenario so If someone has specific steps to reproduce this then please write them down.
I noticed what the problem was, I had a entity, that didnt comsume energy, but in the script, I was doing every tick entity.energy=entity.energy-1000, so it was allways compsuming energy, and it showed really weird values, it is with the f-mod, and not even the released version, I dont know what was the problem when I did it in vanilla, I guess it was the other bug.
Well, the write property of energy didn't check for negative values, so it could cause strange things, it is fixed for 0.9.4 now.
It shouldnt set it to negative values, I also had a check to see if energy was bigger than 1000

Code: Select all

if entity.energy>1000 then
entity.energy=entity.energy-1000
end

Re: [0.9.3] Energy consumption

Posted: Tue Mar 18, 2014 6:41 pm
by DRBLN
The bug is reproduced every time I start a new game.

As far as I understand, it's fixed for 0.9.4

Re: [0.9.3] Energy consumption

Posted: Wed Mar 19, 2014 10:40 am
by slpwnd
DRBLN wrote:The bug is reproduced every time I start a new game.

As far as I understand, it's fixed for 0.9.4
I couldn't get it to do the same as it did for you (wrong consumption numbers). For me it was showing wrong production numbers. That was fixed and in theory it could have caused errors for consumption as well, so let's see with the next release :D

Re: [0.9.3] Energy consumption

Posted: Thu Mar 20, 2014 11:27 am
by Tami
I have this bug too, i dont use Mods.

Look at this Video: http://youtu.be/QzD-9wW6Z70

The numbers change randomly and also there is no *1000 Multiplicator. The used Multiplictator looks weird.

Re: [0.9.3] Energy consumption

Posted: Thu Mar 20, 2014 11:34 am
by SilverWarior
Tami wrote:Look at this Video: http://youtu.be/QzD-9wW6Z70
Can't check your video as it is marked private

Re: [0.9.3] Energy consumption

Posted: Thu Mar 20, 2014 1:36 pm
by Tami
thx, ive fixed it.