How to place cliffs

Place to get help with not working mods / modding interface.
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

How to place cliffs

Post by darkfrei »

How to place cliffs by the script?

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: How to place cliffs

Post by Bilka »

surface.create_entity?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How to place cliffs

Post by darkfrei »

Bilka wrote:
Mon Nov 12, 2018 11:10 am
surface.create_entity?
Yes, but placing the ring of cliffs is too complicated.

mrvn
Smart Inserter
Smart Inserter
Posts: 5699
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: How to place cliffs

Post 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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13201
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to place cliffs

Post 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.
If you want to get ahold of me I'm almost always on Discord.

mrvn
Smart Inserter
Smart Inserter
Posts: 5699
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: How to place cliffs

Post 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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13201
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to place cliffs

Post 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.
If you want to get ahold of me I'm almost always on Discord.

mrvn
Smart Inserter
Smart Inserter
Posts: 5699
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: How to place cliffs

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13201
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to place cliffs

Post by Rseding91 »

Hmm, I thought it was there... I guess not. I'll add it for 0.17.
If you want to get ahold of me I'm almost always on Discord.

mrvn
Smart Inserter
Smart Inserter
Posts: 5699
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: How to place cliffs

Post 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.

Post Reply

Return to “Modding help”