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

Place to get help with not working mods / modding interface.
Post Reply
User avatar
bigyihsuan
Filter Inserter
Filter Inserter
Posts: 299
Joined: Thu Jan 01, 2015 12:57 pm
Contact:

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

Post 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.
Attachments
failure-industries_more-steel_1.0.0.zip
(19.2 KiB) Downloaded 110 times

Natha
Fast Inserter
Fast Inserter
Posts: 199
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

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

Post 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"

User avatar
bigyihsuan
Filter Inserter
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?

Post 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.
Attachments
failure-industries_more-steel_1.0.0.zip
(19.16 KiB) Downloaded 128 times

FishSandwich
Smart Inserter
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?

Post 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.

User avatar
bigyihsuan
Filter Inserter
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?

Post 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

User avatar
bigyihsuan
Filter Inserter
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?

Post 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...
Attachments
failure-industries_more-steel_1.0.0.zip
(21.01 KiB) Downloaded 91 times

FishSandwich
Smart Inserter
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?

Post 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.

User avatar
bigyihsuan
Filter Inserter
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?

Post 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.

User avatar
bigyihsuan
Filter Inserter
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?

Post 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.
Attachments
failure-industries_more-steel_1.0.0.zip
(17.97 KiB) Downloaded 82 times

Post Reply

Return to “Modding help”