Mod wont find graphics
Posted: Mon Jan 19, 2015 7:02 pm
So i i fixed my first error but now the mod seems to not want to find the icons and or images i have tried redirecting the paths to different places and still nothing i get an error that says
Path __MezTurrets_0.1.1__/base.png does not match any mod even though i have clearly stated it to be loaded in my entity file which is here.
require "util"
missile_turret_extension =
{
filename = "__MezTurrets_0.1.1__/missile-turret-extension.png",
priority = "medium",
width = 171,
height = 102,
direction_count = 4,
frame_count = 5,
axially_symmetrical = false,
shift = {1.34375, -0.5 + 0.6}
}
data:extend(
{
{
type = "ammo-turret",
name = "missile_turret",
icon = "__MezTurrets_0.1.1__/missile-turret-icon.png",
flags = {"placeable-player", "player-creation"},
minable = {mining_time = 0.5, result = "missile_turret"},
max_health = 300,
corpse = "small-remnants",
collision_box = {{-0.4, -0.9 }, {0.4, 0.9}},
selection_box = {{-0.5, -1 }, {0.5, 1}},
rotation_speed = 0.015,
preparing_speed = 0.08,
folding_speed = 0.08,
dying_explosion = "huge-explosion",
inventory_size = 1,
automated_ammo_count = 10,
folded_animation = (function()
local res = util.table.deepcopy(missile_turret_extension)
res.frame_count = 1
res.line_length = 1
return res
end)(),
preparing_animation = gun_turret_extension,
prepared_animation =
{
filename = "__MezTurrets_0.1.1__/missile-turret.png",
priority = "medium",
width = 178,
height = 107,
direction_count = 64,
frame_count = 1,
line_length = 8,
axially_symmetrical = false,
shift = {1.34375, -0.46875 + 0.6}
},
folding_animation = (function()
local res = util.table.deepcopy(missile_turret_extension)
res.run_mode = "backward"
return res
end)(),
base_picture =
{
filename = "__MezTurrets_0.1.1__/base.png",
priority = "high",
width = 43,
height = 28,
shift = { 0, -0.125 + 0.6 }
},
attack_parameters =
{
ammo_category = "bullet",
cooldown = 6,
projectile_center = {0, 0.6},
projectile_creation_distance = 1.2,
shell_particle =
{
name = "shell-particle",
direction_deviation = 0.1,
speed = 0.1,
speed_deviation = 0.03,
center = {0, 0.6},
creation_distance = 0.6,
starting_frame_speed = 0.2,
starting_frame_speed_deviation = 0.1
},
range = 17,
sound =
{
{
filename = "__MezTurrets_0.1.1__/sound/missile.ogg",
volume = 0.3
}
}
}
}
}
)
Can anyone shed light on this i have never fiddled with lua to much i usually do java and this is slightly new to me so any help would be great
Path __MezTurrets_0.1.1__/base.png does not match any mod even though i have clearly stated it to be loaded in my entity file which is here.
require "util"
missile_turret_extension =
{
filename = "__MezTurrets_0.1.1__/missile-turret-extension.png",
priority = "medium",
width = 171,
height = 102,
direction_count = 4,
frame_count = 5,
axially_symmetrical = false,
shift = {1.34375, -0.5 + 0.6}
}
data:extend(
{
{
type = "ammo-turret",
name = "missile_turret",
icon = "__MezTurrets_0.1.1__/missile-turret-icon.png",
flags = {"placeable-player", "player-creation"},
minable = {mining_time = 0.5, result = "missile_turret"},
max_health = 300,
corpse = "small-remnants",
collision_box = {{-0.4, -0.9 }, {0.4, 0.9}},
selection_box = {{-0.5, -1 }, {0.5, 1}},
rotation_speed = 0.015,
preparing_speed = 0.08,
folding_speed = 0.08,
dying_explosion = "huge-explosion",
inventory_size = 1,
automated_ammo_count = 10,
folded_animation = (function()
local res = util.table.deepcopy(missile_turret_extension)
res.frame_count = 1
res.line_length = 1
return res
end)(),
preparing_animation = gun_turret_extension,
prepared_animation =
{
filename = "__MezTurrets_0.1.1__/missile-turret.png",
priority = "medium",
width = 178,
height = 107,
direction_count = 64,
frame_count = 1,
line_length = 8,
axially_symmetrical = false,
shift = {1.34375, -0.46875 + 0.6}
},
folding_animation = (function()
local res = util.table.deepcopy(missile_turret_extension)
res.run_mode = "backward"
return res
end)(),
base_picture =
{
filename = "__MezTurrets_0.1.1__/base.png",
priority = "high",
width = 43,
height = 28,
shift = { 0, -0.125 + 0.6 }
},
attack_parameters =
{
ammo_category = "bullet",
cooldown = 6,
projectile_center = {0, 0.6},
projectile_creation_distance = 1.2,
shell_particle =
{
name = "shell-particle",
direction_deviation = 0.1,
speed = 0.1,
speed_deviation = 0.03,
center = {0, 0.6},
creation_distance = 0.6,
starting_frame_speed = 0.2,
starting_frame_speed_deviation = 0.1
},
range = 17,
sound =
{
{
filename = "__MezTurrets_0.1.1__/sound/missile.ogg",
volume = 0.3
}
}
}
}
}
)
Can anyone shed light on this i have never fiddled with lua to much i usually do java and this is slightly new to me so any help would be great