The following is somewhat off-topic, in that it is about modding your mods, rather than your mods themselves:
OffTopic
I have a small mod that I use to tweak some settings in your bob's mods.
In v0.12 it appears that some syntax is no longer valid, and searching both the web and the forums for it have turned up no specific help.
See the attached image for the error message "no such node (type)".
The code it is complaining about is:
Surely the type must still exist? (In this case "unit").
Using this pattern "data.raw.foo["bar"].blah = something" works fine for recipe and technology types.
Any possible idea why?
In v0.12 it appears that some syntax is no longer valid, and searching both the web and the forums for it have turned up no specific help.
See the attached image for the error message "no such node (type)".
- Factorio start-up error.
- Temp.png (47.23 KiB) Viewed 6252 times
Code: Select all
-- Robotic Tank Drone
-- ===================================================================
data.raw.unit["bob-robot-tank"].max_health = 2000
data.raw.unit["bob-robot-tank"].resistances =
{
{
type = "fire",
decrease = 10,
percent = 50
},
{
type = "physical",
decrease = 6,
percent = 30
},
{
type = "impact",
decrease = 10,
percent = 50
},
{
type = "explosion",
decrease = 6,
percent = 30
},
{
type = "acid",
decrease = 4,
percent = 20
},
}
data.raw.unit["bob-robot-tank"].distraction_cooldown = 300
data.raw.unit["bob-robot-tank"].attack_parameters =
{
ammo_category = "combat-robot-laser",
cooldown = 20, --45,
damage_modifier = 1,
projectile_center = {0, 0},
projectile_creation_distance = 0.6,
range = 40, --15,
animation = tankdroneanimation(0.5),
sound =
{
{
filename = "__base__/sound/laser.ogg",
volume = 0.4
}
},
ammo_type =
{
type = "projectile",
category = "combat-robot-laser",
action =
{
type = "direct",
action_delivery =
{
{
type = "projectile",
projectile = "laser", --"bob-laser-glass",
starting_speed = 2.0
},
}
}
},
}
data.raw.unit["bob-robot-tank"].vision_distance = 60
data.raw.unit["bob-robot-tank"].movement_speed = 0.16
data.raw.unit["bob-robot-tank"].distance_per_frame = 0.15
data.raw.unit["bob-robot-tank"].pollution_to_join_attack = 1250
Using this pattern "data.raw.foo["bar"].blah = something" works fine for recipe and technology types.
Any possible idea why?