Search found 80 matches
- Fri May 18, 2018 1:46 pm
- Forum: Modding help
- Topic: How to make entity art
- Replies: 2
- Views: 1440
How to make entity art
So... I'm now working on a pretty big mod, which adds 9 new machines to craft items in. The only way i can create graphics is by downloading images and editing them, because that's the only thing i know how to do. It is enough for making item icons, but making animated machines is for me an ...
- Tue May 15, 2018 3:15 pm
- Forum: Mods
- Topic: [MOD] Deadlock's Stacking Beltboxes & Compact Loaders
- Replies: 741
- Views: 367932
Re: [MOD 0.16.x] Deadlock's Stacking Beltbox (& Compact Loaders)
Thanks for quick response!
I dug trough your code for hours and also found the varible c not assigned, but still used. I thought it's some modding/lua trick I don't know yet, because otherwise it would be null.
Do I need to make variables inside functions and loops local too?
I dug trough your code for hours and also found the varible c not assigned, but still used. I thought it's some modding/lua trick I don't know yet, because otherwise it would be null.
Do I need to make variables inside functions and loops local too?
- Tue May 15, 2018 1:07 pm
- Forum: Mods
- Topic: [MOD] Deadlock's Stacking Beltboxes & Compact Loaders
- Replies: 741
- Views: 367932
Re: [MOD 0.16.x] Deadlock's Stacking Beltbox (& Compact Loaders)
this is the mod: https://mods.factorio.com/mod/CustomModules
and i think all versions will cause this issue, but all except the last one have proven to be somewhat buggy or incompatible, so work with the last one (0.16.1)
and i think all versions will cause this issue, but all except the last one have proven to be somewhat buggy or incompatible, so work with the last one (0.16.1)
- Tue May 15, 2018 1:00 pm
- Forum: Mods
- Topic: [MOD] Deadlock's Stacking Beltboxes & Compact Loaders
- Replies: 741
- Views: 367932
Re: [MOD 0.16.x] Deadlock's Stacking Beltbox (& Compact Loaders)
when fixed, it can finally do wat is it supposed to and I can read the log:
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (raw-wood)
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use ...
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (raw-wood)
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use ...
- Tue May 15, 2018 11:23 am
- Forum: Mods
- Topic: [MOD] Deadlock's Stacking Beltboxes & Compact Loaders
- Replies: 741
- Views: 367932
Re: [MOD 0.16.x] Deadlock's Stacking Beltbox (& Compact Loaders)
There is an error in that line. There should be item_name, not item-name.
so a better option is
if icon_size and (icon_size ~= 32 and icon_size ~= 64 and icon_size ~= 128) then
log("ERROR: DSB asked to use icon_size that is not 32, 64 or 128 ("..item_name..")")
--return
icon_size = 32
end
so a better option is
if icon_size and (icon_size ~= 32 and icon_size ~= 64 and icon_size ~= 128) then
log("ERROR: DSB asked to use icon_size that is not 32, 64 or 128 ("..item_name..")")
--return
icon_size = 32
end
- Tue May 15, 2018 11:07 am
- Forum: Mods
- Topic: [MOD] Deadlock's Stacking Beltboxes & Compact Loaders
- Replies: 741
- Views: 367932
Re: [MOD 0.16.x] Deadlock's Stacking Beltbox (& Compact Loaders)
No items from my mod can be stacked and all icons are 32x32. By disabling parts of my mod I have found out, that everything works until I add a recipe. Then it breaks.
It really makes no sense.
It really makes no sense.
- Tue May 15, 2018 6:15 am
- Forum: Mods
- Topic: [MOD] Deadlock's Stacking Beltboxes & Compact Loaders
- Replies: 741
- Views: 367932
Re: [MOD 0.16.x] Deadlock's Stacking Beltbox (& Compact Loaders)
BUG : Breaks without any reason when used with my mod called CustomModules. Replacing part of code in create_stacking_recipes and create_unstacking_recipes with this fixes the issue:
if icon_size and (icon_size ~= 32 and icon_size ~= 64 and icon_size ~= 128) then
--log("ERROR: DSB asked to use ...
if icon_size and (icon_size ~= 32 and icon_size ~= 64 and icon_size ~= 128) then
--log("ERROR: DSB asked to use ...
- Sun May 13, 2018 9:29 am
- Forum: Resolved Problems and Bugs
- Topic: [Rseding91] [0.16.42] Shift on layers of modules not scaled properly
- Replies: 2
- Views: 4556
[Rseding91] [0.16.42] Shift on layers of modules not scaled properly
https://i.imgur.com/m2Etm5a.png
I made a mod which adds custom modules . The icons consist of multiple layers and two of them have some shift{} applied. In inventory the item appears right, but the Alt-view of modules is messed up - the shift is not scaled properly. (the lights are escaping the ...
I made a mod which adds custom modules . The icons consist of multiple layers and two of them have some shift{} applied. In inventory the item appears right, but the Alt-view of modules is messed up - the shift is not scaled properly. (the lights are escaping the ...
- Sun May 13, 2018 8:51 am
- Forum: Modding help
- Topic: [SOLVED]replacing ingredients in recipes
- Replies: 4
- Views: 2427
Re: replacing ingredients in recipes
After lots of trial and erro i created this:
for i, r in pairs(data.raw.recipe) do
if r.ingredients then
for j, n in pairs(r.ingredients) do
if n.name and string.find(n.name, "speed-module") then
n.name = "module-B0"
end
if n[1] and string.find(n[1], "speed-module") then
n[1] = "module-B0 ...
for i, r in pairs(data.raw.recipe) do
if r.ingredients then
for j, n in pairs(r.ingredients) do
if n.name and string.find(n.name, "speed-module") then
n.name = "module-B0"
end
if n[1] and string.find(n[1], "speed-module") then
n[1] = "module-B0 ...
- Sat May 12, 2018 4:02 pm
- Forum: Modding help
- Topic: [SOLVED]replacing ingredients in recipes
- Replies: 4
- Views: 2427
[SOLVED]replacing ingredients in recipes
I'm making my own modules to replace the vanilla ones, but because of compatibility i just removed the crafting recipes for the normal modules. Now i want to replace all "speed-module" in ingredients of all recipes with "module-B0" but I can't seem to find a way to do it.
- Fri May 11, 2018 4:32 pm
- Forum: Modding help
- Topic: How to set up a custom infinite research
- Replies: 11
- Views: 4541
Re: How to set up a custom infinite research
I could also make the modules change their stats when inserted into the machine (they will be usable only in one machine). After every research finishes the code will check if it was the research I wanted. If yes, update all modules in the machine.
- Fri May 11, 2018 4:42 am
- Forum: Modding help
- Topic: How to set up a custom infinite research
- Replies: 11
- Views: 4541
Re: How to set up a custom infinite research
Is it possible to somehow change module values or change it's prototype in control.lua?
- Thu May 10, 2018 7:45 am
- Forum: Modding help
- Topic: How to set up a custom infinite research
- Replies: 11
- Views: 4541
Re: How to set up a custom infinite research
So it looks like I can't access speed or productivity. Is it at least possible to modify a global variable with a research? I could then do some stuff in control.lua
- Thu May 10, 2018 7:39 am
- Forum: Modding help
- Topic: How to set up a custom infinite research
- Replies: 11
- Views: 4541
Re: How to set up a custom infinite research
@ Optera
Thanks, i was searching for a mod with an infinite research to learn from.
Thanks, i was searching for a mod with an infinite research to learn from.
- Thu May 10, 2018 4:39 am
- Forum: Modding help
- Topic: How to set up a custom infinite research
- Replies: 11
- Views: 4541
How to set up a custom infinite research
I'd like to create my own infinite research to increase speed and/or productivity of a certain machine. The problem is I only know how to add regular researches and I don't know how to make the research apply bonuses to my machine.
- Fri May 04, 2018 4:13 pm
- Forum: Modding help
- Topic: What does "order" do?
- Replies: 8
- Views: 3862
Re: What does "order" do?
Thanks. Sorry for being so incompetent to look it up myself.
- Fri May 04, 2018 3:59 pm
- Forum: Modding help
- Topic: What does "order" do?
- Replies: 8
- Views: 3862
Re: What does "order" do?
Thanks! But what happens when all the items have the same order?
- Fri May 04, 2018 3:42 pm
- Forum: Modding help
- Topic: What does "order" do?
- Replies: 8
- Views: 3862
What does "order" do?
I see the value order needed in almost any prototype, so inspired by other mods i just set it to "a-b", but I have no idea what does it do. Could somebody please explain? thanks.
- Wed May 02, 2018 6:22 pm
- Forum: Modding help
- Topic: [Probably unsolvable]Render an entity in the background
- Replies: 6
- Views: 2099
Re: [Probably unsolvable]Render an entity in the background
Make big sprites with alpha gap and shift this picture higher/ lower.
I tried making the picture double the height with the upper half transparent and then shifting it back by 2 tiles.
(it is a part of animation)
width = 128,
height = 256,
frame_count = 1,
line_length = 1,
shift = {0.0, -2.0 ...
I tried making the picture double the height with the upper half transparent and then shifting it back by 2 tiles.
(it is a part of animation)
width = 128,
height = 256,
frame_count = 1,
line_length = 1,
shift = {0.0, -2.0 ...
- Wed May 02, 2018 6:08 pm
- Forum: Modding help
- Topic: [SOLVED]Make entity collide with concrete/stone tiles
- Replies: 4
- Views: 1808
Re: [SOLVED]Make entity collide with concrete/stone tiles
Yep, i didn't think of that, thanks for pointing it out!