[2.0.32] LuaRecord#default_icons is stale for game.blueprints

Bugs that are actually features.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 133
Joined: Tue Feb 06, 2024 5:18 am
Contact:

[2.0.32] LuaRecord#default_icons is stale for game.blueprints

Post by hgschmie »

I have created a blueprint and stored it in the game blueprint library. It had, by default, two combinator icons.

I replaced those icons with some other combinators. It now looks like this:
Screenshot 2025-01-27 at 11.22.39.png
Screenshot 2025-01-27 at 11.22.39.png (53 KiB) Viewed 432 times
Screenshot 2025-01-27 at 11.23.00.png
Screenshot 2025-01-27 at 11.23.00.png (125.54 KiB) Viewed 432 times
But when I look at the blueprint in the debugger, it still shows the old icons (that I have overwritten):
Screenshot 2025-01-27 at 11.21.36.png
Screenshot 2025-01-27 at 11.21.36.png (75.72 KiB) Viewed 432 times
Not sure what to do here. Is there another way to get at the blueprint icon?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16065
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.32] LuaRecord#default_icons is stale for game.blueprints

Post by Rseding91 »

Thanks for the report however this is correct. "default_icons" reads the default icons, not the custom ones.
If you want to get ahold of me I'm almost always on Discord.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 133
Joined: Tue Feb 06, 2024 5:18 am
Contact:

Re: [2.0.32] LuaRecord#default_icons is stale for game.blueprints

Post by hgschmie »

Ok, in that case please indulge my stupid question but how do you get / set the custom ones? I can't seem to figure that out?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16065
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.32] LuaRecord#default_icons is stale for game.blueprints

Post by Rseding91 »

There is no current way to do that for blueprint records. I forwarded this onto the person who implemented LuaRecord to look into.
If you want to get ahold of me I'm almost always on Discord.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 133
Joined: Tue Feb 06, 2024 5:18 am
Contact:

Re: [2.0.32] LuaRecord#default_icons is stale for game.blueprints

Post by hgschmie »

Thank you for the quick answer.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 133
Joined: Tue Feb 06, 2024 5:18 am
Contact:

Re: [2.0.32] LuaRecord#default_icons is stale for game.blueprints

Post by hgschmie »

I guess this is now "fixed in 2.0.34" ?
Scripting:
- Added LuaRecord::preview_icons read/write.
Post Reply

Return to “Not a bug”