mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 13:01:39 +09:00
Merge pull request #160 from Cooldude2606/feature/dev-deploy
Added Auto Doc Generation and PR Checking
This commit is contained in:
39
.github/workflows/dev-deploy.yml
vendored
Normal file
39
.github/workflows/dev-deploy.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Dev Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
paths-ignore:
|
||||||
|
- 'docs/**'
|
||||||
|
- '.luacheckrc'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install Lua
|
||||||
|
uses: leafo/gh-actions-lua@v5
|
||||||
|
|
||||||
|
- name: Install LuaRocks
|
||||||
|
uses: leafo/gh-actions-luarocks@v2
|
||||||
|
|
||||||
|
- name: Install LDoc
|
||||||
|
run: luarocks install ldoc 1.4.4-1
|
||||||
|
|
||||||
|
- name: Generate Documents
|
||||||
|
working-directory: docs
|
||||||
|
run: ldoc -i .
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: EndBug/add-and-commit@v4
|
||||||
|
with:
|
||||||
|
message: "Automattic Doc Update"
|
||||||
|
add: "./docs/** .luacheckrc"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
41
.github/workflows/pr-checker.yml
vendored
Normal file
41
.github/workflows/pr-checker.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: CI PR Checker
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
luacheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Extract branch name
|
||||||
|
shell: bash
|
||||||
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_BASE_REF#refs/heads/})"
|
||||||
|
id: extract_branch
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
uses: Roang-zero1/factorio-mod-luacheck@master
|
||||||
|
with:
|
||||||
|
luacheckrc_url: https://raw.githubusercontent.com/explosivegaming/scenario/${{ steps.extract_branch.outputs.branch }}/.luacheckrc
|
||||||
|
|
||||||
|
docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install Lua
|
||||||
|
uses: leafo/gh-actions-lua@v5
|
||||||
|
|
||||||
|
- name: Install LuaRocks
|
||||||
|
uses: leafo/gh-actions-luarocks@v2
|
||||||
|
|
||||||
|
- name: Install LDoc
|
||||||
|
run: luarocks install ldoc 1.4.4-1
|
||||||
|
|
||||||
|
- name: Generate Documents
|
||||||
|
working-directory: docs
|
||||||
|
run: ldoc -i .
|
||||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
|||||||
[submodule "Factorio-luacheckrc"]
|
|
||||||
path = Factorio-luacheckrc
|
|
||||||
url = https://github.com/Nexela/Factorio-luacheckrc
|
|
||||||
@@ -70,6 +70,14 @@ do -- Assume Factorio Control Stage as Default
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
do -- RedMew and ExpGaming overrides
|
||||||
|
globals = {
|
||||||
|
'math', 'table',
|
||||||
|
'print', 'require', 'unpack', 'inspect', 'loadstring', 'ServerCommands', 'Debug',
|
||||||
|
'_C', '_DEBUG', '_CHEATS', '_DUMP_ENV', '_LIFECYCLE', '_STAGE',
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
do -- Set default prototype files
|
do -- Set default prototype files
|
||||||
files['**/data.lua'].std = STD_DATA
|
files['**/data.lua'].std = STD_DATA
|
||||||
files['**/data-updates.lua'].std = STD_DATA
|
files['**/data-updates.lua'].std = STD_DATA
|
||||||
|
|||||||
Submodule Factorio-luacheckrc deleted from 53d12a834f
@@ -5,8 +5,10 @@
|
|||||||
-- use these as a simple methods of adding new items
|
-- use these as a simple methods of adding new items
|
||||||
-- they will do most of the work for you
|
-- they will do most of the work for you
|
||||||
-- ['item-name'] = factory(params)
|
-- ['item-name'] = factory(params)
|
||||||
|
-- luacheck:ignore 212/amount_made 212/items_made 212/player
|
||||||
|
|
||||||
-- Use these to adjust for ticks ie game.tick < 5*minutes
|
-- Use these to adjust for ticks ie game.tick < 5*minutes
|
||||||
|
-- luacheck:ignore 211/seconds 211/minutes 211/hours
|
||||||
local seconds, minutes, hours = 60, 3600, 216000
|
local seconds, minutes, hours = 60, 3600, 216000
|
||||||
|
|
||||||
--- Use to make a split point for the number of items given based on time
|
--- Use to make a split point for the number of items given based on time
|
||||||
@@ -65,7 +67,7 @@ return {
|
|||||||
skip_intro=true, --- @setting skip_intro skips the intro given in the default factorio free play scenario
|
skip_intro=true, --- @setting skip_intro skips the intro given in the default factorio free play scenario
|
||||||
skip_victory=true, --- @setting skip_victory will skip the victory screen when a rocket is launched
|
skip_victory=true, --- @setting skip_victory will skip the victory screen when a rocket is launched
|
||||||
disable_base_game_silo_script=true, --- @setting disable_base_game_silo_script will not load the silo script at all
|
disable_base_game_silo_script=true, --- @setting disable_base_game_silo_script will not load the silo script at all
|
||||||
research_queue_from_start=true, --- @setting research_queue_from_start when true the research queue is useible from the start
|
research_queue_from_start=true, --- @setting research_queue_from_start when true the research queue is useable from the start
|
||||||
friendly_fire=false, --- @setting friendly_fire weather players will be able to attack each other on the same force
|
friendly_fire=false, --- @setting friendly_fire weather players will be able to attack each other on the same force
|
||||||
enemy_expansion=false, --- @setting enemy_expansion a catch all for in case the map settings file fails to load
|
enemy_expansion=false, --- @setting enemy_expansion a catch all for in case the map settings file fails to load
|
||||||
chart_radius=10*32, --- @setting chart_radius the number of tiles that will be charted when the map starts
|
chart_radius=10*32, --- @setting chart_radius the number of tiles that will be charted when the map starts
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
--- This is a very simple config file which adds a admin only auth functio;
|
--- 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;
|
-- 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
|
-- either way you can change the requirements to be "admin" if you wanted to
|
||||||
-- @config Commands-Auth-Admin
|
-- @config Commands-Auth-Admin
|
||||||
|
|
||||||
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
||||||
|
|
||||||
|
-- luacheck:ignore 212/command
|
||||||
Commands.add_authenticator(function(player, command, tags, reject)
|
Commands.add_authenticator(function(player, command, tags, reject)
|
||||||
if tags.admin_only then
|
if tags.admin_only then
|
||||||
if player.admin then
|
if player.admin then
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
||||||
local Roles = require 'expcore.roles' --- @dep expcore.roles
|
local Roles = require 'expcore.roles' --- @dep expcore.roles
|
||||||
|
|
||||||
|
-- luacheck:ignore 212/tags
|
||||||
Commands.add_authenticator(function(player, command, tags, reject)
|
Commands.add_authenticator(function(player, command, tags, reject)
|
||||||
if Roles.player_allowed(player,'command/'..command) then
|
if Roles.player_allowed(player,'command/'..command) then
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -22,9 +22,8 @@ see ./expcore/commands.lua for more details
|
|||||||
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
||||||
local Game = require 'utils.game' --- @dep utils.game
|
local Game = require 'utils.game' --- @dep utils.game
|
||||||
|
|
||||||
|
-- luacheck:ignore 212/player
|
||||||
|
Commands.add_parse('boolean',function(input, player)
|
||||||
Commands.add_parse('boolean',function(input,player,reject)
|
|
||||||
if not input then return end -- nil check
|
if not input then return end -- nil check
|
||||||
input = input:lower()
|
input = input:lower()
|
||||||
if input == 'yes'
|
if input == 'yes'
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ local Roles = require 'expcore.roles' --- @dep expcore.roles
|
|||||||
local auto_complete = _C.auto_complete --- @dep expcore.common
|
local auto_complete = _C.auto_complete --- @dep expcore.common
|
||||||
require 'config.expcore.command_general_parse'
|
require 'config.expcore.command_general_parse'
|
||||||
|
|
||||||
|
-- luacheck:ignore 212/player
|
||||||
Commands.add_parse('role',function(input, player, reject)
|
Commands.add_parse('role',function(input, player, reject)
|
||||||
if not input then return end
|
if not input then return end
|
||||||
local roles = Roles.config.order
|
local roles = Roles.config.order
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ function Commands.enable(command_name)
|
|||||||
disabled_commands[command_name] = nil
|
disabled_commands[command_name] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- luacheck:ignore 212/player 212/tags
|
||||||
Commands.add_authenticator(function(player, command, tags, reject)
|
Commands.add_authenticator(function(player, command, tags, reject)
|
||||||
if disabled_commands[command] then
|
if disabled_commands[command] then
|
||||||
return reject{'command-auth.command-disabled'}
|
return reject{'command-auth.command-disabled'}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
file = '../'
|
file = { '../', exclude = { '../.install', '../.lua', '../.luarocks' } }
|
||||||
dir = '../docs'
|
dir = '../docs'
|
||||||
project = 'ExpGaming Scenario'
|
project = 'ExpGaming Scenario'
|
||||||
title = 'ExpGaming Scenario'
|
title = 'ExpGaming Scenario'
|
||||||
|
|||||||
@@ -1,796 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
<!doctype html>
|
|
||||||
<html class="no-js" lang="">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
||||||
<title>license topic</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="stylesheet" href="../spectre.min.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="../spectre-icons.min.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container grid-1280">
|
|
||||||
<div class="columns">
|
|
||||||
|
|
||||||
<!-- sidebar start -->
|
|
||||||
|
|
||||||
<div id="sidebar" class="column col-3 col-sm-12">
|
|
||||||
|
|
||||||
<div class="sidebar-custom">
|
|
||||||
|
|
||||||
<div class="project-infobox">
|
|
||||||
|
|
||||||
<!-- project title -->
|
|
||||||
|
|
||||||
<a href="../index.html"><h1>ExpGaming Scenario</h1></a>
|
|
||||||
|
|
||||||
<!-- project description -->
|
|
||||||
<p class="project-desc">Explosive Gaming's server scenario for 0.18</p>
|
|
||||||
|
|
||||||
<!-- project full description -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- sidebar navigation -->
|
|
||||||
<!-- list of items in a module -->
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Topics</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../topics/readme.md.html"><span class="module-name-item">readme.md</span></a></div></li>
|
|
||||||
<li class="nav-item active"><div class="nav-item-block-active block"><a href="../topics/license.html"><span class="module-name-item">license</span></a><i class="icon icon-arrow-left icon-arrow-left-custom"></i></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Core</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Async.html"><span class="module-name-item">Async</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Commands.html"><span class="module-name-item">Commands</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Common.html"><span class="module-name-item">Common</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Gui.html"><span class="module-name-item">Gui</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Groups.html"><span class="module-name-item">Groups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Roles.html"><span class="module-name-item">Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Store.html"><span class="module-name-item">Store</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Control</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Jail.html"><span class="module-name-item">Jail</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Production.html"><span class="module-name-item">Production</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Reports.html"><span class="module-name-item">Reports</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Rockets.html"><span class="module-name-item">Rockets</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Tasks.html"><span class="module-name-item">Tasks</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Warps.html"><span class="module-name-item">Warps</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Addons</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Advanced-Start.html"><span class="module-name-item">Advanced-Start</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Chat-Popups.html"><span class="module-name-item">Chat-Popups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Chat-Reply.html"><span class="module-name-item">Chat-Reply</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Compilatron.html"><span class="module-name-item">Compilatron</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Damage-Popups.html"><span class="module-name-item">Damage-Popups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Death-Logger.html"><span class="module-name-item">Death-Logger</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Discord-Alerts.html"><span class="module-name-item">Discord-Alerts</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/greetings.html"><span class="module-name-item">greetings</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Pollution-Grading.html"><span class="module-name-item">Pollution-Grading</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Player-Colours.html"><span class="module-name-item">Player-Colours</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Scorched-Earth.html"><span class="module-name-item">Scorched-Earth</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Spawn-Area.html"><span class="module-name-item">Spawn-Area</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Tree-Decon.html"><span class="module-name-item">Tree-Decon</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Guis</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Player-List.html"><span class="module-name-item">Player-List</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Readme.html"><span class="module-name-item">Readme</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Rocket-Info.html"><span class="module-name-item">Rocket-Info</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Science-Info.html"><span class="module-name-item">Science-Info</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/server-ups.html"><span class="module-name-item">server-ups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Task-List.html"><span class="module-name-item">Task-List</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Warps-List.html"><span class="module-name-item">Warps-List</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Commands</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Admin-Chat.html"><span class="module-name-item">Admin-Chat</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Bonus.html"><span class="module-name-item">Bonus</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Cheat-Mode.html"><span class="module-name-item">Cheat-Mode</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Clear-Inventory.html"><span class="module-name-item">Clear-Inventory</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Debug.html"><span class="module-name-item">Debug</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Find.html"><span class="module-name-item">Find</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Help.html"><span class="module-name-item">Help</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Home.html"><span class="module-name-item">Home</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Interface.html"><span class="module-name-item">Interface</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Jail.html"><span class="module-name-item">Jail</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Kill.html"><span class="module-name-item">Kill</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Me.html"><span class="module-name-item">Me</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Rainbow.html"><span class="module-name-item">Rainbow</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Repair.html"><span class="module-name-item">Repair</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Reports.html"><span class="module-name-item">Reports</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Roles.html"><span class="module-name-item">Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Spawn.html"><span class="module-name-item">Spawn</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Tag.html"><span class="module-name-item">Tag</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Teleport.html"><span class="module-name-item">Teleport</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Configs</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/File-Loader.html"><span class="module-name-item">File-Loader</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Advanced-Start.html"><span class="module-name-item">Advanced-Start</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Bonuses.html"><span class="module-name-item">Bonuses</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Chat-Reply.html"><span class="module-name-item">Chat-Reply</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Compilatron.html"><span class="module-name-item">Compilatron</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Death-Logger.html"><span class="module-name-item">Death-Logger</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Discord-Alerts.html"><span class="module-name-item">Discord-Alerts</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Auth-Admin.html"><span class="module-name-item">Commands-Auth-Admin</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Auth-Roles.html"><span class="module-name-item">Commands-Auth-Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Parse.html"><span class="module-name-item">Commands-Parse</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Parse-Roles.html"><span class="module-name-item">Commands-Parse-Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Auth-Runtime-Disable.html"><span class="module-name-item">Commands-Auth-Runtime-Disable</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Permission-Groups.html"><span class="module-name-item">Permission-Groups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Roles.html"><span class="module-name-item">Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Player-List.html"><span class="module-name-item">Player-List</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Rockets.html"><span class="module-name-item">Rockets</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Science.html"><span class="module-name-item">Science</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Tasks.html"><span class="module-name-item">Tasks</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Warps.html"><span class="module-name-item">Warps</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Pollution-Grading.html"><span class="module-name-item">Pollution-Grading</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Popup-Messages.html"><span class="module-name-item">Popup-Messages</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Preset-Player-Colours.html"><span class="module-name-item">Preset-Player-Colours</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Repair.html"><span class="module-name-item">Repair</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Scorched-Earth.html"><span class="module-name-item">Scorched-Earth</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Spawn-Area.html"><span class="module-name-item">Spawn-Area</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Modules</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/control.html"><span class="module-name-item">control</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/modules.addons.station-auto-name.html"><span class="module-name-item">modules.addons.station-auto-name</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/overrides.debug.html"><span class="module-name-item">overrides.debug</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/overrides.math.html"><span class="module-name-item">overrides.math</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/overrides.table.html"><span class="module-name-item">overrides.table</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/utils.event.html"><span class="module-name-item">utils.event</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/utils.event_core.html"><span class="module-name-item">utils.event_core</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/utils.task.html"><span class="module-name-item">utils.task</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- sidebar end -->
|
|
||||||
|
|
||||||
<!-- content body start -->
|
|
||||||
<div class="column col-9 col-sm-12">
|
|
||||||
|
|
||||||
<!-- module list on the main page start -->
|
|
||||||
<!-- module list on the main page end -->
|
|
||||||
|
|
||||||
<!-- module contents -->
|
|
||||||
|
|
||||||
<!-- module content header start -->
|
|
||||||
|
|
||||||
<h2><span class="body-module-name"><strong><em>license</em></strong></span> topic</h2>
|
|
||||||
<p></p>
|
|
||||||
<p></p>
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 29 June 2007
|
|
||||||
<p> Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
<p> Preamble
|
|
||||||
<p> The GNU General Public License is a free, copyleft license for
|
|
||||||
software and other kinds of works.
|
|
||||||
<p> The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
|
||||||
the GNU General Public License is intended to guarantee your freedom to
|
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users. We, the Free Software Foundation, use the
|
|
||||||
GNU General Public License for most of our software; it applies also to
|
|
||||||
any other work released this way by its authors. You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
<p> When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
<p> To protect your rights, we need to prevent others from denying you
|
|
||||||
these rights or asking you to surrender the rights. Therefore, you have
|
|
||||||
certain responsibilities if you distribute copies of the software, or if
|
|
||||||
you modify it: responsibilities to respect the freedom of others.
|
|
||||||
<p> For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must pass on to the recipients the same
|
|
||||||
freedoms that you received. You must make sure that they, too, receive
|
|
||||||
or can get the source code. And you must show them these terms so they
|
|
||||||
know their rights.
|
|
||||||
<p> Developers that use the GNU GPL protect your rights with two steps:
|
|
||||||
(1) assert copyright on the software, and (2) offer you this License
|
|
||||||
giving you legal permission to copy, distribute and/or modify it.
|
|
||||||
<p> For the developers' and authors' protection, the GPL clearly explains
|
|
||||||
that there is no warranty for this free software. For both users' and
|
|
||||||
authors' sake, the GPL requires that modified versions be marked as
|
|
||||||
changed, so that their problems will not be attributed erroneously to
|
|
||||||
authors of previous versions.
|
|
||||||
<p> Some devices are designed to deny users access to install or run
|
|
||||||
modified versions of the software inside them, although the manufacturer
|
|
||||||
can do so. This is fundamentally incompatible with the aim of
|
|
||||||
protecting users' freedom to change the software. The systematic
|
|
||||||
pattern of such abuse occurs in the area of products for individuals to
|
|
||||||
use, which is precisely where it is most unacceptable. Therefore, we
|
|
||||||
have designed this version of the GPL to prohibit the practice for those
|
|
||||||
products. If such problems arise substantially in other domains, we
|
|
||||||
stand ready to extend this provision to those domains in future versions
|
|
||||||
of the GPL, as needed to protect the freedom of users.
|
|
||||||
<p> Finally, every program is threatened constantly by software patents.
|
|
||||||
States should not allow patents to restrict development and use of
|
|
||||||
software on general-purpose computers, but in those that do, we wish to
|
|
||||||
avoid the special danger that patents applied to a free program could
|
|
||||||
make it effectively proprietary. To prevent this, the GPL assures that
|
|
||||||
patents cannot be used to render the program non-free.
|
|
||||||
<p> The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
<p> TERMS AND CONDITIONS
|
|
||||||
<p> 0. Definitions.
|
|
||||||
<p> "This License" refers to version 3 of the GNU General Public License.
|
|
||||||
<p> "Copyright" also means copyright-like laws that apply to other kinds of
|
|
||||||
works, such as semiconductor masks.
|
|
||||||
<p> "The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
|
||||||
"recipients" may be individuals or organizations.
|
|
||||||
<p> To "modify" a work means to copy from or adapt all or part of the work
|
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
<p> A "covered work" means either the unmodified Program or a work based
|
|
||||||
on the Program.
|
|
||||||
<p> To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
|
||||||
infringement under applicable copyright law, except executing it on a
|
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
|
||||||
distribution (with or without modification), making available to the
|
|
||||||
public, and in some countries other activities as well.
|
|
||||||
<p> To "convey" a work means any kind of propagation that enables other
|
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
<p> An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
<p> 1. Source Code.
|
|
||||||
<p> The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
|
||||||
form of a work.
|
|
||||||
<p> A "Standard Interface" means an interface that either is an official
|
|
||||||
standard defined by a recognized standards body, or, in the case of
|
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
|
||||||
<p> The "System Libraries" of an executable work include anything, other
|
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
<p> The "Corresponding Source" for a work in object code form means all
|
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
<p> The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
<p> The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
<p> 2. Basic Permissions.
|
|
||||||
<p> All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
<p> You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
<p> Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
<p> 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
<p> No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
<p> When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
<p> 4. Conveying Verbatim Copies.
|
|
||||||
<p> You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
<p> You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
<p> 5. Conveying Modified Source Versions.
|
|
||||||
<p> You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
<p> a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
<p> b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
<p> c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
<p> d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
<p> A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
<p> 6. Conveying Non-Source Forms.
|
|
||||||
<p> You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
<p> a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
<p> b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
<p> c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
<p> d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
<p> e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
<p> A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
<p> A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
<p> "Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
<p> If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
<p> The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
<p> Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
<p> 7. Additional Terms.
|
|
||||||
<p> "Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
<p> When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
<p> Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
<p> a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
<p> b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
<p> c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
<p> d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
<p> e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
<p> f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
<p> All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
<p> If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
<p> Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
<p> 8. Termination.
|
|
||||||
<p> You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
<p> However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
<p> Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
<p> Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
<p> 9. Acceptance Not Required for Having Copies.
|
|
||||||
<p> You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
<p> 10. Automatic Licensing of Downstream Recipients.
|
|
||||||
<p> Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
<p> An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
<p> You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
<p> 11. Patents.
|
|
||||||
<p> A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
<p> A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
<p> Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
<p> In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
<p> If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
<p> If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
<p> A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
<p> Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
<p> 12. No Surrender of Others' Freedom.
|
|
||||||
<p> If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
<p> 13. Use with the GNU Affero General Public License.
|
|
||||||
<p> Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU Affero General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the special requirements of the GNU Affero General Public License,
|
|
||||||
section 13, concerning interaction through a network will apply to the
|
|
||||||
combination as such.
|
|
||||||
<p> 14. Revised Versions of this License.
|
|
||||||
<p> The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
<p> Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
<p> If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
<p> Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
<p> 15. Disclaimer of Warranty.
|
|
||||||
<p> THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
<p> 16. Limitation of Liability.
|
|
||||||
<p> IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
<p> 17. Interpretation of Sections 15 and 16.
|
|
||||||
<p> If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
<p> END OF TERMS AND CONDITIONS
|
|
||||||
<p> How to Apply These Terms to Your New Programs
|
|
||||||
<p> If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
<p> To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
<p> Scenario for Facotorio multiplayer.
|
|
||||||
Copyright (C) 2018 badgamernl
|
|
||||||
<p> This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
<p> This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
<p> You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
<p>Also add information on how to contact you by electronic and paper mail.
|
|
||||||
<p> If the program does terminal interaction, make it output a short
|
|
||||||
notice like this when it starts in an interactive mode:
|
|
||||||
<p> explosivegaming.nl Copyright (C) 2018 badgamernl
|
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
<p>The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, your program's commands
|
|
||||||
might be different; for a GUI interface, you would use an "about box".
|
|
||||||
<p> You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU GPL, see
|
|
||||||
<http://www.gnu.org/licenses/>.
|
|
||||||
<p> The GNU General Public License does not permit incorporating your program
|
|
||||||
into proprietary programs. If your program is a subroutine library, you
|
|
||||||
may consider it more useful to permit linking proprietary applications with
|
|
||||||
the library. If this is what you want to do, use the GNU Lesser General
|
|
||||||
Public License instead of this License. But first, please read
|
|
||||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
||||||
|
|
||||||
|
|
||||||
<!-- module info start -->
|
|
||||||
<!-- module info end -->
|
|
||||||
|
|
||||||
<!-- module usage start -->
|
|
||||||
<!-- module usage end -->
|
|
||||||
|
|
||||||
<!-- module content header end -->
|
|
||||||
|
|
||||||
<!-- module section list start -->
|
|
||||||
<!-- module section list end -->
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<!-- section start -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- section end -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="footer container grid-1280">
|
|
||||||
<div class="divider divider-custom"></div>
|
|
||||||
<div class="footer-columns columns">
|
|
||||||
<div class="sidebar-footer column col-3 col-sm-12">
|
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
|
|
||||||
</div>
|
|
||||||
<div class="content-footer column col-9 col-sm-12">
|
|
||||||
<i>Last updated 2020-03-31 23:28:20 UTC</i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,345 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
<!doctype html>
|
|
||||||
<html class="no-js" lang="">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
||||||
<title>readme.md topic</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="stylesheet" href="../spectre.min.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="../spectre-icons.min.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container grid-1280">
|
|
||||||
<div class="columns">
|
|
||||||
|
|
||||||
<!-- sidebar start -->
|
|
||||||
|
|
||||||
<div id="sidebar" class="column col-3 col-sm-12">
|
|
||||||
|
|
||||||
<div class="sidebar-custom">
|
|
||||||
|
|
||||||
<div class="project-infobox">
|
|
||||||
|
|
||||||
<!-- project title -->
|
|
||||||
|
|
||||||
<a href="../index.html"><h1>ExpGaming Scenario</h1></a>
|
|
||||||
|
|
||||||
<!-- project description -->
|
|
||||||
<p class="project-desc">Explosive Gaming's server scenario for 0.18</p>
|
|
||||||
|
|
||||||
<!-- project full description -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- sidebar navigation -->
|
|
||||||
<!-- list of items in a module -->
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Topics</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item active"><div class="nav-item-block-active block"><a href="../topics/readme.md.html"><span class="module-name-item">readme.md</span></a><i class="icon icon-arrow-left icon-arrow-left-custom"></i></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../topics/license.html"><span class="module-name-item">license</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Core</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Async.html"><span class="module-name-item">Async</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Commands.html"><span class="module-name-item">Commands</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Common.html"><span class="module-name-item">Common</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Gui.html"><span class="module-name-item">Gui</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Groups.html"><span class="module-name-item">Groups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Roles.html"><span class="module-name-item">Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Store.html"><span class="module-name-item">Store</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Control</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Jail.html"><span class="module-name-item">Jail</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Production.html"><span class="module-name-item">Production</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Reports.html"><span class="module-name-item">Reports</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Rockets.html"><span class="module-name-item">Rockets</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Tasks.html"><span class="module-name-item">Tasks</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Warps.html"><span class="module-name-item">Warps</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Addons</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Advanced-Start.html"><span class="module-name-item">Advanced-Start</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Chat-Popups.html"><span class="module-name-item">Chat-Popups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Chat-Reply.html"><span class="module-name-item">Chat-Reply</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Compilatron.html"><span class="module-name-item">Compilatron</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Damage-Popups.html"><span class="module-name-item">Damage-Popups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Death-Logger.html"><span class="module-name-item">Death-Logger</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Discord-Alerts.html"><span class="module-name-item">Discord-Alerts</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/greetings.html"><span class="module-name-item">greetings</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Pollution-Grading.html"><span class="module-name-item">Pollution-Grading</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Player-Colours.html"><span class="module-name-item">Player-Colours</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Scorched-Earth.html"><span class="module-name-item">Scorched-Earth</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Spawn-Area.html"><span class="module-name-item">Spawn-Area</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../addons/Tree-Decon.html"><span class="module-name-item">Tree-Decon</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Guis</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Player-List.html"><span class="module-name-item">Player-List</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Readme.html"><span class="module-name-item">Readme</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Rocket-Info.html"><span class="module-name-item">Rocket-Info</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Science-Info.html"><span class="module-name-item">Science-Info</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/server-ups.html"><span class="module-name-item">server-ups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Task-List.html"><span class="module-name-item">Task-List</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../guis/Warps-List.html"><span class="module-name-item">Warps-List</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Commands</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Admin-Chat.html"><span class="module-name-item">Admin-Chat</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Bonus.html"><span class="module-name-item">Bonus</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Cheat-Mode.html"><span class="module-name-item">Cheat-Mode</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Clear-Inventory.html"><span class="module-name-item">Clear-Inventory</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Debug.html"><span class="module-name-item">Debug</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Find.html"><span class="module-name-item">Find</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Help.html"><span class="module-name-item">Help</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Home.html"><span class="module-name-item">Home</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Interface.html"><span class="module-name-item">Interface</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Jail.html"><span class="module-name-item">Jail</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Kill.html"><span class="module-name-item">Kill</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Me.html"><span class="module-name-item">Me</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Rainbow.html"><span class="module-name-item">Rainbow</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Repair.html"><span class="module-name-item">Repair</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Reports.html"><span class="module-name-item">Reports</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Roles.html"><span class="module-name-item">Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Spawn.html"><span class="module-name-item">Spawn</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Tag.html"><span class="module-name-item">Tag</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Teleport.html"><span class="module-name-item">Teleport</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../commands/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Configs</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/File-Loader.html"><span class="module-name-item">File-Loader</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Advanced-Start.html"><span class="module-name-item">Advanced-Start</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Bonuses.html"><span class="module-name-item">Bonuses</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Chat-Reply.html"><span class="module-name-item">Chat-Reply</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Compilatron.html"><span class="module-name-item">Compilatron</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Death-Logger.html"><span class="module-name-item">Death-Logger</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Discord-Alerts.html"><span class="module-name-item">Discord-Alerts</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Auth-Admin.html"><span class="module-name-item">Commands-Auth-Admin</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Auth-Roles.html"><span class="module-name-item">Commands-Auth-Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Parse.html"><span class="module-name-item">Commands-Parse</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Parse-Roles.html"><span class="module-name-item">Commands-Parse-Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Commands-Auth-Runtime-Disable.html"><span class="module-name-item">Commands-Auth-Runtime-Disable</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Permission-Groups.html"><span class="module-name-item">Permission-Groups</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Roles.html"><span class="module-name-item">Roles</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Player-List.html"><span class="module-name-item">Player-List</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Rockets.html"><span class="module-name-item">Rockets</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Science.html"><span class="module-name-item">Science</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Tasks.html"><span class="module-name-item">Tasks</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Warps.html"><span class="module-name-item">Warps</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Pollution-Grading.html"><span class="module-name-item">Pollution-Grading</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Popup-Messages.html"><span class="module-name-item">Popup-Messages</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Preset-Player-Colours.html"><span class="module-name-item">Preset-Player-Colours</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Repair.html"><span class="module-name-item">Repair</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Scorched-Earth.html"><span class="module-name-item">Scorched-Earth</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Spawn-Area.html"><span class="module-name-item">Spawn-Area</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../configs/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-modules">
|
|
||||||
<li class="nav-item">
|
|
||||||
<h2>Modules</h2>
|
|
||||||
<ul class="nav">
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/control.html"><span class="module-name-item">control</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/modules.addons.station-auto-name.html"><span class="module-name-item">modules.addons.station-auto-name</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/overrides.debug.html"><span class="module-name-item">overrides.debug</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/overrides.math.html"><span class="module-name-item">overrides.math</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/overrides.table.html"><span class="module-name-item">overrides.table</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/utils.event.html"><span class="module-name-item">utils.event</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/utils.event_core.html"><span class="module-name-item">utils.event_core</span></a></div></li>
|
|
||||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/utils.task.html"><span class="module-name-item">utils.task</span></a></div></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- sidebar end -->
|
|
||||||
|
|
||||||
<!-- content body start -->
|
|
||||||
<div class="column col-9 col-sm-12">
|
|
||||||
|
|
||||||
<!-- module list on the main page start -->
|
|
||||||
<!-- module list on the main page end -->
|
|
||||||
|
|
||||||
<!-- module contents -->
|
|
||||||
|
|
||||||
<!-- module content header start -->
|
|
||||||
|
|
||||||
<h2><span class="body-module-name"><strong><em>readme.md</em></strong></span> topic</h2>
|
|
||||||
<p></p>
|
|
||||||
<p></p>
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<img alt="logo" src="https://avatars2.githubusercontent.com/u/39745392?s=200&v=4" width="120">
|
|
||||||
<br>
|
|
||||||
<a href="https://github.com/explosivegaming/scenario/tags">
|
|
||||||
<img src="https://img.shields.io/github/tag/explosivegaming/scenario.svg?label=Release" alt="Release">
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/explosivegaming/scenario/archive/master.zip">
|
|
||||||
<img src="https://img.shields.io/github/downloads/explosivegaming/scenario/total.svg?label=Downloads" alt="Downloads">
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/explosivegaming/scenario/stargazers">
|
|
||||||
<img src="https://img.shields.io/github/stars/explosivegaming/scenario.svg?label=Stars" alt="Star">
|
|
||||||
</a>
|
|
||||||
<a href="http://github.com/explosivegaming/scenario/fork">
|
|
||||||
<img src="https://img.shields.io/github/forks/explosivegaming/scenario.svg?label=Forks" alt="Fork">
|
|
||||||
</a>
|
|
||||||
<a href="https://www.codefactor.io/repository/github/explosivegaming/scenario">
|
|
||||||
<img src="https://www.codefactor.io/repository/github/explosivegaming/scenario/badge" alt="CodeFactor">
|
|
||||||
</a>
|
|
||||||
<a href="https://discord.explosivegaming.nl">
|
|
||||||
<img src="https://discordapp.com/api/guilds/260843215836545025/widget.png?style=shield" alt="Discord">
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
<h1 align="center">ExpGaming Scenario Repository</h2>
|
|
||||||
<p>## Explosive Gaming
|
|
||||||
<p>Explosive Gaming (often ExpGaming) is a server hosting community with a strong focus on Factorio and games that follow similar ideas. Our Factorio server are known for hosting large maps with the main goal of being a "mega base" which can produce as much as possible within our reset schedule. Although these servers tend to attract the more experienced players, our servers are open to everyone. You can find us through our [website], [discord], [wiki], or in the public games tab in Factorio (ExpGaming S1, ExpGaming S2, etc.).
|
|
||||||
<p>## Use and Installation
|
|
||||||
<p>1) Download this [git repository](https://github.com/explosivegaming/scenario/archive/master.zip) for the stable release. The dev branch can be found [here](https://github.com/explosivegaming/scenario/archive/dev.zip) for those who want the latest features. See [releases](#releases) for other release branches.
|
|
||||||
<p>2) Extract the downloaded zip file from the branch you downloaded into Factorio's scenario directory:
|
|
||||||
* Windows: `%appdata%\Factorio\scenarios`
|
|
||||||
* Linux: `~/.factorio/scenarios`
|
|
||||||
<p>3) Within the scenario you can find `./config/_file_loader.lua` which contains a list of all the modules that will be loaded by the scenario; simply comment out (or remove) features you do not want but note that some modules may load other modules as dependencies even when removed from the list.
|
|
||||||
<p>4) More advanced users may want to play with the other configs files within `./config` but please be aware that some of the config files will require a basic understanding of lua while others may just be a list of values.
|
|
||||||
<p>5) Once you have made any config changes that you wish to make open Factorio, select play, then start scenario (or host scenario from within multiplayer tab), and select the scenario which will be called `scenario-master` if you have downloaded the latest stable release and have not changed the folder name.
|
|
||||||
<p>6) The scenario will now load all the selected modules and start the map, any errors or exceptions raised in the scenario should not cause a game/server crash, so if any features do not work as expected then it may be returning an error in the log.
|
|
||||||
Please report these errors to [the issues page](issues).
|
|
||||||
<p>## Contributing
|
|
||||||
<p>All are welcome to make pull requests and issues for this scenario, if you are in any doubt, please ask someone in our [discord]. If you do not know lua and don't feel like learning you can always make a [feature request]. To find out what we already have please read our [docs]. Please keep in mind while making code changes:
|
|
||||||
<p>* New features should have the branch names: `feature/feature-name`
|
|
||||||
* New features are merged into `dev` after it has been completed, this can be done through a pull request.
|
|
||||||
* After a number of features have been added a release branch is made: `release/X.Y.0`
|
|
||||||
* Bug fixes and localization can be made to the release branch with a pull request rather than into dev.
|
|
||||||
* A release is merged into `master` on the following friday after it is considered stable.
|
|
||||||
* Patches may be named `patch/X.Y.Z` and will be merged into `dev` and then `master` when appropriate.
|
|
||||||
<p>## Releases
|
|
||||||
<p>| Scenario Version* | Version Name | Factorio Version** |
|
|
||||||
|---|---|---|
|
|
||||||
| [v5.10][s5.10] | Data Store Rewrite | [v0.17.71][f0.17.71] |
|
|
||||||
| [v5.9][s5.9] | Control Modules and Documentation | [v0.17.63][f0.17.63] |
|
|
||||||
| [v5.8][s5.8] | Home and Chat Bot | [v0.17.47][f0.17.49] |
|
|
||||||
| [v5.7][s5.7] | Warp System | [v0.17.47][f0.17.47] |
|
|
||||||
| [v5.6][s5.6] | Information Guis | [v0.17.44][f0.17.44] |
|
|
||||||
| [v5.5][s5.5] | Gui System | [v0.17.43][f0.17.43] |
|
|
||||||
| [v5.4][s5.4] | Admin Controls | [v0.17.32][f0.17.32] |
|
|
||||||
| [v5.3][s5.3] | Custom Roles | [v0.17.28][f0.17.28] |
|
|
||||||
| [v5.2][s5.2] | Quality of life | [v0.17.22][f0.17.22] |
|
|
||||||
| [v5.1][s5.1] | Permission Groups | [v0.17.13][f0.17.13] |
|
|
||||||
| [v5.0][s5.0] | 0.17 Overhaul| [v0.17][f0.17.9] |
|
|
||||||
| [v4.0][s4.0] | Softmod Manager | [v0.16.51][f0.16.51] |
|
|
||||||
| [v3.0][s3.0] | 0.16 Overhaul | [v0.16][f0.16] |
|
|
||||||
| [v2.0][s2.0] | Localization and clean up | [v0.15][f0.15] |
|
|
||||||
| [v1.0][s1.0] | Modulation | [v0.15][f0.15] |
|
|
||||||
| [v0.1][s0.1] | First Tracked Version | [v0.14][f0.14] |
|
|
||||||
<p>\* Scenario patch versions have been omitted.
|
|
||||||
<p>\*\* Factorio versions show the version they were made for, often the minimum requirement.
|
|
||||||
<p>[s5.10]: https://github.com/explosivegaming/scenario/releases/tag/5.10.0
|
|
||||||
[s5.9]: https://github.com/explosivegaming/scenario/releases/tag/5.9.0
|
|
||||||
[s5.8]: https://github.com/explosivegaming/scenario/releases/tag/5.8.0
|
|
||||||
[s5.7]: https://github.com/explosivegaming/scenario/releases/tag/5.7.0
|
|
||||||
[s5.6]: https://github.com/explosivegaming/scenario/releases/tag/5.6.0
|
|
||||||
[s5.5]: https://github.com/explosivegaming/scenario/releases/tag/5.5.0
|
|
||||||
[s5.4]: https://github.com/explosivegaming/scenario/releases/tag/5.4.0
|
|
||||||
[s5.3]: https://github.com/explosivegaming/scenario/releases/tag/5.3.0
|
|
||||||
[s5.2]: https://github.com/explosivegaming/scenario/releases/tag/5.2.0
|
|
||||||
[s5.1]: https://github.com/explosivegaming/scenario/releases/tag/5.1.0
|
|
||||||
[s5.0]: https://github.com/explosivegaming/scenario/releases/tag/5.0.0
|
|
||||||
[s4.0]: https://github.com/explosivegaming/scenario/releases/tag/v4.0
|
|
||||||
[s3.0]: https://github.com/explosivegaming/scenario/releases/tag/v3.0
|
|
||||||
[s2.0]: https://github.com/explosivegaming/scenario/releases/tag/v2.0
|
|
||||||
[s1.0]: https://github.com/explosivegaming/scenario/releases/tag/v1.0
|
|
||||||
[s0.1]: https://github.com/explosivegaming/scenario/releases/tag/v0.1
|
|
||||||
<p>[f0.17.71]: https://wiki.factorio.com/Version_history/0.17.0#0.17.71
|
|
||||||
[f0.17.63]: https://wiki.factorio.com/Version_history/0.17.0#0.17.63
|
|
||||||
[f0.17.49]: https://wiki.factorio.com/Version_history/0.17.0#0.17.49
|
|
||||||
[f0.17.47]: https://wiki.factorio.com/Version_history/0.17.0#0.17.47
|
|
||||||
[f0.17.44]: https://wiki.factorio.com/Version_history/0.17.0#0.17.44
|
|
||||||
[f0.17.43]: https://wiki.factorio.com/Version_history/0.17.0#0.17.43
|
|
||||||
[f0.17.32]: https://wiki.factorio.com/Version_history/0.17.0#0.17.32
|
|
||||||
[f0.17.28]: https://wiki.factorio.com/Version_history/0.17.0#0.17.28
|
|
||||||
[f0.17.22]: https://wiki.factorio.com/Version_history/0.17.0#0.17.22
|
|
||||||
[f0.17.13]: https://wiki.factorio.com/Version_history/0.17.0#0.17.13
|
|
||||||
[f0.17.9]: https://wiki.factorio.com/Version_history/0.17.0#0.17.9
|
|
||||||
[f0.16.51]: https://wiki.factorio.com/Version_history/0.16.0#0.16.51
|
|
||||||
[f0.16]: https://wiki.factorio.com/Version_history/0.16.0
|
|
||||||
[f0.15]: https://wiki.factorio.com/Version_history/0.15.0
|
|
||||||
[f0.14]: https://wiki.factorio.com/Version_history/0.14.0
|
|
||||||
<p>## License
|
|
||||||
<p>The Explosive Gaming codebase is licensed under the [GNU General Public License v3.0](LICENSE)
|
|
||||||
<p>[docs]: https://explosivegaming.github.io/scenario/
|
|
||||||
[issues]: https://github.com/explosivegaming/scenario/issues/new/choose
|
|
||||||
[website]: https://explosivegaming.nl
|
|
||||||
[discord]: https://discord.explosivegaming.nl
|
|
||||||
[wiki]: https://wiki.explosivegaming.nl
|
|
||||||
|
|
||||||
|
|
||||||
<!-- module info start -->
|
|
||||||
<!-- module info end -->
|
|
||||||
|
|
||||||
<!-- module usage start -->
|
|
||||||
<!-- module usage end -->
|
|
||||||
|
|
||||||
<!-- module content header end -->
|
|
||||||
|
|
||||||
<!-- module section list start -->
|
|
||||||
<!-- module section list end -->
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<!-- section start -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- section end -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="footer container grid-1280">
|
|
||||||
<div class="divider divider-custom"></div>
|
|
||||||
<div class="footer-columns columns">
|
|
||||||
<div class="sidebar-footer column col-3 col-sm-12">
|
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
|
|
||||||
</div>
|
|
||||||
<div class="content-footer column col-9 col-sm-12">
|
|
||||||
<i>Last updated 2020-03-31 23:28:20 UTC</i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -307,7 +307,6 @@ local key = auto_complete(tbl, "foo", true, true)
|
|||||||
|
|
||||||
]]
|
]]
|
||||||
function Common.auto_complete(options, input, use_key, rtn_key)
|
function Common.auto_complete(options, input, use_key, rtn_key)
|
||||||
local rtn = {}
|
|
||||||
if type(input) ~= 'string' then return end
|
if type(input) ~= 'string' then return end
|
||||||
input = input:lower()
|
input = input:lower()
|
||||||
for key, value in pairs(options) do
|
for key, value in pairs(options) do
|
||||||
@@ -318,8 +317,8 @@ function Common.auto_complete(options,input,use_key,rtn_key)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Formating.
|
--- Formatting.
|
||||||
-- @section formating
|
-- @section formatting
|
||||||
|
|
||||||
--[[-- Returns a valid string with the name of the actor of a command.
|
--[[-- Returns a valid string with the name of the actor of a command.
|
||||||
@tparam string player_name the name of the player to use rather than server, used only if game.player is nil
|
@tparam string player_name the name of the player to use rather than server, used only if game.player is nil
|
||||||
@@ -589,7 +588,7 @@ function Common.move_items(items,surface,position,radius,chest_type)
|
|||||||
local last_chest
|
local last_chest
|
||||||
for item_name, item_count in pairs(items) do
|
for item_name, item_count in pairs(items) do
|
||||||
local chest = next_chest{name=item_name, count=item_count}
|
local chest = next_chest{name=item_name, count=item_count}
|
||||||
if not chest then return error(string.format('Cant move item %s to %s{%s, %s} no valid chest in radius',item.name,surface.name,p.x,p.y)) end
|
if not chest then return error(string.format('Cant move item %s to %s{%s, %s} no valid chest in radius', item_name, surface.name, p.x, p.y)) end
|
||||||
Util.insert_safe(chest, {[item_name]=item_count})
|
Util.insert_safe(chest, {[item_name]=item_count})
|
||||||
last_chest = chest
|
last_chest = chest
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ Event.on_nth_tick(config.message_cycle, circle_messages)
|
|||||||
|
|
||||||
--- This will add a compilatron to the global and start his message cycle
|
--- This will add a compilatron to the global and start his message cycle
|
||||||
-- @tparam LuaEntity entity the compilatron entity that moves around
|
-- @tparam LuaEntity entity the compilatron entity that moves around
|
||||||
-- @tparam string name the name of the location that the complitron is at
|
-- @tparam string name the name of the location that the compilatron is at
|
||||||
function Public.add_compilatron(entity, name)
|
function Public.add_compilatron(entity, name)
|
||||||
if not entity and not entity.valid then
|
if not entity and not entity.valid then
|
||||||
return
|
return
|
||||||
@@ -96,7 +96,7 @@ end
|
|||||||
Event.add(defines.events.on_player_created, function(event)
|
Event.add(defines.events.on_player_created, function(event)
|
||||||
if event.player_index ~= 1 then return end
|
if event.player_index ~= 1 then return end
|
||||||
local player = Game.get_player_by_index(event.player_index)
|
local player = Game.get_player_by_index(event.player_index)
|
||||||
for location,pos in pairs(locations) do
|
for location in pairs(locations) do
|
||||||
Public.spawn_compilatron(player.surface, location)
|
Public.spawn_compilatron(player.surface, location)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ end)
|
|||||||
-- every 5 min all bodies are checked for valid map tags
|
-- every 5 min all bodies are checked for valid map tags
|
||||||
if config.show_map_markers then
|
if config.show_map_markers then
|
||||||
local check_period = 60*60*5 -- five minutes
|
local check_period = 60*60*5 -- five minutes
|
||||||
Event.on_nth_tick(check_period,function(event)
|
Event.on_nth_tick(check_period, function()
|
||||||
check_map_tags()
|
check_map_tags()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,53 +1,6 @@
|
|||||||
---LuaPlayerBuiltEntityEventFilters
|
---LuaPlayerBuiltEntityEventFilters
|
||||||
---Events.set_event_filter(defines.events.on_built_entity, {{filter = "name", name = "fast-inserter"}})
|
---Events.set_event_filter(defines.events.on_built_entity, {{filter = "name", name = "fast-inserter"}})
|
||||||
local Event = require 'utils.event' --- @dep utils.event
|
local Event = require 'utils.event' --- @dep utils.event
|
||||||
local station_name_changer =
|
|
||||||
function(event)
|
|
||||||
local enetety = event.created_entity
|
|
||||||
local name = enetety.name
|
|
||||||
|
|
||||||
if name == "train-stop" then --only do the event if its a trainstop
|
|
||||||
local boundingbox = enetety.bounding_box
|
|
||||||
-- expanded box for recourse search:
|
|
||||||
local bounding2 = { {boundingbox.left_top.x -100 ,boundingbox.left_top.y -100} , {boundingbox.right_bottom.x +100,boundingbox.right_bottom.y +100 } }
|
|
||||||
--gets all resources in bounding_box2:
|
|
||||||
local recoursec = game.surfaces[1].find_entities_filtered{area = bounding2, type = "resource"}
|
|
||||||
|
|
||||||
if #recoursec > 0 then -- save cpu time if their are no recourses in bounding_box2
|
|
||||||
local closest_distance
|
|
||||||
local px,py = boundingbox.left_top.x,boundingbox.left_top.y
|
|
||||||
local recourse_closed
|
|
||||||
|
|
||||||
--Check which recource is closest
|
|
||||||
for i, item in ipairs(recoursec) do
|
|
||||||
local dx, dy = px - item.bounding_box.left_top.x, py - item.bounding_box.left_top.y
|
|
||||||
local distance = (dx*dx)+(dy*dy)
|
|
||||||
if not closest_distance or distance < closest_distance then
|
|
||||||
recourse_closed = item
|
|
||||||
closest_distance = distance
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local item_name = recourse_closed.name
|
|
||||||
if item_name then -- prevent errors if something went wrong
|
|
||||||
local item_name2 = item_name:gsub("^%l", string.upper):gsub('-',' ') -- removing the - and making first letter capital
|
|
||||||
|
|
||||||
local Item_ore_fluid = "item"
|
|
||||||
if item_name == "crude-oil" then
|
|
||||||
Item_ore_fluid = "fluid"
|
|
||||||
end
|
|
||||||
--Final string:
|
|
||||||
enetety.backer_name = string.format("[L] [img=%s.%s] %s %s (%s)",Item_ore_fluid,item_name,item_name2,enetety.backer_name,Angle( enetety ))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
--add func to robot and player build entities
|
|
||||||
Event.add(defines.events.on_built_entity,station_name_changer)
|
|
||||||
Event.add(defines.events.on_robot_built_entity,station_name_changer)
|
|
||||||
|
|
||||||
|
|
||||||
--Credit to Cooldude2606 for using his lua magic to make this function.
|
--Credit to Cooldude2606 for using his lua magic to make this function.
|
||||||
local directions = {
|
local directions = {
|
||||||
@@ -60,8 +13,9 @@ local directions = {
|
|||||||
['S'] = 0.625,
|
['S'] = 0.625,
|
||||||
['SW'] = 0.875
|
['SW'] = 0.875
|
||||||
}
|
}
|
||||||
function Angle( enetety )
|
|
||||||
local angle = math.atan2(enetety.position.y,enetety.position.x)/math.pi
|
local function Angle(entity)
|
||||||
|
local angle = math.atan2(entity.position.y, entity.position.x)/math.pi
|
||||||
for direction, requiredAngle in pairs(directions) do
|
for direction, requiredAngle in pairs(directions) do
|
||||||
if angle < requiredAngle then
|
if angle < requiredAngle then
|
||||||
return direction
|
return direction
|
||||||
@@ -69,3 +23,48 @@ function Angle( enetety )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function station_name_changer(event)
|
||||||
|
local entity = event.created_entity
|
||||||
|
local name = entity.name
|
||||||
|
|
||||||
|
if name == "train-stop" then --only do the event if its a train stop
|
||||||
|
local boundingBox = entity.bounding_box
|
||||||
|
-- expanded box for recourse search:
|
||||||
|
local bounding2 = { {boundingBox.left_top.x -100 ,boundingBox.left_top.y -100} , {boundingBox.right_bottom.x +100, boundingBox.right_bottom.y +100 } }
|
||||||
|
-- gets all resources in bounding_box2:
|
||||||
|
local recourses = game.surfaces[1].find_entities_filtered{area = bounding2, type = "resource"}
|
||||||
|
|
||||||
|
if #recourses > 0 then -- save cpu time if their are no recourses in bounding_box2
|
||||||
|
local closest_distance
|
||||||
|
local px, py = boundingBox.left_top.x, boundingBox.left_top.y
|
||||||
|
local recourse_closed
|
||||||
|
|
||||||
|
--Check which recourse is closest
|
||||||
|
for i, item in ipairs(recourses) do
|
||||||
|
local dx, dy = px - item.bounding_box.left_top.x, py - item.bounding_box.left_top.y
|
||||||
|
local distance = (dx*dx)+(dy*dy)
|
||||||
|
if not closest_distance or distance < closest_distance then
|
||||||
|
recourse_closed = item
|
||||||
|
closest_distance = distance
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
local item_name = recourse_closed.name
|
||||||
|
if item_name then -- prevent errors if something went wrong
|
||||||
|
local item_name2 = item_name:gsub("^%l", string.upper):gsub('-', ' ') -- removing the - and making first letter capital
|
||||||
|
|
||||||
|
local Item_ore_fluid = "item"
|
||||||
|
if item_name == "crude-oil" then
|
||||||
|
Item_ore_fluid = "fluid"
|
||||||
|
end
|
||||||
|
--Final string:
|
||||||
|
entity.backer_name = string.format("[L] [img=%s.%s] %s %s (%s)", Item_ore_fluid, item_name, item_name2, entity.backer_name, Angle( entity ))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Add handler to robot and player build entities
|
||||||
|
Event.add(defines.events.on_built_entity, station_name_changer)
|
||||||
|
Event.add(defines.events.on_robot_built_entity, station_name_changer)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Commands.new_command('admin-chat','Sends a message in chat that only admins can
|
|||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:set_flag('admin_only')
|
:set_flag('admin_only')
|
||||||
:add_alias('ac')
|
:add_alias('ac')
|
||||||
:register(function(player,message,raw)
|
:register(function(player, message)
|
||||||
local player_name_colour = format_chat_player_name(player)
|
local player_name_colour = format_chat_player_name(player)
|
||||||
for _, return_player in pairs(game.connected_players) do
|
for _, return_player in pairs(game.connected_players) do
|
||||||
if return_player.admin then
|
if return_player.admin then
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ Commands.new_command('toggle-cheat-mode','Toggles cheat mode for your player, or
|
|||||||
return player -- default is the user using the command
|
return player -- default is the user using the command
|
||||||
end}
|
end}
|
||||||
:set_flag('admin_only')
|
:set_flag('admin_only')
|
||||||
:register(function(player,action_player,raw)
|
:register(function(_, player)
|
||||||
action_player.cheat_mode = not action_player.cheat_mode
|
player.cheat_mode = not player.cheat_mode
|
||||||
end)
|
end)
|
||||||
@@ -13,8 +13,8 @@ require 'config.expcore.command_role_parse'
|
|||||||
Commands.new_command('clear-inventory', 'Clears a players inventory')
|
Commands.new_command('clear-inventory', 'Clears a players inventory')
|
||||||
:add_param('player', false, 'player-role-alive')
|
:add_param('player', false, 'player-role-alive')
|
||||||
:add_alias('clear-inv', 'move-inventory', 'move-inv')
|
:add_alias('clear-inv', 'move-inventory', 'move-inv')
|
||||||
:register(function(player,action_player)
|
:register(function(_, player)
|
||||||
local inv = action_player.get_main_inventory()
|
local inv = player.get_main_inventory()
|
||||||
move_items(inv.get_contents())
|
move_items(inv.get_contents())
|
||||||
inv.clear()
|
inv.clear()
|
||||||
end)
|
end)
|
||||||
@@ -12,7 +12,7 @@ require 'config.expcore.command_general_parse'
|
|||||||
Commands.new_command('find-on-map', 'Find a player on your map.')
|
Commands.new_command('find-on-map', 'Find a player on your map.')
|
||||||
:add_param('player', false, 'player-online')
|
:add_param('player', false, 'player-online')
|
||||||
:add_alias('find', 'zoom-to')
|
:add_alias('find', 'zoom-to')
|
||||||
:register(function(player,action_player,raw)
|
:register(function(player, action_player)
|
||||||
local position = action_player.position
|
local position = action_player.position
|
||||||
player.zoom_to_world(position, 1.75)
|
player.zoom_to_world(position, 1.75)
|
||||||
return Commands.success -- prevents command complete message from showing
|
return Commands.success -- prevents command complete message from showing
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Commands.new_command('search-help','Searches for a keyword in all commands you a
|
|||||||
:add_param('keyword', true)
|
:add_param('keyword', true)
|
||||||
:add_param('page', true, 'integer')
|
:add_param('page', true, 'integer')
|
||||||
:set_defaults{keyword='', page=1}
|
:set_defaults{keyword='', page=1}
|
||||||
:register(function(player,keyword,page,raw)
|
:register(function(player, keyword, page)
|
||||||
local player_index = player and player.index or 0
|
local player_index = player and player.index or 0
|
||||||
-- if keyword is a number then treat it as page number
|
-- if keyword is a number then treat it as page number
|
||||||
if tonumber(keyword) then
|
if tonumber(keyword) then
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ end
|
|||||||
--- Teleports you to your home location
|
--- Teleports you to your home location
|
||||||
-- @command home
|
-- @command home
|
||||||
Commands.new_command('home', 'Teleports you to your home location')
|
Commands.new_command('home', 'Teleports you to your home location')
|
||||||
:register(function(player,raw)
|
:register(function(player)
|
||||||
local home = homes[player.index]
|
local home = homes[player.index]
|
||||||
if not home or not home[1] then
|
if not home or not home[1] then
|
||||||
return Commands.error{'expcom-home.no-home'}
|
return Commands.error{'expcom-home.no-home'}
|
||||||
@@ -45,7 +45,7 @@ end)
|
|||||||
--- Sets your home location to your current position
|
--- Sets your home location to your current position
|
||||||
-- @command home-set
|
-- @command home-set
|
||||||
Commands.new_command('home-set', 'Sets your home location to your current position')
|
Commands.new_command('home-set', 'Sets your home location to your current position')
|
||||||
:register(function(player,raw)
|
:register(function(player)
|
||||||
local home = homes[player.index]
|
local home = homes[player.index]
|
||||||
if not home then
|
if not home then
|
||||||
home = {}
|
home = {}
|
||||||
@@ -59,7 +59,7 @@ end)
|
|||||||
--- Returns your current home location
|
--- Returns your current home location
|
||||||
-- @command home-get
|
-- @command home-get
|
||||||
Commands.new_command('home-get', 'Returns your current home location')
|
Commands.new_command('home-get', 'Returns your current home location')
|
||||||
:register(function(player,raw)
|
:register(function(player)
|
||||||
local home = homes[player.index]
|
local home = homes[player.index]
|
||||||
if not home or not home[1] then
|
if not home or not home[1] then
|
||||||
return Commands.error{'expcom-home.no-home'}
|
return Commands.error{'expcom-home.no-home'}
|
||||||
@@ -71,7 +71,7 @@ end)
|
|||||||
--- Teleports you to previous location
|
--- Teleports you to previous location
|
||||||
-- @command return
|
-- @command return
|
||||||
Commands.new_command('return', 'Teleports you to previous location')
|
Commands.new_command('return', 'Teleports you to previous location')
|
||||||
:register(function(player,raw)
|
:register(function(player)
|
||||||
local home = homes[player.index]
|
local home = homes[player.index]
|
||||||
if not home or not home[2] then
|
if not home or not home[2] then
|
||||||
return Commands.error{'expcom-home.no-return'}
|
return Commands.error{'expcom-home.no-return'}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ local function add_interface_callback(name,callback)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- this is a meta function for __index when self[key] is nil
|
-- this is a meta function for __index when self[key] is nil
|
||||||
local function get_index(self,key)
|
local function get_index(_, key)
|
||||||
if interface_env[key] then
|
if interface_env[key] then
|
||||||
return interface_env[key]
|
return interface_env[key]
|
||||||
elseif interface_modules[key] then
|
elseif interface_modules[key] then
|
||||||
@@ -60,7 +60,7 @@ Commands.new_command('interface','Sends an innovation to be ran and returns the
|
|||||||
:add_param('innovation', false)
|
:add_param('innovation', false)
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:set_flag('admin_only')
|
:set_flag('admin_only')
|
||||||
:register(function(player,innovation,raw)
|
:register(function(player, innovation)
|
||||||
if not innovation:find('%s') and not innovation:find('return') then
|
if not innovation:find('%s') and not innovation:find('return') then
|
||||||
-- if there are no spaces and return is not present then return is appended to the start
|
-- if there are no spaces and return is not present then return is appended to the start
|
||||||
innovation='return '..innovation
|
innovation='return '..innovation
|
||||||
@@ -70,12 +70,12 @@ Commands.new_command('interface','Sends an innovation to be ran and returns the
|
|||||||
if player then -- player can be nil when it is the server
|
if player then -- player can be nil when it is the server
|
||||||
for name, callback in pairs(interface_callbacks) do
|
for name, callback in pairs(interface_callbacks) do
|
||||||
-- loops over callbacks and loads the values returned
|
-- loops over callbacks and loads the values returned
|
||||||
local success, rtn = pcall(callback,player)
|
local _, rtn = pcall(callback, player)
|
||||||
temp_env[name]=rtn
|
temp_env[name]=rtn
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- sets the global metatable to prevent new values being made
|
-- sets the global metatable to prevent new values being made
|
||||||
-- global will index to temp_env and new indexs saved to interface_sandbox
|
-- global will index to temp_env and new indexes saved to interface_sandbox
|
||||||
local old_mt = getmetatable(_G)
|
local old_mt = getmetatable(_G)
|
||||||
setmetatable(_G, {__index=temp_env, __newindex=interface_env})
|
setmetatable(_G, {__index=temp_env, __newindex=interface_env})
|
||||||
-- runs the innovation and returns values to the player
|
-- runs the innovation and returns values to the player
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Commands.new_command('jail','Puts a player into jail and removes all other roles
|
|||||||
:add_param('player', false, 'player-role')
|
:add_param('player', false, 'player-role')
|
||||||
:add_param('reason', true)
|
:add_param('reason', true)
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,action_player,reason,raw)
|
:register(function(player, action_player, reason)
|
||||||
reason = reason or 'Non Given.'
|
reason = reason or 'Non Given.'
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
local by_player_name_color = format_chat_player_name(player)
|
local by_player_name_color = format_chat_player_name(player)
|
||||||
@@ -35,7 +35,7 @@ Commands.new_command('unjail','Removes a player from jail.')
|
|||||||
:add_param('player', false, 'player-role')
|
:add_param('player', false, 'player-role')
|
||||||
:add_alias('clear-jail', 'remove-jail')
|
:add_alias('clear-jail', 'remove-jail')
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,action_player,raw)
|
:register(function(player, action_player)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
local by_player_name_color = format_chat_player_name(player)
|
local by_player_name_color = format_chat_player_name(player)
|
||||||
local player_name = player and player.name or '<server>'
|
local player_name = player and player.name or '<server>'
|
||||||
@@ -54,7 +54,7 @@ Commands.new_command('temp-ban','Temp bans a player until the next reset; this r
|
|||||||
:add_param('player', false, 'player-role')
|
:add_param('player', false, 'player-role')
|
||||||
:add_param('reason', false)
|
:add_param('reason', false)
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,action_player,reason,raw)
|
:register(function(player, action_player, reason)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
local by_player_name_color = format_chat_player_name(player)
|
local by_player_name_color = format_chat_player_name(player)
|
||||||
if Jail.temp_ban_player(action_player, player.name, reason) then
|
if Jail.temp_ban_player(action_player, player.name, reason) then
|
||||||
@@ -71,7 +71,7 @@ Commands.new_command('clear-temp-ban','Removes temp ban from a player; this will
|
|||||||
:add_param('player', false, 'player-role')
|
:add_param('player', false, 'player-role')
|
||||||
:add_alias('untemp-ban', 'remove-temp-ban')
|
:add_alias('untemp-ban', 'remove-temp-ban')
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,action_player,raw)
|
:register(function(player, action_player)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
local by_player_name_color = format_chat_player_name(player)
|
local by_player_name_color = format_chat_player_name(player)
|
||||||
if Jail.untemp_ban_player(action_player, player.name) then
|
if Jail.untemp_ban_player(action_player, player.name) then
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Commands.new_command('kill','Kills yourself or another player.')
|
|||||||
return player
|
return player
|
||||||
end
|
end
|
||||||
end}
|
end}
|
||||||
:register(function(player,action_player,raw)
|
:register(function(player, action_player)
|
||||||
if not action_player then
|
if not action_player then
|
||||||
-- can only be nil if no player given and the user is dead
|
-- can only be nil if no player given and the user is dead
|
||||||
return Commands.error{'expcom-kill.already-dead'}
|
return Commands.error{'expcom-kill.already-dead'}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ local Commands = require 'expcore.commands' --- @dep expcore.commands
|
|||||||
Commands.new_command('me', 'Sends an action message in the chat')
|
Commands.new_command('me', 'Sends an action message in the chat')
|
||||||
:add_param('action', false)
|
:add_param('action', false)
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,action,raw)
|
:register(function(player, action)
|
||||||
local player_name = player and player.name or '<Server>'
|
local player_name = player and player.name or '<Server>'
|
||||||
game.print(string.format('* %s %s *', player_name, action), player.chat_color)
|
game.print(string.format('* %s %s *', player_name, action), player.chat_color)
|
||||||
end)
|
end)
|
||||||
@@ -4,11 +4,8 @@
|
|||||||
]]
|
]]
|
||||||
|
|
||||||
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
local Commands = require 'expcore.commands' --- @dep expcore.commands
|
||||||
local Roles = require 'expcore.roles' --- @dep expcore.roles
|
|
||||||
local Game = require 'utils.game' --- @dep utils.game
|
|
||||||
local config = require 'config.preset_player_quickbar' --- @dep config.preset_player_quickbar
|
local config = require 'config.preset_player_quickbar' --- @dep config.preset_player_quickbar
|
||||||
|
|
||||||
|
|
||||||
--- Loads your quickbar preset
|
--- Loads your quickbar preset
|
||||||
-- @command load-quickbar
|
-- @command load-quickbar
|
||||||
Commands.new_command('load-quickbar', 'Loads your preset Quickbar items')
|
Commands.new_command('load-quickbar', 'Loads your preset Quickbar items')
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ end
|
|||||||
Commands.new_command('rainbow', 'Sends an rainbow message in the chat')
|
Commands.new_command('rainbow', 'Sends an rainbow message in the chat')
|
||||||
:add_param('message', false)
|
:add_param('message', false)
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,message,raw)
|
:register(function(player, message)
|
||||||
local player_name = player and player.name or '<Server>'
|
local player_name = player and player.name or '<Server>'
|
||||||
local player_color = player and player.color or nil
|
local player_color = player and player.color or nil
|
||||||
local color_step = 3/message:len()
|
local color_step = 3/message:len()
|
||||||
|
|||||||
@@ -2,11 +2,24 @@
|
|||||||
|
|
||||||
local Commands = require 'expcore.commands'
|
local Commands = require 'expcore.commands'
|
||||||
|
|
||||||
|
local function Modules(moduleInventory) -- returns the multiplier of the modules
|
||||||
|
local effect1 = moduleInventory.get_item_count("productivity-module") -- type 1
|
||||||
|
local effect2 = moduleInventory.get_item_count("productivity-module-2")-- type 2
|
||||||
|
local effect3 = moduleInventory.get_item_count("productivity-module-3") -- type 3
|
||||||
|
|
||||||
Commands.new_command('ratio','This command will give the input and ouput ratios of the selected machine. Use the parameter for calcualting the machines needed for that amount of items per second.')
|
local multi = effect1*4+effect2*6+effect3*10
|
||||||
|
return multi/100+1
|
||||||
|
end
|
||||||
|
|
||||||
|
local function AmountOfMachines(itemsPerSecond, output)
|
||||||
|
if(itemsPerSecond) then
|
||||||
|
return itemsPerSecond/output
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
Commands.new_command('ratio', 'This command will give the input and output ratios of the selected machine. Use the parameter for calculating the machines needed for that amount of items per second.')
|
||||||
:add_param('itemsPerSecond', true, 'number')
|
:add_param('itemsPerSecond', true, 'number')
|
||||||
:register(function(player,itemsPerSecond,raw)
|
:register(function(player, itemsPerSecond)
|
||||||
|
|
||||||
local machine = player.selected -- selected machine
|
local machine = player.selected -- selected machine
|
||||||
if not machine then --nil check
|
if not machine then --nil check
|
||||||
return Commands.error{'expcom-ratio.notSelecting'}
|
return Commands.error{'expcom-ratio.notSelecting'}
|
||||||
@@ -15,20 +28,20 @@ Commands.new_command('ratio','This command will give the input and ouput ratios
|
|||||||
if machine.type ~= "assembling-machine" and machine.type ~= "furnace" then
|
if machine.type ~= "assembling-machine" and machine.type ~= "furnace" then
|
||||||
return Commands.error{'expcom-ratio.notSelecting'}
|
return Commands.error{'expcom-ratio.notSelecting'}
|
||||||
end
|
end
|
||||||
local recpie = machine.get_recipe() -- recpie
|
local recipe = machine.get_recipe() -- recipe
|
||||||
|
|
||||||
if not recpie then --nil check
|
if not recipe then --nil check
|
||||||
return Commands.error{'expcom-ratio.notSelecting'}
|
return Commands.error{'expcom-ratio.notSelecting'}
|
||||||
end
|
end
|
||||||
|
|
||||||
local items = recpie.ingredients -- items in that recpie
|
local items = recipe.ingredients -- items in that recipe
|
||||||
local product = recpie.products -- output items
|
local products = recipe.products -- output items
|
||||||
local amountOfMachines
|
local amountOfMachines
|
||||||
local moduleInvetory = machine.get_module_inventory()--the module Invetory of the machine
|
local moduleInventory = machine.get_module_inventory()--the module Inventory of the machine
|
||||||
local mult = Modules(moduleInvetory) --function for the productivety moduals
|
local multi = Modules(moduleInventory) --function for the productively modals
|
||||||
|
|
||||||
if itemsPerSecond then
|
if itemsPerSecond then
|
||||||
amountOfMachines = math.ceil( AmountOfMachines(itemsPerSecond,1/recpie.energy*machine.crafting_speed*product[1].amount*mult)) -- amount of machines
|
amountOfMachines = math.ceil( AmountOfMachines(itemsPerSecond, 1/recipe.energy*machine.crafting_speed*products[1].amount*multi)) -- amount of machines
|
||||||
end
|
end
|
||||||
if not amountOfMachines then
|
if not amountOfMachines then
|
||||||
amountOfMachines = 1 --set to 1 to make it not nil
|
amountOfMachines = 1 --set to 1 to make it not nil
|
||||||
@@ -43,13 +56,12 @@ Commands.new_command('ratio','This command will give the input and ouput ratios
|
|||||||
sprite = 'expcom-ratio.fluid-in'
|
sprite = 'expcom-ratio.fluid-in'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local ips = item.amount/recipe.energy*machine.crafting_speed*amountOfMachines --math on the items/fluids per second
|
||||||
local ips = item.amount/recpie.energy*machine.crafting_speed*amountOfMachines --math on the items/fluids per second
|
|
||||||
Commands.print {sprite, math.round(ips, 3), item.name}-- full string
|
Commands.print {sprite, math.round(ips, 3), item.name}-- full string
|
||||||
end
|
end
|
||||||
----------------------------products----------------------------
|
----------------------------products----------------------------
|
||||||
|
|
||||||
for i, product in ipairs(product) do
|
for i, product in ipairs(products) do
|
||||||
local sprite -- string to make the icon work either fluid ore item
|
local sprite -- string to make the icon work either fluid ore item
|
||||||
|
|
||||||
if product.type == "item" then
|
if product.type == "item" then
|
||||||
@@ -58,7 +70,7 @@ Commands.new_command('ratio','This command will give the input and ouput ratios
|
|||||||
sprite = 'expcom-ratio.fluid-out'
|
sprite = 'expcom-ratio.fluid-out'
|
||||||
end
|
end
|
||||||
|
|
||||||
local output = 1/recpie.energy*machine.crafting_speed*product.amount*mult --math on the outputs per second
|
local output = 1/recipe.energy*machine.crafting_speed*product.amount*multi --math on the outputs per second
|
||||||
Commands.print {sprite, math.round(output*amountOfMachines, 3), product.name} -- full string
|
Commands.print {sprite, math.round(output*amountOfMachines, 3), product.name} -- full string
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -68,18 +80,3 @@ Commands.new_command('ratio','This command will give the input and ouput ratios
|
|||||||
end
|
end
|
||||||
|
|
||||||
end)
|
end)
|
||||||
function Modules(moduleInvetory) -- returns the multeplier of the modules
|
|
||||||
local effect1 = moduleInvetory.get_item_count("productivity-module") -- type 1
|
|
||||||
local effect2 = moduleInvetory.get_item_count("productivity-module-2")-- type 2
|
|
||||||
local effect3 = moduleInvetory.get_item_count("productivity-module-3") -- type 3
|
|
||||||
|
|
||||||
local mult = effect1*4+effect2*6+effect3*10
|
|
||||||
return mult/100+1
|
|
||||||
end
|
|
||||||
|
|
||||||
function AmountOfMachines(itemsPerSecond,output)
|
|
||||||
if(itemsPerSecond) then
|
|
||||||
return itemsPerSecond/output
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ local max_time_to_live = 4294967295 -- unit32 max
|
|||||||
-- @tparam number range the range to repair stuff in, there is a max limit to this
|
-- @tparam number range the range to repair stuff in, there is a max limit to this
|
||||||
Commands.new_command('repair', 'Repairs entities on your force around you')
|
Commands.new_command('repair', 'Repairs entities on your force around you')
|
||||||
:add_param('range', false, 'integer-range', 1,config.max_range)
|
:add_param('range', false, 'integer-range', 1,config.max_range)
|
||||||
:register(function(player,range,raw)
|
:register(function(player, range)
|
||||||
local revive_count = 0
|
local revive_count = 0
|
||||||
local heal_count = 0
|
local heal_count = 0
|
||||||
local range2 = range^2
|
local range2 = range^2
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ end)
|
|||||||
:add_param('reason', false)
|
:add_param('reason', false)
|
||||||
:add_alias('report-player')
|
:add_alias('report-player')
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,action_player,reason,raw)
|
:register(function(player, action_player, reason)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
local by_player_name_color = format_chat_player_name(player)
|
local by_player_name_color = format_chat_player_name(player)
|
||||||
if Reports.report_player(action_player, player.name, reason) then
|
if Reports.report_player(action_player, player.name, reason) then
|
||||||
@@ -43,11 +43,11 @@ end)
|
|||||||
Commands.new_command('get-reports', 'Gets a list of all reports that a player has on them. If no player then lists all players and the number of reports on them.')
|
Commands.new_command('get-reports', 'Gets a list of all reports that a player has on them. If no player then lists all players and the number of reports on them.')
|
||||||
:add_param('player', true, 'player')
|
:add_param('player', true, 'player')
|
||||||
:add_alias('reports', 'list-reports')
|
:add_alias('reports', 'list-reports')
|
||||||
:register(function(player,action_player,raw)
|
:register(function(_, player)
|
||||||
if action_player then
|
if player then
|
||||||
local reports = Reports.get_reports(action_player)
|
local reports = Reports.get_reports(player)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local player_name_color = format_chat_player_name(player)
|
||||||
Commands.print{'expcom-report.player-report-title',action_player_name_color}
|
Commands.print{'expcom-report.player-report-title', player_name_color}
|
||||||
for player_name, reason in pairs(reports) do
|
for player_name, reason in pairs(reports) do
|
||||||
local by_player_name_color = format_chat_player_name(player_name)
|
local by_player_name_color = format_chat_player_name(player_name)
|
||||||
Commands.print{'expcom-report.list', by_player_name_color, reason}
|
Commands.print{'expcom-report.list', by_player_name_color, reason}
|
||||||
@@ -55,7 +55,7 @@ Commands.new_command('get-reports','Gets a list of all reports that a player has
|
|||||||
else
|
else
|
||||||
local user_reports = Reports.user_reports
|
local user_reports = Reports.user_reports
|
||||||
Commands.print{'expcom-report.player-count-title'}
|
Commands.print{'expcom-report.player-count-title'}
|
||||||
for player_name,reports in pairs(user_reports) do
|
for player_name in pairs(user_reports) do
|
||||||
local player_name_color = format_chat_player_name(player_name)
|
local player_name_color = format_chat_player_name(player_name)
|
||||||
local report_count = Reports.count_reports(player_name)
|
local report_count = Reports.count_reports(player_name)
|
||||||
Commands.print{'expcom-report.list', player_name_color, report_count}
|
Commands.print{'expcom-report.list', player_name_color, report_count}
|
||||||
@@ -70,7 +70,7 @@ end)
|
|||||||
Commands.new_command('clear-reports', 'Clears all reports from a player or just the report from one player.')
|
Commands.new_command('clear-reports', 'Clears all reports from a player or just the report from one player.')
|
||||||
:add_param('player', false, 'player')
|
:add_param('player', false, 'player')
|
||||||
:add_param('from-player', true, 'player')
|
:add_param('from-player', true, 'player')
|
||||||
:register(function(player,action_player,from_player,raw)
|
:register(function(player, action_player, from_player)
|
||||||
if from_player then
|
if from_player then
|
||||||
if not Reports.remove_report(action_player, from_player.name, player.name) then
|
if not Reports.remove_report(action_player, from_player.name, player.name) then
|
||||||
return Commands.error{'expcom-report.not-reported'}
|
return Commands.error{'expcom-report.not-reported'}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Commands.new_command('assign-role','Assigns a role to a player')
|
|||||||
:add_param('role', false, 'role')
|
:add_param('role', false, 'role')
|
||||||
:set_flag('admin-only')
|
:set_flag('admin-only')
|
||||||
:add_alias('rpromote', 'assign', 'role', 'add-role')
|
:add_alias('rpromote', 'assign', 'role', 'add-role')
|
||||||
:register(function(player,action_player,role,raw)
|
:register(function(player, action_player, role)
|
||||||
local player_highest = Roles.get_player_highest_role(player)
|
local player_highest = Roles.get_player_highest_role(player)
|
||||||
if player_highest.index < role.index then
|
if player_highest.index < role.index then
|
||||||
Roles.assign_player(action_player, role, player.name)
|
Roles.assign_player(action_player, role, player.name)
|
||||||
@@ -35,7 +35,7 @@ Commands.new_command('unassign-role','Unassigns a role from a player')
|
|||||||
:add_param('role', false, 'role')
|
:add_param('role', false, 'role')
|
||||||
:set_flag('admin-only')
|
:set_flag('admin-only')
|
||||||
:add_alias('rdemote', 'unassign', 'rerole', 'remove-role')
|
:add_alias('rdemote', 'unassign', 'rerole', 'remove-role')
|
||||||
:register(function(player,action_player,role,raw)
|
:register(function(player, action_player, role)
|
||||||
local player_highest = Roles.get_player_highest_role(player)
|
local player_highest = Roles.get_player_highest_role(player)
|
||||||
if player_highest.index < role.index then
|
if player_highest.index < role.index then
|
||||||
Roles.unassign_player(action_player, role, player.name)
|
Roles.unassign_player(action_player, role, player.name)
|
||||||
@@ -50,11 +50,11 @@ end)
|
|||||||
Commands.new_command('list-roles', 'Lists all roles in they correct order')
|
Commands.new_command('list-roles', 'Lists all roles in they correct order')
|
||||||
:add_param('player', true, 'player')
|
:add_param('player', true, 'player')
|
||||||
:add_alias('lsroles', 'roles')
|
:add_alias('lsroles', 'roles')
|
||||||
:register(function(player,action_player,raw)
|
:register(function(_, player)
|
||||||
local roles = Roles.config.order
|
local roles = Roles.config.order
|
||||||
local message = {'expcom-roles.list'}
|
local message = {'expcom-roles.list'}
|
||||||
if action_player then
|
if player then
|
||||||
roles = Roles.get_player_roles(action_player)
|
roles = Roles.get_player_roles(player)
|
||||||
end
|
end
|
||||||
for index, role in pairs(roles) do
|
for index, role in pairs(roles) do
|
||||||
role = Roles.get_role_from_any(role)
|
role = Roles.get_role_from_any(role)
|
||||||
@@ -62,8 +62,8 @@ Commands.new_command('list-roles','Lists all roles in they correct order')
|
|||||||
local role_name = format_chat_colour_localized(role.name, colour)
|
local role_name = format_chat_colour_localized(role.name, colour)
|
||||||
if index == 1 then
|
if index == 1 then
|
||||||
message = {'expcom-roles.list', role_name}
|
message = {'expcom-roles.list', role_name}
|
||||||
if action_player then
|
if player then
|
||||||
local player_name_colour = format_chat_player_name(action_player)
|
local player_name_colour = format_chat_player_name(player)
|
||||||
message = {'expcom-roles.list-player', player_name_colour, role_name}
|
message = {'expcom-roles.list-player', player_name_colour, role_name}
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ require 'config.expcore.command_role_parse'
|
|||||||
Commands.new_command('tag', 'Sets your player tag.')
|
Commands.new_command('tag', 'Sets your player tag.')
|
||||||
:add_param('tag', false, 'string-max-length', 20)
|
:add_param('tag', false, 'string-max-length', 20)
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,tag,raw)
|
:register(function(player, tag)
|
||||||
player.tag = '- '..tag
|
player.tag = '- '..tag
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ Commands.new_command('tag-clear','Clears your tag. Or another player if you are
|
|||||||
:set_defaults{player=function(player)
|
:set_defaults{player=function(player)
|
||||||
return player -- default is the user using the command
|
return player -- default is the user using the command
|
||||||
end}
|
end}
|
||||||
:register(function(player,action_player,raw)
|
:register(function(player, action_player)
|
||||||
if action_player.index == player.index then
|
if action_player.index == player.index then
|
||||||
-- no player given so removes your tag
|
-- no player given so removes your tag
|
||||||
action_player.tag = ''
|
action_player.tag = ''
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Commands.new_command('teleport','Teleports a player to another player.')
|
|||||||
:add_param('to_player', false, 'player-online')
|
:add_param('to_player', false, 'player-online')
|
||||||
:add_alias('tp')
|
:add_alias('tp')
|
||||||
:set_flag('admin_only')
|
:set_flag('admin_only')
|
||||||
:register(function(player,from_player,to_player,raw)
|
:register(function(_, from_player, to_player)
|
||||||
if from_player.index == to_player.index then
|
if from_player.index == to_player.index then
|
||||||
-- return if attempting to teleport to self
|
-- return if attempting to teleport to self
|
||||||
return Commands.error{'expcom-tp.to-self'}
|
return Commands.error{'expcom-tp.to-self'}
|
||||||
@@ -41,7 +41,7 @@ end)
|
|||||||
Commands.new_command('bring', 'Teleports a player to you.')
|
Commands.new_command('bring', 'Teleports a player to you.')
|
||||||
:add_param('player', false, 'player-alive')
|
:add_param('player', false, 'player-alive')
|
||||||
:set_flag('admin_only')
|
:set_flag('admin_only')
|
||||||
:register(function(player,from_player,raw)
|
:register(function(player, from_player)
|
||||||
if from_player.index == player.index then
|
if from_player.index == player.index then
|
||||||
-- return if attempting to teleport to self
|
-- return if attempting to teleport to self
|
||||||
return Commands.error{'expcom-tp.to-self'}
|
return Commands.error{'expcom-tp.to-self'}
|
||||||
@@ -59,7 +59,7 @@ Commands.new_command('goto','Teleports you to a player.')
|
|||||||
:add_param('player', false, 'player-online')
|
:add_param('player', false, 'player-online')
|
||||||
:add_alias('tp-me', 'tpme')
|
:add_alias('tp-me', 'tpme')
|
||||||
:set_flag('admin_only')
|
:set_flag('admin_only')
|
||||||
:register(function(player,to_player,raw)
|
:register(function(player, to_player)
|
||||||
if to_player.index == player.index then
|
if to_player.index == player.index then
|
||||||
-- return if attempting to teleport to self
|
-- return if attempting to teleport to self
|
||||||
return Commands.error{'expcom-tp.to-self'}
|
return Commands.error{'expcom-tp.to-self'}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Commands.new_command('give-warning','Gives a warning to a player; may lead to au
|
|||||||
:add_param('reason', false)
|
:add_param('reason', false)
|
||||||
:add_alias('warn')
|
:add_alias('warn')
|
||||||
:enable_auto_concat()
|
:enable_auto_concat()
|
||||||
:register(function(player,action_player,reason,raw)
|
:register(function(player, action_player, reason)
|
||||||
Warnings.add_warning(action_player, player.name, reason)
|
Warnings.add_warning(action_player, player.name, reason)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
local by_player_name_color = format_chat_player_name(player)
|
local by_player_name_color = format_chat_player_name(player)
|
||||||
@@ -31,12 +31,12 @@ end)
|
|||||||
Commands.new_command('get-warnings', 'Gets the number of warnings a player has. If no player then lists all players and the number of warnings they have.')
|
Commands.new_command('get-warnings', 'Gets the number of warnings a player has. If no player then lists all players and the number of warnings they have.')
|
||||||
:add_param('player', true, 'player')
|
:add_param('player', true, 'player')
|
||||||
:add_alias('warnings', 'list-warnings')
|
:add_alias('warnings', 'list-warnings')
|
||||||
:register(function(player,action_player,raw)
|
:register(function(_, player)
|
||||||
if action_player then
|
if player then
|
||||||
local warnings = Warnings.get_warnings(action_player)
|
local warnings = Warnings.get_warnings(player)
|
||||||
local script_warnings = Warnings.get_script_warnings(action_player)
|
local script_warnings = Warnings.get_script_warnings(player)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local player_name_color = format_chat_player_name(player)
|
||||||
Commands.print{'expcom-warnings.player',action_player_name_color,warnings,script_warnings,config.temp_warning_limit}
|
Commands.print{'expcom-warnings.player', player_name_color, warnings, script_warnings, config.temp_warning_limit}
|
||||||
else
|
else
|
||||||
local rtn = {}
|
local rtn = {}
|
||||||
local user_warnings = Warnings.user_warnings
|
local user_warnings = Warnings.user_warnings
|
||||||
@@ -63,7 +63,7 @@ end)
|
|||||||
-- @tparam LuaPlayer player the player to clear the warnings from
|
-- @tparam LuaPlayer player the player to clear the warnings from
|
||||||
Commands.new_command('clear-warnings', 'Clears all warnings (and script warnings) from a player')
|
Commands.new_command('clear-warnings', 'Clears all warnings (and script warnings) from a player')
|
||||||
:add_param('player', false, 'player')
|
:add_param('player', false, 'player')
|
||||||
:register(function(player,action_player,raw)
|
:register(function(player, action_player)
|
||||||
Warnings.clear_warnings(action_player, player.name)
|
Warnings.clear_warnings(action_player, player.name)
|
||||||
Warnings.clear_script_warnings(action_player, player.name)
|
Warnings.clear_script_warnings(action_player, player.name)
|
||||||
local action_player_name_color = format_chat_player_name(action_player)
|
local action_player_name_color = format_chat_player_name(action_player)
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
@alias player_list
|
@alias player_list
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
-- luacheck:ignore 211/Colors
|
||||||
local Gui = require 'expcore.gui' --- @dep expcore.gui
|
local Gui = require 'expcore.gui' --- @dep expcore.gui
|
||||||
local Roles = require 'expcore.roles' --- @dep expcore.roles
|
local Roles = require 'expcore.roles' --- @dep expcore.roles
|
||||||
local Store = require 'expcore.store' --- @dep expcore.store
|
local Store = require 'expcore.store' --- @dep expcore.store
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
--luacheck:ignore global require
|
|
||||||
local loaded = package.loaded
|
local loaded = package.loaded
|
||||||
local raw_require = require
|
local raw_require = require
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user