Just a heads-up for anyone that stumbles upon issues with importing 3D assets.
For this lesson I had issues when I tried importing the weapon model, and just to state it here, I still don’t really know what or why I had an issue, but I worked around it.
I’m using Godot 4.2.stable, so I know thats different. Anyway, I got it working, though with a small workaround which I think will be part of my (future) workflow anyway (as I intend on using blender for 3d Models).
First off, I could add the weapon to the player scene as directed, but after saving, when trying to run the game, it didn’t appear in game, and I now had errors importing external resources, which pointed toward the SandBox scene, which wasn’t correct. I tried resolving the dependencies (aka, “Fixing them”) by r-click on the scene in the file system, and clicking Edit Dependencies, but all the paths mentioned in the list were correct and the “fix-button” wasn’t clickable. Still, just to ensure this wasn’t any kind of visual glitch, I re-added the correct paths anyway, but to no avail.
I also tried removing the player scene and re-instantiating it, but this made my SandBox scene impossible to load at all, and it essentially broke completely.
My way around it was to import the model to blender and saving it as a .blend file. This is because at least this version of Godot ( I don’t know how far back it goes) can import .blend files, instead of having to export them to other formats (which is partially the reason I’ll be adding this to my workflow). Also there is this nice feature that one can enable, which is to enable importing from blender by choosing the blender path in the editor settings, under FileSystem and Import.
This makes it so that Godot can discover these files when they are created, and I think also, updated.
Next I double clicked on the .blend file inside godot and I ticked off “Skip Import” in the upper left for both the light and the Camera.
I also had to reimport the materials, which got saved in it’s own folder under the Weapons folder. and now the weapon will load into the scene and game, as if nothing was different.