UPBGE / UPBGE-logicnodes

A Node-based Logic system for UPBGE 2.8+
Other
52 stars 18 forks source link

Save Game #19

Closed LP-ita closed 3 years ago

LP-ita commented 4 years ago

The node "Save Game" does not save anything if there is one o more lights on the scene...

'energy': obj.energy, AttributeError: 'KX_LightObject' object has no attribute 'energy'

IzaZed commented 4 years ago

Mmh, I see, that's a 2.8 issue, I'm on it :)

youle31 commented 3 years ago

Hi, about that, KX_LightObject has not anymore API in 2.8+.

Light settings have to be tweaked with blenderObject.

kxlight = kxscene.objects["Light"] lightData = kxlight.blenderObject.data

lightData.energy += 0.1

IzaZed commented 3 years ago

I think this is fixed, but I don't really know, feel free to re-open this.

LP-ita commented 3 years ago

Great! I'll have a look this evening. Thank you.

LP-ita commented 3 years ago

Yes, I can now confirm that objects are saved and loaded correctly, but for example changing colour or energy of lights is not saved...