Comments (5)
I had a look at the code and I think there must be a problem in this general area:
Kerbal-Konstructs/src/Facilities/ProductionGUI.cs
Lines 156 to 175 in 1e87ef0
I think there is a bug with time being incorrectly counted when the updates happen too fast. I was expecting something like rounding errors that lead to adding ceil(small float number), but it seems floats are being used. The updating code in the if in L156 looks okay to me though, I'd have to actually compile it to be sure.
from kerbal-konstructs.
Actually, how about never updating it, just saving the time when the funds were taken last time and just displaying a computed min(maxFunds, days * ratio) every time? That way, the intermediate state would never be there, and you'd only have to store a single value - the time of last withdrawal. That would remove any bug connected to updating funds too often instead of computing them and updating at the point of withdrawal only.
from kerbal-konstructs.
The main problem was. that I pulled the productionrate and set it to the last-check time. And I did it every frame... that why you got the insane amounts of credits and research.
from kerbal-konstructs.
ok, the Code is really a mess. I never really looked into it. I always only made it compile... this time I'm fixing it for real and I will give it reasonable numbers for the investment.
from kerbal-konstructs.
fixed with commit 3fbdf96
from kerbal-konstructs.
Related Issues (20)
- Compatibility KSP 1.10 HOT 1
- About The Launchpad Issue HOT 2
- This mod is broken? HOT 1
- ground colour problem
- RemoteTech groundstations don't seem to be saved correctly (1.11.x)
- API class is private
- K-K is not working on KSP 1.11.1 (RSS) HOT 7
- KK bug in 1.8.1 HOT 1
- Launchpads not showing up
- Ctrl+K Doesn't Open the build menu. HOT 2
- Ctrl + k opens interface but buttons do nothing HOT 11
- Kerbal Konstructs Doesn't Work
- Launchpads far from Kerbin get offset
- Cannot enter Vehicle Assembly building or Spaceplane hangar, when entering astronaut complex cannot leave.
- Doesn't Work. HOT 1
- Issue in 1.12.3 where spawning objects creates hundreds of them.
- mathHorizontalAngle and horizonAngleOffset don't exist??
- When trying to close statics menu or spawn statics it will not close/ spawn items HOT 1
- help plz
- The Launchsite editor did not save when I clicked save and close
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kerbal-konstructs.