Color Picker 0.16

by Yesod

Adds the color picker GUI to let you easily change your player color. When selected, you can also use the color picker to change train stop color, locomotive color, cargo wagon color or fluid wagon color (this mod adds color masks to the vanilla fluid wagons). It also provides API to let other mods accessing such GUI.

Utilities
6 years ago
0.16
7

g Game crash when interacting with power armor

6 years ago

I get an error message when I open power armor of any sort with this mod enabled, followed by the game crashing back to the main menu.

Error while running event color-picker16::on_tick (ID 0)
LuaEquipmentGrid doesn't contain key type.
stack traceback:
color-picker16/control.lua:1148: in function <color-picker16/control.lua:1136>

6 years ago

Changing line 1147 of color-picker16_0.4.9\control.lua from
"if current_opened_entity then"
to
"if current_opened_entity and player.opened_gui_type ~= defines.gui_type.item then"
will fix the issue.

The changelog from version 16.40 has this "- Fixed that LuaPlayer::opened wouldn't return the opened equipment grid. (https://forums.factorio.com/59790)" which caused this issue to pop up.

6 years ago

I've applied that manually to my install of the mod, thanks. Hopefully the download here will get updated as well with this information available :)

6 years ago

This saved me a 70 hour save file, thanks.

6 years ago

I've changed the line manually and it fixed the problem for me. Thanks fred.

5 years ago

I was just popping in to report the issue. Thanks for the fix!

5 years ago

Just hit this myself. Good to know there's a fix!

New response