Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions brave-new-world/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 3.3.0
Date: 29. 01. 2020
Changes:
- Updated for Factorio 0.18
---------------------------------------------------------------------------------------------------
Version: 3.2.1
Date: 24. 03. 2019
Changes:
Expand Down
6 changes: 3 additions & 3 deletions brave-new-world/info.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "brave-new-world",
"version": "3.2.1",
"factorio_version": "0.17",
"version": "3.3.0",
"factorio_version": "0.18",
"title": "Brave New World",
"author": "canidae",
"contact": "canidae@exent.net",
"homepage": "http://exent.net",
"description": "RTS-like scenario for Factorio. Player character is removed, all work must be done by bots",
"dependencies": ["base >= 0.17.0"]
"dependencies": ["base >= 0.18.0"]
}
10 changes: 5 additions & 5 deletions brave-new-world/scenarios/bnw/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ function dropItems(player, name, count)
for _, inventory_id in pairs(defines.inventory) do
local inventory = entity.get_inventory(inventory_id)
if inventory then
local barpos = inventory.hasbar() and inventory.getbar() or nil
if inventory.hasbar() then
inventory.setbar() -- clear bar (the chest size limiter)
local barpos = inventory.supports_bar() and inventory.get_bar() or nil
if inventory.supports_bar() then
inventory.set_bar() -- clear bar (the chest size limiter)
end
inserted = inserted + inventory.insert{name = name, count = count}
count = count - inserted
if inventory.hasbar() then
inventory.setbar(barpos) -- reset bar
if inventory.supports_bar() then
inventory.set_bar(barpos) -- reset bar
end
if count <= 0 then
break
Expand Down
4 changes: 4 additions & 0 deletions brave-new-world/scenarios/bnw/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"multiplayer-compatible": true,
"order": "b"
}
Binary file added brave-new-world/scenarios/bnw/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion brave-new-world/scenarios/bnw/locale/en/bnw.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
scenario-name=BNW 3.2.1
scenario-name=BNW 3.3.0
out-of-storage=[Brave New World] You've run out of storage, bots will drop carried items! You're strongly advised to cancel any deconstruction orders and build storage chests!
item_not_allowed=[Brave New World] That item is not allowed in this scenario
description=Brave New World is a RTS-like scenario where the player character is removed, and all construction must be done by construction bots. You start with a roboport, a radar, an active provider chest, a storage chest, some solar panels and some few items.\n\nMake sure [font=default-bold]"Pick ghost item if no items are available"[/font] option (Settings->Interface->Interaction section) is [font=default-bold]ON[/font] for better experience.