Avorion
Ships Need Fuel
此主题已被锁定
Caellion  [开发者] 2021 年 2 月 6 日 上午 6:49
Regarding Solars
I have looked around code and docs and came to following conclusions:

  • The only performance-cheap way of finding solar generation on ship/station is to loop through all blocks and count them when blockplan changes (and on startup)
  • When I include solars, I end up with really heavy maths with bonus calculation and ships still either lose or gain generation everytime they run out of fuel and then regain power (float-based modifiers lose precision)

Which lead me to these two possible solutions for now:
  1. Don't include solars at all (as of mod 0.1.4 version this is current)
  2. Include solars by just exempting ships that use no generators at all from needing fuel altogether (this will be current around 0.1.5)
最后由 Caellion 编辑于; 2021 年 2 月 7 日 上午 8:33