Skip to content

Fix "Gameplay_Key_Color.lua" script#13

Merged
litelawliet merged 1 commit into
mainfrom
fix/key_color_onstart
Apr 13, 2025
Merged

Fix "Gameplay_Key_Color.lua" script#13
litelawliet merged 1 commit into
mainfrom
fix/key_color_onstart

Conversation

@litelawliet

@litelawliet litelawliet commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

Fix #12.

The color should be set in OnAwake instead of OnStart because another script is trying to access the light color in OnStart as well. Resulting in Undefined Behavior which breaks the final door enigma.

Prior to Overload-Technologies/Overload#437 there was no issues even though we didn't have any script ordering, it was just luck.

The color should be set in OnAwake instead of OnStart because another script is trying to access the light color in OnStart as well. Resulting in Undefined Behavior which breaks the final door enigma.

Prior to Overload-Technologies/Overload#437 there was no issues even though we didn't have any script ordering, it was just luck.
@litelawliet litelawliet added the Bug Something isn't working label Apr 3, 2025
@litelawliet litelawliet self-assigned this Apr 3, 2025
@litelawliet litelawliet changed the title Fix `Gameplay_Key_Color.lua" script Fix "Gameplay_Key_Color.lua" script Apr 3, 2025
@adriengivry

Copy link
Copy Markdown
Member

@litelawliet I don't think you meant to close this one, but to merge it instead. Probably got closed automatically since you had the word "Fix" followed by a link to this PR on Overload's lua bump PR

@litelawliet

Copy link
Copy Markdown
Contributor Author

Oh yeah indeed, re-opening...

@litelawliet litelawliet reopened this Apr 13, 2025
@litelawliet litelawliet merged commit 6ffb8f6 into main Apr 13, 2025
@litelawliet litelawliet deleted the fix/key_color_onstart branch April 13, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initialization ordering issue in Gameplay_Key_Color.lua

2 participants