diff --git a/Boiler Print Module b/Boiler Print Module new file mode 100644 index 00000000..4f8ffad7 --- /dev/null +++ b/Boiler Print Module @@ -0,0 +1,34 @@ +--- Desction +-- @module ThisModule@X.Y.Z +-- @author +-- @license +-- @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 + +-- Module Define +local module_verbose = false +local ThisModule = { + on_init=function() + if loaded_modules['OptModule@^X.Y.Z'] then OptModule = require('OptModule@^X.Y.Z') end + --code + end, + on_post=function() + --code + end +} + +-- Global Define +local global = global{ + key='value' +} + +-- Function Define + +-- Event Handlers Define + +-- Module Return +return ThisModule \ No newline at end of file diff --git a/locale/en/ExpGamingCore.Commands.cfg b/locale/en/ExpGamingCore.Commands.cfg deleted file mode 100644 index bbdffcd8..00000000 --- a/locale/en/ExpGamingCore.Commands.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[commands] -unauthorized=401 - Unauthorized: Access is denied due to invalid credentials -error-string-len=Invalid Length, Max: __1__ -error-number=Invalid Number: Command failed to run -error-number-range=Invalid Range, Min: __1__, Max: __2__ -error-player=Invaild Player Name, __1__ ,try using tab key to auto-complete the name -error-player-online=Player is offline: Command failed to run -error-player-alive=Player is dead: Command failed to run -error-player-rank=Player is of Higher Rank: Command failed to run -invalid-inputs=Invalid Input, /__1__ __2__ -invalid-parse=Invalid Input, There was a problem prasing the paramaters -command-ran=Command Complete \ No newline at end of file diff --git a/locale/en/ExpGamingCore.Gui.cfg b/locale/en/ExpGamingCore.Gui.cfg deleted file mode 100644 index 18fdb1a8..00000000 --- a/locale/en/ExpGamingCore.Gui.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[gui] -unauthorized=401 - Unauthorized: Access is denied due to invalid credentials -cant-open=You can't open this panel right now, reason: __1__ -cant-open-no-reason=You can't open this panel right now \ No newline at end of file diff --git a/locale/en/ExpGamingCore.Server.cfg b/locale/en/ExpGamingCore.Server.cfg deleted file mode 100644 index 392aba08..00000000 --- a/locale/en/ExpGamingCore.Server.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[Server] -interface-description=Runs the given input from the script \ No newline at end of file diff --git a/to convert/Addons/Admin/auto-chat.lua b/modules/ExpGamingBot/autoChat/control.lua similarity index 91% rename from to convert/Addons/Admin/auto-chat.lua rename to modules/ExpGamingBot/autoChat/control.lua index 2fd5cd8f..5c030fed 100644 --- a/to convert/Addons/Admin/auto-chat.lua +++ b/modules/ExpGamingBot/autoChat/control.lua @@ -1,12 +1,12 @@ ---[[ -Explosive Gaming +--- Sends messages in chat in resposce to other messages +-- @module ExpGamingBot.autoChat +-- @author Cooldude2606 +-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE -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----------------------------------------------------------- +local Game = require('FactorioStdLib.Game') +local Ranking + +-- lots of these are jokes, but some have uses -- white spaces removed and made into lower -- these messages are sent only to the player @@ -22,11 +22,10 @@ local messages = { ['links']={'chat-bot.links'}, ['loop']={'chat-bot.loops'}, ['loops']={'chat-bot.loops'}, - --Thadius suggestion start ['rhd']={'chat-bot.lhd'}, - --Thadius suggestion end ['roundabout']={'chat-bot.loops'}, ['roundabouts']={'chat-bot.loops'}, + ['redmew']={'chat-bot.redmew'}, ['afk']=function(_player) local max=_player for _,player in pairs(game.connected_players) do if max.afk_time < player.afk_time then max=player end end return {'chat-bot.afk',max.name,tick_to_display_format(max.afk_time)} end } -- white spaces removed and made into lower @@ -107,11 +106,11 @@ local commands = { end):open() return {'chat-bot.get-beer-1'} end } -Event.register(defines.events.on_console_chat,function(event) +script.on_event(defines.events.on_console_chat,function(event) local player = Game.get_player(event) if not player then return end local player_message = event.message:lower():gsub("%s+", "") - local allowed = Ranking.get_rank(player):allowed('global-chat') + local allowed = Ranking and Ranking.get_rank(player):allowed('global-chat') or player.admin for to_find,message in pairs(messages) do if player_message:match(command_syntax..to_find) then if allowed then @@ -132,3 +131,9 @@ Event.register(defines.events.on_console_chat,function(event) end end end) + +return { + on_init = function(self) + if loaded_modules['ExpGamingCore.Ranking'] then Ranking = require('ExpGamingCore.Ranking') end + end +} \ No newline at end of file diff --git a/modules/ExpGamingBot/autoChat/locale/de.cfg b/modules/ExpGamingBot/autoChat/locale/de.cfg new file mode 100644 index 00000000..e4bbbe31 --- /dev/null +++ b/modules/ExpGamingBot/autoChat/locale/de.cfg @@ -0,0 +1,20 @@ +[chat-bot] +message=[Chat Bot]: __1__ +rank-error=You cant use global chat commands +players-online=There are __1__ players online +players=There have been __1__ players on this map +map-time=This map has been on for __1__ +line-8=Type /help for more info +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (can be found through the question mark on the top left) +not-real-dev=Cooldude2606 is a dev for this server and makes the softmod (look top left) and is not a factorio dev. +softmod=A softmod is a custom scenario that runs on this server, example is the player list. +blame=Blame __1__ for what just happend! +afk=Your afk? Look at __1__ they have been afk for: __2__ +links=To see links open the readme and click links. +magic=Fear the admin magic (ノ゚∀゚)ノ⌒・*:.。. .。.:*・゜゚・*☆ +aids=≖ ‿ ≖ Fear the aids of a public server ≖ ‿ ≖ +riot=(admins) ┬┴┬┴┤ᵒ_ᵒ)├┬┴┬┴ ‹ ‹\(´ω` )/››‹‹\ (  ´)/››‹‹\ ( ´ω`)/›› (rest of server) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoChat/locale/en.cfg b/modules/ExpGamingBot/autoChat/locale/en.cfg new file mode 100644 index 00000000..6aa7502d --- /dev/null +++ b/modules/ExpGamingBot/autoChat/locale/en.cfg @@ -0,0 +1,47 @@ +[chat-bot] +message=[Chat Bot]: __1__ +rank-error=You can't use global chat commands +players-online=There are __1__ players online +players=There have been __1__ players on this map +map-time=This map has been on for __1__ +line-8=Type /help for more info +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: https://www.explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (It can be found through the question mark on the top left) +not-real-dev=Cooldude2606 is a dev for this server and makes the softmod (look top left) and is not a factorio dev. +softmod=A softmod is a custom scenario that runs on this server, example is the player list. +redmew=We dont talk about redmew here; they beat us to 1000 members; F +blame=Blame __1__ for what just happend! +afk=Your afk? Look at __1__, that player has been afk for: __2__ +links=To see links open the readme and click links. +current-evolution=Current evolution factor is __1__ +magic=Fear the admin magic (ノ゚∀゚)ノ⌒・*:.。. .。.:*・゜゚・*☆ +aids=≖ ‿ ≖ Fear the aids of a public server ≖ ‿ ≖ +riot=(admins) ┬┴┬┴┤ᵒ_ᵒ)├┬┴┬┴ ‹ ‹\(´ω` )/››‹‹\ (  ´)/››‹‹\ ( ´ω`)/›› (rest of server) +loops=NO LOOPS; LOOPS ARE BAD; JUST NO LOOPS!!!!!; IF YOU MAKE A LOOP.... IT WILL NOT END WELL!!!!!!! +lenny=( ͡° ͜ʖ ͡°) +make-tea-1= ☕ Boiling the water... ☕ +make-tea-2= ☕ __1__ your tea is done! ☕ +order-pizza-1= 🍕 Finding nearest pizza supplier... 🍕 +order-pizza-2= 🍕 Figuring out the favourite pizza of __1__ 🍕 +order-pizza-3= 🍕 __1__ your pizza is here! 🍕 +make-coffee-1= ☕ Boiling the water and grinding the coffee beans... ☕ +make-coffee-2= ☕ __1__ we ran out of coffe beans! Have some tea instead. ☕ +get-beer-1= 🍺 Pouring A Glass 🍺 +get-beer-2= 🍻 Chears Mate 🍻 +get-mead-1= Filling the drinking horn +get-mead-2= Skål! +get-snaps-1=Pouring the glasses and finding the correct song book... +get-snaps-2=Singing a song...🎤🎶 +get-snaps-3=skål, my friends! +get-cocktail-1= 🍸 Inintiating mind reading unit... 🍸 +get-cocktail-2= 🍸 Mixing favourite ingredients of __1__ 🍸 +get-cocktail-3=🍸 __1__ your cocktail is done.🍸 +lhd=All trains must be LHD! +food=Don't know what to make for dinner? Use a random recipe from the random dinner suggestion generator at http://www.whatthefuckshouldimakefordinner.com/ +get-popcorn-1=Heating the oil and waiting for the popping sound... +get-popcorn-2=__1__ your popcorn is finished. Lean backwards and watch the drama unfold. +wiki=You can get more information about us and the custom scenario from our wiki: https://wiki.explosivegaming.nl/ +feedback=Do you have feedback? leave it at https://exp.fider.io/ diff --git a/modules/ExpGamingBot/autoChat/locale/fr.cfg b/modules/ExpGamingBot/autoChat/locale/fr.cfg new file mode 100644 index 00000000..e4bbbe31 --- /dev/null +++ b/modules/ExpGamingBot/autoChat/locale/fr.cfg @@ -0,0 +1,20 @@ +[chat-bot] +message=[Chat Bot]: __1__ +rank-error=You cant use global chat commands +players-online=There are __1__ players online +players=There have been __1__ players on this map +map-time=This map has been on for __1__ +line-8=Type /help for more info +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (can be found through the question mark on the top left) +not-real-dev=Cooldude2606 is a dev for this server and makes the softmod (look top left) and is not a factorio dev. +softmod=A softmod is a custom scenario that runs on this server, example is the player list. +blame=Blame __1__ for what just happend! +afk=Your afk? Look at __1__ they have been afk for: __2__ +links=To see links open the readme and click links. +magic=Fear the admin magic (ノ゚∀゚)ノ⌒・*:.。. .。.:*・゜゚・*☆ +aids=≖ ‿ ≖ Fear the aids of a public server ≖ ‿ ≖ +riot=(admins) ┬┴┬┴┤ᵒ_ᵒ)├┬┴┬┴ ‹ ‹\(´ω` )/››‹‹\ (  ´)/››‹‹\ ( ´ω`)/›› (rest of server) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoChat/locale/nl.cfg b/modules/ExpGamingBot/autoChat/locale/nl.cfg new file mode 100644 index 00000000..e4bbbe31 --- /dev/null +++ b/modules/ExpGamingBot/autoChat/locale/nl.cfg @@ -0,0 +1,20 @@ +[chat-bot] +message=[Chat Bot]: __1__ +rank-error=You cant use global chat commands +players-online=There are __1__ players online +players=There have been __1__ players on this map +map-time=This map has been on for __1__ +line-8=Type /help for more info +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (can be found through the question mark on the top left) +not-real-dev=Cooldude2606 is a dev for this server and makes the softmod (look top left) and is not a factorio dev. +softmod=A softmod is a custom scenario that runs on this server, example is the player list. +blame=Blame __1__ for what just happend! +afk=Your afk? Look at __1__ they have been afk for: __2__ +links=To see links open the readme and click links. +magic=Fear the admin magic (ノ゚∀゚)ノ⌒・*:.。. .。.:*・゜゚・*☆ +aids=≖ ‿ ≖ Fear the aids of a public server ≖ ‿ ≖ +riot=(admins) ┬┴┬┴┤ᵒ_ᵒ)├┬┴┬┴ ‹ ‹\(´ω` )/››‹‹\ (  ´)/››‹‹\ ( ´ω`)/›› (rest of server) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoChat/locale/sv-SE.cfg b/modules/ExpGamingBot/autoChat/locale/sv-SE.cfg new file mode 100644 index 00000000..68e0663e --- /dev/null +++ b/modules/ExpGamingBot/autoChat/locale/sv-SE.cfg @@ -0,0 +1,25 @@ + +[chat-bot] +message=[Chat Bot]: __1__ +rank-error=Du kan inte utföra globala chat-kommandon. +players-online=Det är __1__ spelare online +players=Det har varit __1__ spelare på den här kartan +map-time=Den här kartan har varit igång under __1__ +line-8=Type /help för mer information +join-us=Var snäll och förena dig med oss: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=Vi använder oss av specialiserade kommandon, som till exempel /tag och /report, se kommandotabben i readme för mer information. +read-readme=Se till att du har läst "Readme" (Finn den genom att klicka på frågetecknet högst upp i vänstra hörnet) +not-real-dev=Cooldude2606 är dev för den här servern och gör mjukmodden ("the softmod") och är inte en factorio dev. +ssoftmod=En mjukmod ("softmod") är ett specialscenario som används på den här servern, exempelvis listan över spelare. +blame=Skyll på __1__ för vad som just hände! +afk=Är du afk (borta från tangentbordet)? Titta på __1__, den spelaren har varit afk under: __2__ +links=För att se länkar, öppna readme och klicka "länkar". +magic=Frukta admin-magin (ノ゚∀゚)ノ⌒・*:.。. .。.:*・゜゚・*☆ +aids=≖ ‿ ≖Fear the aids of a public server ≖ ‿ ≖ +riot=(admins) ┬┴┬┴┤ᵒ_ᵒ)├┬┴┬┴ ‹ ‹\(´ω` )/››‹‹\ (  ´)/››‹‹\ ( ´ω`)/›› (rest of server) +loops=INGA LOOPAR; LOOPAR ÄR DÅLIGT; JUST INGA LOOPAR!!!!!; OM DU GJÖR EN LOOP.... DET KOMMER INTE ATT SLUTA VÄL!!!!!!! +lhd=Alla tåg skall köras med vänstertrafik! +current-evolution=Nuvarande evolutionsfaktor är __1__ +wiki=Du kan få mer information om oss och scenariot på vår wiki: https://wiki.explosivegaming.nl/ \ No newline at end of file diff --git a/modules/ExpGamingBot/autoChat/softmod.json b/modules/ExpGamingBot/autoChat/softmod.json new file mode 100644 index 00000000..b02f6f94 --- /dev/null +++ b/modules/ExpGamingBot/autoChat/softmod.json @@ -0,0 +1,17 @@ +{ + "name": "autoChat", + "version": "4.0.0", + "type": "Module", + "description": "Sends messages in chat based on what has been said by other players", + "location": "", + "keywords": [ + "Chat", + " Bot", + " Jokes", + " Fun" + ], + "author": "", + "contact": "", + "license": "", + "dependencies": {} +} \ No newline at end of file diff --git a/to convert/Addons/Admin/auto-message.lua b/modules/ExpGamingBot/autoMessage/control.lua similarity index 64% rename from to convert/Addons/Admin/auto-message.lua rename to modules/ExpGamingBot/autoMessage/control.lua index 9e0deb5b..6dcd2c4c 100644 --- a/to convert/Addons/Admin/auto-message.lua +++ b/modules/ExpGamingBot/autoMessage/control.lua @@ -1,13 +1,14 @@ ---[[ -Explosive Gaming +--- Sends messages in chat in resposce to other messages +-- @module ExpGamingBot.autoChat +-- @author Cooldude2606 +-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE -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----------------------------------------------------------- -Event.register(-1,function(event) +local Server = require('ExpGamingCore.Server') +local Game = require('FactorioStdLib.Game') +local Ranking +local Sync + +script.on_init(function(event) Server.new_thread{ name='auto-message', timeout=54000, -- 3240000 = 15 hours dont make the mistake i did, 54000 is 15 minutes @@ -27,15 +28,8 @@ Event.register(-1,function(event) local data = self.data if not data.high_rank or not data.low_rank or not data.low then self.reopen = false return end - local _high = Ranking.get_rank(data.high_rank) game.print{'chat-bot.message',{'chat-bot.players-online',#game.connected_players}} game.print{'chat-bot.message',{'chat-bot.map-time',tick_to_display_format(game.tick)}} - --[[local _low = Ranking.get_rank(data.low_rank) - Ranking.print(_high,{'chat-bot.players-online',#game.connected_players},nil,true) - Ranking.print(_high,{'chat-bot.map-time',tick_to_display_format(game.tick)},nil,true) - for _,line in pairs(data.low) do - Ranking.print(_low,line,nil,true) - end]] self.reopen = true end):on_event(defines.events.on_player_joined_game,function(self,event) local player = Game.get_player(event) @@ -44,7 +38,7 @@ Event.register(-1,function(event) if not data.high_rank or not data.low_rank or not data.low then self.reopen = false return end -- idk but this stoped working for no appent reason so i added more checks for nil values - if Ranking.get_rank(player).power <= Ranking.get_rank(data.low_rank).power then return end + if Ranking and Ranking.get_rank(player).power <= Ranking.get_rank(data.low_rank).power or player.admin then return end for _,message in pairs(data.low) do player_return({'chat-bot.message',message},nil,player) end @@ -58,4 +52,11 @@ Event.register(-1,function(event) self.reopen = false self:close() end):open() -end) \ No newline at end of file +end) + +return { + on_init = function(self) + if loaded_modules['ExpGamingCore.Ranking'] then Ranking = require('ExpGamingCore.Ranking') end + if loaded_modules['ExpGamingCore.Sync'] then Sync = require('ExpGamingCore.Sync') end + end +} \ No newline at end of file diff --git a/modules/ExpGamingBot/autoMessage/locale/de.cfg b/modules/ExpGamingBot/autoMessage/locale/de.cfg new file mode 100644 index 00000000..4cae5418 --- /dev/null +++ b/modules/ExpGamingBot/autoMessage/locale/de.cfg @@ -0,0 +1,9 @@ +[chat-bot] +message=[Chat Bot]: __1__ +players-online=There are __1__ players online +map-time=This map has been on for __1__ +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (can be found through the question mark on the top left) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoMessage/locale/en.cfg b/modules/ExpGamingBot/autoMessage/locale/en.cfg new file mode 100644 index 00000000..c167ed50 --- /dev/null +++ b/modules/ExpGamingBot/autoMessage/locale/en.cfg @@ -0,0 +1,9 @@ +[chat-bot] +message=[Chat Bot]: __1__ +players-online=There are __1__ players online +map-time=This map has been on for __1__ +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: https://www.explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (It can be found through the question mark on the top left) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoMessage/locale/fr.cfg b/modules/ExpGamingBot/autoMessage/locale/fr.cfg new file mode 100644 index 00000000..4cae5418 --- /dev/null +++ b/modules/ExpGamingBot/autoMessage/locale/fr.cfg @@ -0,0 +1,9 @@ +[chat-bot] +message=[Chat Bot]: __1__ +players-online=There are __1__ players online +map-time=This map has been on for __1__ +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (can be found through the question mark on the top left) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoMessage/locale/nl.cfg b/modules/ExpGamingBot/autoMessage/locale/nl.cfg new file mode 100644 index 00000000..4cae5418 --- /dev/null +++ b/modules/ExpGamingBot/autoMessage/locale/nl.cfg @@ -0,0 +1,9 @@ +[chat-bot] +message=[Chat Bot]: __1__ +players-online=There are __1__ players online +map-time=This map has been on for __1__ +join-us=Please join us on: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=We use custom commands, such as /tag and /report, see the commands tab in readme for more info. +read-readme=Make sure you have read the Readme (can be found through the question mark on the top left) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoMessage/locale/sv-SE.cfg b/modules/ExpGamingBot/autoMessage/locale/sv-SE.cfg new file mode 100644 index 00000000..b4dab959 --- /dev/null +++ b/modules/ExpGamingBot/autoMessage/locale/sv-SE.cfg @@ -0,0 +1,10 @@ + +[chat-bot] +message=[Chat Bot]: __1__ +players-online=Det är __1__ spelare online +map-time=Den här kartan har varit igång under __1__ +join-us=Var snäll och förena dig med oss: +discord=Discord: https://discord.explosivegaming.nl +website=Website: explosivegaming.nl +custom-commands=Vi använder oss av specialiserade kommandon, som till exempel /tag och /report, se kommandotabben i readme för mer information. +read-readme=Se till att du har läst "Readme" (Finn den genom att klicka på frågetecknet högst upp i vänstra hörnet) \ No newline at end of file diff --git a/modules/ExpGamingBot/autoMessage/softmod.json b/modules/ExpGamingBot/autoMessage/softmod.json new file mode 100644 index 00000000..8e06d286 --- /dev/null +++ b/modules/ExpGamingBot/autoMessage/softmod.json @@ -0,0 +1,17 @@ +{ + "name": "autoMessage", + "version": "4.0.0", + "type": "Module", + "description": "Prints a message every 15 minutes to chat.", + "location": "", + "keywords": [ + "Bot", + " Chat", + " Auto Message", + " Message" + ], + "author": "", + "contact": "", + "license": "", + "dependencies": {} +} \ No newline at end of file diff --git a/to convert/Addons/Admin/discord.lua b/modules/ExpGamingBot/discordAlerts/control.lua similarity index 84% rename from to convert/Addons/Admin/discord.lua rename to modules/ExpGamingBot/discordAlerts/control.lua index 9ec03be5..9688859d 100644 --- a/to convert/Addons/Admin/discord.lua +++ b/modules/ExpGamingBot/discordAlerts/control.lua @@ -1,12 +1,12 @@ ---[[ -Explosive Gaming +--- Desction +-- @module ExpGamingBot.discordAlerts@4.0.0 +-- @author Cooldude2606 +-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE +-- @alais ThisModule -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----------------------------------------------------------- +local Sync = require('ExpGamingCore.Sync') +local Color = require('FactorioStdLib.Color') +local Game = require('FactorioStdLib.Game') Event.register(defines.events.on_console_command,function(event) local command = event.command diff --git a/modules/ExpGamingCore/Commands/locale/de.cfg b/modules/ExpGamingCore/Commands/locale/de.cfg new file mode 100644 index 00000000..e009c4bf --- /dev/null +++ b/modules/ExpGamingCore/Commands/locale/de.cfg @@ -0,0 +1,9 @@ +[commands] +unauthorized=401 - Unbefugt: Zugang verweigert. Du hast keinen Zugriff auf diese Befehle! +invalid-inputs=ungültige Eingabe, /__1__ __2__ +invalid-range=ungültige Reichweite, Min: __1__, Max: __2__ +invalid-length=ungültige Länge, Max: __1__ +invalid-player=ungültiger Spieler Name, __1__ , Versuche "Tab" zu benutzen, damit sich der Name automatisch vervollständigt. +offline-player=Der betroffene Spieler ist offline, Befehl konnte nicht ausgeführt werden. +dead-player=Der betroffene Spieler ist Tod, Befehl konnte nicht ausgeführt werden. +command-ran=Befehl ausgeführt. \ No newline at end of file diff --git a/modules/ExpGamingCore/Commands/locale/fr.cfg b/modules/ExpGamingCore/Commands/locale/fr.cfg new file mode 100644 index 00000000..33466c9a --- /dev/null +++ b/modules/ExpGamingCore/Commands/locale/fr.cfg @@ -0,0 +1,9 @@ +[commands] +unauthorized=401 - Unauthorized: Access is denied due to invalid credentials +invalid-inputs=Invalid Input, /__1__ __2__ +invalid-range=Invalid Range, Min: __1__, Max: __2__ +invalid-length=Invalid Length, Max: __1__ +invalid-player=Invaild Player Name, __1__ ,try using tab key to auto-complete the name +offline-player=Player is offline, Command Failed To Run +dead-player=Player is dead, Command Failed To Run +command-ran=Command Complete \ No newline at end of file diff --git a/modules/ExpGamingCore/Commands/locale/nl.cfg b/modules/ExpGamingCore/Commands/locale/nl.cfg new file mode 100644 index 00000000..24681258 --- /dev/null +++ b/modules/ExpGamingCore/Commands/locale/nl.cfg @@ -0,0 +1,9 @@ +[commands] +unauthorized=401 - Onbevoegd: toegang wordt geweigerd vanwege ongeldige inloggegevens +invalid-inputs=Onjuiste invoer, /__1__ __2__ +invalid-range=Onjuiste radius, Min: __1__, Max: __2__ +invalid-length=Onjuiste lengte, Max: __1__ +invalid-player=Onjuiste naam, __1__ , probeer tab te gebruiken om de naam automatisch in te vullen +offline-player=Speler is offline. +dead-player=Speler is dood. +command-ran=Commando uitgevoerd. diff --git a/modules/ExpGamingCore/Commands/locale/sv-SE.cfg b/modules/ExpGamingCore/Commands/locale/sv-SE.cfg new file mode 100644 index 00000000..90033f79 --- /dev/null +++ b/modules/ExpGamingCore/Commands/locale/sv-SE.cfg @@ -0,0 +1,9 @@ +[commands] +unauthorized=401 - Otillåten: Tillgång nekas på grund av otillräcklig säkerhetsprövning. +invalid-inputs=Igiltig inmatning, /__1__ __2__ +invalid-range=Invalid räckvid, Min: __1__, Max: __2__ +invalid-length=ogiltig längd, Max: __1__ +invalid-player=Ogiltigt spelarnamn, __1__ , försök använda tab-tangenten för att auto-slutföra namn. +offline-player=Spelare är offline. Kommando misslyckades med att köras. +dead-player=Spelare är död. Kommando misslyckades med att köras. +command-ran=Kommandot slutfört diff --git a/modules/ExpGamingCore/Gui/locale/de.cfg b/modules/ExpGamingCore/Gui/locale/de.cfg new file mode 100644 index 00000000..fdecddd3 --- /dev/null +++ b/modules/ExpGamingCore/Gui/locale/de.cfg @@ -0,0 +1,4 @@ +[gui] +unauthorized=401 - Unbefugt: Du hast keinen Zugriff auf diese Befehle! +cant-open=Du kannst dieses Menü nicht öffnen, Grund: __1__ +cant-open-no-reason=Du kannst dieses Menü gerade nicht öffnen. \ No newline at end of file diff --git a/modules/ExpGamingCore/Gui/locale/fr.cfg b/modules/ExpGamingCore/Gui/locale/fr.cfg new file mode 100644 index 00000000..bfe6b66a --- /dev/null +++ b/modules/ExpGamingCore/Gui/locale/fr.cfg @@ -0,0 +1,4 @@ +[gui] +unauthorized=401 - Unauthorized: Access is denied due to invalid credentials +cant-open=You can not open this panel right now, reason: __1__ +cant-open-no-reason=You can not open this panel right now \ No newline at end of file diff --git a/modules/ExpGamingCore/Gui/locale/nl.cfg b/modules/ExpGamingCore/Gui/locale/nl.cfg new file mode 100644 index 00000000..adde71b4 --- /dev/null +++ b/modules/ExpGamingCore/Gui/locale/nl.cfg @@ -0,0 +1,4 @@ +[gui] +unauthorized=401 - Onbevoegd: toegang wordt geweigerd vanwege ongeldige inloggegevens +cant-open=Je kan dit momenteel niet openen. Reden: __1__ +cant-open-no-reason=Je kan dit momenteel niet openen. \ No newline at end of file diff --git a/modules/ExpGamingCore/Gui/locale/sv-SE.cfg b/modules/ExpGamingCore/Gui/locale/sv-SE.cfg new file mode 100644 index 00000000..cad19c0a --- /dev/null +++ b/modules/ExpGamingCore/Gui/locale/sv-SE.cfg @@ -0,0 +1,4 @@ +[gui] +unauthorized=401 -Otillåten: Tillgång nekas på grund av otillräcklig säkerhetsprövning. +cant-open=Du kan inte öppna den här panelen just nu, orsak: __1__ +cant-open-no-reason=Du kan inte öppna den här panelen just nu \ No newline at end of file diff --git a/modules/ExpGamingCore/Ranking/locale/de.cfg b/modules/ExpGamingCore/Ranking/locale/de.cfg new file mode 100644 index 00000000..8889c096 --- /dev/null +++ b/modules/ExpGamingCore/Ranking/locale/de.cfg @@ -0,0 +1,7 @@ +[ranking] +all-rank-print=[Alle]: __1__ +rank-print=[__1__]: __2__ +rank-up=__1__ wurde befördert zu __2__ von __3__ +rank-down=__1__ wurde degradiert zu __2__ von __3__ +rank-given=Dir wurde der Rang __1__ zugeteilt! +tag-reset=Dein Spitzname wurde aufgrund eines Rangwechsels zurückgesetzt. \ No newline at end of file diff --git a/locale/en/ExpGamingCore.Ranking.cfg b/modules/ExpGamingCore/Ranking/locale/fr.cfg similarity index 100% rename from locale/en/ExpGamingCore.Ranking.cfg rename to modules/ExpGamingCore/Ranking/locale/fr.cfg diff --git a/modules/ExpGamingCore/Ranking/locale/nl.cfg b/modules/ExpGamingCore/Ranking/locale/nl.cfg new file mode 100644 index 00000000..16e5c4f1 --- /dev/null +++ b/modules/ExpGamingCore/Ranking/locale/nl.cfg @@ -0,0 +1,7 @@ +[ranking] +all-rank-print=[Everyone]: __1__ +rank-print=[__1__]: __2__ +rank-up=__1__ is gepromoot naar __2__ door __3__ +rank-down=__1__ is gedegradeerd naar __2__ door __3__ +rank-given=Je rank is veranderd naar __1__ +tag-reset=Je tag is gereset door een wijziging in je rank. \ No newline at end of file diff --git a/modules/ExpGamingCore/Ranking/locale/sv-SE.cfg b/modules/ExpGamingCore/Ranking/locale/sv-SE.cfg new file mode 100644 index 00000000..8ee4d10a --- /dev/null +++ b/modules/ExpGamingCore/Ranking/locale/sv-SE.cfg @@ -0,0 +1,7 @@ +[ranking] +all-rank-print=[Everyone]: __1__ +rank-print=[__1__]: __2__ +rank-up=__1__ blev befordrad till __2__ av __3__ +rank-down=__1__ blev degraderad till __2__ av __3__ +rank-given=Du har fått __1__ Rang! +tag-reset=Din tag blev återställd på grund av rangförändrning. \ No newline at end of file diff --git a/modules/ExpGamingPlayer/playerList/locale/de.cfg b/modules/ExpGamingPlayer/playerList/locale/de.cfg new file mode 100644 index 00000000..7caaf627 --- /dev/null +++ b/modules/ExpGamingPlayer/playerList/locale/de.cfg @@ -0,0 +1,5 @@ +[player-list] +tooltip=Verkleinere die Spielerliste. Rechtsklicke einen Spieler für Informationen über ihn. +format-nil=__1__ - __2__ +format=__1__ - __2__ - __3__ +no-info-file=Es wurden keine Informationen gefunden. \ No newline at end of file diff --git a/modules/ExpGamingPlayer/playerList/locale/en.cfg b/modules/ExpGamingPlayer/playerList/locale/en.cfg new file mode 100644 index 00000000..a385d119 --- /dev/null +++ b/modules/ExpGamingPlayer/playerList/locale/en.cfg @@ -0,0 +1,5 @@ +[player-list] +tooltip=Toggle player list, right click player for more info +format-nil=__1__ - __2__ +format=__1__ - __2__ - __3__ +no-info-file=No info file was found \ No newline at end of file diff --git a/modules/ExpGamingPlayer/playerList/locale/fr.cfg b/modules/ExpGamingPlayer/playerList/locale/fr.cfg new file mode 100644 index 00000000..9adacd4d --- /dev/null +++ b/modules/ExpGamingPlayer/playerList/locale/fr.cfg @@ -0,0 +1,5 @@ +[player-list] +tooltip=Toogle player list, right click player for info +format-nil=__1__ - __2__ +format=__1__ - __2__ - __3__ +no-info-file=No info file was found \ No newline at end of file diff --git a/modules/ExpGamingPlayer/playerList/locale/nl.cfg b/modules/ExpGamingPlayer/playerList/locale/nl.cfg new file mode 100644 index 00000000..4ba8d8b6 --- /dev/null +++ b/modules/ExpGamingPlayer/playerList/locale/nl.cfg @@ -0,0 +1,5 @@ +[player-list] +tooltip=Toggle speler lijst. Rechtermuisklik op een speler voor meer info +format-nil=__1__ - __2__ +format=__1__ - __2__ - __3__ +no-info-file=Geen infobestand gevonden. diff --git a/modules/ExpGamingPlayer/playerList/locale/sv-SE.cfg b/modules/ExpGamingPlayer/playerList/locale/sv-SE.cfg new file mode 100644 index 00000000..b415bf5d --- /dev/null +++ b/modules/ExpGamingPlayer/playerList/locale/sv-SE.cfg @@ -0,0 +1,5 @@ +[player-list] +tooltip=Växla spelarlista, högerklicka på spelare för mer information. +format-nil=__1__ - __2__ +format=__1__ - __2__ - __3__ +no-info-file=Ingen informationsfil kunde hittas