[2.0.15] Space Age god-controller can't craft copper cable (and many other things)

Post your bugs and problems so we can fix them.
User avatar
morsk
Fast Inserter
Fast Inserter
Posts: 143
Joined: Fri Dec 15, 2017 1:00 am
Contact:

[2.0.15] Space Age god-controller can't craft copper cable (and many other things)

Post by morsk »

Where

In the hand-crafting interface, when using the god-controller, in Space Age. NOT in Vanilla; Vanilla works as usual.

This is when using "/c game.player.character = nil" to play without a character.
I don't know if this is a bug, but someone noticed it on reddit and I looked into the cause.
god-controller2.png
god-controller2.png (657.66 KiB) Viewed 53 times
This makes confirming it easier:

Code: Select all

/c game.player.character = nil
game.player.insert{name="iron-plate", count=100}
game.player.insert{name="copper-plate", count=100}
Vanilla 2.0 is fine

In Vanilla 2.0, there aren't so many "crafting categories", and the god controller can craft anything the player can.

Space Age is changed

In Space Age, data/space-age/base-data-updates.lua gives the character 6 crafting categories, while god-controller is not updated the same way and only retains the single category called "crafting", which many recipes are moved out of in Space Age.

Experimental Fix

I tested that 1 line giving data.raw["god-controller"].default the same categories data.raw.character.character gets in the previous line will fix this. (If it isn't intended. I have no idea!)

data change
Post Reply

Return to “Bug Reports”