Giter Club home page Giter Club logo

factorio-charge-transmission's People

Contributors

dustine avatar

Watchers

 avatar  avatar

Forkers

magicbotalex

factorio-charge-transmission's Issues

[BUG] on_tick real number expected got inf - control.lua

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

Deconstruction Planner

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.

Compatibility Issue

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.