[Modded content] Mod crash

This subforum contains all the issues which we already resolved.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

[Modded content] Mod crash

Post by Nirahiel »

Hi, I found out that if you hover over steel furnace and electric furnace in the technology screen, the game will crash without even telling why.
Could anyone help me find why it's crashing ?
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Mod crash

Post by ficolas »

Remove your grinder from the mod.
I also had this problem once, the problem is when calculating the tptal raw of a item, it should also crash when horvering over a wall.

The code sees that to make those it needs bricks, and to make bricks it needs stone, and to make stone you need bricks! (because of the grinder) and that loop crashes the game.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Mod crash

Post by Nirahiel »

Well, the stone to bricks recipe is not a regular recipe, it's a smelting, does that count for the total raw materials needed ? I don't think so. When you hover over the steel furnace in the CRAFTING window it's fine, and it's not in the TECHNOLOGY window.. Not sure why there is a difference ...

EDIT : yeah same problems with the walls. Now I think this is because the technology is trying to find the items that arent crafted but smelted (and in my case, ground) even though it shouldnt.

Bug found ?
Last edited by Nirahiel on Wed Oct 02, 2013 7:32 pm, edited 2 times in total.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Mod crash

Post by ficolas »

Both, from brick to stone and from stone to bricks are smelting, maybe they fixed it for the recipe screen but not for the tech, or maybe thats not what happends.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Mod crash

Post by Nirahiel »

From brick to stone is smelting ? Since when ?
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Mod crash

Post by ficolas »

Nirahiel wrote:From brick to stone is smelting ? Since when ?
I thought u created another smeltimg category.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Mod crash

Post by Nirahiel »

Nah it's a grinding category :)
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Mod crash

Post by ficolas »

Nirahiel wrote:Nah it's a grinding category :)
A new category can still be smelting, so the visual part is not like the assembly machine, is like a furnace
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Mod crash

Post by Nirahiel »

Yeah, but it shouldn't matter, because it's not a crafting, therefore it shouldn't be counted when computing the amount of raw resources needed.

Anyway, mods, can you move this to bug reports ?
It's obvious that there is something wrong with the technology screen.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Mod crash

Post by ficolas »

Nirahiel wrote:Yeah, but it shouldn't matter, because it's not a crafting, therefore it shouldn't be counted when computing the amount of raw resources needed.

Anyway, mods, can you move this to bug reports ?
It's obvious that there is something wrong with the technology screen.
Ok now I noticed what you mean, yea smelting shouldnt be treated as raw, since iron ore/copper ore doesnt.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Mod crash

Post by kovarex »

Didn't you add your grinding category to the player crafting_categories in player prototype?

Code: Select all

crafting_categories = {"crafting"},
These categories are used to calculate the raw resource counts.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Mod crash

Post by Nirahiel »

prototypes/entity/grinder.lua :

crafting_categories = {"industrio-grinding"}

And no, I didnt add anything else. AFAIK. Mind checking my mod kovarex ?
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Mod crash

Post by kovarex »

I can check it out, best is to put it in work in progress mod section.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Mod crash

Post by Nirahiel »

Well, except that little issue, players can still craft the items, they just have to avoid putting mouse over it in technologies, so the mod is working, kind of :)
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [Modded content] Mod crash

Post by kovarex »

Fixed for 0.7.3.
Post Reply

Return to “Resolved Problems and Bugs”