Sun Jan 17, 2021 10:04 am
},
{
"classtype": "ThinkerIterator"
},
{
"classtype": "ThinkerIterator"
},
{
"classtype": "ThinkerIterator"
}
]
}
Sun Jan 17, 2021 11:28 am
Sun Jan 17, 2021 12:27 pm
Sun Jan 17, 2021 1:34 pm
Sun Jan 17, 2021 2:04 pm
Mon Jan 18, 2021 1:25 am
phantombeta wrote:Are you storing the iterator in a class?
Mon Jan 18, 2021 2:16 am
Thanks very much for spotting thisPlayer701 wrote:In mixin class M426_Nibbles there is a field of type ThinkerIterator called foodFinder. That GZDoom attempts to serialize it is probably an engine bug. The saving process should abort. To mitigate the issue right now, the field should be marked transient.
I would say correct; the engine should not have tried to serialise it. Also if a field declared as a class member is abstract, but not marked transient, maybe the engine could issue a warning if, referring to the linked thread, its scope isn't UI?Player701 wrote:This would probably cause the saving process itself to fail, so it's not user error even if there were class fields of such types in the mod.
Mon Jan 18, 2021 2:27 am
Mon Jan 18, 2021 2:37 am
Graf Zahl wrote:It's not that easy. The compiler cannot detect if a class is supposed to get serialized or not, so it cannot warn.
Mon Jan 18, 2021 2:57 am
Mon Jan 18, 2021 3:06 am
Graf Zahl wrote:The entire menu system is not serializable
Mon Jan 18, 2021 3:56 am