godot-mod-loader icon indicating copy to clipboard operation
godot-mod-loader copied to clipboard

Parse error when trying to extend script with declared class_name

Open aesereht opened this issue 1 year ago • 0 comments

Maybe related with https://github.com/GodotModding/godot-mod-loader/issues/338 image When trying to extend script with it produce errors. The example above was when trying to extend the _ready() method .

In case of just adding the code even without execution it will also produce error

func test():
	print("test")

capture where the script that produce error is not connected to extended script MultiplayerloadoutStage.gd was the extended script while GameWorld.availableTechSlots.duplicate() produced error GameWorld is a singleton

MultiplayerloadoutStage.gd first lines

extends Stage
class_name MultiplayerLoadoutStage
...

aesereht avatar Aug 15 '24 19:08 aesereht