Remade Index

This commit is contained in:
Cooldude2606
2018-10-12 18:29:50 +01:00
parent 481f1ee660
commit 04c398716d
80 changed files with 271 additions and 342 deletions

View File

@@ -2,7 +2,7 @@
"name": "DeconControl",
"version": "4.0.0",
"type": "Module",
"description": "Allows control over decon rights, if ExpGamingCore.Ranking is not installed it will allow admins to instant remove trees and thats it.",
"description": "Allows control over decon rights, if ExpGamingCore.Role is not installed it will allow admins to instant remove trees and thats it.",
"location": "<blank>",
"keywords": [
"Trees",
@@ -20,6 +20,6 @@
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingLib": "^4.0.0",
"ExpGamingAdmin.Warnings": "?^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0"
"ExpGamingCore.Role": "?^4.0.0"
}
}

View File

@@ -11,7 +11,7 @@
],
"dependencies": {
"FactorioStdLib": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Sync": "?^4.0.0"
},
"collection": "ExpGamingAdmin_4.0.0"

View File

@@ -13,7 +13,7 @@
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingPlayer": "?^4.0.0"
},

View File

@@ -2,11 +2,11 @@
"name": "Jail",
"version": "4.0.0",
"type": "Submodule",
"description": "Adds a jail function to the admin set, require ExpGamingRanking to work.",
"description": "Adds a jail function to the admin set, require ExpGamingRole to work.",
"location": "<blank>",
"keywords": [
"Jail",
"Ranking",
"Roles",
"Admin",
"ExpGaming"
],
@@ -14,7 +14,7 @@
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingAdmin.Gui": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "?^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0",

View File

@@ -15,7 +15,7 @@
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"

View File

@@ -2,19 +2,19 @@
"name": "TempBan",
"version": "4.0.0",
"type": "Submodule",
"description": "Adds a temp ban function to the admin set, requires ExpGamingCore.Ranking to work.",
"description": "Adds a temp ban function to the admin set, requires ExpGamingCore.Role to work.",
"location": "<blank>",
"keywords": [
"Jail",
"Temp Ban",
"Admin",
"ExpGaming",
"Ranking"
"Roles"
],
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0",

View File

@@ -16,7 +16,7 @@
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"ExpGamingAdmin.Reports": "?^4.0.0",

View File

@@ -30,7 +30,7 @@
],
"dependencies": {
"FactorioStdLib": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Sync": "?^4.0.0"
},
"collection": "ExpGamingAdmin_4.0.0"
@@ -93,7 +93,7 @@
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingPlayer": "?^4.0.0"
},
@@ -103,11 +103,11 @@
"name": "Jail",
"version": "4.0.0",
"type": "Submodule",
"description": "Adds a jail function to the admin set, require ExpGamingRanking to work.",
"description": "Adds a jail function to the admin set, require ExpGamingCore.Role to work.",
"location": "<blank>",
"keywords": [
"Jail",
"Ranking",
"Roles",
"Admin",
"ExpGaming"
],
@@ -115,7 +115,7 @@
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingAdmin.Gui": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "?^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0",
@@ -163,7 +163,7 @@
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"
@@ -196,19 +196,19 @@
"name": "TempBan",
"version": "4.0.0",
"type": "Submodule",
"description": "Adds a temp ban function to the admin set, requires ExpGamingCore.Ranking to work.",
"description": "Adds a temp ban function to the admin set, requires ExpGamingCore.Role to work.",
"location": "<blank>",
"keywords": [
"Jail",
"Temp Ban",
"Admin",
"ExpGaming",
"Ranking"
"Roles"
],
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0",
@@ -234,7 +234,7 @@
"dependencies": {
"ExpGamingAdmin.AdminLib": "^4.0.0",
"ExpGamingCore.Server": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"ExpGamingAdmin.Reports": "?^4.0.0",

View File

@@ -12,7 +12,7 @@
],
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0"
"ExpGamingCore.Role": "?^4.0.0"
},
"collection": "ExpGamingBot_4.0.0"
}

View File

@@ -13,7 +13,7 @@
"dependencies": {
"ExpGamingCore.Server": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Sync": "?^4.0.0"
},
"collection": "ExpGamingBot_4.0.0"

