+
+ | config._file_loader |
+ This contains a list of all files that will be loaded and the order they are loaded in
to stop a file from loading add "--" in front of it, remove the "--" to have the file be loaded
config files should be loaded after all modules are loaded
- core files should be required by modules and not be present in this list |
-
-
- | config.action_buttons |
- Config for the different action buttons that show on the player list
+ core files should be required by modules and not be present in this list |
+
+
+ | config.action_buttons |
+ Config for the different action buttons that show on the player list
each button has the button define(s) given along side an auth function, and optional reason callback
- if a reason callback is used then Store.set_child(action_name_store,player.name,'BUTTON_NAME') should be called during on_click
+ if a reason callback is used then Store.set(action_name_store,player.name,'BUTTON_NAME') should be called during on_click
buttons can be removed from the gui by commenting them out of the config at the bottom of this file
- the key used for the name of the button is the permision name used by the role system |
-
-
- | config.advanced_start |
- This file is used to setup the map starting settings and the items players will start with |
-
-
- | config.death_logger |
- This config controls what happens when a player dies mostly about map markers and item collection
+ the key used for the name of the button is the permision name used by the role system |
+
+
+ | config.advanced_start |
+ This file is used to setup the map starting settings and the items players will start with |
+
+
+ | config.bonuses |
+ Lists all bonuses which can be used, name followed by min max |
+
+
+ | config.chat_reply |
+ This file defines the different triggers for the chat bot |
+
+
+ | config.death_logger |
+ This config controls what happens when a player dies mostly about map markers and item collection
allow_teleport_to_body_command and allow_collect_bodies_command can be over ridden if command_auth_runtime_disable is present
- if not present then the commands will not be loaded into the game |
-
-
- | config.expcore-commands.auth_admin |
- This is a very simple config file which adds a admin only auth function
+ if not present then the commands will not be loaded into the game |
+
+
+ | config.discord_alerts |
+ Config file used to enable and disable different push messages for discord |
+
+
+ | config.expcore-commands.auth_admin |
+ This is a very simple config file which adds a admin only auth function
not much to change here its more so it can be enabled and disabled from ./config/file_loader.lua
- either way you can change the requirements to be "admin" if you wanted to |
-
-
- | config.expcore-commands.auth_roles |
- This will make commands only work if the role has been allowed it in the role config |
-
-
- | config.expcore-commands.auth_runtime_disable |
- This config for command auth allows commands to be globally enabled and disabled during runtime
- this config adds Commands.disable and Commands.enable to enable and disable commands for all users |
-
-
- | config.expcore-commands.parse_general |
- This file contains some common command param parse functions
+ either way you can change the requirements to be "admin" if you wanted to |
+
+
+ | config.expcore-commands.auth_roles |
+ This will make commands only work if the role has been allowed it in the role config |
+
+
+ | config.expcore-commands.auth_runtime_disable |
+ This config for command auth allows commands to be globally enabled and disabled during runtime
+ this config adds Commands.disable and Commands.enable to enable and disable commands for all users |
+
+
+ | config.expcore-commands.parse_general |
+ This file contains some common command param parse functions
this file is less of a config and more of a requirement but you may wish to change how some behave
as such you need to be confident with lua but you edit this config file
use Commands.add_parse('name',function(input,player,reject) end) to add a parse
- see ./expcore/commands.lua for more details |
-
-
- | config.expcore-commands.parse_roles |
- Adds some parse functions that can be used with the role system |
-
-
- | config.permission_groups |
- Use this file to add new permission groups to the game
+ see ./expcore/commands.lua for more details |
+
+
+ | config.expcore-commands.parse_roles |
+ Adds some parse functions that can be used with the role system |
+
+
+ | config.permission_groups |
+ Use this file to add new permission groups to the game
start with Permission_Groups.new_group('name')
then use either :allow_all() or :disallow_all() to set the default for non specified actions
- then use :allow{} and :disallow{} to specify certain actions to allow/disallow |
-
-
- | config.popup_messages |
- A combination of config settings for different popup values like chat and damage |
-
-
- | config.rockets |
- This file controls what will show in each section of the rocket info gui |
-
-
- | config.roles |
- This is the main config file for the role system; file includes defines for roles and role flags and default values |
-
-
- | config.scorched_earth |
- This file controls the placement/degrading of tiles as players build and walk |
-
-
- | config.spawn_area |
- Used to config the spawn generation settings yes there is alot here i know just ignore the long tables at the end (they were generated with a command) |
-
-
- | config.warnings |
- Config file for the warning system, this is very similar to reports but is for the use of moderators rather than normal users. |
-
-
- | control |
- Please go to ./config if you want to change settings, each file is commented with what it does
+ then use :allow{} and :disallow{} to specify certain actions to allow/disallow |
+
+
+ | config.popup_messages |
+ A combination of config settings for different popup values like chat and damage |
+
+
+ | config.rockets |
+ This file controls what will show in each section of the rocket info gui |
+
+
+ | config.roles |
+ This is the main config file for the role system; file includes defines for roles and role flags and default values |
+
+
+ | config.scorched_earth |
+ This file controls the placement/degrading of tiles as players build and walk |
+
+
+ | config.spawn_area |
+ Used to config the spawn generation settings yes there is alot here i know just ignore the long tables at the end (they were generated with a command) |
+
+
+ | config.warnings |
+ Config file for the warning system, this is very similar to reports but is for the use of moderators rather than normal users. |
+
+
+ | config.warps |
+ This file contains all the different settings for the warp system and gui |
+
+
+ | control |
+ Please go to ./config if you want to change settings, each file is commented with what it does
if it is not in ./config then you should not attempt to change it unless you know what you are doing
all files which are loaded (including the config files) are present in ./config/file_loader.lua
- this file is the landing point for all scenarios please DO NOT edit directly, further comments are to aid development |
-
-
- | expcore.commands |
- Factorio command making module that makes commands with better parse and more modularity |
-
-
- | expcore.common |
- Adds some commonly used functions used in many modules |
-
-
- | expcore.gui |
- This file is used to require all the different elements of the gui module
- each module has an outline here but for more details see their seperate files in ./gui |
-
-
- | expcore.gui.buttons |
- Gui class define for buttons and sprite buttons
-[[ |
-
-
- | expcore.gui.center |
- Gui structure define for center gui frames
-[[ |
-
-
- | expcore.gui.checkboxs |
- Gui class define for checkboxs and radiobuttons
-[[ |
-
-
- | expcore.gui.core |
- Core gui file for making element defines and element classes (use require 'expcore.gui')
+ this file is the landing point for all scenarios please DO NOT edit directly, further comments are to aid development |
+
+
+ | expcore.commands |
+ Factorio command making module that makes commands with better parse and more modularity |
+
+
+ | expcore.common |
+ Adds some commonly used functions used in many modules |
+
+
+ | expcore.gui |
+ This file is used to require all the different elements of the gui module
+ each module has an outline here but for more details see their seperate files in ./gui |
+
+
+ | expcore.gui.concepts.center |
+ Gui structure define for center gui frames
+[[ |
+
+
+ | expcore.gui.concepts.left |
+ Gui structure define for left frames
+[[ |
+
+
+ | expcore.gui.concepts.popups |
+ Gui structure define for popup gui
+[[ |
+
+
+ | expcore.gui.concepts.toolbar |
+ Gui structure for the toolbar (top left)
+[[ |
+
+
+ | expcore.gui.core |
+ Core gui file for making element defines and element classes (use require 'expcore.gui')
see utils.gui for event handlering
see expcore.gui.test for examples for element defines
-[[ |
-
-
- | expcore.gui.dropdown |
- Gui class define for dropdowns and list boxs
-[[ |
-
-
- | expcore.gui.elem-button |
- Gui class defines for elem buttons
-[[ |
-
-
- | expcore.gui.instances |
- This file is a breakout from core which forcues on instance management of defines
-[[ |
-
-
- | expcore.gui.left |
- Gui structure define for left frames
-[[ |
-
-
- | expcore.gui.popups |
- Gui structure define for popup gui
-[[ |
-
-
- | expcore.gui.progress-bar |
- Gui element define for progess bars
-[[ |
-
-
- | expcore.gui.slider |
- Gui class define for silders
-[[ |
-
-
- | expcore.gui.test |
- This file creates a teste gui that is used to test every input method
+[[ |
+
+
+ | expcore.gui.elements.buttons |
+ Gui class define for buttons and sprite buttons
+[[ |
+
+
+ | expcore.gui.elements.checkboxs |
+ Gui class define for checkboxs and radiobuttons
+[[ |
+
+
+ | expcore.gui.elements.dropdown |
+ Gui class define for dropdowns and list boxs
+[[ |
+
+
+ | expcore.gui.elements.elem-button |
+ Gui class defines for elem buttons
+[[ |
+
+
+ | expcore.gui.elements.progress-bar |
+ Gui element define for progess bars
+[[ |
+
+
+ | expcore.gui.elements.slider |
+ Gui class define for silders
+[[ |
+
+
+ | expcore.gui.elements.text |
+ Gui class define for text fields and text boxs
+[[ |
+
+
+ | expcore.gui.instances |
+ This file is a breakout from core which forcues on instance management of defines
+[[ |
+
+
+ | expcore.gui.prototype |
+ Used to create new gui prototypes see elements and concepts
+[[ |
+
+
+ | expcore.gui.test |
+ This file creates a teste gui that is used to test every input method
note that this does not cover every permutation only features in indepentance
- for example store in most cases is just by player name, but other store methods are tested with checkbox |
-
-
- | expcore.gui.text |
- Gui class define for text fields and text boxs
-[[ |
-
-
- | expcore.gui.toolbar |
- Gui structure for the toolbar (top left)
-[[ |
-
-
- | expcore.permission_groups |
- Permission group making for factorio so you never have to make one by hand again |
-
-
- | expcore.roles |
- Factorio role system to manage custom permissions |
-
-
- | expcore.store |
- Adds an easy way to store and watch for updates to a value
-[[ |
-
-
- | modules.addons.advanced-start |
- Adds a better method of player starting items based on production levels. |
-
-
- | modules.addons.chat-popups |
- Creates flying text entities when a player sends a message in chat
- also displays a ping above users who are named in the message |
-
-
- | modules.addons.damage-popups |
- Displays the amount of dmg that is done by players to entities
- also shows player health when a player is attacked |
-
-
- | modules.gui.player-list |
- Gui left frame define for a player list |
-
-
- | modules.gui.rocket-info |
- Adds a rocket infomation gui which shows general stats, milestones and build progress of rockets |
-
-
- | modules.gui.science-info |
- Adds a science info gui that shows production usage and net for the different science packs as well as an eta |
-
-
- | modules.gui.task-list |
- Adds a task list to the game which players can add remove and edit items on |
-
-
- | utils.alien_evolution_progress |
- info
+ for example store in most cases is just by player name, but other store methods are tested with checkbox |
+
+
+ | expcore.permission_groups |
+ Permission group making for factorio so you never have to make one by hand again |
+
+
+ | expcore.roles |
+ Factorio role system to manage custom permissions |
+
+
+ | expcore.store |
+ Adds an easy way to store and watch for updates to a value
+[[ |
+
+
+ | expcore.sudo |
+ An extention of task and token to allow a single require to register and run functions bypassing all permissions
+[[ |
+
+
+ | modules.addons.advanced-start |
+ Adds a better method of player starting items based on production levels. |
+
+
+ | modules.addons.chat-popups |
+ Creates flying text entities when a player sends a message in chat
+ also displays a ping above users who are named in the message |
+
+
+ | modules.addons.damage-popups |
+ Displays the amount of dmg that is done by players to entities
+ also shows player health when a player is attacked |
+
+
+ | modules.gui.player-list |
+ Gui left frame define for a player list |
+
+
+ | modules.gui.rocket-info |
+ Adds a rocket infomation gui which shows general stats, milestones and build progress of rockets |
+
+
+ | modules.gui.science-info |
+ Adds a science info gui that shows production usage and net for the different science packs as well as an eta |
+
+
+ | modules.gui.task-list |
+ Adds a task list to the game which players can add remove and edit items on |
+
+
+ | utils.alien_evolution_progress |
+ info
Original (javascript) version: https://hastebin.com/udakacavap.js
- Can be tested against: https://wiki.factorio.com/Enemies#Spawn_chances_by_evolution_factor |
-
-
- | utils.core |
- Measures distance between pos1 and pos2 |
-
-
- | utils.debug |
- |
-
-
- | utils.event |
- This Module allows for registering multiple handlers to the same event, overcoming the limitation of script.register. |
-
-
- | utils.event_core |
- Do not use this function, use Event.add instead as it has safety checks. |
-
-
- | utils.math |
- Takes two points and calculates the slope of a line |
-
-
- | utils.recipe_locker |
- Locks recipes, preventing them from being enabled by research. |
-
-
- | utils.state_machine |
- This module provides a classical mealy/moore state machine. |
-
-
- | utils.table |
- Searches a table to remove a specific element without an index |
-
-
- | utils.task |
- Allows you to set a timer (in ticks) after which the tokened function will be run with params given as an argument
- Cannot be called before init |
-
-
- | utils.timestamp |
- source https://github.com/daurnimator/luatz/blob/master/luatz/timetable.lua
- edited down to just what is needed. |
-
-
+ Can be tested against: https://wiki.factorio.com/Enemies#Spawn_chances_by_evolution_factor