[solved][2.0.8] GUI: Frame: Error "Unknown style naked_frame"

Place to get help with not working mods / modding interface.
User avatar
picklock
Fast Inserter
Fast Inserter
Posts: 239
Joined: Sat Nov 09, 2019 6:49 am
Contact:

[solved][2.0.8] GUI: Frame: Error "Unknown style naked_frame"

Post by picklock »

I am currently in the process of adapting my mods to V2.0. But I'm stuck at one point with my GUI. I haven't found anything in the changelog or in the Dokumentation.
Have I overlooked something? What do I need to change?
In V1.1 the following code still worked. In V2.0 I get the error "Unknown style naked_frame".

Code: Select all

			local pi_rss_set_fr_show_stat = pi_rss_set_fr_settings.add{
				type = "frame",
				name="pi_rss_set_fr_show_stat",
				direction="horizontal",
				style = "naked_frame",
			}
Last edited by picklock on Tue Oct 22, 2024 8:43 pm, edited 1 time in total.
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Bilka
Factorio Staff
Factorio Staff
Posts: 3426
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.0.8] GUI: Frame: Error "Unknown style naked_frame"

Post by Bilka »

A lot of styles were removed or changed. If you want the quick and lazy solution you can look for the style the lua files of a 1.1 install and copy it to your mod. The proper solution would be to look for a new style in 2.0 that does the same thing. There is no easy list for what styles were replaced by which other styles.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
picklock
Fast Inserter
Fast Inserter
Posts: 239
Joined: Sat Nov 09, 2019 6:49 am
Contact:

Re: [2.0.8] GUI: Frame: Error "Unknown style naked_frame"

Post by picklock »

Thank you for the feedback.
My Mods: Picklocks Fusion Power | Picklocks Inserter | Picklocks Lithium Polymer Accumulator | Picklocks rocket silo stats | Picklocks Set Inventory Filters | Picklocks QuickBar Import/Export | Picklocks Nauvis Cliff-Explosives
Post Reply

Return to “Modding help”