@@ -61,7 +61,6 @@ const REQUIRED_MANIFEST_KEYS_ROOT = [
61
61
62
62
# Required keys in manifest's `json.extra.godot`
63
63
const REQUIRED_MANIFEST_KEYS_EXTRA = [
64
- "id" ,
65
64
"incompatibilities" ,
66
65
"authors" ,
67
66
"compatible_mod_loader_version" ,
@@ -162,7 +161,8 @@ func _init():
162
161
163
162
# Instance every mod and add it as a node to the Mod Loader
164
163
for mod in mod_load_order :
165
- mod_log (str ("Initializing -> " , mod .meta_data .extra .godot .id ), LOG_NAME )
164
+ # mod_log(str("Initializing -> ", mod.meta_data.extra.godot.id), LOG_NAME)
165
+ mod_log (str ("Initializing -> " , _get_mod_full_id (mod )), LOG_NAME )
166
166
_init_mod (mod )
167
167
168
168
dev_log (str ("mod_data: " , JSON .print (mod_data , ' ' )), LOG_NAME )
@@ -492,7 +492,8 @@ func _init_mod(mod):
492
492
dev_log (str ("Loaded script -> " , mod_main_script ), LOG_NAME )
493
493
494
494
var mod_main_instance = mod_main_script .new (self )
495
- mod_main_instance .name = mod .meta_data .extra .godot .id
495
+ # mod_main_instance.name = mod.meta_data.extra.godot.id
496
+ mod_main_instance .name = _get_mod_full_id (mod )
496
497
497
498
dev_log (str ("Adding child -> " , mod_main_instance ), LOG_NAME )
498
499
add_child (mod_main_instance , true )
@@ -503,6 +504,12 @@ func _init_mod(mod):
503
504
504
505
# Util functions used in the mod loading process
505
506
507
+ func _get_mod_full_id (mod :Dictionary )-> String :
508
+ var id = mod .meta_data .extra .godot .id
509
+ var namespace = mod .meta_data .namespace
510
+ return str (namespace , "-" , id )
511
+
512
+
506
513
# Check if the provided command line argument was present when launching the game
507
514
func _check_cmd_line_arg (argument ) -> bool :
508
515
for arg in OS .get_cmdline_args ():
0 commit comments