Page 1 of 1
How to place cliffs
Posted: Mon Nov 12, 2018 9:26 am
by darkfrei
How to place cliffs by the script?
Re: How to place cliffs
Posted: Mon Nov 12, 2018 11:10 am
by Bilka
surface.create_entity?
Re: How to place cliffs
Posted: Mon Nov 12, 2018 11:26 am
by darkfrei
Bilka wrote: Mon Nov 12, 2018 11:10 am
surface.create_entity?
Yes, but placing the ring of cliffs is too complicated.
Re: How to place cliffs
Posted: Wed Jan 30, 2019 9:20 pm
by mrvn
I'm stuck with this too.
Best I can figure out you have to create_entity the cliff in one of the 8 directions and rotate it 0-19 times.
But what direction and rotation do I have to use and where do I place the cliffs so they form a nice 60% slope for the side of a hexagon for example?
Re: How to place cliffs
Posted: Thu Jan 31, 2019 4:45 am
by Rseding91
darkfrei wrote: Mon Nov 12, 2018 11:26 am
Bilka wrote: Mon Nov 12, 2018 11:10 am
surface.create_entity?
Yes, but placing the ring of cliffs is too complicated.
I can vouch for that. It took me around 2 days of full time work to understand how cliffs work when put into the world.
Re: How to place cliffs
Posted: Thu Jan 31, 2019 10:47 am
by mrvn
Rseding91 wrote: Thu Jan 31, 2019 4:45 am
darkfrei wrote: Mon Nov 12, 2018 11:26 am
Bilka wrote: Mon Nov 12, 2018 11:10 am
surface.create_entity?
Yes, but placing the ring of cliffs is too complicated.
I can vouch for that. It took me around 2 days of full time work to understand how cliffs work when put into the world.
Do you have a list of what combination of direction when creating and rotation ends up with what kind of cliff piece?
Re: How to place cliffs
Posted: Thu Jan 31, 2019 5:45 pm
by Rseding91
mrvn wrote: Thu Jan 31, 2019 10:47 am
Do you have a list of what combination of direction when creating and rotation ends up with what kind of cliff piece?
No, I implemented building them generically so the system just has "a" cliff rotation and you see what it makes when building.
When making cliffs direction is irrelevant. You want cliff_direction.
Re: How to place cliffs
Posted: Mon Feb 04, 2019 9:03 pm
by mrvn
Rseding91 wrote: Thu Jan 31, 2019 5:45 pm
mrvn wrote: Thu Jan 31, 2019 10:47 am
Do you have a list of what combination of direction when creating and rotation ends up with what kind of cliff piece?
No, I implemented building them generically so the system just has "a" cliff rotation and you see what it makes when building.
When making cliffs direction is irrelevant. You want cliff_direction.
Could you give an example please. Google doesn't have a single hit for factorio and cliff_direction. Doesn't seem to be in the API docs.
Re: How to place cliffs
Posted: Mon Feb 04, 2019 9:15 pm
by Rseding91
Hmm, I thought it was there... I guess not. I'll add it for 0.17.
Re: How to place cliffs
Posted: Mon Feb 11, 2019 11:06 am
by mrvn
Any progress on that and maybe a backport to 0.16? Passing cliff_direction to create_entity doesn't seem to do anything.