Page 1 of 1

0.6.0 Electric and crashing under areas

Posted: Tue Jul 30, 2013 12:33 am
by midnight109
Ok, for the electric part, if you add 1 of the efficency mods to a electric smelter it cuts the power then if you look at the production sumary window it randomly switches the production and consumption from a number, ie 17KW into +0.E07 <.< I dont think that is right Sometimes seems to look normal but sometimes just seems to randomly switch it to the E variable, closing window and reloading still shows the E, after awhile it will go back to numbers, and saving/reloading also seems to correct the values

Also on the effiency module, if you insert yourselt one at a time no issues, but if you Shift/Click to auto insert random crashes out just says Facotrio stoped responding in Win7x64

Re: 0.6.0 Electric and crashing under areas

Posted: Tue Jul 30, 2013 8:06 am
by kovarex
The crash should be fixed in 0.6.1, we will take a look at the number displaying.

Re: 0.6.0 Electric and crashing under areas

Posted: Wed Jul 31, 2013 9:56 pm
by Holy-Fire
I've also encountered the problem of the power display randomly switching to scientific notation.

Re: 0.6.0 Electric and crashing under areas

Posted: Wed Jul 31, 2013 10:27 pm
by midnight109
Crash is fixed it seems, but seems to have increased the weird power information, now even without and modules I am getting them on diffrent things. Will run it awhile see if can do a screenie

Re: 0.6.0 Electric and crashing under areas

Posted: Wed Jul 31, 2013 10:38 pm
by midnight109
Capture.PNG
Capture.PNG (630.74 KiB) Viewed 4015 times
a screenie

seems to occur when ever a power read out hits something going up or down in between 8-10KW, so when my solar panels charge up or down onces they hit some number in that range it goes sci notation till it gets past it then goes back to normal

Re: 0.6.0 Electric and crashing under areas

Posted: Thu Aug 01, 2013 2:22 am
by ssilk
I would bet this is a problem using printf("....%f....") or similar. Reminds me to a problem I had some times ago with outputting memory-sizes. The solution was not to use sprintf(). :)

I found a good example in php:

Code: Select all

    $unit=array('b','kb','mb','gb','tb','pb');
    return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];
Taken from here http://php.net/manual/en/function.memory-get-usage.php

Re: 0.6.0 Electric and crashing under areas

Posted: Thu Aug 01, 2013 9:57 am
by Arakasi
I had similar issue with *E* value in electric network info panel. It happens when my solar panels was not able to feed mine farm and accumulators started to compensate it. Accumulator capacity value is getting lower and there occurs *E* value for a while. My total accumulator capacity is somewhere around 12kJ and value appears around 8-9 kJ energy left.

Re: 0.6.0 Electric and crashing under areas

Posted: Sat Aug 10, 2013 5:30 pm
by kovarex
This should be solved in 0.6.1.