Page 1 of 1

Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 5:57 pm
by bigyihsuan
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.

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 6:11 pm
by Natha
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"

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 7:00 pm
by bigyihsuan
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"
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.

The fixed version is attached.

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 7:29 pm
by FishSandwich
All your items and recipes are disabled

Code: Select all

enabled = false
The tab won't show unless there's an item to show in it.

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 7:46 pm
by bigyihsuan
FishSandwich wrote:All your items and recipes are disabled

Code: Select all

enabled = false
The tab won't show unless there's an item to show in it.
Isn't that for it to only show if you have the tech to open it?

Will set to true, and see if that fixes it

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 7:57 pm
by bigyihsuan
bigyihsuan wrote:
FishSandwich wrote:All your items and recipes are disabled

Code: Select all

enabled = false
The tab won't show unless there's an item to show in it.
Isn't that for it to only show if you have the tech to open it?

Will set to true, and see if that fixes it
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.

Another issue is that the Dark Steel Axe is not appearing in the Failure Industries tab...

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 8:02 pm
by FishSandwich
I think as an icon, 250 x 250 is too big, so it's not displaying everything. 30 x 30 is more icon sized.

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 8:09 pm
by bigyihsuan
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.
All right, will do.

Re: Need general help with mod-making: any errors in the mod?

Posted: Mon Apr 06, 2015 8:50 pm
by bigyihsuan
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.