ephread / inkgd

Implementation of inkle's Ink in pure GDScript for Godot, with editor support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inkgd not compatible with Godot 4.2

francoisdlt opened this issue · comments

Describe the bug
When running inkgd in Godot 4.2.beta1, I get the following error :

res://addons/inkgd/runtime/values/value.gd:104 :
Parser Error: The function signature doesn't match the parent. Parent signature is "copy() -> Variant".

To Reproduce
Install Godot 4.2.beta.1 with the godot4 version of the plugin

Expected behavior
No error :)

Ink files
Irrelevant

Environment:

  • OS: macOS 14.0 (M2 chip)
  • Godot version: Godot 4.2.beta1 vanilla
  • Inklecate version: 1.1.1
  • inkgd version: 0.6.0 (godot4 branch)

I changed copy() to return Variant, and that seems to fix this. Both in ink_object.gd and in value.gd.

func copy() -> Variant:

Thanks @nyxkn and @francoisdlt, I'll fix this!