Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

errors

A topic by 00fresh created 3 days ago Views: 29 Replies: 4
Viewing posts 1 to 5

when i first add the assetplacer folder to my addons folder i get these errors. 

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:104 - Parse Error: Cannot have a key of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" in a dictionary of type "Dictionary[PlacementMode, res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_strategy/strategy.gd]".

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:109 - Parse Error: Cannot have a key of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" in a dictionary of type "Dictionary[PlacementMode, bool]".

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:271 - Parse Error: Cannot return value of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" because the function return type is "PlacementMode".

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:0 - Compile Error: Failed to compile depended scripts.

  ERROR: res://addons/assetplacer/asset_palette/asset_zoo_generator.gd:0 - Compile Error: Failed to compile depended scripts.

  ERROR: modules/gdscript/gdscript.cpp:2907 - Failed to load script "res://addons/assetplacer/asset_palette/asset_zoo_generator.gd" with error "Compilation failed".

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:104 - Parse Error: Cannot have a key of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" in a dictionary of type "Dictionary[PlacementMode, res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_strategy/strategy.gd]".

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:109 - Parse Error: Cannot have a key of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" in a dictionary of type "Dictionary[PlacementMode, bool]".

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:271 - Parse Error: Cannot return value of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" because the function return type is "PlacementMode".

  ERROR: modules/gdscript/gdscript.cpp:2907 - Failed to load script "res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd" with error "Parse error".

After enabling the plugin i get these errors as well, calling from process so they constantly add the error.  

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:109 - Invalid call. Nonexistent function 'new' in base 'GDScript'.

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:201 - Invalid call. Nonexistent function 'process' in base 'Nil'.

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:201 - Invalid call. Nonexistent function 'process' in base 'Nil'.

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:201 - Invalid call. Nonexistent function 'process' in base 'Nil'.

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:201 - Invalid call. Nonexistent function 'process' in base 'Nil'.

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:201 - Invalid call. Nonexistent function 'process' in base 'Nil'.

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:201 - Invalid call. Nonexistent function 'process' in base 'Nil'.

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:201 - Invalid call. Nonexistent function 'process' in base 'Nil'.

I'm in godot 4.6

Godot Engine v4.6.2.stable.official.71f334935 - https://godotengine.org

Developer

Hello! 

Are you able to enable the plugin after deleting it from the addons folderand adding it back again?

Yes, I installed it originally and received the errors. I then disabled, deleted the folder from addons, restarted godot,  deleted the downloaded and redownloaded and reinstalled. I still received the same errors.  If it helps any this is from the console. 

SCRIPT ERROR: Invalid call. Nonexistent function 'process' in base 'Nil'.

          at: _process_update (res://addons/assetplacer/assetplacer_plugin.gd:201)

          GDScript backtrace (most recent call first):

              [0] _process_update (res://addons/assetplacer/assetplacer_plugin.gd:201)

              [1] _process (res://addons/assetplacer/utils/contextless_plugin.gd:66)

SCRIPT ERROR: Invalid call. Nonexistent function 'process' in base 'Nil'.

          at: _process_update (res://addons/assetplacer/assetplacer_plugin.gd:201)

          GDScript backtrace (most recent call first):

              [0] _process_update (res://addons/assetplacer/assetplacer_plugin.gd:201)

              [1] _process (res://addons/assetplacer/utils/contextless_plugin.gd:66)

SCRIPT ERROR: Invalid call. Nonexistent function 'process' in base 'Nil'.

          at: _process_update (res://addons/assetplacer/assetplacer_plugin.gd:201)

          GDScript backtrace (most recent call first):

              [0] _process_update (res://addons/assetplacer/assetplacer_plugin.gd:201)

              [1] _process (res://addons/assetplacer/utils/contextless_plugin.gd:66)

SCRIPT ERROR: Invalid call. Nonexistent function '_cleanup' in base 'Nil'.

          at: cleanup (res://addons/assetplacer/viewport_3d_controllers/asset_palette_controller.gd:48)

          GDScript backtrace (most recent call first):

              [0] cleanup (res://addons/assetplacer/viewport_3d_controllers/asset_palette_controller.gd:48)

              [1] _cleanup (res://addons/assetplacer/assetplacer_plugin.gd:154)

              [2] _exit_tree (res://addons/assetplacer/utils/contextless_plugin.gd:32)

SCRIPT ERROR: Invalid call. Nonexistent function 'cleanup' in base 'Nil'.

          at: _cleanup (res://addons/assetplacer/assetplacer_plugin.gd:157)

          GDScript backtrace (most recent call first):

              [0] _cleanup (res://addons/assetplacer/assetplacer_plugin.gd:157)

              [1] _exit_tree (res://addons/assetplacer/utils/contextless_plugin.gd:32)

Developer (1 edit)

Hey again,

is there any error that is thrown in the very beginning when you enable the plugin before `Nonexistent function 'process' in base 'Nil'.`? I suspect there is a problem with creating the PlacementController object. Can you open the files "res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd" and "res://addons/assetplacer/viewport_3d_controllers/viewport_3d_controller.gd" inside the script editor and see if any compile errors are thrown? Maybe a class you are registering collides with my controller classes. 

In any case, try if adding the AssetPlacer to a clean project works. If you prefer, you could also send me your project and I'll see if I can find the cause of conflict.

Yes the string of errors "

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:104 - Parse Error: Cannot have a key of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" in a dictionary of type "Dictionary[PlacementMode, res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_strategy/strategy.gd]".

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:109 - Parse Error: Cannot have a key of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" in a dictionary of type "Dictionary[PlacementMode, bool]".

  ERROR: res://addons/assetplacer/viewport_3d_controllers/placement_controller/placement_controller.gd:271 - Parse Error: Cannot return value of type "assetplacer_state.gd::PlacementConfigState.PlacementMode" because the function return type is "PlacementMode".

  ERROR: res://addons/assetplacer/assetplacer_plugin.gd:0 - Compile Error: Failed to compile depended scripts.

  ERROR: modules/gdscript/gdscript.cpp:2907 - Failed to load script "res://addons/assetplacer/assetplacer_plugin.gd" with error "Compilation failed"." arise even before the plugin is enabled. 

 In placement_controller.gd every line within the init function that calls to the placementmode class gives an error "

_placement_strategies = {

PlacementMode.PLACE_ONLY: PlacementStrategy.new(),

PlacementMode.PLACE_AND_ROTATE: PlaceAndRotateStrategy.new(),

PlacementMode.PLACE_AND_PAINT: PaintStrategy.new(),

}

_is_mode_hologram_transformed = {

PlacementMode.PLACE_ONLY: true,

PlacementMode.PLACE_AND_ROTATE: true,

PlacementMode.PLACE_AND_PAINT: true,

# PlacementMode.

}" 

However the viewport script is error free as well as the viewport_3d_controller script is error free.