mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
General English Fixes (#52)
This commit is contained in:
@@ -10,21 +10,21 @@ Discord: https://discord.gg/r6dC2uK
|
|||||||
|
|
||||||
--[[
|
--[[
|
||||||
How to use groups:
|
How to use groups:
|
||||||
name the name that you can use to refence it.
|
name The name that you can use to reference it.
|
||||||
disallow if present then all ranks in this group will have this added to their disallow.
|
disallow If present then all ranks in this group will have this added to their disallow.
|
||||||
allow if present then all ranks in this group will have this added to their allow.
|
allow If present then all ranks in this group will have this added to their allow.
|
||||||
highest is asigned by the script to show the highest rank in this group.
|
highest Assigned by the script to show the highest rank in this group.
|
||||||
lowest is asigned by the script to show the lowest rank in this group.
|
lowest Assigned by the script to show the lowest rank in this group.
|
||||||
How to add ranks:
|
How to add ranks:
|
||||||
Name is what will be used in the scripts and is often the best choice for display in text.
|
Name What will be used in the scripts and is often the best choice for display in text.
|
||||||
short_hand is what can be used when short on space but the rank still need to be displayed.
|
short_hand What can be used when short on space but the rank still need to be displayed.
|
||||||
tag is the tag the player will gain when moved to the rank, it can be nil.
|
tag The tag the player will gain when moved to the rank, it can be nil.
|
||||||
time is used for auto-rank feature where you are moved to the rank after a certain play time in minutes.
|
time Used for auto-rank feature where you are moved to the rank after a certain play time in minutes.
|
||||||
colour is the RGB value that can be used to emphasise GUI elements based on rank.
|
colour The RGB value that can be used to emphasise GUI elements based on rank.
|
||||||
power is asigned by the script based on their index in ranks, you can insert new ranks between current ones.
|
power Assigned by the script based on their index in ranks, you can insert new ranks between current ones.
|
||||||
group is asigned by the script to show the group this rank is in
|
group Assigned by the script to show the group this rank is in.
|
||||||
disallow is a list containing input actions that the user can not perform.
|
disallow A list containing input actions that the user can not perform.
|
||||||
allow is a list of custom commands and effects that that rank can use, all defined in the sctips.
|
allow A list of custom commands and effects that that rank can use, all defined in the scripts.
|
||||||
|
|
||||||
For allow, add the allow as the key and the value as true
|
For allow, add the allow as the key and the value as true
|
||||||
Example: test for 'server-interface' => allow['server-interface'] = true
|
Example: test for 'server-interface' => allow['server-interface'] = true
|
||||||
@@ -34,7 +34,7 @@ Example: defines.input_action.drop_item -> 'drop_item'
|
|||||||
http://lua-api.factorio.com/latest/defines.html#defines.input_action
|
http://lua-api.factorio.com/latest/defines.html#defines.input_action
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- see ExpCore/ranks.lua for examples - you add your own and edit pre-made ones here.
|
-- See ExpCore/ranks.lua for examples - you add your own and edit pre-made ones here.
|
||||||
|
|
||||||
local groups = Ranking._groups(true)
|
local groups = Ranking._groups(true)
|
||||||
|
|
||||||
|
|||||||
28
control.lua
28
control.lua
@@ -8,10 +8,10 @@ Discord: https://discord.gg/r6dC2uK
|
|||||||
]]
|
]]
|
||||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||||
|
|
||||||
-- a base for functions to keep things clean
|
-- A base for functions to keep things clean
|
||||||
_G._ = {}
|
_G._ = {}
|
||||||
|
|
||||||
-- replaces the base error function
|
-- Replaces the base error function
|
||||||
_error = error
|
_error = error
|
||||||
error = function(err)
|
error = function(err)
|
||||||
if _G.Sync and _G.Sync.emit_embeded and game then
|
if _G.Sync and _G.Sync.emit_embeded and game then
|
||||||
@@ -28,8 +28,8 @@ error = function(err)
|
|||||||
_error(err)
|
_error(err)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- replaces the base require function
|
-- Replaces the base require function
|
||||||
require_return_err = false -- set to false when removing files; set to true for debuging
|
require_return_err = false -- Set to false when removing files; set to true for debuging
|
||||||
_require = require
|
_require = require
|
||||||
require = function(path)
|
require = function(path)
|
||||||
local _return = {pcall(_require,path)}
|
local _return = {pcall(_require,path)}
|
||||||
@@ -38,29 +38,29 @@ require = function(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
require("mod-gui")
|
require("mod-gui")
|
||||||
-- loads the stdlib and allows Core Game and Event
|
-- Loads the stdlib and allows Core Game and Event
|
||||||
Color, Game, Event = require('/StdLib/load'){'Color','Game','Event'}
|
Color, Game, Event = require('/StdLib/load'){'Color','Game','Event'}
|
||||||
|
|
||||||
-- loads the ExpLib, functions are plased into the lua global
|
-- loads the ExpLib, functions are placed into the lua global
|
||||||
local ExpLib = require 'ExpLib'
|
local ExpLib = require 'ExpLib'
|
||||||
ExpLib._unpack_to_G(ExpLib)
|
ExpLib._unpack_to_G(ExpLib)
|
||||||
--_G.Sync.emit_embeded = nil -- un-comment this line if you are not using the json.data
|
--_G.Sync.emit_embeded = nil -- Un-comment this line if you are not using the json.data
|
||||||
|
|
||||||
-- loads the ExpCore files these are need in order to run the other addons
|
-- Loads the ExpCore files. These are need in order to run the other addons
|
||||||
Ranking, Sync, Server, Gui = require('/ExpCore/load'){'Ranking','Sync','Server','Gui'}
|
Ranking, Sync, Server, Gui = require('/ExpCore/load'){'Ranking','Sync','Server','Gui'}
|
||||||
local success,err = pcall(require,'/ExpCore/GuiParts/test')
|
local success,err = pcall(require,'/ExpCore/GuiParts/test')
|
||||||
if success then Gui.test = err end
|
if success then Gui.test = err end
|
||||||
if Gui.popup then Gui.popup._load() end
|
if Gui.popup then Gui.popup._load() end
|
||||||
if Sync._load then Sync._load() end
|
if Sync._load then Sync._load() end
|
||||||
-- this loads the ranks that Ranking uses
|
-- Loads the ranks that Ranking uses
|
||||||
require('/ExpCore/ranks')
|
require('/ExpCore/ranks')
|
||||||
-- this loads any edits that are not need in core pcall as file may not be preset
|
-- Loads any edits that are not need in core pcall as file may not be present
|
||||||
pcall(require,'/Addons/playerRanks')
|
pcall(require,'/Addons/playerRanks')
|
||||||
-- this makes sure that all the little details are cleaned up
|
-- Makes sure that all the little details are cleaned up
|
||||||
Ranking._auto_edit_ranks()
|
Ranking._auto_edit_ranks()
|
||||||
-- this loads all the addons
|
-- Loads all the addons
|
||||||
local success,err = pcall(require,'Addons/load')
|
local success,err = pcall(require,'Addons/load')
|
||||||
if not success then error(err) end
|
if not success then error(err) end
|
||||||
-- this loads anything that does not use ExpCore (sourse given in the file)
|
-- Loads anything that does not use ExpCore (source given in the file)
|
||||||
local success,err = pcall(require,'StandAlone/load')
|
local success,err = pcall(require,'StandAlone/load')
|
||||||
if not success then error(err) end
|
if not success then error(err) end
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ invalid-inputs=Invalid Input, /__1__ __2__
|
|||||||
invalid-range=Invalid Range, Min: __1__, Max: __2__
|
invalid-range=Invalid Range, Min: __1__, Max: __2__
|
||||||
invalid-length=Invalid Length, Max: __1__
|
invalid-length=Invalid Length, Max: __1__
|
||||||
invalid-player=Invaild Player Name, __1__ ,try using tab key to auto-complete the name
|
invalid-player=Invaild Player Name, __1__ ,try using tab key to auto-complete the name
|
||||||
offline-player=Player is offline, Command Failed To Run
|
offline-player=Player is offline: Command failed to run
|
||||||
dead-player=Player is dead, Command Failed To Run
|
dead-player=Player is dead: Command failed to run
|
||||||
command-ran=Command Complete
|
command-ran=Command Complete
|
||||||
|
|
||||||
[ranking]
|
[ranking]
|
||||||
@@ -18,5 +18,5 @@ tag-reset=Your Tag was reset due to a Rank change
|
|||||||
|
|
||||||
[gui]
|
[gui]
|
||||||
unauthorized=401 - Unauthorized: Access is denied due to invalid credentials
|
unauthorized=401 - Unauthorized: Access is denied due to invalid credentials
|
||||||
cant-open=You can not open this panel right now, reason: __1__
|
cant-open=You can't open this panel right now, reason: __1__
|
||||||
cant-open-no-reason=You can not open this panel right now
|
cant-open-no-reason=You can't open this panel right now
|
||||||
|
|||||||
Reference in New Issue
Block a user