Hello, Loving the the plugin so far. Having trouble with adding calendar display and/or dial. I get invalid call. Nonexistent function 'get_game_year' in base 'Nil'. I have the calendar defined in inspector but appears to be null. Thank you!
Viewing post in World Time & Game Calendar Plugin for Godot 4 comments
Glad you like it and thanks for the report. I’ll look into the issue ASAP. I believe it sounds like the game calendar reference is missing, all objects that use it need the reference set in the inspector. Does the stack trace show which object is missing it? (Usually you can see the name of the script that was calling the calendar in the debug window) There may be multiple objects that need the reference set in the inspector so double check each one is set.
I just realized the error that popped up originally was also from when I loaded the GameTimeSystem in another scene from the main scene, GameTimeSystem did not load before CalendarDdisplay tried referencing it.
I just added "await get_node("../../WorldTimeSystems/GameTimeSystem").ready" to the func refresh in CalendarDisplay