Find a grammar

Place to get help with not working mods / modding interface.
Post Reply
sdgmlj
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sun Jul 04, 2021 11:12 pm
Contact:

Find a grammar

Post by sdgmlj »

How to detect whether it is in the scene editing mode or in the official game?

I made a module, but there will be bugs in the scene editing mode, so I want to add a detection script. How can I add it? Thank you

sdgmlj
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sun Jul 04, 2021 11:12 pm
Contact:

Re: Find a grammar

Post by sdgmlj »

I may not express it clearly enough. I mean how to detect whether it is in "map editor modes" or "normal game"? I don't know how to write this detection command

Pi-C
Smart Inserter
Smart Inserter
Posts: 1655
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Find a grammar

Post by Pi-C »

You'll need to check player.controller_type.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

sdgmlj
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sun Jul 04, 2021 11:12 pm
Contact:

Re: Find a grammar

Post by sdgmlj »

Pi-C wrote:
Fri Mar 04, 2022 2:44 pm
You'll need to check player.controller_type.
Thank you, friend. You have done me a great favor. Thank you very much

Pi-C
Smart Inserter
Smart Inserter
Posts: 1655
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Find a grammar

Post by Pi-C »

You're welcome, glad I could help! :-)
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!

Post Reply

Return to “Modding help”