Avorion
Fixed resource asteroid respawn
13 条留言
Xeo 2022 年 10 月 18 日 下午 2:29 
I looked at the code for this mod vs the base file, it looks like it's still needed.
Cosmicpixels 2022 年 9 月 16 日 上午 2:46 
Is this still a problem?
Simple Giant 2022 年 9 月 13 日 上午 10:34 
Is this still a problem?
LumberingTroll 2021 年 9 月 7 日 下午 2:31 
How did this not get fixed in 2.0...
Caellion  [作者] 2021 年 7 月 2 日 上午 9:59 
Tbh, I am waiting for 2.0, if they don't fix it by themselves by then I will drop a line to them
FuryoftheStars 2021 年 7 月 1 日 下午 3:45 
Caellion, if you're still playing, you can also use the in-game "Report a bug" feature and just describe which file and line. I've done it like this a few times myself.
_DrunkenGibberish_ 2021 年 2 月 16 日 下午 8:27 
@Caellion

I do not know about a pull-request page however there is a forum that is linked in the top right of the Avorion.net page.

The forums themselves can be found at forum.avorion.net

Hope that helps!
Caellion  [作者] 2021 年 2 月 10 日 上午 7:43 
@_DrunkenGibberish_

Do you know anyplace I could fill a pullrequest ar a real bug report?
I don't even see any forum link on official website...
_DrunkenGibberish_ 2021 年 2 月 9 日 下午 5:02 
Maybe you could submit this to the Devs as a bug fix? Coding is hard enough with small projects but something as big as Avorion with only a small team and things start to slip by.

This could help them by saving them the work time needed to develop a fix and instead they only need to implement it!
Caellion  [作者] 2020 年 11 月 22 日 上午 6:47 
well, all that my fix really does is replace this:

local richAsteroids = sector:getNumEntitiesByComponent(ComponentType.MineableMaterial)

with this:

local richAsteroids = 0
local asteroids = {sector:getEntitiesByComponent(ComponentType.MineableMaterial)}

for i, asteroid in ipairs(asteroids) do
if asteroid.isAsteroid then
richAsteroids = richAsteroids + 1
end
end

Because sector:getNumEntitiesByComponent(ComponentType.MineableMaterial) can (and will) also count wreckages as they have MinableMaterial Component.
My fix just also checks if the thing returned by component search is actually an asteroid.


And yep, it indeed is a stupid kind of bug, probably stemming from the thing that game did not have minable wrecks in very early development and then dev forgot that this script uses this method.
arkavianx 2020 年 11 月 21 日 下午 4:19 
Sigh, figures it would be something stupid as a bug like this lol. Anyway, I was looking at the same script and wondering if it also needed a player to reinitialize the sector and proc the script, but running this now to see what happens.
Caellion  [作者] 2020 年 11 月 21 日 下午 3:48 
just looked at relevant script, and if DLC doesn't change the script, then I believe that it still is the case.

I don't have the DLC so I can't check this, but in vanilla it doesn't seem to have changed (looks like the script wasn't even touched by the update)
arkavianx 2020 年 11 月 21 日 下午 2:23 
Do you know if this is still an issue?