[0.15.7+] The given sprite rectangle. mod list inaccurate.

Bugs that are actually features.
credomane
Filter Inserter
Filter Inserter
Posts: 321
Joined: Tue Apr 12, 2016 6:21 pm
Contact:

[0.15.7+] The given sprite rectangle. mod list inaccurate.

Post by credomane »

The change listed here 46437 indicated that mods that do not meet the requirements of that change will now throw an "error loading mods" screen with the option to disable them.
This is all find and well but even if a mod does NOT use sprites it can still appear in that list to be disabled.

To replicate this do the following:
color-coding and research-queue are only needed to trigger the error loading mods screen. As these two mods were the main ones that ultimately lead to the breaking change in 0.15.7. :)
  • Install Factorio 0.15.7+
  • Install color-coding_1.15.1.zip
  • Install research-queue_1.5.1.zip
  • Install Broken_0.0.1.zip (attached to this post)
  • Launch Factorio. See that the "Broken" mod is in the list.
screenshot of error
This is literally the entire contents of the mod. It doesn't even do anything with images yet it is appearing in that list! For bad sprites. O_o

Code: Select all

data.raw["gui-style"].default["broken_button_style"] = {
    type = "button_style",
    parent = "button_style",
    top_padding = 1,
    right_padding = 5,
    bottom_padding = 1,
    left_padding = 5,
    left_click_sound = {{
        filename = "__core__/sound/gui-click.ogg",
        volume = 1
    }}
}
If that button style really is "bad" please do tell because I haven't the foggiest. Trying to update FactorioMaps to comply with the 0.15.7 breaking change and found this snippet to be the one preventing me from doing so.
Attachments
Broken_0.0.1.zip
(764 Bytes) Downloaded 80 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15984
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.7+] The given sprite rectangle. mod list inaccurate.

Post by Rseding91 »

The way the style system works this is unfortunately the result. The game doesn't know which mod changed which piece of the style - just that each of the listed mods changed the "default" style item.
If you want to get ahold of me I'm almost always on Discord.
credomane
Filter Inserter
Filter Inserter
Posts: 321
Joined: Tue Apr 12, 2016 6:21 pm
Contact:

Re: [0.15.7+] The given sprite rectangle. mod list inaccurate.

Post by credomane »

Oh....Well. I never noticed that portion of the code. I should be able to remove that default part right so I have my own style for just my mods? What I wanted in the first place. My style is only meant for my mod anyways.

Explains why another mod that never had anything to do with sprites also appeared. *bangs head on desk*

[edit]
Guess I can't fix it the way I expected. Now I get "Only one gui style can be defined now, later we can make it more variable. Great. Now I recall why I didn't do that in the first place.

Off to modding discussion to see if anyone there has a work around.
Post Reply

Return to “Not a bug”