dustine / factorio-charge-transmission Goto Github PK
View Code? Open in Web Editor NEWSpecial Factorio entities that wirelessly charge bots around them. By Mike C.
License: MIT License
Special Factorio entities that wirelessly charge bots around them. By Mike C.
License: MIT License
https://i.imgur.com/h6k25zD.png
I managed to get the mod to load for .18 but now I'm getting the on_tick error with line 349 calling line 314 in control.lua
Also registered report on factoriomods
[314] local function on_tick(event)
--[[ Free Charger Reassignment (4c/s) ]]
if event.tick%15 == 0 then
if not free_chargers[counters.next_charger] then counters.next_charger = nil end
local next_charger
counters.next_charger, next_charger = next(free_chargers, counters.next_charger)
if next_charger then
if next_charger.base.valid then
if pair_charger(next_charger) then
free_chargers[next_charger.id] = nil
end
else free_chargers[next_charger.id] = nil end
end
end
--[[ Robot Recharging (25?r/10??/tick) ]]
local total_robots = constants.robots_limit
local step = math.ceil(#active_nodes/constants.nodes_interval)
local n_start = #active_nodes - ((event.tick % constants.nodes_interval) * step)
local n_stop = n_start - step + 1
for n = n_start, math.max(1, n_stop), -1 do
if total_robots <= 0 then goto end_bots end
local node = nodes[active_nodes[n]]
if node and node.active and node.cell.valid then
local beam_position = constants.have_beams and node.cell.owner.position
local surface = node.cell.owner.surface
local force = node.cell.owner.force.name
local bots = node.cell.to_charge_robots
for _, bot in pairs(bots) do
node.cost = node.cost - bot.energy
[349] bot.energy = math.huge
The mod is incompatible with 0.16 :(
When you use a Deconstruction Planner only the "Bot Charger Kevin Leonhard Haugen NOR" is removed. The "Boot Charger Transmitter" is left. The game gives this error:
LuaEntriry API call when LuaEntity was invalid. stack traceback: ChargeTransmission/stdlib/entity /entity.lua:44 in function 'get_data' __ChargeTrasmission_control.lua:286 in function <ChargeTransmission/Control.lua:281> [C]:in function 'pccall' ChargeTransmission/stdlib/entity /entity.lua:99 in function <ChargeTransmission/stdlib/event/event.lua:82>
If I use Deconstruction Planner on several the game crashes.
Using this mod and Atomic Robots by FunCarcass on the mod portal results in an error message and a crash to the main menu.
The error message reads;
Error while running event
ChargeTransmission::on_tick(ID 0)
__ChargeTransmission__/control.lua:433:
attempt to perform arithmetic on field '?' (a nil value)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.