View File

@@ -29,7 +29,7 @@
],
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0"
"ExpGamingCore.Role": "?^4.0.0"
},
"collection": "ExpGamingBot_4.0.0"
},
@@ -48,7 +48,7 @@
"dependencies": {
"ExpGamingCore.Server": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Sync": "?^4.0.0"
},
"collection": "ExpGamingBot_4.0.0"

View File

@@ -16,7 +16,7 @@
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingLib": "^4.0.0",
"ExpGamingCore.Command": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0"
"ExpGamingCore.Role": "?^4.0.0"
},
"collection": "ExpGamingCommands_4.0.0"
}

View File

@@ -14,7 +14,7 @@
],
"dependencies": {
"ExpGamingCore.Command": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0"
},
"collection": "ExpGamingCommands_4.0.0"

View File

@@ -15,7 +15,7 @@
"dependencies": {
"ExpGamingLib": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"ExpGamingAdmin.TempBan": "?^4.0.0"
},
"collection": "ExpGamingCommands_4.0.0"

View File

@@ -32,7 +32,7 @@
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingLib": "^4.0.0",
"ExpGamingCore.Command": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0"
"ExpGamingCore.Role": "?^4.0.0"
},
"collection": "ExpGamingCommands_4.0.0"
},
@@ -91,7 +91,7 @@
],
"dependencies": {
"ExpGamingCore.Command": "^4.0.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0"
},
"collection": "ExpGamingCommands_4.0.0"
@@ -113,7 +113,7 @@
"dependencies": {
"ExpGamingLib": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"ExpGamingAdmin.TempBan": "?^4.0.0"
},
"collection": "ExpGamingCommands_4.0.0"
@@ -132,7 +132,7 @@
],
"dependencies": {
"ExpGamingLib": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Command": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0"
},

View File

@@ -12,7 +12,7 @@
],
"dependencies": {
"ExpGamingLib": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Command": "^4.0.0",
"FactorioStdLib.Game": "^0.8.0"
},

View File

@@ -17,7 +17,7 @@
"FactorioStdLib.Table": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Server": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"

View File

@@ -27,7 +27,7 @@ local Role = {
}),
on_init=function()
if loaded_modules['ExpGamingCore.Server@^4.0.0'] then require('ExpGamingCore.Server@^4.0.0').add_module_to_interface('Role','ExpGamingCore.Role') end
if loaded_modules['ExpGamingCore.Commands@^4.0.0'] then require(module_path..'/src/commands',{Role=Role}) end
if loaded_modules['ExpGamingCore.Command@^4.0.0'] then require(module_path..'/src/commands',{Role=Role}) end
end,
on_post=function(self)
-- loads the roles in config

View File

