Stone Ore spawning on water

Bugs that are actually features.
Stevetrov
Fast Inserter
Fast Inserter
Posts: 130
Joined: Tue Jun 14, 2016 7:04 am
Contact:

Stone Ore spawning on water

Post by Stevetrov »

http://imgur.com/a/dLdIc

Details in the comments but copied here for convience.

I am using RSO 2.27 and Factorio 14.20.
I have also changed a couple of the RSO settings to:

global_richness_mult = 100 -- multiply richness for all resources except starting area
global_size_mult = 8 -- multiply size for all ores, doesn't affect starting area

Map string >>>AAAOABQAAQAFBQYAAAAEAAAAY29hbAMDAwoAAABjb3BwZXItb3Jl
AwMDCQAAAGNydWRlLW9pbAMDAwoAAABlbmVteS1iYXNlAwMDCAAAAGl
yb24tb3JlAwMDBQAAAHN0b25lAwMD4yPnL4CEHgCAhB4AAwEg2hDE<<
<

This eastern side of this patch is visible on the far west of the visible starting area.

It turns out that you can land fill in the area and the mine to the stone :)
Loewchen
Global Moderator
Global Moderator
Posts: 9307
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Stone Ore spawning on water

Post by Loewchen »

Please post:
  1. your complete .ziped mod folder
  2. the save-file
Rseding91
Factorio Staff
Factorio Staff
Posts: 14363
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Stone Ore spawning on water

Post by Rseding91 »

Can you reproduce it without RSO? Because if not, it's probably RSO spawning them over water.
If you want to get ahold of me I'm almost always on Discord.
posila
Factorio Staff
Factorio Staff
Posts: 5366
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Stone Ore spawning on water

Post by posila »

It is definitely RSO spawning over water ... but have we changed something that breaks RSO?
Stevetrov
Fast Inserter
Fast Inserter
Posts: 130
Joined: Tue Jun 14, 2016 7:04 am
Contact:

Re: Stone Ore spawning on water

Post by Stevetrov »

Rseding91: Do you need any more information from me?

To confirm the only mod I had installed was RSO, I did originally have creative mode, but uninstalled it and recreated the map to confirm it was RSO.
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Stone Ore spawning on water

Post by orzelek »

I'd file it under known issues.

Using size multiplier of 8 is well above supported parameters.
It will cause the RSO to make attempts at spawning ore well beyond charted chunks. I haven't noticed this causing issues usually when it doesn't go to far but in this case placement check might simply say it's ok even if there should be water there. I'm using can_place_entity for those checks.

Fixing it is... almost complete rewrite.
Ore spawning would need to plan the spawn, check for chunk presence, request spawning of chunks, wait and then actually valide ore spawn again and spawn it.

I might decide at some point to fix this by making proper delayed ore spawn system but not planning it for now.

Can file this under not a bug I guess since it's most likely misuse of can_place_entity :D
Stevetrov
Fast Inserter
Fast Inserter
Posts: 130
Joined: Tue Jun 14, 2016 7:04 am
Contact:

Re: Stone Ore spawning on water

Post by Stevetrov »

Wow Factorio dev and module dev, I think describing it as a known issue makes the most sense. At the end of the day it's not exactly game breaking!

Thanks for your time, your game and your mod. U r all awesome!
Rseding91
Factorio Staff
Factorio Staff
Posts: 14363
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Stone Ore spawning on water

Post by Rseding91 »

orzelek wrote:I'd file it under known issues.

Using size multiplier of 8 is well above supported parameters.
It will cause the RSO to make attempts at spawning ore well beyond charted chunks. I haven't noticed this causing issues usually when it doesn't go to far but in this case placement check might simply say it's ok even if there should be water there. I'm using can_place_entity for those checks.

Fixing it is... almost complete rewrite.
Ore spawning would need to plan the spawn, check for chunk presence, request spawning of chunks, wait and then actually valide ore spawn again and spawn it.

I might decide at some point to fix this by making proper delayed ore spawn system but not planning it for now.

Can file this under not a bug I guess since it's most likely misuse of can_place_entity :D
For 0.15 I added LuaRandomGenerator which is an instance of the deterministic random generator we use internally that you can seed yourself so you could use that to generate ores randomly on chunks as they generate without needing to "generate the entire patch" at once - just do the pieces that would end up on a given chunk when the chunk is generated. That should resolve this issue.
If you want to get ahold of me I'm almost always on Discord.
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Stone Ore spawning on water

Post by orzelek »

Rseding91 wrote:
orzelek wrote:I'd file it under known issues.

Using size multiplier of 8 is well above supported parameters.
It will cause the RSO to make attempts at spawning ore well beyond charted chunks. I haven't noticed this causing issues usually when it doesn't go to far but in this case placement check might simply say it's ok even if there should be water there. I'm using can_place_entity for those checks.

Fixing it is... almost complete rewrite.
Ore spawning would need to plan the spawn, check for chunk presence, request spawning of chunks, wait and then actually valide ore spawn again and spawn it.

I might decide at some point to fix this by making proper delayed ore spawn system but not planning it for now.

Can file this under not a bug I guess since it's most likely misuse of can_place_entity :D
For 0.15 I added LuaRandomGenerator which is an instance of the deterministic random generator we use internally that you can seed yourself so you could use that to generate ores randomly on chunks as they generate without needing to "generate the entire patch" at once - just do the pieces that would end up on a given chunk when the chunk is generated. That should resolve this issue.
Sadly RSO ore generation method is not that fragmentable I think. Currently it needs to spawn whole patch at once after calculating how it will look.
And deterministic random generator is part of RSO (written in lua). I'm looking forward to use the built in one.
Post Reply

Return to “Not a bug”