Page 3 of 3

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

Posted: Wed Jun 27, 2018 9:02 am
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?

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

Posted: Mon Jul 02, 2018 11:50 am
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.

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

Posted: Fri Jul 06, 2018 2:05 pm
by ChurchOrganist
Awesome stuff :)

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

Posted: Mon Mar 04, 2019 2:53 pm
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

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

Posted: Sun Mar 31, 2019 11:30 pm
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