@@ -0,0 +1,23 @@
{
"name": "Role",
"version": "4.0.0",
"type": "Submodule",
"description": "Adds roles where a player can have more than one role",
"location": "<blank>",
"keywords": [
"Role",
"Ranks",
"Permissions",
"Alowed",
"Admin"
],
"dependencies": {
"ExpGamingLib": "^4.0.0",
"FactorioStdLib.Table": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Group": "^4.0.0",
"ExpGamingCore.Server": "?^4.0.0",
"ExpGamingCore.Command": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
}

View File

@@ -19,7 +19,7 @@
"FactorioStdLib.Color": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Table": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Gui": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"

View File

@@ -14,28 +14,6 @@
"contact": "Discord: Cooldude2606#5241",
"license": "https://github.com/explosivegaming/scenario/blob/master/LICENSE",
"submodules": {
"Commands": {
"name": "Commands",
"version": "4.0.0",
"type": "Submodule",
"description": "A better command handler than the base game.",
"location": "https://github.com/explosivegaming/scenario/releases/download/v4.0-core/ExpGamingCore.Command_4.0.0.zip",
"keywords": [
"Library",
"Lib",
"ExpGaming",
"Core",
"Commands"
],
"dependencies": {
"ExpGamingLib": "^4.0.0",
"FactorioStdLib.Table": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
},
"Gui": {
"name": "Gui",
"version": "4.0.0",
@@ -55,32 +33,7 @@
"FactorioStdLib.Table": "^0.8.0",
"FactorioStdLib.Color": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Server": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
},
"Ranking": {
"name": "Ranking",
"version": "4.0.0",
"type": "Submodule",
"description": "A full ranking system for factorio.",
"location": "https://github.com/explosivegaming/scenario/releases/download/v4.0-core/ExpGamingCore.Ranking_4.0.0.zip",
"keywords": [
"Library",
"Lib",
"ExpGaming",
"Core",
"Ranking",
"Ranks",
"Permissions",
"Roles"
],
"dependencies": {
"ExpGamingLib": "^4.0.0",
"FactorioStdLib.Color": "^0.8.0",
"FactorioStdLib.Table": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Server": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
@@ -132,7 +85,7 @@
"FactorioStdLib.Color": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"FactorioStdLib.Table": "^0.8.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Gui": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
@@ -177,6 +130,29 @@
"ExpGamingLib": "^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
},
"Role": {
"name": "Role",
"version": "4.0.0",
"type": "Submodule",
"description": "Adds roles where a player can have more than one role",
"location": "<blank>",
"keywords": [
"Role",
"Ranks",
"Permissions",
"Alowed",
"Admin"
],
"dependencies": {
"ExpGamingLib": "^4.0.0",
"FactorioStdLib.Table": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Group": "^4.0.0",
"ExpGamingCore.Server": "?^4.0.0",
"ExpGamingCore.Command": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
}
},
"dependencies": {}

View File

@@ -16,7 +16,7 @@
"license": "<blank>",
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0",
"FactorioStdlib.Game": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"
}
}

View File

@@ -15,7 +15,7 @@
"license": "<blank>",
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0",
"FactorioStdlib.Game": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"
}
}

View File

@@ -16,7 +16,7 @@
"license": "<blank>",
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0",
"FactorioStdlib.Game": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"
}
}

View File

@@ -16,6 +16,6 @@
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0"
"FactorioStdlib.Game": "^0.8.0"
}
}

View File

@@ -29,7 +29,7 @@
],
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0",
"FactorioStdlib.Game": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"
}
},
@@ -47,7 +47,7 @@
],
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0",
"FactorioStdlib.Game": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"
}
},
@@ -66,7 +66,7 @@
],
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0",
"FactorioStdlib.Game": "^0.8.0",
"ExpGamingCore.Sync": "?^4.0.0"
}
},
@@ -85,7 +85,7 @@
"dependencies": {
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Role": "^4.0.0",
"FactoiorStdLib.Game": "^0.8.0"
"FactorioStdlib.Game": "^0.8.0"
}
}
}

View File

@@ -14,7 +14,7 @@
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Sync": "?^4.0.0",
"ExpGamingCore.Server": "?^4.0.0"
},

View File

@@ -14,7 +14,7 @@
"ExpGamingLib": "^4.0.0",
"ExpGamingAdmin.TempBan": "^4.0.0",
"ExpGamingAdmin.Warnings": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"FactorioStdLib.Game": "^0.8.0"
},
"collection": "ExpGamingPlayer_4.0.0"

View File

@@ -14,7 +14,7 @@
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0"
"ExpGamingCore.Role": "?^4.0.0"
},
"collection": "ExpGamingPlayer_4.0.0"
}

View File

@@ -13,7 +13,7 @@
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingAdmin.AdminLib": "?^4.0.0",
"ExpGamingAdmin.buttonFlow": "?^4.0.0",
"ExpGamingAdmin.reports": "?^4.0.0",

View File

@@ -30,7 +30,7 @@
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Sync": "?^4.0.0",
"ExpGamingCore.Server": "?^4.0.0"
},
@@ -52,7 +52,7 @@
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0"
"ExpGamingCore.Role": "?^4.0.0"
},
"collection": "ExpGamingPlayer_4.0.0"
},
@@ -71,7 +71,7 @@
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Gui": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingAdmin.AdminLib": "?^4.0.0",
"ExpGamingAdmin.buttonFlow": "?^4.0.0",
"ExpGamingAdmin.reports": "?^4.0.0",
@@ -95,7 +95,7 @@
"ExpGamingLib": "^4.0.0",
"ExpGamingAdmin.TempBan": "^4.0.0",
"ExpGamingAdmin.Warnings": "^4.0.0",
"ExpGamingCore.Ranking": "?^4.0.0",
"ExpGamingCore.Role": "?^4.0.0",
"FactorioStdLib.Game": "^0.8.0"
},
"collection": "ExpGamingPlayer_4.0.0"

