Page 4 of 4

Re: [MOD 0.15.x] Large Chests

Posted: Fri Sep 15, 2017 6:56 am
by Eep
How come the iron and steel chests don't use lower-tier chest of the same metal? Seems odd that an iron chest would require wood and a a steel chest would reqire iron, no? It also means not being able to upgrade steel chests. Which files would I need to change to make this possible? Thanks.

Re: [MOD 0.15.x] Large Chests

Posted: Sat Sep 16, 2017 2:04 am
by Ranakastrasz
That is because i wanted a way to recycle iron chests once upon a time. Recipes in this game are weird. I had also made furnaces used to make steel furnaces and those to make electric furnaces for the same reason in another mod.


If you want to change it mess with the recipe definition files.

Re: [MOD 0.15.x] Large Chests

Posted: Sat Sep 16, 2017 8:16 am
by Eep
OK, I edited chest-recipe.lua with this, which I feel is more realistic:

Code: Select all

data:extend(
{
  {
    type = "recipe",
    name = "wooden-chest-medium",
	enabled = true,
    ingredients = 
	{
		{"wooden-chest", 8},
		{"wood", 8}
	},
    result = "wooden-chest-medium"
  },
  {
    type = "recipe",
    name = "iron-chest-medium",
    enabled = false,
    ingredients = 
	{
                {"iron-chest", 1},
		{"iron-plate", 16}, -- 24
	},
    result = "iron-chest-medium"
  },
  {
    type = "recipe",
    name = "steel-chest-medium",
    enabled = false,
    ingredients = 
	{
                {"steel-chest", 1},
		{"steel-plate", 32} -- 24
	},
    result = "steel-chest-medium"
  },
  {
    type = "recipe",
    name = "wooden-chest-big",
	enabled = false,
    ingredients = 
	{
		{"wooden-chest-medium", 1},
		{"wood", 16}
	},
    result = "wooden-chest-big"
  },
  {
    type = "recipe",
    name = "iron-chest-big",
    enabled = false,
    ingredients = 
	{
                {"iron-chest-medium", 1},
		{"iron-plate", 32},
	},
    result = "iron-chest-big"
  },
  {
    type = "recipe",
    name = "steel-chest-big",
    enabled = false,
    ingredients = 
	{
                {"steel-chest-medium", 1},
		{"steel-plate", 64} -- 48
	},
    result = "steel-chest-big"
  },
}
)
data.raw["recipe"]["iron-chest"].ingredients = 
{
	{"iron-plate", 8}
}
data.raw["recipe"]["steel-chest"].ingredients = 
{
	{"steel-plate", 8}
}

Re: [MOD 0.15.x] Large Chests

Posted: Sat Nov 11, 2017 10:29 pm
by Ranakastrasz
@Eep
Your medium wooden chest is using 8 small chests, instead of 1 which you probably intended.

I am planning to add mod-config options to allow for that kind of thing as an alternate recipe. Probably have iron to steel and wood to iron as separate (Wood can be burned, iron not so much)
Could also have that scale up instead of scale to the right like you are doing, it just seemed wrong to me.


@Peter34 Finally removed buffer chests. If they exist, they are replaced with steel chests (and limit themselves to 2 slots interestingly enough)

Hopefully getting back into Factorio modding again, but who knows.

Re: [MOD 0.15.x] Large Chests

Posted: Sat Nov 11, 2017 10:30 pm
by Ranakastrasz
v15.2.1
Buffer Chest removed.

If you have buffer chests, they will be replaced with steel chests.

Re: [MOD 0.15.x] Large Chests

Posted: Fri Dec 15, 2017 4:13 am
by Ranakastrasz
Heh. When I update this mod to Factorio 0.16, I will have to add buffer chests back in. XD

Re: [MOD 0.15.x] Large Chests

Posted: Sun Dec 17, 2017 11:02 am
by majic116
Your mod is awesome!
Are you planning to update it to 0.16 anytime soon?
Thank you!

Re: [MOD 0.15.x] Large Chests

Posted: Mon Dec 18, 2017 2:11 pm
by Ranakastrasz
Yea. Unfortunately this particular mod needs significant work. Quite a few things have changed under the hood so it will take longer.
Not just the icons, but the addition of the buffer chest and some of the attributes are different.

Edit:
URghhhh...

Gonna take a while.
Edit2:

URGHHHHHHH.

So, Chest prototypes are quite a bit different than they were when I... Copied code from Dytech to make a standalone mod.
The circuit network stuff instead of being a set of coordinate values is now a function call which I can't find the source of. (It was in "Core/lualib", I never opened Core before... XD)

Chest health was buffed, and they have their own resistances now, which I have to integrate.

Icon size requirement was easy to do.
Requester chests have to have a number of requester slots now, apperently.

So Its coming along slowly.

Re: [MOD 0.16.x] Large Chests

Posted: Wed Dec 20, 2017 4:51 pm
by Ranakastrasz
Updated for V16

Added buffer chest back in XD
But seriously, had to add the T2 and T3 version of vanilla buffer chest, just after removing the custom tiny chest.

Should work with existing games. Migration script appears to work, but whoknows.

Resistances adjusted.
At some point chests got tougher, and got fire and impact resistance. As such, that is now included in all of the chests.

fire and impact resistance grows slowly, with 3x3 steel/logistic chests having fire immunity, and impact at 80%
Physical, explosive, and acid resistances slowly scale up with size and material, capping at 4 + 50% resistance each.

Requester and Buffer chests have 12/18/24 request slots at size 1/2/3, so larger chests can request more item types (If you want)

Should be reasonable enough.

Might have missed something. Report any issues please.

Re: [MOD 0.16.x] Large Chests

Posted: Sat Jan 20, 2018 5:47 am
by abordoli
Can you make a toggle to where the wooden chest version is not required for the iron chest version. It is proving problematic in tree-less simulations (i.e moon, Mars).
Regards,
~B

Re: [MOD 0.16.x] Large Chests

Posted: Sat Mar 17, 2018 11:36 pm
by Ranakastrasz
This new version SHOULD work. Mod options let you set chests to use wood-> iron upgrades, and two others, letting you upgrade from small to large or weak to strong, or both.

That said, first time I messed with mod options, and not 100% sure it will work correctly.

Will set as proper update as soon as I am confidant it works right.

Re: [MOD 0.16.x] Large Chests

Posted: Sun Mar 18, 2018 1:43 pm
by Ranakastrasz
V16.1.1
Added Mod settings for Wood/Upgrade recipes.

You can disable using wood for iron/iron for steel, and using small for medium/medium for large.

Not 100% sure it works as intended, report any issues please. (First time with script-altering recipes, and mod options, so yea)

Re: [MOD 0.16.x] Large Chests

Posted: Mon Jul 09, 2018 9:40 pm
by Scorpio_King
Can you add the logistic storage chests function to filter items to big ones?

Re: [MOD 0.16.x] Large Chests

Posted: Mon Apr 08, 2019 5:01 pm
by enthnal
Was wondering if you planned to update this for 0.17.x? If not, I got some LUA reading to do.