[MOD 0.15+] Color Picker 0.4.4 - Reworked mod settings

Topics and discussion about specific mods
User avatar
ChurchOrganist
Filter Inserter
Filter Inserter
Posts: 256
Joined: Sun Apr 17, 2016 12:45 pm
Contact:

[MOD 0.15+] Color Picker 0.4.9 -Serious bug with 0.16.51

Post by ChurchOrganist »

Our server has crashed twice during the last 48 hours due to a problem with Color Picker.

From the log.......

Code: Select all

59173.916 Error MainLoop.cpp:1035: Exception at tick 117125789: 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>
59173.917 Error ServerMultiplayerManager.cpp:96: MultiplayerManager failed: "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>"
I've had a quick look at this, but nowhere can I find a reference to LuaEquipmentGrid in the code????

As Mooncat's absence seems to be continuing I guess it up to the rest of the community to fix this.

Presumably it is something caused by changes in 0.16.51.

Anyone any ideas?
Want to know where the biters chewing your power plant have come from??
Wondering where your next iron is going to come from??
You need Long Range Radar

xSiNx
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jul 02, 2018 10:52 am
Contact:

Re: [MOD 0.15+] Color Picker 0.4.4 - Reworked mod settings

Post by xSiNx »

ChurchOrganist wrote:Our server has crashed twice during the last 48 hours due to a problem with Color Picker.

From the log.......

Code: Select all

[..]
I've had a quick look at this, but nowhere can I find a reference to LuaEquipmentGrid in the code????

As Mooncat's absence seems to be continuing I guess it up to the rest of the community to fix this.

Presumably it is something caused by changes in 0.16.51.

Anyone any ideas?
It isn't calling LuaEquipmentGrid specifically, it's trying to access the type property ON a LuaEquipmentGrid, which it does not have.
a simple check to see if the opened inventory / entity is a LuaEquipmentGrid or not would fix this.

i took the liberty to do so, i'm not going to upload it to the mods portal, dont want it to be flooded with the same mod.
This is it: https://drive.google.com/open?id=1oW_qk ... OmV_Vf2i_4

EDIT:
What i did was, change line 1147 in control.lua
from:

Code: Select all

if current_opened_entity then
to:

Code: Select all

if current_opened_entity and player.opened_gui_type == defines.gui_type.entity or player.opened_gui_type == defines.gui_type.trains then
i tried: "player.opened_gui_type ~= defines.gui_type.equipment" but that doesn't seem to work, so i used this workaround..

my fix is far from perfect, probably, but at least it fixes the crash when opening your armor.

User avatar
ChurchOrganist
Filter Inserter
Filter Inserter
Posts: 256
Joined: Sun Apr 17, 2016 12:45 pm
Contact:

Re: [MOD 0.15+] Color Picker 0.4.4 - Reworked mod settings

Post by ChurchOrganist »

Awesome stuff :)
Want to know where the biters chewing your power plant have come from??
Wondering where your next iron is going to come from??
You need Long Range Radar

xSiNx
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jul 02, 2018 10:52 am
Contact:

Re: [MOD 0.15+] Color Picker 0.4.4 - Reworked mod settings

Post by xSiNx »

Hey there,

Now with 0.17 the color picker is broken, is anyone still active to fix it?
Last time i fixed a small bug myself but sadly this is beyond my capabilities.
As far as i can see it has something to do with the font not being read.

Screenshot:
Image

IAMEPSIL0N
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Sep 23, 2016 6:07 pm
Contact:

Re: [MOD 0.15+] Color Picker 0.4.4 - Reworked mod settings

Post by IAMEPSIL0N »

A lot of stuff seems to not play nice, I managed to get the font issue to stop by directing it to not use the one fon't but then it didn't like the definitions for the menus and windows and errored even harder

Post Reply

Return to “Mods”