mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Refactor of commands
This commit is contained in:
132
old/modules/ExpGamingInfo/Readme/control.lua
Normal file
132
old/modules/ExpGamingInfo/Readme/control.lua
Normal file
@@ -0,0 +1,132 @@
|
||||
--- Adds a readme gui to the game that contains useful information
|
||||
-- @module ExpGamingInfo.Readme
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
-- @alias ThisModule
|
||||
|
||||
-- Module Require
|
||||
local Gui = require('ExpGamingCore.Gui')
|
||||
|
||||
-- Module Define
|
||||
local module_verbose = false
|
||||
local ThisModule = {
|
||||
on_init=function()
|
||||
if loaded_modules['ExpGamingCore.Sync'] then require(module_path..'/src/sync') end
|
||||
end
|
||||
}
|
||||
|
||||
-- Function Define
|
||||
local function format_label(label)
|
||||
label.style.maximal_width = 480
|
||||
label.style.single_line = false
|
||||
end
|
||||
|
||||
ThisModule.Gui = Gui.center{
|
||||
name='readme',
|
||||
caption='utility/questionmark',
|
||||
tooltip={'ExpGamingInfo-Readme.tooltip'}
|
||||
}:add_tab('guildlines',{'ExpGamingInfo-Readme.guildlines-name'},{'ExpGamingInfo-Readme.guildlines-tooltip'},function(frame)
|
||||
for i = 1,10 do
|
||||
local style=nil; if i == 1 then style = 'caption_label' end
|
||||
format_label(frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.guildlines-line'..tostring(i)},
|
||||
style=style
|
||||
})
|
||||
end
|
||||
end):add_tab('chat',{'ExpGamingInfo-Readme.chat-name'},{'ExpGamingInfo-Readme.chat-tooltip'},function(frame)
|
||||
format_label(frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.chat-singleline'}
|
||||
})
|
||||
end):add_tab('commands',{'ExpGamingInfo-Readme.commands-name'},{'ExpGamingInfo-Readme.commands-tooltip'},function(frame)
|
||||
format_label(frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.commands-singleline'}
|
||||
})
|
||||
Gui.bar(frame,480)
|
||||
local table = frame.add{name='command_table',type='table',column_count=2}
|
||||
table.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.commands-col1'},
|
||||
style='caption_label'
|
||||
}
|
||||
table.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.commands-col2'},
|
||||
style='caption_label'
|
||||
}
|
||||
table.style.width = 480
|
||||
table.draw_vertical_lines = true
|
||||
table.draw_horizontal_line_after_headers = true
|
||||
for _,command in pairs(commands.get_commands(frame.player_index)) do
|
||||
table.add{
|
||||
type='label',
|
||||
caption='/'..command.name
|
||||
}
|
||||
local description = table.add{
|
||||
type='label',
|
||||
caption=command.description,
|
||||
}
|
||||
description.style.maximal_width = 400
|
||||
description.style.single_line = false
|
||||
end
|
||||
end):add_tab('links',{'ExpGamingInfo-Readme.links-name'},{'ExpGamingInfo-Readme.links-tooltip'},function(frame)
|
||||
local links={
|
||||
'https://discord.explosivegaming.nl',
|
||||
'https://explosivegaming.nl',
|
||||
'http://steamcommunity.com/groups/tntexplosivegaming',
|
||||
'https://www.patreon.com/badgamernl',
|
||||
'https://wiki.explosivegaming.nl/'
|
||||
}
|
||||
local function format(text_box)
|
||||
text_box.style.minimal_width=400
|
||||
text_box.read_only = true
|
||||
text_box.word_wrap = true
|
||||
text_box.selectable = true
|
||||
end
|
||||
for i,link in pairs(links) do
|
||||
frame.add{
|
||||
type="label",
|
||||
caption={'ExpGamingInfo-Readme.links-cap'..tostring(i)},
|
||||
style='caption_label'
|
||||
}
|
||||
format(frame.add{
|
||||
type='text-box',
|
||||
text=link
|
||||
})
|
||||
end
|
||||
end):add_tab('servers',{'ExpGamingInfo-Readme.servers-name'},{'ExpGamingInfo-Readme.servers-tooltip'},function(frame)
|
||||
format_label(frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.servers-singleline'}
|
||||
})
|
||||
Gui.bar(frame,480)
|
||||
for i = 1,6 do
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.servers-format',tostring(i),{'ExpGamingInfo-Readme.servers-cap'..tostring(i)}},
|
||||
style='caption_label'
|
||||
}
|
||||
format_label(frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.servers-des'..tostring(i)}
|
||||
})
|
||||
end
|
||||
end):add_tab('rules',{'ExpGamingInfo-Readme.rules-name'},{'ExpGamingInfo-Readme.rules-tooltip'},function(frame)
|
||||
format_label(frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.rules-singleline'}
|
||||
})
|
||||
Gui.bar(frame,480)
|
||||
for i = 1,20 do
|
||||
format_label(frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Readme.rules-format',i,{'ExpGamingInfo-Readme.rules-rule'..tostring(i)}}
|
||||
})
|
||||
end
|
||||
end)
|
||||
|
||||
-- Module Return
|
||||
-- when called will open readme for that user
|
||||
return setmetatable(ThisModule,{__call=function(self,...) self.Gui(...) end})
|
||||
68
old/modules/ExpGamingInfo/Readme/locale/de.cfg
Normal file
68
old/modules/ExpGamingInfo/Readme/locale/de.cfg
Normal file
@@ -0,0 +1,68 @@
|
||||
[ExpGamingInfo-Readme]
|
||||
tooltip=Open the readme gui that opens when you first join.
|
||||
guildlines-name=Guild Lines
|
||||
guildlines-tooltip=These are the guildlines you should follow
|
||||
guildlines-line1=Welcome to the Explosive Gaming Community!
|
||||
guildlines-line2=
|
||||
guildlines-line3=Here are some guidelines to keep this Server fun for everyone:
|
||||
guildlines-line4=- Hacking / cheating / abusing bugs will not be tolerated.
|
||||
guildlines-line5=- Be polite and use common sense.
|
||||
guildlines-line6=- Nobody likes spam. That includes: Chat, Bots, unlimited Chests and Concrete.
|
||||
guildlines-line7=- Do not remove stuff without even trying to talk / ask about it.
|
||||
guildlines-line8=- Trains: LHD (Left hand drive), no Loops and use them for long distances. (- Trains are only allowed in LHD (Left Hand Drive). Train loops. UPDATE)
|
||||
guildlines-line9=
|
||||
guildlines-line10=If you have any questions about the rules, the server or the game in general, feel free to ask. Have Fun!
|
||||
chat-name=How To Chat
|
||||
chat-tooltip=How to chat in factorio with default key config
|
||||
chat-singleline=Chatting can be difficult for new players because it’s different than other games! It’s very simple, the button you need to press is the “GRAVE/TILDE” key it’s located under the “ESC key”. If you would like to change the key go to your controls tab in options. The key you need to change is “Toggle Lua console” it’s located in the second column 2nd from bottom.
|
||||
commands-name=Commands
|
||||
commands-tooltip=These are the commands you can use
|
||||
commands-singleline=These are the many diffrent custom commands you are able to use, the base game commands are not shown
|
||||
commands-col1=Command Name
|
||||
commands-col2=Command Help
|
||||
links-name=Links
|
||||
links-tooltip=Helpful links for ways to get in touch
|
||||
links-cap1=Discord voice and chat server:
|
||||
links-cap2=Our website:
|
||||
links-cap3=Steam:
|
||||
links-cap4=Patreon:
|
||||
servers-name=Servers
|
||||
servers-tooltip=Info on our other servers
|
||||
servers-singleline=Welcome to the Explosive Gaming Community! S1-S3 are staggered resets.
|
||||
servers-format=S__1__: __2__
|
||||
servers-cap1=Public
|
||||
servers-des1=A place for all players, this map reset every 144H At 16:00 UTC.
|
||||
servers-cap2=Public
|
||||
servers-des2=A place for all players, this map reset every 144H At 16:00 UTC.
|
||||
servers-cap3=Public
|
||||
servers-des3=A place for all players, this map reset every 144H At 16:00 UTC.
|
||||
servers-cap4=Modded
|
||||
servers-des4=A modded server not much to say, just download the mods to play. Link on Discord for members.
|
||||
servers-cap5=Events
|
||||
servers-des5=Sometimes we hold events, may require a password, join discord for more info.
|
||||
servers-cap6=Donator
|
||||
servers-des6=For those people who have two much money and give us some. Anything goes per request.
|
||||
rules-name=All Rules
|
||||
rules-tooltip=A full list of rules for the server
|
||||
rules-singleline=This is a full list of rules what must be followed, the guildlines will cover most points in here but for those who like to follow the rules word to word then here is the full list.
|
||||
rules-format=__1__) __2__
|
||||
rules-rule1=Hacking/cheating, exploiting and abusing bugs is not allowed.
|
||||
rules-rule2=Any bugs or exploits found should be reported. (no creative items)
|
||||
rules-rule3=Do not disrespect any player in the server.
|
||||
rules-rule4=Do not take every item frmo a belt or via logics request, share resources.
|
||||
rules-rule5=Do not spam, this includes stuff such as chat spam, item spam, chest spam etc.
|
||||
rules-rule6=Do not laydown or remove concrete or stone with bots without permission.
|
||||
rules-rule7=Do not use active provider chests without permission.
|
||||
rules-rule8=Do not use speakers on global or with alearts without permission.
|
||||
rules-rule9=Do not remove/move major parts of the factory without permission.
|
||||
rules-rule10=Do not walk in player random direction for no reason(to save map size).
|
||||
rules-rule11=Do not remove stuff just because you dont like it, tell people first.
|
||||
rules-rule12=Do not rotate belts, deactive belts with wires, or cause production to stop.
|
||||
rules-rule13=Do not make train roundabouts. Or any loops of any kind.
|
||||
rules-rule14=When using trains use the same size that others have used.
|
||||
rules-rule15=Trains are Left Hand Drive (LHD) only.
|
||||
rules-rule16=Do not complain about lag, low fps and low ups or other things like that.
|
||||
rules-rule17=Do not ask for rank, our ranks are synced with discord, admins cant give ranks.
|
||||
rules-rule18=Do not advertise other servers unless you are a trusted server owner.
|
||||
rules-rule19=Report any one who breaks the rules.
|
||||
rules-rule20=Use common sense and what an admin says goes.
|
||||
69
old/modules/ExpGamingInfo/Readme/locale/en.cfg
Normal file
69
old/modules/ExpGamingInfo/Readme/locale/en.cfg
Normal file
@@ -0,0 +1,69 @@
|
||||
[ExpGamingInfo-Readme]
|
||||
tooltip=Open the ReadMe if this is your first time joining.
|
||||
guildlines-name=Guidelines
|
||||
guildlines-tooltip=These are the guidelines everyone should follow
|
||||
guildlines-line1=Welcome to the Explosive Gaming Community!
|
||||
guildlines-line2=Here are some guidelines that everyone is obligated to follow.
|
||||
guildlines-line3=!!!No rights can be derived from these guidelines as the full list of rules (another tab in this window) is valid / operative!!!
|
||||
guildlines-line4=- Hacking / cheating / abusing bugs will not be tolerated.
|
||||
guildlines-line5=- Be polite and use common sense.
|
||||
guildlines-line6=- Spamming (in the form of chat, bots, unlimited chests and concrete) is not allowed.
|
||||
guildlines-line7=- Do not remove stuff without asking your fellow players.
|
||||
guildlines-line8=- Trains are only allowed in LHD (Left Hand Drive). No train loops!
|
||||
guildlines-line9=
|
||||
guildlines-line10=If you have any questions about our rules, the server or Factorio in general, feel free to ask your fellow players or our helpful team. Have fun!
|
||||
chat-name=How To Chat
|
||||
chat-tooltip=How to chat in Factorio with default key config
|
||||
chat-singleline=Chatting can be difficult for new players because it’s different than other games! It’s very simple, the button you need to press is the “GRAVE/TILDE” key (which is located under the “ESC key”) - If you would like to change the key, go to your Controls tab in options. The key you need to change is “Toggle LUA console”
|
||||
commands-name=Commands
|
||||
commands-tooltip=Commands that you can use in ExplosiveGaming
|
||||
commands-singleline=Custom commands that you can use. Base commands are not shown here.
|
||||
commands-col1=Command Name
|
||||
commands-col2=Command Help
|
||||
links-name=Links
|
||||
links-tooltip=Helpful links for ways to get in touch with us
|
||||
links-cap1=Discord voice and chat server:
|
||||
links-cap2=Our website:
|
||||
links-cap3=Steam:
|
||||
links-cap4=Patreon:
|
||||
links-cap5=Our wiki:
|
||||
servers-name=Servers
|
||||
servers-tooltip=Info on our other servers
|
||||
servers-singleline=Welcome to the Explosive Gaming Community! S1-S3 are staggered resets.
|
||||
servers-format=S__1__: __2__
|
||||
servers-cap1=Public
|
||||
servers-des1=A place for all players, this map resets every 144H At 16:00 UTC.
|
||||
servers-cap2=Public
|
||||
servers-des2=A place for all players, this map resets every 144H At 16:00 UTC.
|
||||
servers-cap3=Public
|
||||
servers-des3=A place for all players, this map resets every 144H At 16:00 UTC.
|
||||
servers-cap4=Modded
|
||||
servers-des4=A Modded server for all players. Link on Discord for members.
|
||||
servers-cap5=Events
|
||||
servers-des5=Server for events (everyone can join) - May require a password. Join Discord for more info
|
||||
servers-cap6=Donator
|
||||
servers-des6=For players who support us financially. Changes can be made per request.
|
||||
rules-name=Rules
|
||||
rules-tooltip=The full list of ExplosiveGaming rules.
|
||||
rules-singleline=Although the guidelines cover most of our rules, the full list always have more priority and override any guideline. It is advised to be familiar with all rules to prevent warnings or bans.
|
||||
rules-format=__1__) __2__
|
||||
rules-rule1=Hacking / cheating / abusing bugs will not be tolerated.
|
||||
rules-rule2=Any bugs or exploits found should be reported to our team members. (excluding creative items)
|
||||
rules-rule3=Do not disrespect any player in the server.
|
||||
rules-rule4=Taking all items from a belt or logistics request is forbidden: sharing resources is mandatory.
|
||||
rules-rule5=Spamming (in the form of chat, bots, unlimited chests and concrete) is not allowed.
|
||||
rules-rule6=Do not lay down/remove concrete or stone with bots without permission.
|
||||
rules-rule7=Do not use active provider chests without permission.
|
||||
rules-rule8=Do not use speakers on global or with alerts without permission.
|
||||
rules-rule9=Do not remove/move major parts of the factory without permission.
|
||||
rules-rule10=Do not walk in random directions for no reason (to save map size and server resources).
|
||||
rules-rule11=Do not remove stuff without asking your fellow players.
|
||||
rules-rule12=Do not rotate belts, deactivate belts with wires, or cause production to stop.
|
||||
rules-rule13=Do not make train roundabouts. Or any loops of any kind.
|
||||
rules-rule14=When using trains, use the same size other players have used.
|
||||
rules-rule15=Trains are Left Hand Drive (LHD) only.
|
||||
rules-rule16=Do not complain about lag, low fps and low ups etc.
|
||||
rules-rule17=Do not ask for ranks. Our ranks are synchronized with Discord, make sure to join us there.
|
||||
rules-rule18=Do not advertise other servers unless you are a trusted server owner.
|
||||
rules-rule19=Report players who break the rules.
|
||||
rules-rule20=Use common sense and what an Admin says goes.
|
||||
68
old/modules/ExpGamingInfo/Readme/locale/fr.cfg
Normal file
68
old/modules/ExpGamingInfo/Readme/locale/fr.cfg
Normal file
@@ -0,0 +1,68 @@
|
||||
[ExpGamingInfo-Readme]
|
||||
tooltip=Open the readme gui that opens when you first join.
|
||||
guildlines-name=Guild Lines
|
||||
guildlines-tooltip=These are the guildlines you should follow
|
||||
guildlines-line1=Welcome to the Explosive Gaming Community!
|
||||
guildlines-line2=
|
||||
guildlines-line3=Here are some guidelines to keep this Server fun for everyone:
|
||||
guildlines-line4=- Hacking / cheating / abusing bugs will not be tolerated.
|
||||
guildlines-line5=- Be polite and use common sense.
|
||||
guildlines-line6=- Nobody likes spam. That includes: Chat, Bots, unlimited Chests and Concrete.
|
||||
guildlines-line7=- Do not remove stuff without even trying to talk / ask about it.
|
||||
guildlines-line8=- Trains: LHD (Left hand drive), no Loops and use them for long distances. (- Trains are only allowed in LHD (Left Hand Drive). Train loops. UPDATE)
|
||||
guildlines-line9=
|
||||
guildlines-line10=If you have any questions about the rules, the server or the game in general, feel free to ask. Have Fun!
|
||||
chat-name=How To Chat
|
||||
chat-tooltip=How to chat in factorio with default key config
|
||||
chat-singleline=Chatting can be difficult for new players because it’s different than other games! It’s very simple, the button you need to press is the “GRAVE/TILDE” key it’s located under the “ESC key”. If you would like to change the key go to your controls tab in options. The key you need to change is “Toggle Lua console” it’s located in the second column 2nd from bottom.
|
||||
commands-name=Commands
|
||||
commands-tooltip=These are the commands you can use
|
||||
commands-singleline=These are the many diffrent custom commands you are able to use, the base game commands are not shown
|
||||
commands-col1=Command Name
|
||||
commands-col2=Command Help
|
||||
links-name=Links
|
||||
links-tooltip=Helpful links for ways to get in touch
|
||||
links-cap1=Discord voice and chat server:
|
||||
links-cap2=Our website:
|
||||
links-cap3=Steam:
|
||||
links-cap4=Patreon:
|
||||
servers-name=Servers
|
||||
servers-tooltip=Info on our other servers
|
||||
servers-singleline=Welcome to the Explosive Gaming Community!
|
||||
servers-format=S__1__: __2__
|
||||
servers-cap1=Public
|
||||
servers-des1=A place for all players, this map reset every 24h.
|
||||
servers-cap2=Standard
|
||||
servers-des2=Before you play make sure you understand the game, reset every 48h.
|
||||
servers-cap3=Pro
|
||||
servers-des3=A pure mega base server, reset every 7 days and a password is needed to join.
|
||||
servers-cap4=Modded
|
||||
servers-des4=A modded server not much to say, just download the mods to play. Link on Discord for members.
|
||||
servers-cap5=Events
|
||||
servers-des5=Sometimes we hold events, may require a password, join discord for more info.
|
||||
servers-cap6=Donator
|
||||
servers-des6=For those people who have two much money and give us some. Anything goes per request.
|
||||
rules-name=All Rules
|
||||
rules-tooltip=A full list of rules for the server
|
||||
rules-singleline=This is a full list of rules what must be followed, the guildlines will cover most points in here but for those who like to follow the rules word to word then here is the full list.
|
||||
rules-format=__1__) __2__
|
||||
rules-rule1=Hacking/cheating, exploiting and abusing bugs is not allowed.
|
||||
rules-rule2=Any bugs or exploits found should be reported. (no creative items)
|
||||
rules-rule3=Do not disrespect any player in the server.
|
||||
rules-rule4=Do not take every item frmo a belt or via logics request, share resources.
|
||||
rules-rule5=Do not spam, this includes stuff such as chat spam, item spam, chest spam etc.
|
||||
rules-rule6=Do not laydown or remove concrete or stone with bots without permission.
|
||||
rules-rule7=Do not use active provider chests without permission.
|
||||
rules-rule8=Do not use speakers on global or with alearts without permission.
|
||||
rules-rule9=Do not remove/move major parts of the factory without permission.
|
||||
rules-rule10=Do not walk in player random direction for no reason(to save map size).
|
||||
rules-rule11=Do not remove stuff just because you dont like it, tell people first.
|
||||
rules-rule12=Do not rotate belts, deactive belts with wires, or cause production to stop.
|
||||
rules-rule13=Do not make train roundabouts. Or any loops of any kind.
|
||||
rules-rule14=When using trains use the same size that others have used.
|
||||
rules-rule15=Trains are Left Hand Drive (LHD) only.
|
||||
rules-rule16=Do not complain about lag, low fps and low ups or other things like that.
|
||||
rules-rule17=Do not ask for rank, our ranks are synced with discord, admins cant give ranks.
|
||||
rules-rule18=Do not advertise other servers unless you are a trusted server owner.
|
||||
rules-rule19=Report any one who breaks the rules.
|
||||
rules-rule20=Use common sense and what an admin says goes.
|
||||
68
old/modules/ExpGamingInfo/Readme/locale/nl.cfg
Normal file
68
old/modules/ExpGamingInfo/Readme/locale/nl.cfg
Normal file
@@ -0,0 +1,68 @@
|
||||
[ExpGamingInfo-Readme]
|
||||
tooltip=Open de ReadMe wanneer je voor het eerst speelt.
|
||||
guildlines-name=Richtlijnen
|
||||
guildlines-tooltip=Dit zijn de richtlijnen die je moet volgen.
|
||||
guildlines-line1=Welkom op de ExplosiveGaming community!
|
||||
guildlines-line2=
|
||||
guildlines-line3=Hier zijn een aantal richtlijnen die ieder speler moet volgen.
|
||||
guildlines-line4=- Hacken / cheaten en bugs misbruiken is niet toegestaan.
|
||||
guildlines-line5=- Wees aardig en gebruik je gezonde verstand.
|
||||
guildlines-line6=- Spammen (in de zin van chat, kisten en beton) is niet toegestaan.
|
||||
guildlines-line7=- Geen spullen verwijderen zonder toestemming van andere spelers.
|
||||
guildlines-line8=- Treinen (LHD - Left Hand Drive) geen loops. (- Trains are only allowed in LHD (Left Hand Drive). Train loops. UPDATE)
|
||||
guildlines-line9=
|
||||
guildlines-line10=Als je vragen hebt over deze regels of over de server in algemeen, aarzel dan niet om contact op te nemen met onze staff.
|
||||
chat-name=Chatten
|
||||
chat-tooltip=Chatten in Factorio met standaard instellingen
|
||||
chat-singleline=Chatten kan moeilijk zijn voor nieuwe spelers omdat de chatmechanisme in Factorio anders is dan andere spellen. Het is simpel: druk op de "GRAVE/TILDE" knop (locatie is onder de ESC knop). Als je deze knop wilt aanpassen, ga naar de Controls tab in Opties. De knop die je moet aanpassen is "Toggle LUA Console"
|
||||
commands-name=Commands
|
||||
commands-tooltip=Dit zijn de commands die je kunt gebruiken.
|
||||
commands-singleline=Er zijn veel verschillende custom commands die je kunt gebruiken. Let er wel op dat basis commands hier niet zichtbaar zijn.
|
||||
commands-col1=Commando naam
|
||||
commands-col2=Commando hulp
|
||||
links-name=Links
|
||||
links-tooltip=Nuttige links om in contact te komen met de community
|
||||
links-cap1=Discord server:
|
||||
links-cap2=Onze website:
|
||||
links-cap3=Steam:
|
||||
links-cap4=Patreon:
|
||||
servers-name=Servers
|
||||
servers-tooltip=Info over onze andere servers
|
||||
servers-singleline=Welkom op de ExplosiveGaming community! S1 tot en met S3 heeft geplande resets.
|
||||
servers-format=S__1__: __2__
|
||||
servers-cap1=Openbaar
|
||||
servers-des1=Server voor alle spelers, deze map reset elke 144 uur om 16:00 UTC.
|
||||
servers-cap2=Openbaar
|
||||
servers-des2=A place for all players, deze map reset elke 144 uur om 16:00 UTC.
|
||||
servers-cap3=Openbaar
|
||||
servers-des3=A place for all players, deze map reset elke 144 uur om 16:00 UTC.
|
||||
servers-cap4=Modded
|
||||
servers-des4=Een modded server voor alle spelers. Links zijn te vinden in de Discord server.
|
||||
servers-cap5=Events
|
||||
servers-des5=Server voor events. Links en wachtwoorden zijn te vinden in de Discord server.
|
||||
servers-cap6=Donator
|
||||
servers-des6=Voor de spelers die ons financieel ondersteunen.
|
||||
rules-name=Alle regels
|
||||
rules-tooltip=Een lijst met regels die van toepassing zijn op alle ExplosiveGaming servers.
|
||||
rules-singleline=Dit is een lijst met alle regels. De richtlijnen behandelt de meeste punten, maar de volledige lijst is ook van toepassing.
|
||||
rules-format=__1__) __2__
|
||||
rules-rule1=Hacken / cheaten en bugs misbruiken is niet toegestaan.
|
||||
rules-rule2=Bugs of fouten horen gerapporteerd te worden aan de staff.
|
||||
rules-rule3=Respecteer iedereen in de server.
|
||||
rules-rule4=Pak niet alles uit een belt of via logistiekaanvragen: deel je middelen.
|
||||
rules-rule5=Spammen (in de zin van chat, kisten en beton) is niet toegestaan.
|
||||
rules-rule6=Bouw geen beton of steen met bots zonder toestemming.
|
||||
rules-rule7=Gebruik geen actieve providerkist zonder toestemming.
|
||||
rules-rule8=Gebruik geen speakers (globaal of met alerts) zonder toestemming.
|
||||
rules-rule9=Verwijder geen grote delen van het fabriek zonder toestemming.
|
||||
rules-rule10=Loop niet in willekeurige plekken zonder een reden (bespaart mapgrootte en server resources)
|
||||
rules-rule11=Geen spullen verwijderen zonder toestemming van andere spelers.
|
||||
rules-rule12=Draai de belts niet, deactiveer belts niet met draden en laat de productie niet stoppen.
|
||||
rules-rule13=Maak geen treinrotondes of lussen.
|
||||
rules-rule14=Gebruik de zelfde grootte treinen als andere spelers.
|
||||
rules-rule15=Treinen zijn alleen LHD (Left Hand Drive)
|
||||
rules-rule16=Klaag niet over de lag, lage FPS of lage UPS.
|
||||
rules-rule17=Vraag niet om ranks: ranks zijn synchroon met onze Discord server.
|
||||
rules-rule18=Maak geen reclame voor andere servers, tenzij je daarvoor bevoegd bent.
|
||||
rules-rule19=Rapporteer spelers die de regels breken.
|
||||
rules-rule20=Gebruik gezond verstand.
|
||||
69
old/modules/ExpGamingInfo/Readme/locale/sv-SE.cfg
Normal file
69
old/modules/ExpGamingInfo/Readme/locale/sv-SE.cfg
Normal file
@@ -0,0 +1,69 @@
|
||||
[ExpGamingInfo-Readme]
|
||||
tooltip=Öppna ReadMe om det här är första gången du ansluter dig.
|
||||
guildlines-name=Riktlinjer
|
||||
guildlines-tooltip=Det här är riktlinjerna som alla bör följa
|
||||
guildlines-line1=Välkommen till gemenskapen ExplosiveGaming!
|
||||
guildlines-line2=Här är riktlinjerna som alla är tvingade att följa.
|
||||
guildlines-line3=!!!No rights can be derived from these guidelines as the full list of rules (another tab in this window) is valid / operative!!!
|
||||
guildlines-line4=- Dataintrång / fusk / missbruk av buggar kommer inte att tolereras.
|
||||
guildlines-line5=- Var artig och använd sunt förnuft.
|
||||
guildlines-line6=- Spam (genom chat, bottar, obegränsade kistor och betong) är inte tillåtet.
|
||||
guildlines-line7=- Ta inte bort saker utan att fråga dina medspelare.
|
||||
guildlines-line8=- Tåg är bara tillåtna med vänstertrafik. Inga tågloopar!
|
||||
guildlines-line9=
|
||||
guildlines-line10= Om du har frågor om reglerna, servern eller generelt om Factorio, känn dig fri att fråga dina medspelare eller vårat hjälpsamma team. Ha kul!
|
||||
chat-name=Hur du chattar
|
||||
chat-tooltip=Hur du chattar i Factorio med standardinställningar
|
||||
chat-singleline=Att chatta kan vara svårt för nya spelare efterson det är annurlunda från andra spel. Det är väldigt enkelt, tangenten som du behöver trycka på är "ö".Om du vill byta det, gå in till "kontroller" och ändra tangent för "lua konsol".
|
||||
commands-name=Kommandon
|
||||
commands-tooltip=Kommandon som du kan använda i ExplosiveGaming
|
||||
commands-singleline=Anpassade kommandon som du kan använda. Baskommandon visas inte här.
|
||||
commands-col1=Kommandonamn
|
||||
commands-col2=kommandohjälp
|
||||
links-name=Länkar
|
||||
links-tooltip=Hjälpfulla länkar som visar vägar att komma i kontakt med oss.
|
||||
links-cap1=Discord röst- och chatserver:
|
||||
links-cap2=Våran Webbadress :
|
||||
links-cap3=Steam:
|
||||
links-cap4=Patreon:
|
||||
links-cap5=Vår wiki:
|
||||
servers-name=Servrar
|
||||
servers-tooltip=Information om våra servrar
|
||||
servers-singleline=Välkommen till ExplosiveGamings gemenskap! S1-S3 har förskjutna återställningar (resets).
|
||||
servers-format=S__1__: __2__
|
||||
servers-cap1=Offentlig
|
||||
servers-des1=En plats för alla spelare, then här kartan återställs varje 144H, 16:00 UTC.
|
||||
servers-cap2=Offentlig
|
||||
servers-des2=En plats för alla spelare, then här kartan återställs varje 144H, 16:00 UTC.
|
||||
servers-cap3=Offentlig
|
||||
servers-des3=En plats för alla spelare, then här kartan återställs varje 144H, 16:00 UTC.
|
||||
servers-cap4=Modifierad
|
||||
servers-des4=En modifierad server för alla spelare. Länk i Discord för medlemmar.
|
||||
servers-cap5=Evenemang
|
||||
servers-des5=Server för evenemang (alla kan ansluta sig) - Kan kräva lösenord. Anslut dig till Discord för mer info.
|
||||
servers-cap6=Donator
|
||||
servers-des6=För spelare som stöder oss finansiellt. Ändringar kan göras på begäran.
|
||||
rules-name=Regler
|
||||
rules-tooltip=Den fullla listan över ExplosiveGamings regler.
|
||||
rules-singleline=Även om riktlinjerna täcker de flesta av reglerna så har den fulla listan alltid prioritet och går alltid före riktlinjerna. Det är välbetänkt att vara bekant med alla reglerna för att förhindra varningar och bannlystningar.
|
||||
rules-format=__1__) __2__
|
||||
rules-rule1=Dataintrång / fusk / missbruk av buggar kommer inte att tolereras.
|
||||
rules-rule2=Buggar och utnyttjingssätt ska rapporteras till team-medlemmar (exkludera kreativa saker)
|
||||
rules-rule3=Var inte respektlös mot någon annan spelare i servern.
|
||||
rules-rule4=Att ta alla saker från ett bälte eller logistikbegäran är förbjudet: att dela med sig av resurserna är obligatoriskt.
|
||||
rules-rule5=Spam (genom chat, bottar, obegränsade kistor eller betong) är inte tillåtet.
|
||||
rules-rule6=Gör inga placeringar/borttagningar av betong eller sten med hjälp av bottar utan tillåtelse.
|
||||
rules-rule7=Använd inte aktiva tillgångskistor utan tillåtelse.
|
||||
rules-rule8=Använd inte globala högtalare eller varningar utan tillåtelse.
|
||||
rules-rule9=Ta inte bort eller flytta huvuddelar av fabriken utan tillåtelse.
|
||||
rules-rule10=Gå inte omkring i slumpvisa riktningar utan anledning (för att spara kartstorlek och serverresurser)
|
||||
rules-rule11=Ta inte bort saker utan att fråga dina medspelare.
|
||||
rules-rule12=Rotera inte bälten, deaktivera inte bälten med kabel och orsaka inte produktionsstop.
|
||||
rules-rule13=Gör inte tågrondeller. Eller någon loop av något slag.
|
||||
rules-rule14=Vid användning av tåg, använd samma storlek som andra spelare använt sig av.
|
||||
rules-rule15=Tåg körs endast med vänstertrafik.
|
||||
rules-rule16=Klaga inte om lag, låg fps, låg ups etc.
|
||||
rules-rule17=Be inte om högre rang. Våra ranger är synkroniserade med Discord, se till att du ansluter dig till oss där.
|
||||
rules-rule18=Gör inte reklam för andra servrar om du inte är en betrodd serverägare.
|
||||
rules-rule19=Rapportera spelare som bryter mot reglerna.
|
||||
rules-rule20=Använd sunt förnuft och vad en admin säger gäller.
|
||||
23
old/modules/ExpGamingInfo/Readme/softmod.json
Normal file
23
old/modules/ExpGamingInfo/Readme/softmod.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "ExpGamingInfo.Readme",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds a readme gui to the game that contains useful information",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Gui",
|
||||
"Info",
|
||||
"ExpGaming",
|
||||
"Readme",
|
||||
"New Player"
|
||||
],
|
||||
"author": "<blank>",
|
||||
"contact": "<blank>",
|
||||
"license": "<blank>",
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Gui": "^4.0.0",
|
||||
"FactorioStdLib.Game": "^0.8.0",
|
||||
"ExpGamingCore.Sync": "?^4.0.0"
|
||||
},
|
||||
"submodules": {},
|
||||
"collection": "ExpGamingInfo@4.0.0"
|
||||
}
|
||||
14
old/modules/ExpGamingInfo/Readme/src/sync.lua
Normal file
14
old/modules/ExpGamingInfo/Readme/src/sync.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local Sync = require('ExpGamingCore.Sync')
|
||||
local Gui = require('ExpGamingCore.Gui')
|
||||
|
||||
Sync.add_to_gui(Gui.inputs.add_button('readme-sync-guildlines','View Guildlines','View the guildlines in the readme',function(player,element)
|
||||
Gui.center.open_tab(player,'readme','guildlines')
|
||||
end))
|
||||
|
||||
Sync.add_to_gui(Gui.inputs.add_button('readme-sync-links','View Other Links','View the links in the readme',function(player,element)
|
||||
Gui.center.open_tab(player,'readme','links')
|
||||
end))
|
||||
|
||||
Sync.add_to_gui(Gui.inputs.add_button('readme-sync-rules','View All Rules','View the all rules in the readme',function(player,element)
|
||||
Gui.center.open_tab(player,'readme','rules')
|
||||
end))
|
||||
105
old/modules/ExpGamingInfo/Rockets/control.lua
Normal file
105
old/modules/ExpGamingInfo/Rockets/control.lua
Normal file
@@ -0,0 +1,105 @@
|
||||
--- Adds a rocket count gui to the game that shows milestones and average rocket time
|
||||
-- @module ExpGamingInfo.Rockets
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
-- @alias ThisModule
|
||||
|
||||
-- Module Require
|
||||
local Gui = require('ExpGamingCore.Gui')
|
||||
local Game = require('FactorioStdLib.Game')
|
||||
|
||||
-- Module Define
|
||||
local module_verbose = false
|
||||
local ThisModule = {
|
||||
on_init=function()
|
||||
if loaded_modules['ExpGamingCore.Sync^4.0.0'] then require(module_path..'/src/sync') end
|
||||
end
|
||||
}
|
||||
|
||||
-- Global Define
|
||||
local global = {
|
||||
update=0,
|
||||
first=0,
|
||||
_last=0,
|
||||
last=0,
|
||||
fastest=0,
|
||||
milestones={m1=0,m2=0,m5=0,m10=0,m20=0,m50=0,m100=0,m200=0,m500=0,m1000=0,m2000=0,m5000=0}
|
||||
}
|
||||
Global.register(global,function(tbl) global = tbl end)
|
||||
|
||||
-- Function Define
|
||||
ThisModule.Gui = Gui.left{
|
||||
name='rockets',
|
||||
caption='item/rocket-silo',
|
||||
tooltip={'ExpGamingInfo-Rockets.tooltip'},
|
||||
draw=function(self,frame)
|
||||
frame.caption = {'ExpGamingInfo-Rockets.name'}
|
||||
local player = Game.get_player(frame.player_index)
|
||||
local satellites = player.force.get_item_launched('satellite')
|
||||
local time = {'ExpGamingInfo-Rockets.nan'}
|
||||
if satellites == 1 then time = tick_to_display_format(game.tick)
|
||||
elseif satellites > 1 then time = tick_to_display_format((game.tick-global.first)/satellites) end
|
||||
if satellites ~= global.update then
|
||||
global.update = satellites
|
||||
if global.first == 0 then global.first = game.tick end
|
||||
global._last = global.last
|
||||
global.last = game.tick
|
||||
if global.last-global._last < global.fastest or global.fastest == 0 then global.fastest = global.last-global._last end
|
||||
end
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Rockets.sent',satellites}
|
||||
}
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Rockets.first',tick_to_display_format(global.first)}
|
||||
}
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Rockets.last',tick_to_display_format(global.last-global._last)}
|
||||
}
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Rockets.time',time}
|
||||
}
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Rockets.fastest',tick_to_display_format(global.fastest)}
|
||||
}
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Rockets.milestones'},
|
||||
style='caption_label'
|
||||
}
|
||||
local milestones = frame.add{
|
||||
type='flow',
|
||||
direction='vertical'
|
||||
}
|
||||
for milestone,next_time in pairs(global.milestones) do
|
||||
milestone = tonumber(milestone:match('%d+'))
|
||||
if next_time == 0 and satellites == milestone then
|
||||
global.milestones['m'..milestone] = global.last
|
||||
next_time = global.last
|
||||
Gui.left.open('rockets')
|
||||
end
|
||||
local _time = {'ExpGamingInfo-Rockets.nan'}
|
||||
if next_time > 0 then _time = tick_to_display_format(next_time) end
|
||||
milestones.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Rockets.format',tostring(milestone),_time}
|
||||
}
|
||||
if next_time == 0 then break end
|
||||
end
|
||||
end,
|
||||
can_open=function(player)
|
||||
if player.force.get_item_launched('satellite') > 0 then return true
|
||||
else return {'ExpGamingInfo-Rockets.none'} end
|
||||
end
|
||||
}
|
||||
|
||||
-- Event Define
|
||||
Event.add(defines.events.on_rocket_launched,function(event) Gui.left.update('rockets') end)
|
||||
|
||||
-- Module Return
|
||||
-- when called will toggle the gui for that player, updates gui if no player given
|
||||
return setmetatable(ThisModule,{__call=function(self,...) self.Gui(...) end})
|
||||
12
old/modules/ExpGamingInfo/Rockets/locale/de.cfg
Normal file
12
old/modules/ExpGamingInfo/Rockets/locale/de.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
[ExpGamingInfo-Rockets]
|
||||
name=Raketeninfo
|
||||
tooltip=Detailliste über gestartete Raketen.
|
||||
none=Es wurden noch keine Rakten gestartet.
|
||||
nan=NaN
|
||||
sent=Gestartete Raketen: __1__
|
||||
first=Erster Start: __1__
|
||||
last=Dauer bis zum letzten Start: __1__
|
||||
time=Durchschnittliche Starzeit: __1__
|
||||
fastest=Schnellster Start: __1__
|
||||
milestones=Meilensteine:
|
||||
format=__1__: __2__
|
||||
12
old/modules/ExpGamingInfo/Rockets/locale/en.cfg
Normal file
12
old/modules/ExpGamingInfo/Rockets/locale/en.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
[ExpGamingInfo-Rockets]
|
||||
name=Rocket Info
|
||||
tooltip=List of details about the rockets sent.
|
||||
none=No rockets have been sent yet.
|
||||
nan=Not available
|
||||
sent=Rockets Sent: __1__
|
||||
first=First Lanuched At: __1__
|
||||
last=Last Launch Took: __1__
|
||||
time=Average Launch Time: __1__
|
||||
fastest=Fastest Launch: __1__
|
||||
milestones=Milestones:
|
||||
format=__1__: __2__
|
||||
12
old/modules/ExpGamingInfo/Rockets/locale/fr.cfg
Normal file
12
old/modules/ExpGamingInfo/Rockets/locale/fr.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
[ExpGamingInfo-Rockets]
|
||||
name=Rocket Info
|
||||
tooltip=List of details about the rockets sent.
|
||||
none=No rockets have been sent yet.
|
||||
nan=NaN
|
||||
sent=Rockets Sent: __1__
|
||||
first=First Lanuched At: __1__
|
||||
last=Last Launch Took: __1__
|
||||
time=Average Launch Time: __1__
|
||||
fastest=Fastest Launch: __1__
|
||||
milestones=Milestones:
|
||||
format=__1__: __2__
|
||||
12
old/modules/ExpGamingInfo/Rockets/locale/nl.cfg
Normal file
12
old/modules/ExpGamingInfo/Rockets/locale/nl.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
[ExpGamingInfo-Rockets]
|
||||
name=Raket Info
|
||||
tooltip=Lijst met details over de verstuurde raketten.
|
||||
none=Er zijn nog geen raketten verstuurd.
|
||||
nan=Niet beschikbaar
|
||||
sent=Raketten verstuurd: __1__
|
||||
first=Eerste raket gelanceerd op: __1__
|
||||
last=Meest recente lancering: __1__
|
||||
time=Gemiddelde lanceertijd: __1__
|
||||
fastest=Snelste lancering: __1__
|
||||
milestones=Mijlpalen:
|
||||
format=__1__: __2__
|
||||
13
old/modules/ExpGamingInfo/Rockets/locale/sv-SE.cfg
Normal file
13
old/modules/ExpGamingInfo/Rockets/locale/sv-SE.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
[ExpGamingInfo-Rockets]
|
||||
name=Raketinformation
|
||||
tooltip=Lista över detaljerna kring skickade raketer.
|
||||
none=Inga raketer har blivit skickade ännu.
|
||||
nan=Inte tillgängligt
|
||||
sent=Skickade raketer: __1__
|
||||
first=Första uppskjutningen skedde: __1__
|
||||
last=Senaste uppskjutningen tog: __1__
|
||||
time=Genomsnittlig uppskjutningstid: __1__
|
||||
fastest=Snabbaste uppskjutning: __1__
|
||||
milestones=Milstolpar:
|
||||
format=__1__: __2__
|
||||
23
old/modules/ExpGamingInfo/Rockets/softmod.json
Normal file
23
old/modules/ExpGamingInfo/Rockets/softmod.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "ExpGamingInfo.Rockets",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds a rocket count gui to the game that shows milestones and average rocket time",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Gui",
|
||||
"Info",
|
||||
"ExpGaming",
|
||||
"Rockets"
|
||||
],
|
||||
"author": "<blank>",
|
||||
"contact": "<blank>",
|
||||
"license": "<blank>",
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Gui": "^4.0.0",
|
||||
"FactorioStdLib.Game": "^0.8.0",
|
||||
"ExpGamingCore.Sync": "?^4.0.0",
|
||||
"ExpGamingCore.Sync^4.0.0": "?*"
|
||||
},
|
||||
"submodules": {},
|
||||
"collection": "ExpGamingInfo@4.0.0"
|
||||
}
|
||||
20
old/modules/ExpGamingInfo/Rockets/src/sync.lua
Normal file
20
old/modules/ExpGamingInfo/Rockets/src/sync.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local Sync = require('ExpGamingCore.Sync')
|
||||
local global = global['ExpGamingInfo.Rockets']
|
||||
|
||||
Sync.add_update('rockets',function()
|
||||
local _return = {}
|
||||
local satellites = game.forces.player.get_item_launched('satellite')
|
||||
local time = {'rockets.nan'}
|
||||
if satellites == 1 then time = tick_to_display_format(game.tick)
|
||||
elseif satellites > 1 then time = tick_to_display_format((game.tick-global.first)/satellites) end
|
||||
_return.total = satellites
|
||||
_return.first = Sync.tick_format(global.first)
|
||||
_return.last = Sync.tick_format(global.last-global._last)
|
||||
_return.time = Sync.tick_format(time)
|
||||
_return.fastest = Sync.tick_format(global.fastest)
|
||||
_return.milestones = {}
|
||||
for milestone,next_time in pairs(global.milestones) do
|
||||
_return.milestones[milestone] = Sync.tick_format(next_time)
|
||||
end
|
||||
return _return
|
||||
end)
|
||||
106
old/modules/ExpGamingInfo/Science/control.lua
Normal file
106
old/modules/ExpGamingInfo/Science/control.lua
Normal file
@@ -0,0 +1,106 @@
|
||||
--- Adds a science count gui to the game that shows total made and per minute
|
||||
-- @module ExpGamingInfo.Science
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
-- @alias ThisModule
|
||||
|
||||
-- Module Require
|
||||
local Gui = require('ExpGamingCore.Gui')
|
||||
local Game = require('FactorioStdLib.Game')
|
||||
|
||||
-- Local Variables
|
||||
local science_packs = {
|
||||
'science-pack-1',
|
||||
'science-pack-2',
|
||||
'science-pack-3',
|
||||
'military-science-pack',
|
||||
'production-science-pack',
|
||||
'high-tech-science-pack',
|
||||
'space-science-pack'
|
||||
}
|
||||
|
||||
-- Module Define
|
||||
local module_verbose = false
|
||||
local ThisModule = {
|
||||
on_init=function()
|
||||
if loaded_modules['ExpGamingCore.Sync^4.0.0'] then require(module_path..'/src/sync',{science_packs=science_packs}) end
|
||||
end
|
||||
}
|
||||
|
||||
-- Global Define
|
||||
local global = {
|
||||
_base={
|
||||
update=0,
|
||||
_update=0,
|
||||
made={0,0,0,0,0,0,0},
|
||||
_made={0,0,0,0,0,0,0}
|
||||
}
|
||||
}
|
||||
Global.register(global,function(tbl) global = tbl end)
|
||||
|
||||
-- Function Define
|
||||
ThisModule.Gui = Gui.left{
|
||||
name='science',
|
||||
caption='item/lab',
|
||||
tooltip={'ExpGamingInfo-Science.tooltip'},
|
||||
draw=function(self,frame)
|
||||
local player = Game.get_player(frame.player_index)
|
||||
if not global[player.force.name] then
|
||||
verbose('Added Science Global for: '..player.force.name)
|
||||
global[player.force.name] = table.deepcopy(global._base)
|
||||
end
|
||||
local force_data = global[player.force.name]
|
||||
frame.caption = {'ExpGamingInfo-Science.name'}
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Science.total'},
|
||||
style='caption_label'
|
||||
}
|
||||
local totals = frame.add{
|
||||
type='flow',
|
||||
direction='vertical'
|
||||
}
|
||||
frame.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Science.time'},
|
||||
style='caption_label'
|
||||
}
|
||||
local times = frame.add{
|
||||
type='flow',
|
||||
direction='vertical'
|
||||
}
|
||||
if force_data.update < game.tick-100 then
|
||||
force_data._update = force_data.update
|
||||
force_data._made = table.deepcopy(force_data.made)
|
||||
for i,name in pairs(science_packs) do
|
||||
force_data.made[i] = player.force.item_production_statistics.get_input_count(name)
|
||||
end
|
||||
force_data.update = game.tick
|
||||
end
|
||||
for i,name in pairs(science_packs) do
|
||||
local made = force_data.made[i]
|
||||
if made > 0 then
|
||||
totals.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Science.format',{'ExpGamingInfo-Science.'..name},made}
|
||||
}
|
||||
local _made = string.format('%.2f',(made-force_data._made[i])/((force_data.update-force_data._update)/(3600*game.speed)))
|
||||
times.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Science.format',{'ExpGamingInfo-Science.'..name},_made}
|
||||
}
|
||||
end
|
||||
end
|
||||
end,
|
||||
can_open=function(player)
|
||||
if player.force.item_production_statistics.get_input_count('science-pack-1') > 0 then return true
|
||||
else return {'ExpGamingInfo-Science.none'} end
|
||||
end
|
||||
}
|
||||
|
||||
-- Event Define
|
||||
Event.add(defines.events.on_research_finished,function(event) Gui.left.update('science') end)
|
||||
|
||||
-- Module Return
|
||||
-- when called will toggle the gui for that player, if no player it will update the gui
|
||||
return setmetatable(ThisModule,{_call=function(self,...) self.Gui(...) end})
|
||||
14
old/modules/ExpGamingInfo/Science/locale/de.cfg
Normal file
14
old/modules/ExpGamingInfo/Science/locale/de.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
[ExpGamingInfo-Science]
|
||||
name=Wissenschaftsinfo
|
||||
tooltip=Detailliste über Wissenschaftspakete
|
||||
total=Gemachte Pakete:
|
||||
time=Pakete pro Minute:
|
||||
format=__1__: __2__
|
||||
science-pack-1=Rot
|
||||
science-pack-2=Grün
|
||||
science-pack-3=Blau
|
||||
military-science-pack=Militär
|
||||
production-science-pack=Produktion
|
||||
high-tech-science-pack=Hochtechnologie
|
||||
space-science-pack=Weltraum
|
||||
none=Es wurden noch keine Wissenschaftspakete gemacht.
|
||||
14
old/modules/ExpGamingInfo/Science/locale/en.cfg
Normal file
14
old/modules/ExpGamingInfo/Science/locale/en.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
[ExpGamingInfo-Science]
|
||||
name=Science Info
|
||||
tooltip=List of details about science packs.
|
||||
total=Packs Made:
|
||||
time=Packs Per Minute:
|
||||
format=__1__: __2__
|
||||
science-pack-1=Red
|
||||
science-pack-2=Green
|
||||
science-pack-3=Blue
|
||||
military-science-pack=Military
|
||||
production-science-pack=Production
|
||||
high-tech-science-pack=High Tech
|
||||
space-science-pack=Space
|
||||
none=No science packs have been made yet.
|
||||
14
old/modules/ExpGamingInfo/Science/locale/fr.cfg
Normal file
14
old/modules/ExpGamingInfo/Science/locale/fr.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
[ExpGamingInfo-Science]
|
||||
name=Science Info
|
||||
tooltip=List of details about science packs.
|
||||
total=Packs Made:
|
||||
time=Packs Per Minute:
|
||||
format=__1__: __2__
|
||||
science-pack-1=Red
|
||||
science-pack-2=Green
|
||||
science-pack-3=Blue
|
||||
military-science-pack=Military
|
||||
production-science-pack=Production
|
||||
high-tech-science-pack=High Tech
|
||||
space-science-pack=Space
|
||||
none=No science packs have been made yet.
|
||||
14
old/modules/ExpGamingInfo/Science/locale/nl.cfg
Normal file
14
old/modules/ExpGamingInfo/Science/locale/nl.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
[ExpGamingInfo-Science]
|
||||
name=Wetenschap info
|
||||
tooltip=Lijst met details over de wetenschaps pakketten.
|
||||
total=Pakketten gemaakt:
|
||||
time=Pakketten per minuut:
|
||||
format=__1__: __2__
|
||||
science-pack-1=Rood
|
||||
science-pack-2=Groen
|
||||
science-pack-3=Blauw
|
||||
military-science-pack=Militair
|
||||
production-science-pack=Productie
|
||||
high-tech-science-pack=High Tech
|
||||
space-science-pack=Ruimte
|
||||
none=Er zijn nog geen wetenschaps pakketten gemaakt.
|
||||
14
old/modules/ExpGamingInfo/Science/locale/sv-Se.cfg
Normal file
14
old/modules/ExpGamingInfo/Science/locale/sv-Se.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
[ExpGamingInfo-Science]
|
||||
name=Vetenskapsinformation
|
||||
tooltip=Detaljerad lista över vetenskapspaket.
|
||||
total=Paket gjorda:
|
||||
time=Paket per minut:
|
||||
format=__1__: __2__
|
||||
science-pack-1=Röda
|
||||
science-pack-2=Gröna
|
||||
science-pack-3=Blåa
|
||||
military-science-pack=Militära
|
||||
production-science-pack=Produktion
|
||||
high-tech-science-pack=Högteknologiska
|
||||
space-science-pack=Rymd
|
||||
none=Inga vetenskapspaket har blivit gjorda ännu.
|
||||
24
old/modules/ExpGamingInfo/Science/softmod.json
Normal file
24
old/modules/ExpGamingInfo/Science/softmod.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "ExpGamingInfo.Science",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds a science count gui to the game that shows toatal made and per minute",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Gui",
|
||||
"Info",
|
||||
"ExpGaming",
|
||||
"Science",
|
||||
"Production"
|
||||
],
|
||||
"author": "<blank>",
|
||||
"contact": "<blank>",
|
||||
"license": "<blank>",
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Gui": "^4.0.0",
|
||||
"FactorioStdLib.Game": "^0.8.0",
|
||||
"ExpGamingCore.Sync": "?^4.0.0",
|
||||
"ExpGamingCore.Sync^4.0.0": "?*"
|
||||
},
|
||||
"submodules": {},
|
||||
"collection": "ExpGamingInfo@4.0.0"
|
||||
}
|
||||
19
old/modules/ExpGamingInfo/Science/src/sync.lua
Normal file
19
old/modules/ExpGamingInfo/Science/src/sync.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
local Sync = require('ExpGamingCore.Sync')
|
||||
local data = global['ExpGamingInfo.Science']
|
||||
local science_packs = science_packs
|
||||
|
||||
Sync.add_update('science',function()
|
||||
local _return = {}
|
||||
for force_name,global in pairs(data) do
|
||||
if force_name ~= '_base' then
|
||||
_return[force_name] = {totals={},times={}}
|
||||
for i,name in pairs(science_packs) do
|
||||
local made = global.made[i]
|
||||
_return[force_name].totals[name] = made
|
||||
local _made = string.format('%.2f',(made-global._made[i])/((global.update-global._update)/(3600*game.speed)))
|
||||
_return[force_name].times[name] = _made
|
||||
end
|
||||
end
|
||||
end
|
||||
return _return
|
||||
end)
|
||||
207
old/modules/ExpGamingInfo/Tasklist/control.lua
Normal file
207
old/modules/ExpGamingInfo/Tasklist/control.lua
Normal file
@@ -0,0 +1,207 @@
|
||||
--- Adds a task list gui which acts like a bulletin board for the current tasks
|
||||
-- @module ExpGamingInfo.Tasklist
|
||||
-- @author Cooldude2606
|
||||
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
|
||||
-- @alias ThisModule
|
||||
|
||||
-- Module Require
|
||||
local Gui = require('ExpGamingCore.Gui')
|
||||
local Role = require('ExpGamingCore.Role')
|
||||
local Game = require('FactorioStdLib.Game')
|
||||
|
||||
-- Module Define
|
||||
local module_verbose = false
|
||||
local ThisModule = {}
|
||||
|
||||
-- Global Define
|
||||
local global = {
|
||||
tasks={},
|
||||
_edit={},
|
||||
_base={
|
||||
_edit=false,
|
||||
_tasks={},
|
||||
_editing={}
|
||||
}
|
||||
}
|
||||
Global.register(global,function(tbl) global = tbl end)
|
||||
|
||||
-- Function Define
|
||||
local edit = Gui.inputs{
|
||||
name='tasklist-edit',
|
||||
type='button',
|
||||
caption='utility/rename_icon_normal'
|
||||
}:on_event('click',function(event)
|
||||
local text_flow = event.element.parent.parent.text_flow
|
||||
local data = global._edit[event.player_index]
|
||||
if not data._edit then data._tasks = table.deepcopy(global.tasks) end
|
||||
if text_flow.input.type == 'label' then
|
||||
data._editing[tonumber(text_flow.parent.name)]=true
|
||||
Gui.left.update('tasklist',event.player_index)
|
||||
elseif text_flow.input.type == 'textfield' then
|
||||
local text = text_flow.input.text
|
||||
data._editing[tonumber(text_flow.parent.name)]=false
|
||||
data._tasks[tonumber(text_flow.parent.name)]=text
|
||||
Gui.left.update('tasklist',event.player_index)
|
||||
end
|
||||
end)
|
||||
|
||||
local function _edit(frame)
|
||||
local element = edit(frame)
|
||||
element.style.height = 20
|
||||
element.style.width = 20
|
||||
local text_flow = element.parent.parent.text_flow
|
||||
local data = global._edit[frame.player_index]
|
||||
data._tasks[text_flow.parent.name]=text
|
||||
if data._editing[tonumber(text_flow.parent.name)] then
|
||||
element.style.height = 30
|
||||
element.style.width = 30
|
||||
local text = text_flow.input.caption
|
||||
text_flow.clear()
|
||||
local _text = text_flow.add{
|
||||
name='input',
|
||||
type='textfield',
|
||||
text=text
|
||||
}
|
||||
_text.style.width = 200
|
||||
element.sprite = 'utility/enter'
|
||||
end
|
||||
end
|
||||
|
||||
local remove = Gui.inputs{
|
||||
name='tasklist-remove',
|
||||
type='button',
|
||||
caption='utility/remove'
|
||||
}:on_event('click',function(event)
|
||||
local frame = event.element.parent.parent
|
||||
local data = global._edit[event.player_index]
|
||||
if data._edit then
|
||||
table.remove(data._tasks,tonumber(frame.name))
|
||||
table.remove(data._editing,tonumber(frame.name))
|
||||
else
|
||||
table.remove(global.tasks,tonumber(frame.name))
|
||||
Gui.left.update('tasklist')
|
||||
end
|
||||
Gui.left.update('tasklist',event.player_index)
|
||||
end)
|
||||
|
||||
local add = Gui.inputs{
|
||||
name='tasklist-add',
|
||||
type='button',
|
||||
caption='utility/add'
|
||||
}:on_event('click',function(event)
|
||||
local frame = event.element.parent.parent
|
||||
local data = global._edit[event.player_index]
|
||||
if data._edit then
|
||||
table.insert(data._tasks,tonumber(frame.name)+1,'New Value')
|
||||
table.insert(data._editing,tonumber(frame.name)+1,true)
|
||||
else
|
||||
data._tasks = table.deepcopy(global.tasks)
|
||||
table.insert(data._tasks,tonumber(frame.name)+1,'New Value')
|
||||
table.insert(data._editing,tonumber(frame.name)+1,true)
|
||||
end
|
||||
Gui.left.update('tasklist',event.player_index)
|
||||
end)
|
||||
|
||||
local function _tasks(player)
|
||||
player = Game.get_player(player)
|
||||
local data = global._edit[player.index]
|
||||
if not data then return global.tasks end
|
||||
local editing = false
|
||||
for _,v in pairs(data._editing) do
|
||||
if v == true then
|
||||
editing = true
|
||||
break
|
||||
end
|
||||
end
|
||||
if data._edit and not editing then
|
||||
global.tasks = table.deepcopy(data._tasks)
|
||||
global._edit[player.index] = table.deepcopy(global._base)
|
||||
Gui.left.update('tasklist')
|
||||
return global.tasks
|
||||
elseif not data._edit and editing then
|
||||
data._edit = true
|
||||
for key,_ in pairs(data._tasks) do if not data._editing[key] then data._editing[key] = false end end
|
||||
return data._tasks
|
||||
elseif editing then return data._tasks
|
||||
else return global.tasks
|
||||
end
|
||||
end
|
||||
|
||||
ThisModule.Gui = Gui.left{
|
||||
name='tasklist',
|
||||
caption='utility/not_enough_repair_packs_icon',
|
||||
tooltip={'ExpGamingInfo-Tasklist.tooltip'},
|
||||
draw=function(self,frame)
|
||||
frame.caption = ''
|
||||
local title = frame.add{
|
||||
type='flow',
|
||||
direction='horizontal'
|
||||
}
|
||||
title.add{
|
||||
type='label',
|
||||
caption={'ExpGamingInfo-Tasklist.name'},
|
||||
style='caption_label'
|
||||
}
|
||||
local player = Game.get_player(frame.player_index)
|
||||
local allowed = Role.allowed(player,'edit-tasklist')
|
||||
if allowed then
|
||||
if not global._edit[player.index] then global._edit[player.index] = table.deepcopy(global._base) end
|
||||
end
|
||||
for i,task in pairs(_tasks(player)) do
|
||||
local flow = frame.add{
|
||||
name=i,
|
||||
type='flow',
|
||||
direction='horizontal'
|
||||
}
|
||||
local text_flow = flow.add{
|
||||
name='text_flow',
|
||||
type='flow',
|
||||
direction='horizontal'
|
||||
}
|
||||
text_flow.add{
|
||||
name='input',
|
||||
type='label',
|
||||
caption=task
|
||||
}
|
||||
local button_flow = flow.add{
|
||||
type='flow',
|
||||
direction='horizontal'
|
||||
}
|
||||
if allowed then
|
||||
_edit(button_flow)
|
||||
if global._edit[player.index]._editing[i] then
|
||||
local element = remove(button_flow)
|
||||
element.style.height = 30
|
||||
element.style.width = 30
|
||||
local _element = add(button_flow)
|
||||
_element.style.height = 30
|
||||
_element.style.width = 30
|
||||
end
|
||||
end
|
||||
end
|
||||
if allowed then
|
||||
local flow = title.add{
|
||||
name=#_tasks(player),
|
||||
type='flow',
|
||||
direction='horizontal'
|
||||
}
|
||||
local button_flow = flow.add{
|
||||
type='flow',
|
||||
direction='horizontal'
|
||||
}
|
||||
local element = add(button_flow)
|
||||
element.style.height = 20
|
||||
element.style.width = 20
|
||||
end
|
||||
if #_tasks(player) == 0 and not allowed then frame.style.visible = false end
|
||||
end,
|
||||
can_open=function(player)
|
||||
if Role.allowed(player,'edit-tasklist') or #global.tasks > 0 then return true
|
||||
else return {'ExpGamingInfo-Tasklist.none'} end
|
||||
end,
|
||||
open_on_join=true
|
||||
}
|
||||
|
||||
-- Module return
|
||||
-- when called it will toggle the gui for that player, if no player then it will update the gui
|
||||
return setmetatable(ThisModule,{__call=function(self,...) self.Gui(...) end})
|
||||
4
old/modules/ExpGamingInfo/Tasklist/locale/de.cfg
Normal file
4
old/modules/ExpGamingInfo/Tasklist/locale/de.cfg
Normal file
@@ -0,0 +1,4 @@
|
||||
[ExpGamingInfo-Tasklist]
|
||||
name=Taskliste
|
||||
tooltip=Welche Aufgaben müssen rund um die Fabrik erledigt werden?
|
||||
none=Es sind aktuell keine Tasks erfasst, frage einen Member um einen hinzuzufügen.
|
||||
4
old/modules/ExpGamingInfo/Tasklist/locale/en.cfg
Normal file
4
old/modules/ExpGamingInfo/Tasklist/locale/en.cfg
Normal file
@@ -0,0 +1,4 @@
|
||||
[ExpGamingInfo-Tasklist]
|
||||
name=Task List
|
||||
tooltip=Jobs that needs to be completed all around the factory.
|
||||
none=There are currently no tasks. Ask a Member in-game or through Discord to add tasks.
|
||||
4
old/modules/ExpGamingInfo/Tasklist/locale/fr.cfg
Normal file
4
old/modules/ExpGamingInfo/Tasklist/locale/fr.cfg
Normal file
@@ -0,0 +1,4 @@
|
||||
[ExpGamingInfo-Tasklist]
|
||||
name=Task List
|
||||
tooltip=What jobs need to be done round the factory.
|
||||
none=There are no tasks to do right now, ask a member to add some.
|
||||
4
old/modules/ExpGamingInfo/Tasklist/locale/nl.cfg
Normal file
4
old/modules/ExpGamingInfo/Tasklist/locale/nl.cfg
Normal file
@@ -0,0 +1,4 @@
|
||||
[ExpGamingInfo-Tasklist]
|
||||
name=Taaklijst
|
||||
tooltip=Wat voor werk er rondom de fabriek gedaan moet worden
|
||||
none=Er zijn momenteel geen taken. Vraag een Member om taken toe te voegen.
|
||||
4
old/modules/ExpGamingInfo/Tasklist/locale/sv-SE.cfg
Normal file
4
old/modules/ExpGamingInfo/Tasklist/locale/sv-SE.cfg
Normal file
@@ -0,0 +1,4 @@
|
||||
[ExpGamingInfo-Tasklist]
|
||||
name=Uppgiftslista
|
||||
tooltip=Jobb som behövs slutföras överallt i fabriken
|
||||
none=Det finns för närvarande inga uppgifter. Fråga en medlem i spelet eller via Discord för att lägga till nya uppgifter.
|
||||
22
old/modules/ExpGamingInfo/Tasklist/softmod.json
Normal file
22
old/modules/ExpGamingInfo/Tasklist/softmod.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "ExpGamingInfo.Tasklist",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds a task list gui which acts like a bulletin board for the current tasks",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Gui",
|
||||
"Info",
|
||||
"ExpGaming",
|
||||
"Tasks"
|
||||
],
|
||||
"author": "<blank>",
|
||||
"contact": "<blank>",
|
||||
"license": "<blank>",
|
||||
"dependencies": {
|
||||
"ExpGamingCore.Gui": "^4.0.0",
|
||||
"ExpGamingCore.Role": "^4.0.0",
|
||||
"FactorioStdLib.Game": "^0.8.0"
|
||||
},
|
||||
"submodules": {},
|
||||
"collection": "ExpGamingInfo@4.0.0"
|
||||
}
|
||||
21
old/modules/ExpGamingInfo/softmod.json
Normal file
21
old/modules/ExpGamingInfo/softmod.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "ExpGamingInfo",
|
||||
"version": "4.0.0",
|
||||
"description": "Adds info guis to the game for different production areas",
|
||||
"location": "FSM_ARCHIVE",
|
||||
"keywords": [
|
||||
"Gui",
|
||||
"Info",
|
||||
"ExpGaming",
|
||||
"Production"
|
||||
],
|
||||
"author": "Cooldude2606",
|
||||
"contact": "Discord: Cooldude2606@5241",
|
||||
"license": "https://github.com/explosivegaming/scenario/blob/master/LICENSE",
|
||||
"submodules": {
|
||||
"ExpGamingInfo.Readme": "4.0.0",
|
||||
"ExpGamingInfo.Rockets": "4.0.0",
|
||||
"ExpGamingInfo.Science": "4.0.0",
|
||||
"ExpGamingInfo.Tasklist": "4.0.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user