Ian
12-03-2012, 08:15 PM
One of my scripts has been having this a problem now that I enabled SixHourFix. Everything seems to be reporting fine except for the xp/h, and that only messes up on long reports, For example:
~~~~~~~~~~~~Almost AIO PowerMiner~~~~~~~~~~
~By BMWxi~
Iron Mined: 33474 (588 P/H)
Mining XP earned: 1171590 (-377 P/H)
Total Time: 56 Hours, 50 Minutes and 2 Seconds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See how the xp/h is -377?
This is on a shorter one, but using the same version:
~~~~~~~~~~~~Almost AIO PowerMiner~~~~~~~~~~
~By BMWxi~
Iron Mined: 8758 (652 P/H)
Mining XP earned: 306530 (22842 P/H)
Total Time: 13 Hours, 25 Minutes and 10 Seconds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The xp/h is fine.
Here is how the proggy is calculated:
begin
IronPH := Round((Iron * 3600) / (GetTimeRunning / 1000));
MiningXPPH := Round(((Iron * 35) * 3600) / (GetTimeRunning / 1000));
ClearDebug;
Writeln('~~~~~~~~~~~~Almost AIO PowerMiner~~~~~~~~~~');
Writeln(' ~By BMWxi~ ');
Writeln('Iron Mined: ' + IntToStr(Iron) + ' (' + IntToStr(IronPH) + ' P/H)');
Writeln('Mining XP earned: ' + (ToStr(Iron * 35)+ ' (' + IntToStr(MiningXPPH)) + ' P/H)');
Writeln('Total Time: ' + TimeRunning);
Writeln('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' );
end;
Does anyone know why it is going negative when running for a long time? I don't see any reason why it would, so I'm a bit puzzled.
~~~~~~~~~~~~Almost AIO PowerMiner~~~~~~~~~~
~By BMWxi~
Iron Mined: 33474 (588 P/H)
Mining XP earned: 1171590 (-377 P/H)
Total Time: 56 Hours, 50 Minutes and 2 Seconds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See how the xp/h is -377?
This is on a shorter one, but using the same version:
~~~~~~~~~~~~Almost AIO PowerMiner~~~~~~~~~~
~By BMWxi~
Iron Mined: 8758 (652 P/H)
Mining XP earned: 306530 (22842 P/H)
Total Time: 13 Hours, 25 Minutes and 10 Seconds
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The xp/h is fine.
Here is how the proggy is calculated:
begin
IronPH := Round((Iron * 3600) / (GetTimeRunning / 1000));
MiningXPPH := Round(((Iron * 35) * 3600) / (GetTimeRunning / 1000));
ClearDebug;
Writeln('~~~~~~~~~~~~Almost AIO PowerMiner~~~~~~~~~~');
Writeln(' ~By BMWxi~ ');
Writeln('Iron Mined: ' + IntToStr(Iron) + ' (' + IntToStr(IronPH) + ' P/H)');
Writeln('Mining XP earned: ' + (ToStr(Iron * 35)+ ' (' + IntToStr(MiningXPPH)) + ' P/H)');
Writeln('Total Time: ' + TimeRunning);
Writeln('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' );
end;
Does anyone know why it is going negative when running for a long time? I don't see any reason why it would, so I'm a bit puzzled.