GodotModding / godot-mod-loader

A general purpose mod loader for GDScript based Godot Games [3.x/4.x]
https://discord.godotmodding.com
Creative Commons Zero v1.0 Universal
365 stars 29 forks source link

can't extend or overwrite .gd files that have custom class_name #417

Closed lafitteque closed 3 weeks ago

lafitteque commented 3 weeks ago

Hello, I'm learning how to use mod-loader and I'm faced with this issue when moding Dome Keeper 4.1 . When extending or overwriting a file such as Tile.gd or Map.gd or MapData.gd, the following error occurs : Class "Tile" hides a global script class. When removing "class_name Tile" from the original file, the extension works. The same issue stands for custom ressources.

Is there a way around this whithout creating conflicts with other mods?

KANAjetzt commented 3 weeks ago

Hi, currently there is no fix for this issue. We are in the process of creating an entirely new approach for extending scripts. You can follow the progress here.

I'm closing this as it is a duplicate of an existing issue. For Dome Keeper specific help, I recommend joining the Bippinbits Discord, and I'd be happy to chat over there.