Page 1 of 1
[Modded content] Mod crash
Posted: Wed Oct 02, 2013 7:15 pm
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 ?
Re: Mod crash
Posted: Wed Oct 02, 2013 7:19 pm
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.
Re: Mod crash
Posted: Wed Oct 02, 2013 7:21 pm
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 ?
Re: Mod crash
Posted: Wed Oct 02, 2013 7:23 pm
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.
Re: Mod crash
Posted: Wed Oct 02, 2013 7:31 pm
by Nirahiel
From brick to stone is smelting ? Since when ?
Re: Mod crash
Posted: Wed Oct 02, 2013 7:51 pm
by ficolas
Nirahiel wrote:From brick to stone is smelting ? Since when ?
I thought u created another smeltimg category.
Re: Mod crash
Posted: Wed Oct 02, 2013 7:56 pm
by Nirahiel
Nah it's a grinding category

Re: Mod crash
Posted: Wed Oct 02, 2013 8:01 pm
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
Re: Mod crash
Posted: Wed Oct 02, 2013 8:21 pm
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.
Re: Mod crash
Posted: Wed Oct 02, 2013 8:28 pm
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.
Re: Mod crash
Posted: Wed Oct 02, 2013 8:33 pm
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.
Re: Mod crash
Posted: Wed Oct 02, 2013 8:42 pm
by Nirahiel
prototypes/entity/grinder.lua :
crafting_categories = {"industrio-grinding"}
And no, I didnt add anything else. AFAIK. Mind checking my mod kovarex ?
Re: Mod crash
Posted: Wed Oct 02, 2013 8:44 pm
by kovarex
I can check it out, best is to put it in work in progress mod section.
Re: Mod crash
Posted: Wed Oct 02, 2013 8:55 pm
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

Re: [Modded content] Mod crash
Posted: Fri Oct 18, 2013 5:49 pm
by kovarex
Fixed for 0.7.3.