-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enhance logging + rich text * New no-bluprints module * Auto enable research queue * Spawn area: add turrets, roboport, cliff explosives * Game Info: add game seed to copy
- Loading branch information
1 parent
56c2aa5
commit 649782a
Showing
13 changed files
with
354 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[death_marker] | ||
marker=RIP __1__ | ||
message=Death location for '__1__' has been marked on the map as '__2__' | ||
message=Death location [gps=__3__,__4__] for '__1__' has been marked on the map as '__2__' | ||
removed=Your death marker '__1__' has been removed. The corpse has decayed or been looted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[No_Blueprints] | ||
info=Importing Blueprints has been disabled in this Scenario (you can still create new ones) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Player_Logging] | ||
online_count=<Players Online> count=__1__ | ||
joined=<Player Joined> name=__1__ | ||
left=<Player Left> name=__1__ | ||
mined=<Player Mined> name=__1__ | ||
decon=<Player Used Decon> name=__1__ | ||
research=Research Complete: [technology=__1__] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[No_Blueprints] | ||
info=Импорт Blueprints был отключен в этом сценарии (вы все еще можете создавать новые) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
-- No Blueprints Soft Module | ||
-- Uses locale no-blueprints.cfg | ||
-- @usage require('modules/common/no-blueprints') | ||
-- ------------------------------------------------------- -- | ||
-- @author Denis Zholob (DDDGamer) | ||
-- github: https://github.com/deniszholob/factorio-softmod-pack | ||
-- ======================================================= -- | ||
|
||
-- Dependencies -- | ||
-- ======================================================= -- | ||
|
||
-- Constants -- | ||
-- ======================================================= -- | ||
local No_Blueprints = { | ||
PERMISSION_GROUP = 'no_blueprints' | ||
} | ||
|
||
-- Event Functions -- | ||
-- ======================================================= -- | ||
|
||
-- Various action when new player joins in game | ||
-- @param event on_player_created event | ||
function No_Blueprints.on_player_created(event) | ||
local player = game.players[event.player_index] | ||
No_Blueprints.dissalowBlueprints(player) | ||
player.print({'No_Blueprints.info'}) | ||
end | ||
|
||
-- Event Registration | ||
-- ================== -- | ||
Event.register(defines.events.on_player_created, No_Blueprints.on_player_created) | ||
|
||
-- Helper Functions -- | ||
-- ======================================================= -- | ||
|
||
function No_Blueprints.dissalowBlueprints(player) | ||
-- Get existing grouip or add one if doesnt exist | ||
local group = | ||
game.permissions.get_group(No_Blueprints.PERMISSION_GROUP) or | ||
game.permissions.create_group(No_Blueprints.PERMISSION_GROUP) | ||
-- Dissalow Hand Crafting (https://lua-api.factorio.com/latest/defines.html) | ||
group.set_allows_action(defines.input_action['import_blueprint'], false) | ||
group.set_allows_action(defines.input_action['import_blueprint_string'], false) | ||
-- group.set_allows_action(defines.input_action['open_blueprint_library_gui'], false) | ||
group.set_allows_action(defines.input_action['grab_blueprint_record'], false) | ||
group.set_allows_action(defines.input_action['open_blueprint_record'], false) | ||
-- Add player to the group | ||
game.permissions.get_group(No_Blueprints.PERMISSION_GROUP).add_player(player) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.