View File

@@ -13,5 +13,7 @@
"author": " Ps7cho (converted by Cooldude2606)",
"contact": "Discord: Cooldude2606#5241",
"license": "https://opensource.org/licenses/MIT",
"dependencies": {}
"dependencies": {
"FactorioStdLib.Game": "^0.8.0"
}
}

View File

@@ -13,5 +13,7 @@
"author": "Cooldude2606",
"contact": "Discord: Cooldude2606#5241",
"license": "https://github.com/explosivegaming/scenario/blob/master/LICENSE",
"dependencies": {}
"dependencies": {
"FactorioStdLib.Color": "^0.8.0"
}
}

View File

@@ -1,37 +0,0 @@
--- Desction <get from json>
-- @module ThisModule@X.Y.Z
-- @author <get from json>
-- @license <get from json>
-- @alais ThisModule
-- Module Require
local Module = require('Module@>X.Y.Z')
local SubModule = require('Collection.Submodule@^X.Y.Z')
local OptModule -- OptModule@^X.Y.Z
-- Local Varibles
-- Module Define
local module_verbose = false
local ThisModule = {
on_init=function(self)
if loaded_modules['OptModule@^X.Y.Z'] then OptModule = require('OptModule@^X.Y.Z') end
if loaded_modules['OptModule2@^X.Y.Z'] then require(module_path..'/src/module2',{self=self}) end
--code
end,
on_post=function()
--code
end
}
-- Global Define
local global = global{
key='value'
}
-- Function Define
-- Event Handlers Define
-- Module Return
return ThisModule

View File

@@ -1,134 +0,0 @@
--[[
Explosive Gaming
This file can be used with permission but this and the credit below must remain in the file.
Contact a member of management on our discord to seek permission to use our code.
Any changes that you may make to the code are yours but that does not make the script yours.
Discord: https://discord.gg/r6dC2uK
]]
--Please Only Edit Below This Line-----------------------------------------------------------
-- to be removed as Ranking is not a thing now
local get_player_info = get_player_info or function(player,frame)
frame.add{
type='label',
caption={'rank-changer.no-info-file'}
}
end
local function _players(_player,root_frame,state)
local players = {'Select Player'}
local _players = state and game.players or game.connected_players
for _,player in pairs(_players) do
if player.name ~= _player.name then
if Admin.is_banned and Admin.is_banned(player) then else
table.insert(players,player.name)
end
end
end
return players
end
local online_check = Gui.inputs.add_checkbox('online-check-rank-change',false,'Show Offline',false,function(player,element)
element.parent['player-drop-down-rank-change'].items = _players(player,element.parent,true)
element.parent['player-drop-down-rank-change'].selected_index = 1
end,function(player,element)
element.parent['player-drop-down-rank-change'].items = _players(player,element.parent,false)
element.parent['player-drop-down-rank-change'].selected_index = 1
end)
local player_drop_down = Gui.inputs.add_drop_down('player-drop-down-rank-change',_players,1,function(player,selected,items,element)
element.parent.parent.player.caption = selected
local player_info_flow = element.parent.parent.info_flow
player_info_flow.clear()
if selected == 'Select Player' then return
else get_player_info(selected,player_info_flow,true) end
local role = Role.get_highest(player)
local _role = Role.get(selected)
if role.index >= _role.index then element.parent.warning.caption = {'rank-changer.warning'}
else element.parent.warning.caption = '' end
end)
local function _roles(player)
local roles = {'Select Rank'}
local _role = Role.get_highest(player)
for index,role_name in pairs(Role.order) do
if index > _role.index then
table.insert(ranks,role_name)
end
end
return ranks
end
local role_drop_down = Gui.inputs.add_drop_down('rank-drop-down-rank-change',_roles,1,function(player,selected,items,element)
element.parent.parent.role.caption = selected
end)
local set_role = Gui.inputs{
type='button',
name='rank-change-set',
caption={'rank-changer.set-rank'}
}:on_event('click',function(event)
local dropdowns = event.element.parent
local role = Role.get_highest(event.player_index)
local _role = Role.get(dropdowns.parent.role.caption)
local _player = Game.get_player(dropdowns.parent.player.caption)
if not _player or not _role then dropdowns.warning.caption = {'rank-changer.invalid'} return end
local __role = Role.get_highest(_player)
if role.index >= __role.index then dropdowns.warning.caption = {'rank-changer.rank-high'} return end
Role.assign(_player,_role,event)
Gui.center.clear(event)
end)
Gui.center{
name='rank-changer',
caption='utility/circuit_network_panel',
tooltip={'rank-changer.tooltip'},
draw=function(self,frame)
frame.caption={'rank-changer.name'}
local frame = frame.add{
type='flow',
direction='horizontal'
}
local dropdowns = frame.add{
type='flow',
direction='vertical'
}
local player_info_flow = frame.add{
name='info_flow',
type='flow',
direction='vertical'
}
player_info_flow.style.height = 200
player_info_flow.style.width = 200
local label = dropdowns.add{
type='label',
caption={'rank-changer.message'}
}
label.style.single_line = false
label.style.width = 200
online_check(dropdowns)
player_drop_down(dropdowns)
rank_drop_down(dropdowns)
local label = dropdowns.add{
name='warning',
type='label',
caption='',
style='bold_red_label'
}
label.style.single_line = false
label.style.width = 200
set_role(dropdowns)
frame.add{
name='player',
type='label',
caption='///'
}.style.visible = false
frame.add{
name='rank',
type='label',
caption='///'
}.style.visible = false
end
}

