Phobos-developers/Phobos

Ore spawn radius(SpawnsTiberium.xxxxxx) may cause game crash

kotoricon opened this issue · 0 comments

Description

Not sure which one cause this, but I'm very sure it's because these codes.

[SOMETERRAINTYPE]             ; TerrainType
SpawnsTiberium.Type=0         ; tiberium/ore type index
SpawnsTiberium.Range=1        ; integer, radius in cells
SpawnsTiberium.GrowthStage=3  ; integer - single or comma-sep. range
SpawnsTiberium.CellsPerAnim=1 ; integer - single or comma-sep. range

Phobos Version

v0.3.0.1

Conditions to reproduce

Play a skirmish after few minutes game will random crash after sometime.

INI code

[TIBTRE01]
Name=Tiberium Tree
SpawnsTiberium=yes
RadarColor=192,192,0
IsAnimated=yes
LightVisibility=4000
LightIntensity=0.01
LightRedTint=0.01
LightGreenTint=1.5
LightBlueTint=0.01
AnimationRate=3
AnimationProbability=.003
AmbientSound=OreMineExtract
TemperateOccupationBits=7
SnowOccupationBits=7
Immune=yes
SpawnsTiberium.Type=0         ; tiberium/ore type index
SpawnsTiberium.Range=5        ; integer, radius in cells
SpawnsTiberium.GrowthStage=3  ; integer - single or comma-sep. range
SpawnsTiberium.CellsPerAnim=3 ; integer - single or comma-sep. range
[TIBTRE02]
Name=Tiberium Tree
SpawnsTiberium=yes
RadarColor=192,192,0
IsAnimated=yes
LightVisibility=4000
LightIntensity=0.01
LightRedTint=0.01
LightGreenTint=1.5
LightBlueTint=0.01
AnimationRate=3
AnimationProbability=.003
AmbientSound=OreMineExtract
TemperateOccupationBits=7
SnowOccupationBits=7
Immune=yes
SpawnsTiberium.Type=1         ; tiberium/ore type index
SpawnsTiberium.Range=4        ; integer, radius in cells
SpawnsTiberium.GrowthStage=3  ; integer - single or comma-sep. range
SpawnsTiberium.CellsPerAnim=3 ; integer - single or comma-sep. range
[TIBTRE03]
Name=Tiberium Tree
SpawnsTiberium=yes
RadarColor=192,192,0
IsAnimated=yes
LightVisibility=4000
LightIntensity=0.01
LightRedTint=0.01
LightGreenTint=1.5
LightBlueTint=0.01
AnimationRate=3
AnimationProbability=.003
AmbientSound=OreMineExtract
TemperateOccupationBits=7
SnowOccupationBits=7
Immune=yes
SpawnsTiberium.Type=2         ; tiberium/ore type index
SpawnsTiberium.Range=3        ; integer, radius in cells
SpawnsTiberium.GrowthStage=3  ; integer - single or comma-sep. range
SpawnsTiberium.CellsPerAnim=3 ; integer - single or comma-sep. range

Steps to reproduce

1.add the spawn radius code
2.start a game
3.crash
...

Expected behaviour

except.txt

Actual behaviour

After remove them everything is ok again even a more than 1-2 hour game.

Additional context

No response

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).