I'm attempting for the second time to make a mod for Factorio.
The basic principle of the mod is to add in two more types of steel: Carbon-infused steel and dark steel, and their respective pickaxes.
I've attempted to add in an item group called "Failure Industries", and I specifically copied over the format of the vanilla item group format, but the game keeps give me an error that says it's missing a closing curly bracket even though I have it there.
I also can't get the items, and the recipes, to show up in the in-game inventory, even though when setting a filter, it shows up.
The mod in question is attached to the post.
Need general help with mod-making: any errors in the mod?
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Need general help with mod-making: any errors in the mod?
- Attachments
-
- failure-industries_more-steel_1.0.0.zip
- (19.2 KiB) Downloaded 111 times
Re: Need general help with mod-making: any errors in the mod?
in item-groups.lua, line 19 misses a comma at the end of the line.
and the key in line 7 nust called "inventory_order" not "inventory-order"
and the key in line 7 nust called "inventory_order" not "inventory-order"
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Re: Need general help with mod-making: any errors in the mod?
So I followed your instructions and fixed up a few things to get past the loading screen, and now the problem is getting the tab with the recipes in it to display.Natha wrote:in item-groups.lua, line 19 misses a comma at the end of the line.
and the key in line 7 nust called "inventory_order" not "inventory-order"
The fixed version is attached.
- Attachments
-
- failure-industries_more-steel_1.0.0.zip
- (19.16 KiB) Downloaded 129 times
-
- Smart Inserter
- Posts: 1847
- Joined: Sun Feb 23, 2014 3:37 pm
- Contact:
Re: Need general help with mod-making: any errors in the mod?
All your items and recipes are disabled
The tab won't show unless there's an item to show in it.
Code: Select all
enabled = false
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Re: Need general help with mod-making: any errors in the mod?
Isn't that for it to only show if you have the tech to open it?FishSandwich wrote:All your items and recipes are disabled
The tab won't show unless there's an item to show in it.Code: Select all
enabled = false
Will set to true, and see if that fixes it
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Re: Need general help with mod-making: any errors in the mod?
Yup, it works, but for some reason the icon for the "Failure Industries" tab is not showing up. It's only showing as a bunch of red pixels when the icon is actually red, green, and brown.bigyihsuan wrote:Isn't that for it to only show if you have the tech to open it?FishSandwich wrote:All your items and recipes are disabled
The tab won't show unless there's an item to show in it.Code: Select all
enabled = false
Will set to true, and see if that fixes it
Another issue is that the Dark Steel Axe is not appearing in the Failure Industries tab...
- Attachments
-
- failure-industries_more-steel_1.0.0.zip
- (21.01 KiB) Downloaded 91 times
-
- Smart Inserter
- Posts: 1847
- Joined: Sun Feb 23, 2014 3:37 pm
- Contact:
Re: Need general help with mod-making: any errors in the mod?
I think as an icon, 250 x 250 is too big, so it's not displaying everything. 30 x 30 is more icon sized.
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Re: Need general help with mod-making: any errors in the mod?
All right, will do.FishSandwich wrote:I think as an icon, 250 x 250 is too big, so it's not displaying everything. 30 x 30 is more icon sized.
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Re: Need general help with mod-making: any errors in the mod?
I gave up and just used the Dark Steel Plate graphic.
Now the bugs are to move the Dark Steel Axe to the Failure Industries tab.
I'm thinking of adding a chest for each steel type, changing the vanilla steel chest to white, armor, and maybe a Mk2 repair pack that repairs four times as fast.
Now the bugs are to move the Dark Steel Axe to the Failure Industries tab.
I'm thinking of adding a chest for each steel type, changing the vanilla steel chest to white, armor, and maybe a Mk2 repair pack that repairs four times as fast.
- Attachments
-
- failure-industries_more-steel_1.0.0.zip
- (17.97 KiB) Downloaded 83 times