Search found 12 matches
- Mon Mar 16, 2020 12:40 am
- Forum: Mods
- Topic: [MOD 0.18] Reduced Storage
- Replies: 3
- Views: 2969
Re: [MOD 0.16] Reduced Storage
Download link is to the wrong page, actual page is https://mods.factorio.com/mod/RealStorage
Also compare https://mods.factorio.com/mod/VersepellesHardStorage
Thanks, I've fixed that link.
I would recommend VersepellesHardStorage if it gets updated! My mod was originally meant to keep items ...
- Mon Jun 11, 2018 8:37 pm
- Forum: Modding help
- Topic: Recipe change not put into effect
- Replies: 6
- Views: 3293
Re: Recipe change not put into effect
Thanks dudes, that was it!
if ingredientItems ~= nil then
for i, ingredient in ipairs(ingredientItems) do
local ingredientName = ingredient[1] or ingredient["name"]
local ingredientAmount = ingredient[2] or ingredient["amount"]
local ingredientType = ingredient.type or "item"
if ...
if ingredientItems ~= nil then
for i, ingredient in ipairs(ingredientItems) do
local ingredientName = ingredient[1] or ingredient["name"]
local ingredientAmount = ingredient[2] or ingredient["amount"]
local ingredientType = ingredient.type or "item"
if ...
- Sun Jun 10, 2018 10:28 pm
- Forum: Modding help
- Topic: Recipe change not put into effect
- Replies: 6
- Views: 3293
Re: Recipe change not put into effect
I'm having a similar issue, but with the error:
Error while loading recipe prototype "copper-plate" (recipe): Difficulty normal: Key "name" not found in property tree at ROOT.recipe.copper-plate.ingredients[0]
if item["ingredients"] then
ingredientItems = item["ingredients"]
elseif item ...
Error while loading recipe prototype "copper-plate" (recipe): Difficulty normal: Key "name" not found in property tree at ROOT.recipe.copper-plate.ingredients[0]
if item["ingredients"] then
ingredientItems = item["ingredients"]
elseif item ...
- Tue May 30, 2017 4:46 pm
- Forum: Mods
- Topic: [MOD 0.18] Reduced Storage
- Replies: 3
- Views: 2969
[MOD 0.18] Reduced Storage
Type: Mod
Name: Reduced Storage
Description: This mod reduces storage chest size to more realistic amounts, and adds pallets for better early storage.
License: MIT
Version: 0.3.7
Release: 2017-5-30
Tested-With-Factorio-Version: 0.18
Category: (Storage)
Tags: storage, pallet, wood, box, size ...
Name: Reduced Storage
Description: This mod reduces storage chest size to more realistic amounts, and adds pallets for better early storage.
License: MIT
Version: 0.3.7
Release: 2017-5-30
Tested-With-Factorio-Version: 0.18
Category: (Storage)
Tags: storage, pallet, wood, box, size ...
- Tue May 23, 2017 10:14 pm
- Forum: Modding discussion
- Topic: Is it possible to make ores grow?
- Replies: 28
- Views: 9434
Re: Is it possible to make ores grow?
I think you're trying to set the new ore position before you've found the current ore position? Or adjacentEntity is limited to searching for other uranium-ore entities, when it should just be looking for an empty tile?
Something about the find_entities_filtered parameters is my guess. Try just the ...
Something about the find_entities_filtered parameters is my guess. Try just the ...
- Mon May 22, 2017 2:03 pm
- Forum: Modding discussion
- Topic: Is it possible to make ores grow?
- Replies: 28
- Views: 9434
Re: Is it possible to make ores grow?
Great! I like this.I'm thinking it'll be something like: Tiberium Ore -> Liquid Tiberium -> [Other ores/coal/stone/crude oil/water]
Try lower-case p instead of upper-case P? "ore.position"How do I get the position of the ore piece that I'm working on?
- Sun May 21, 2017 9:36 pm
- Forum: Modding help
- Topic: Pallet Storage Help
- Replies: 6
- Views: 2784
Re: Pallet Storage Help
I did indeed look at transport belts! Although I couldn't find any definitive reason the belts rendered on the correct layer while my pallets wouldn't. The only working difference I could see was the entity type and that the belts are an animation while the pallet is just a sprite. Now that I think ...
- Sun May 21, 2017 9:12 pm
- Forum: Modding discussion
- Topic: Is it possible to make ores grow?
- Replies: 28
- Views: 9434
Re: Is it possible to make ores grow?
I've found for global variables that you can do on_init, but when loading a game, it's different - so I used this code and it helped.
function when_loaded_mods_changed(data)
global.your_tiberium_list = game.surfaces[1].find_entities_filtered{name= "your_tiberium_entity_name_here"}
end
script.on ...
function when_loaded_mods_changed(data)
global.your_tiberium_list = game.surfaces[1].find_entities_filtered{name= "your_tiberium_entity_name_here"}
end
script.on ...
- Sun May 21, 2017 8:57 pm
- Forum: Modding help
- Topic: Pallet Storage Help
- Replies: 6
- Views: 2784
Re: Pallet Storage Help
So I got everything to work as intended, except for the pallet's entity image always rendered over the spilled items. This is likely because of the collision mask I mentioned earlier - I made sure the pallet picture was a low priority, which did nothing.
In conclusion, spilling items onto the ...
In conclusion, spilling items onto the ...
- Fri May 19, 2017 9:01 pm
- Forum: Modding help
- Topic: Pallet Storage Help
- Replies: 6
- Views: 2784
Re: Pallet Storage Help
I was able to get items to spill out, and in their correct values (which was interesting) for a single item. I'm working now to produce all the items placed on the pallet, position them correctly, and to not collide with the pallet entity.
I'm not getting errors from the inventory array for-loop ...
I'm not getting errors from the inventory array for-loop ...
- Fri May 19, 2017 3:34 am
- Forum: Modding help
- Topic: Pallet Storage Help
- Replies: 6
- Views: 2784
Re: Pallet Storage Help
Thanks Kikker,
The intended design is much like you suggested: single items placed for each stack in the inventory (assuming that items dropped in the world are 1/4 a grid cell, allowing up to 8 items to be dropped - which is the size of the pallet inventory). I don't mind the redundancy because of ...
The intended design is much like you suggested: single items placed for each stack in the inventory (assuming that items dropped in the world are 1/4 a grid cell, allowing up to 8 items to be dropped - which is the size of the pallet inventory). I don't mind the redundancy because of ...
- Thu May 18, 2017 3:03 pm
- Forum: Modding help
- Topic: Pallet Storage Help
- Replies: 6
- Views: 2784
Pallet Storage Help
I've made a 2x2 pallet storage as a modification of the wooden chest, and I'd like to have the item stacks in the inventory to show up in the world on top of the pallet.
Some of the code I'm starting with:
--control.lua
global.pallets = global.pallets
function place_item_on_pallet(self, item ...
Some of the code I'm starting with:
--control.lua
global.pallets = global.pallets
function place_item_on_pallet(self, item ...