[2.0.55] Error when trying to extend a new FontPrototype
Posted: Thu Jun 19, 2025 2:32 pm
Code: Select all
data:extend {
{
type = "font",
name = "console-alt",
from = "default-mono",
size = 18,
border = true,
filtered = false,
},
{
type = "font",
name = "debug-alt",
from = "default",
size = 18,
border = true,
filtered = false,
},
{
type = "font",
name = "debug-mono-alt",
from = "default-mono",
size = 18,
border = true,
filtered = false,
},
{
type = "font",
name = "infinite-alt",
from = "default-bold",
size = 22,
border = true,
filtered = false,
},
{
type = "font",
name = "item-count-alt",
from = "default-bold",
size = 13,
border = true,
filtered = true,
},
{
type = "font",
name = "default",
from = "default",
size = 14,
},
}
Error while loading font prototype "console" (font): Duplicate font with name: "console"
Also, all of the font names that will cause error does not respect the font path defined in info.json either.
Proposed fix:
1. Make them define in core.lua instead of some place in the game engine (As i couldn't find them in core)
2. Update the API Doc to mark these names as unusable.