I might have a silly question. I've fiddled with this stuff for about a week now and I am seriously thinking about recoding the whole thing. But before I do! lets see if theres a solution the community might bring as I am no where near an experienced coder. I only took this up for fun a year back and been modding on and off.
So I was hugely interested in the replicator mod. The original concept by jamupsi and me and doublespin made a spinoff off of that. We didnt have time anymore eventually someone else made his own spinoff.
However now that I actually have a decent amount of time on my hands I wanted to completely overhaul factorio with the help of the replicator mod + my own mod that never hit the forum. I need to merge those two later.
So I asked yuoki for some custom graphics (Really good work by him so far) however I cannot get these to work due to the nature of how the code works. (In my opinion) Now it wouldnt be an issue if all these textures were the same size same shape shame length of animation etc. However their all slightly different in size.
So basically its about this line of code here;
Code: Select all
{
type = "assembling-machine",
name = "replicator-"..tier,
icon = "__MatterTech__/graphics/icons/replicator-"..tier..".png",
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "replicator-"..tier},
max_health = 200,
corpse = "big-remnants",
dying_explosion = "big-explosion",
resistances = {
{
type = "fire",
percent = 70
}
},
fluid_boxes = {
{
base_area = 10,
base_level = 1,
production_type = "output",
pipe_picture = replicatorpipepictures(),
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{ position = {0.575, 1.15} }
},
},
off_when_no_fluid_recipe = true
},
collision_box = {{-0.75, -0.75}, {0.75, 0.75}},
selection_box = {{-1.0, -1.0}, {1.0, 1.0}},
light = {intensity = 1.00, size = 8},
fast_replaceable_group = "replicator",
animation =
{
filename = "__MatterTech__/graphics/entity/replicators/replicator-"..tier..".png",
priority="high",
width = 256,
height = 256,
frame_count = 16,
line_length = 4,
animation_speed = 1/3,
shift = {0.0, 0.0},
scale = 0.5
},
So what am I doing wrong here and how can I change it?
Ill upload the mod please look in
Prototypes\replicators\replicators.lua for the code on the animations.
The graphics are as follows in
graphics\entity\replicators
what needs to be done?
Have the replicator 1-3 assigned to their correct textures. If anyone could do that. that'd be awesome!