Atomic Robots Fix deprecated


Adds robots made with uranium fuel cells that do not need to recharge. Updated to 0.17/0.18/1.0

Content
4 years ago
0.17 - 1.0
28
Logistic network

g Do u think to update 0.18?

4 years ago

Do u think to update 0.18?

4 years ago

Soon

4 years ago

I'm getting an error on load with 2.0.0/prototypes/entities.lua:121 attempt to call global 'flying_robot_sounds' (a nil value)

4 years ago

I'm getting an error on load with 2.0.0/prototypes/entities.lua:121 attempt to call global 'flying_robot_sounds' (a nil value)

Yep, the 0.18.2 change

Look for these lines (should be 121 and 298 of prototypes/entities.lua):

working_sound = flying_robot_sounds(),

Replace them with

working_sound = sounds.flying_robot(0.5),

Add this line at the top of the file:

local sounds = require("__base__.prototypes.entity.demo-sounds")

Then the mod should work again.

4 years ago

Game do not want to load mod, I have to turn it off

4 years ago

I'm getting an error on load with 2.0.0/prototypes/entities.lua:121 attempt to call global 'flying_robot_sounds' (a nil value)

Yep, the 0.18.2 change

Look for these lines (should be 121 and 298 of prototypes/entities.lua):

working_sound = flying_robot_sounds(),

Replace them with

working_sound = sounds.flying_robot(0.5),

Add this line at the top of the file:

local sounds = require("__base__.prototypes.entity.demo-sounds")

Then the mod should work again.

hI pI-cn, I made the Changes for lines 121 and 289 but where should I add the line?
I add it at the top of entities.lua it gaves an error. I am doing something wrong for sure.
Can you help me please?
Thanks in advance

4 years ago

@atithasos: The line should be added to the top of prototypes/entities.lua:

local sounds = require("__base__.prototypes.entity.demo-sounds") -- ADDED

data:extend{
  {
type = "logistic-robot",
…
{
  filename = "__AtomicRobotsFixv__/graphics/entity/logistic-robot/logistic bot shadow.png",
  priority = "high",
  line_length = 16,
  width = 128,
  height = 128,
      scale = 0.5,
  frame_count = 1,
  shift = {0.0, 0.0},
  direction_count = 16
},
working_sound = sounds.flying_robot(0.5),    -- CHANGED
cargo_centered = {0.0, 0.2},
  },
  {
type = "construction-robot",
…
{
    filename = "__base__/graphics/entity/sparks/sparks-06.png",
    width = 44,
    height = 36,
    frame_count = 19,
    line_length = 19,
    shift = {0.03125, 0.3125},
    tint = { r = 1.0, g = 0.9, b = 0.0, a = 1.0 },
    animation_speed = 0.3,
  },
},
working_sound = sounds.flying_robot(0.5),    -- CHANGED
cargo_centered = {0.0, 0.2},
construction_vector = {0.30, 0.22},
  }
}

I just checked, the game still loads for me with the changes from my previous post. Perhaps you could post the error message you get? Could be just a typo that breaks things, a forgotten comma or something similar.

This thread has been locked.