View File

@@ -13,5 +13,7 @@
"author": "Cooldude2606",
"contact": "Discord: Cooldude2606#5241",
"license": "https://github.com/explosivegaming/scenario/blob/master/LICENSE",
"dependencies": {}
"dependencies": {
"FactorioStdLib.Game": "^0.8.0"
}
}

View File

@@ -13,5 +13,10 @@
"author": "Cooldude2606",
"contact": "Discord: Cooldude2606#5241",
"license": "https://github.com/explosivegaming/scenario/blob/master/LICENSE",
"dependencies": {}
"dependencies": {
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Role": "?^4.0.0",
"ExpGamingCore.Command": "?^4.0.0",
"ExpGamingCore.Gui": "^4.0.0"
}
}

View File

@@ -13,5 +13,7 @@
"author": "Cooldude2606",
"contact": "Discord: Cooldude2606#5241",
"license": "https://github.com/explosivegaming/scenario/blob/master/LICENSE",
"dependencies": {}
"dependencies": {
"FactorioStdLib.Game": "^0.8.0"
}
}

View File

@@ -1,57 +1,83 @@
-- not_luadoc=true
--- Used to index the files to be loaded
return {
['FactorioStdlib.Game@^0.8.0']='./modules/FactorioStdlib/Game',
['FactorioStdlib.Game@0.8.0']='./modules/FactorioStdlib/Game',
['FactorioStdLib.String@^0.8.0']='./modules/FactorioStdLib/String',
['FactorioStdLib.Table@^0.8.0']='./modules/FactorioStdLib/Table',
['FactorioStdLib.Color@^0.8.0']='./modules/FactorioStdLib/Color',
['FactorioStdLib.Game@^0.8.0']='./modules/FactorioStdLib/Game',
['FactorioStdLib.Table@0.8.0']='./modules/FactorioStdLib/Table',
['FactorioStdLib.String@0.8.0']='./modules/FactorioStdLib/String',
['FactorioStdLib.Game@0.8.0']='./modules/FactorioStdLib/Game',
['FactorioStdLib.Table@^0.8.0']='./modules/FactorioStdLib/Table',
['FactorioStdLib.Table@0.8.0']='./modules/FactorioStdLib/Table',
['FactorioStdLib.Game@^0.8.0']='./modules/FactorioStdLib/Game',
['DeathMarkers@4.0.0']='./modules/DeathMarkers',
['FactorioStdLib.Color@^0.8.0']='./modules/FactorioStdLib/Color',
['FactorioStdLib.Color@0.8.0']='./modules/FactorioStdLib/Color',
['PlayerAutoColor@4.0.0']='./modules/PlayerAutoColor',
['DamagePopup@4.0.0']='./modules/DamagePopup',
['FactorioStdLib.Game@0.8.0']='./modules/FactorioStdLib/Game',
['WornPaths@4.0.0']='./modules/WornPaths',
['SpawnArea@4.0.0']='./modules/SpawnArea',
['HealthIndicator@1.0.1']='./modules/HealthIndicator',
['FactorioStdLib@^0.8.0']='./modules/FactorioStdLib',
['FactorioStdLib@0.8.0']='./modules/FactorioStdLib',
['ExpGamingLib@^4.0.0']='./modules/ExpGamingLib',
['ExpGamingLib@4.0.0']='./modules/ExpGamingLib',
['ExpGamingCore.Command@4.0.0']='./modules/ExpGamingCore/Command',
['ExpGamingCore.Server@4.0.0']='./modules/ExpGamingCore/Server',
['ExpGamingCore.Group@4.0.0']='./modules/ExpGamingCore/Group',
['ExpGamingCore.Role@^4.0.0']='./modules/ExpGamingCore/Role',
['ExpGamingCore.Role@4.0.0']='./modules/ExpGamingCore/Role',
['ExpGamingBot.autoChat@4.0.0']='./modules/ExpGamingBot/autoChat',
['ExpGamingCore.Server@^4.0.0']='./modules/ExpGamingCore/Server',
['ExpGamingCommands.tags@4.0.0']='./modules/ExpGamingCommands/tags',
['ExpGamingCore.Command@^4.0.0']='./modules/ExpGamingCore/Command',
['ExpGamingCore.Group@^4.0.0']='./modules/ExpGamingCore/Group',
['ExpGamingCore.Group@4.0.0']='./modules/ExpGamingCore/Group',
['ExpGamingCore.Server@^4.0.0']='./modules/ExpGamingCore/Server',
['ExpGamingCore.Command@4.0.0']='./modules/ExpGamingCore/Command',
['ExpGamingCommands.home@4.0.0']='./modules/ExpGamingCommands/home',
['ExpGamingCommands.cheatMode@4.0.0']='./modules/ExpGamingCommands/cheatMode',
['ExpGamingCore.Server@4.0.0']='./modules/ExpGamingCore/Server',
['ExpGamingCore.Role@^4.0.0']='./modules/ExpGamingCore/Role',
['ExpGamingCore.Role@4.0.0']='./modules/ExpGamingCore/Role',
['ExpGamingCommands.tags@4.0.0']='./modules/ExpGamingCommands/tags',
['ExpGamingCommands.kill@4.0.0']='./modules/ExpGamingCommands/kill',
['ExpGamingCommands.bonus@4.0.0']='./modules/ExpGamingCommands/bonus',
['ExpGamingBot.autoChat@4.0.0']='./modules/ExpGamingBot/autoChat',
['ExpGamingCore.Gui@^4.0.0']='./modules/ExpGamingCore/Gui',
['ExpGamingCore.Gui@4.0.0']='./modules/ExpGamingCore/Gui',
['WarpPoints@4.0.0']='./modules/WarpPoints',
['GuiAnnouncements@4.0.0']='./modules/GuiAnnouncements',
['GameSettingsGui@4.0.0']='./modules/GameSettingsGui',
['ExpGamingInfo.Tasklist@4.0.0']='./modules/ExpGamingInfo/Tasklist',
['ExpGamingCore.Sync@^4.0.0']='./modules/ExpGamingCore/Sync',
['ExpGamingPlayer.playerList@4.0.0']='./modules/ExpGamingPlayer/playerList',
['ExpGamingAdmin.AdminLib@^4.0.0']='./modules/ExpGamingAdmin/AdminLib',
['ExpGamingPlayer.polls@4.0.0']='./modules/ExpGamingPlayer/polls',
['ExpGamingPlayer.playerInfo@4.0.0']='./modules/ExpGamingPlayer/playerInfo',
['ExpGamingPlayer.afkKick@4.0.0']='./modules/ExpGamingPlayer/afkKick',
['ExpGamingCore.Sync@4.0.0']='./modules/ExpGamingCore/Sync',
['ExpGamingInfo.Science@4.0.0']='./modules/ExpGamingInfo/Science',
['ExpGamingInfo.Rockets@4.0.0']='./modules/ExpGamingInfo/Rockets',
['ExpGamingInfo.Readme@4.0.0']='./modules/ExpGamingInfo/Readme',
['ExpGamingInfo@4.0.0']='./modules/ExpGamingInfo',
['ExpGamingCore@4.0.0']='./modules/ExpGamingCore',
['ExpGamingBot.discordAlerts@4.0.0']='./modules/ExpGamingBot/discordAlerts',
['ExpGamingBot.autoMessage@4.0.0']='./modules/ExpGamingBot/autoMessage',
['ExpGamingPlayer.afkKick@4.0.0']='./modules/ExpGamingPlayer/afkKick',
['ExpGamingBot@4.0.0']='./modules/ExpGamingBot',
['ExpGamingAdmin.AdminLib@^4.0.0']='./modules/ExpGamingAdmin/AdminLib',
['ExpGamingAdmin.AdminLib@4.0.0']='./modules/ExpGamingAdmin/AdminLib',
['ExpGamingAdmin.Warnings@4.0.0']='./modules/ExpGamingAdmin/Warnings',
['ExpGamingAdmin.Reports@4.0.0']='./modules/ExpGamingAdmin/Reports',
['ExpGamingAdmin.TempBan@^4.0.0']='./modules/ExpGamingAdmin/TempBan',
['ExpGamingAdmin.ClearInventory@4.0.0']='./modules/ExpGamingAdmin/ClearInventory',
['ExpGamingAdmin.TempBan@4.0.0']='./modules/ExpGamingAdmin/TempBan',
['ExpGamingCommands.repair@4.0.0']='./modules/ExpGamingCommands/repair',
['ExpGamingPlayer.playerList@4.0.0']='./modules/ExpGamingPlayer/playerList',
['ExpGamingAdmin.Reports@4.0.0']='./modules/ExpGamingAdmin/Reports',
['ExpGamingAdmin.Warnings@^4.0.0']='./modules/ExpGamingAdmin/Warnings',
['ExpGamingAdmin.Warnings@4.0.0']='./modules/ExpGamingAdmin/Warnings',
['ExpGamingPlayer.inventorySearch@4.0.0']='./modules/ExpGamingPlayer/inventorySearch',
['ExpGamingPlayer@4.0.0']='./modules/ExpGamingPlayer',
['ExpGamingAdmin.Gui@^4.0.0']='./modules/ExpGamingAdmin/Gui',
['ExpGamingAdmin.Gui@4.0.0']='./modules/ExpGamingAdmin/Gui',
['ExpGamingAdmin.Teleport@^4.0.0']='./modules/ExpGamingAdmin/Teleport',
['ExpGamingAdmin.Teleport@4.0.0']='./modules/ExpGamingAdmin/Teleport',
['ExpGamingCommands.teleport@4.0.0']='./modules/ExpGamingCommands/teleport',
['ExpGamingCommands@4.0.0']='./modules/ExpGamingCommands',
['ExpGamingAdmin.Kick@4.0.0']='./modules/ExpGamingAdmin/Kick',
['ExpGamingAdmin.Jail@4.0.0']='./modules/ExpGamingAdmin/Jail',
['ExpGamingAdmin.Commands@4.0.0']='./modules/ExpGamingAdmin/Commands',
['ExpGamingAdmin.Ban@4.0.0']='./modules/ExpGamingAdmin/Ban',
['ExpGamingAdmin@4.0.0']='./modules/ExpGamingAdmin',
['DeconControl@4.0.0']='./modules/DeconControl',
['ChatPopup@4.0.0']='./modules/ChatPopup',
['DamagePopup@4.0.0']='./modules/DamagePopup',
['ExpGamingInfo.Readme@4.0.0']='./modules/ExpGamingInfo/Readme',
['ExpGamingInfo.Rockets@4.0.0']='./modules/ExpGamingInfo/Rockets',
['ExpGamingInfo.Science@4.0.0']='./modules/ExpGamingInfo/Science',
['ExpGamingInfo.Tasklist@4.0.0']='./modules/ExpGamingInfo/Tasklist',
['AdvancedStartingItems@4.0.0']='./modules/AdvancedStartingItems',
}