-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa3a9f3
commit 66526bb
Showing
18 changed files
with
151 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
-- Recommended to know about https://lua-api.factorio.com/latest/LuaCommandProcessor.html#LuaCommandProcessor.add_command | ||
|
||
--[[ | ||
--[[ Uses https://github.com/ZwerOxotnik/factorio-BetterCommands | ||
Returns tables of commands without functions as command "settings". All parameters are optional! | ||
Contains: | ||
name :: string: The name of your /command. (default: key of the table) | ||
description :: string or LocalisedString: The description of your command. (default: nil) | ||
is_allowed_empty_args :: boolean: Ignores empty parameters in commands, otherwise stops the command. (default: true) | ||
input_type :: string: filter for parameters by type of input. (default: nil) | ||
possible variants: | ||
"player" - Stops execution if can't find a player by parameter | ||
"team" - Stops execution if can't find a team (force) by parameter | ||
allow_for_server :: boolean: Allow execution of a command from a server (default: false) | ||
only_for_admin :: boolean: The command can be executed only by admins (default: false) | ||
Contains: | ||
name :: string: The name of your /command. (default: key of the table) | ||
description :: string or LocalisedString: The description of your command. (default: nil) | ||
is_allowed_empty_args :: boolean: Ignores empty parameters in commands, otherwise stops the command. (default: true) | ||
input_type :: string: Filter for parameters by type of input. (default: nil) | ||
possible variants: | ||
"player" - Stops execution if can't find a player by parameter | ||
"team" - Stops execution if can't find a team (force) by parameter | ||
allow_for_server :: boolean: Allow execution of a command from a server (default: false) | ||
only_for_admin :: boolean: The command can be executed only by admins (default: false) | ||
allow_for_players :: string[]: Allows to use the command for players with specified names (default: nil) | ||
max_input_length :: uint: Max amount of characters for command (default: 500) | ||
is_logged :: boolean: Logs the command into .log file (default: false) | ||
alternative_names :: string[]: Alternative names for the command (all commands should be added) (default: nil) | ||
is_one_time_use :: boolean: Disables the command after using it (default: false) | ||
is_one_time_use_for_player :: boolean: Disables for a player after using it (default: false) | ||
is_one_time_use_for_force :: boolean: Disables for a force after using it (default: false) | ||
global_cooldown :: uint: The command can be used each N seconds (default: nil) | ||
player_cooldown :: uint: The command can be used each N seconds for players (default: nil) | ||
force_cooldown :: uint: The command can be used each N seconds for forces (default: nil) | ||
disable_cooldown_for_admins :: boolean: Disables cooldown for admins (default: false) | ||
disable_cooldown_for_server :: boolean: Disables cooldown for server (default: true) | ||
]]-- | ||
---@type table<string, table> | ||
return {} | ||
---@type table<string, BetterCommand> | ||
return { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{ | ||
"name": "example-mod", | ||
"version": "0.5.2", | ||
"factorio_version": "1.1", | ||
"title": "Example mod", | ||
"author": "Put your nickname", | ||
"contact": "Put your contacts", | ||
"homepage": "Put a link", | ||
"description": "See locale/en ", | ||
"dependencies": [ | ||
"? zk-lib >= 0.10.0", | ||
"(?) gvv" | ||
] | ||
"name": "example-mod", | ||
"version": "0.6.0", | ||
"factorio_version": "1.1", | ||
"title": "Example mod", | ||
"author": "Put your nickname", | ||
"contact": "Put your contacts", | ||
"homepage": "Put a link", | ||
"description": "Put description here", | ||
"dependencies": [ | ||
"? zk-lib >= 0.10.0", | ||
"? BetterCommands", | ||
"(?) gvv" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.