custom permissions, set via prototype stage

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 390
Joined: Tue Jul 08, 2014 10:06 am
Contact:

custom permissions, set via prototype stage

Post by LuziferSenpai »

Hey,

it would be awesome if we could add custom new permissions.
How would that look?

For example if you want to disable a custom-input that you made, you would create this prototype.

Code: Select all

  {
    type = "permission",
    name = "NAME",
    action = "disable-input",
    input = "INPUT-NAME"
  }
But if you want to disable something in your script, you use:

Code: Select all

  {
    type = "permission",
    name = "NAME",
    action = "lua"
  }
For lua, changing this setting would be the same event trigger type as for a custom-input.
CustomInputEvent

But why?
- We got custom inputs, but no real or good way to disable them for a player
- It would allow modders to add permissions to specific parts of there mods, so multiplayer servers can handle that

Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
Post Reply

Return to “Modding interface requests”