Unknown problem >.>
Posted: Mon Jul 01, 2013 9:10 pm
Without a logger or debugger kinda hard for me to see the problem, prob something simple just not familier with coding on this prog yet.
It was working, then for some reason I broke it somehow >.>
Aside from the image files, here is all the code
if You can see the issues please let me know
It was working, then for some reason I broke it somehow >.>
Aside from the image files, here is all the code
if You can see the issues please let me know
Code: Select all
info.json
{
"name": "ralmodpk1",
"version": "0.0.3",
"title": "RAL Basic Mod Pack 1",
"author": "Robert A Lee",
"contact": "midnight43605@mail.com",
"dependencies": ["base >= 0.5.0"],
"description": "Adds options for getting started as well as remote mines, allows small solar construction at the start, and a higher output electric driller"
}
Code: Select all
data.lua
require("prototypes.entity")
require("prototypes.item")
require("prototypes.recipe")
Code: Select all
control.lua
require "util"
require "defines"
Code: Select all
item.lua
data:extend(
{
{
type = "item",
name = "mini-solar-panel",
icon = "__ralmodpk1__/graphics/icons/solar-panel_1.png",
flags = {"goes-to-quickbar"},
group = "energy",
order = "h-h-c",
place_result = "mini-solar-panel",
stack_size = 64
},
{
type = "item",
name = "fast-mining-drill",
icon = "__ralmodpk1__/graphics/icons/fast-mining-drill.png",
flags = {"goes-to-quickbar"},
group = "production",
order = "h-c-c",
place_result = "fast-mining-drill",
stack_size = 32
},
{
type = "item",
name = "adv-accumulator",
icon = "__ralmodpk1__/graphics/icons/adv-accumulator.png",
flags = {"goes-to-quickbar"},
order = "h-h-g-b",
place_result = "adv-accumulator",
group = "energy",
stack_size = 16
}
})
Code: Select all
recipe.lua
data:extend(
{
{
type = "recipe",
name = "fast-mining-drill",
energy_required = 15,
enabled = "true",
ingredients =
{
{"steel-plate", 5},
{"electronic-circuit", 5},
{"iron-gear-wheel", 9},
},
result = "fast-mining-drill"
},
{
type = "recipe",
name = "mini-solar-panel",
enabled = "true",
ingredients =
{
{"iron-plate", 1},
{"copper-plate", 1}
},
result = "mini-solar-panel"
},
{
type = "recipe",
name = "adv-accumulator",
enabled = "true",
ingredients = {
{"iron-plate", 3},
{"copper-plate", 5},
},
result = "adv-accumulator"
}
})
Code: Select all
entity.lua
data:extend(
{
{
type = "solar-panel",
name = "mini-solar-panel",
icon = "__ralmodpk1__/graphics/icons/solar-panel_1.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "mini-solar-panel"},
max_health = 25,
collision_box = {{-.75, -.75}, {.75, .75}},
selection_box = {{-.75, -.75}, {.75, .75}},
energy_source =
{
type = "electric",
input_priority = "none",
output_priority = "primary"
},
picture =
{
filename = "__ralmodpk1__/graphics/entity/solar_1.png",
priority = "high",
width = 52,
height = 48
},
production = 5
},
{
type = "mining-drill",
name = "fast-mining-drill",
icon = "__ralmodpk1__/graphics/icons/fast-mining-drill.png",
flags = {
"placeable-neutral",
"player-creation"
},
minable = {
mining_time = 1,
result = "fast-mining-drill"
},
max_health = 70,
collision_box = {
{
-1.4,
-1.4
},
{
1.4,
1.4
}
},
selection_box = {
{
-1.5,
-1.5
},
{
1.5,
1.5
}
},
animations =
{
north =
{
priority = "extra-high",
frame_width = 110,
frame_height = 114,
line_length = 8,
shift = {0.2, -0.2},
filename = "__ralmodpk1__/graphics/entity/fast-mining-drill/north.png",
frame_count = 64
},
east =
{
priority = "extra-high",
frame_width = 129,
frame_height = 100,
line_length = 8,
shift = {0.45, 0},
filename = "__ralmodpk1__/graphics/entity/fast-mining-drill/east.png",
frame_count = 64
},
south =
{
priority = "extra-high",
frame_width = 109,
frame_height = 111,
line_length = 8,
shift = {0.15, 0},
filename = "__ralmodpk1__/graphics/entity/fast-mining-drill/south.png",
frame_count = 64
},
west =
{
priority = "extra-high",
frame_width = 128,
frame_height = 100,
line_length = 8,
shift = {0.25, 0},
filename = "__ralmodpk1__/graphics/entity/fast-mining-drill/west.png",
frame_count = 64
}
},
effectivity = 0.5,
energy_source = {
type = "electric",
input_priority = "secondary"
},
energy_usage_per_tick = 3.0,
animation_speed_modifier = 0.5,
mining_speed = 6,
pipe_length = 2,
resource_searching_radius = 3.49,
vector_to_place_result = {
0,
-1.75
}
},
{
type = "accumulator",
name = "adv-accumulator",
icon = "__ralmodpk1__/graphics/icons/adv-accumulator.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "adv-accumulator"},
max_health = 75,
collision_box = {{-0.9, -0.9}, {0.9, 0.9}},
selection_box = {{-1, -1}, {1, 1}},
picture = {
filename = "__ralmodpk1__/graphics/entity/adv-accumulator.png",
priority = "extra-high",
width = 124,
height = 103,
shift = {0.7, -0.2}
},
charge_animation = {
filename = "__ralmodpk1__/graphics/entity/adv-accumulator-charge-animation.png",
priority = "high",
frame_width = 138,
frame_height = 135,
line_length = 8,
frame_count = 24,
shift = {0.482, -0.638}
},
charge_frame_rate = 2,
charge_cooldown = 30,
discharge_animation = {
filename = "__ralmodpk1__/graphics/entity/adv-accumulator-discharge-animation.png",
priority = "high",
frame_width = 147,
frame_height = 128,
line_length = 8,
frame_count = 24,
shift = {0.395, -0.525}
},
discharge_frame_rate = 2,
discharge_cooldown = 60,
discharge_light = {intensity = 0.7, size = 7},
inventory_size = 3,
energy_source = {
type = "electric",
output_priority = "terciary",
input_priority = "terciary",
buffer_capacity = 250
}
}
})
Code: Select all