mitchmakesthings / godot-things Goto Github PK
View Code? Open in Web Editor NEWCollection of tutorials and mini-projects
License: MIT License
Collection of tutorials and mini-projects
License: MIT License
Hi Mitch, I'm attempting to run through the networking tutorial that you created and having trouble with running the .bat files in windows. I modified it accordingly but I'm getting these errors when running it.
"C:\Program Files\Godot\Godot_v4.0-alpha12_win64.exe" --path .\Multiplayer\ --server --headless
Godot Engine v4.0.alpha12.official.2c11e6d9e - https://godotengine.org
WARNING: res://Characters/Aliens/Player.tscn:3 - ext_resource, invalid UUID: uid://yro4ypo6sek5 - using text path instead: res://Characters/Aliens/Blue/BlueSpriteFrames.tres
at: load (scene/resources/resource_format_text.cpp:440)
WARNING: res://Characters/Aliens/Blue/BlueSpriteFrames.tres:3 - ext_resource, invalid UUID: uid://xjnyqosqdmw1 - using text path instead: res://Characters/Aliens/Blue/alienBlue_walk1.png
at: load (scene/resources/resource_format_text.cpp:440)
ERROR: Unable to open file: res://.godot/imported/alienBlue_walk1.png-977551bdfe3f92f98b7269f8ed7e31ba.ctex.
at: (scene/resources/texture.cpp:822)
ERROR: Failed loading resource: res://.godot/imported/alienBlue_walk1.png-977551bdfe3f92f98b7269f8ed7e31ba.ctex. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: Failed loading resource: res://Characters/Aliens/Blue/alienBlue_walk1.png. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: res://Characters/Aliens/Blue/BlueSpriteFrames.tres:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Characters/Aliens/Blue/alienBlue_walk1.png
at: load (scene/resources/resource_format_text.cpp:478)
ERROR: Failed loading resource: res://Characters/Aliens/Blue/BlueSpriteFrames.tres. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: res://Characters/Aliens/Player.tscn:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Characters/Aliens/Blue/BlueSpriteFrames.tres
at: load (scene/resources/resource_format_text.cpp:478)
ERROR: Failed loading resource: res://Characters/Aliens/Player.tscn. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: Parser bug (please report): tried to assign unset node without an identifier.
at: resolve_class_interface (modules/gdscript/gdscript_analyzer.cpp:656)
SCRIPT ERROR: Parse Error: Could not preload resource file "res://Characters/Aliens/Player.tscn".
at: GDScript::reload (res://System/main.gd:4)
SCRIPT ERROR: Parse Error: Cannot use simple "@export" annotation because the type of the initialized value can't be inferred.
at: GDScript::reload (res://System/main.gd:3)
ERROR: Method/function failed. Returning: ERR_PARSE_ERROR
at: reload (modules/gdscript/gdscript.cpp:886)
WARNING: res://System/main.tscn:4 - ext_resource, invalid UUID: uid://dhvi1o1ili7f - using text path instead: res://Maps/TestMap.tscn
at: load (scene/resources/resource_format_text.cpp:440)
WARNING: res://Maps/TestMap.tscn:3 - ext_resource, invalid UUID: uid://bp0gb6ml2ruad - using text path instead: res://Maps/Tileset.tres
at: load (scene/resources/resource_format_text.cpp:440)
WARNING: res://Maps/Tileset.tres:3 - ext_resource, invalid UUID: uid://cday0n3k0g4ew - using text path instead: res://Maps/tiles_spritesheet.png
at: load (scene/resources/resource_format_text.cpp:440)
ERROR: Unable to open file: res://.godot/imported/tiles_spritesheet.png-9be423446f4a81a250967ebe388bb064.ctex.
at: (scene/resources/texture.cpp:822)
ERROR: Failed loading resource: res://.godot/imported/tiles_spritesheet.png-9be423446f4a81a250967ebe388bb064.ctex. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: Failed loading resource: res://Maps/tiles_spritesheet.png. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: res://Maps/Tileset.tres:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Maps/tiles_spritesheet.png
at: load (scene/resources/resource_format_text.cpp:478)
ERROR: Failed loading resource: res://Maps/Tileset.tres. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: res://Maps/TestMap.tscn:3 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Maps/Tileset.tres
at: load (scene/resources/resource_format_text.cpp:478)
ERROR: Failed loading resource: res://Maps/TestMap.tscn. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: res://System/main.tscn:4 - Parse Error: [ext_resource] referenced nonexistent resource at: res://Maps/TestMap.tscn
at: load (scene/resources/resource_format_text.cpp:478)
ERROR: Failed loading resource: res://System/main.tscn. Make sure resources have been imported by opening the project in the editor at least once.
at: (core/io/resource_loader.cpp:205)
ERROR: Failed loading scene: res://System/main.tscn
at: (main/main.cpp:2669)
ERROR: Condition "_first != nullptr" is true.
at: ~List (./core/templates/self_list.h:106)
ERROR: Condition "_first != nullptr" is true.
at: ~List (./core/templates/self_list.h:106)
ERROR: 1 RID allocations of type 'P11GodotBody3D' were leaked at exit.
ERROR: 1 RID allocations of type 'P11GodotArea3D' were leaked at exit.
ERROR: 1 RID allocations of type 'P12GodotSpace3D' were leaked at exit.
ERROR: 1 RID allocations of type 'P11GodotArea2D' were leaked at exit.
ERROR: 1 RID allocations of type 'P12GodotSpace2D' were leaked at exit.
ERROR: 2 RID allocations of type '6NavMap' were leaked at exit.
ERROR: 1 RID allocations of type 'N18RendererCanvasCull6CanvasE' were leaked at exit.
ERROR: 1 RID allocations of type 'N16RendererViewport8ViewportE' were leaked at exit.
ERROR: 1 RID allocations of type 'PN13RendererDummy14TextureStorage12DummyTextureE' were leaked at exit.
ERROR: 1 RID allocations of type 'N17RendererSceneCull8ScenarioE' were leaked at exit.
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
at: cleanup (core/object/object.cpp:1918)
ERROR: Resources still in use at exit (run with --verbose for details).
at: clear (core/io/resource.cpp:474)
I assume it is something that I'm doing incorrectly, but wanted to make sure?
In Circle.gd, the drawn color was changed from Color.BLACK
to Color(1, 1, 1, 0)
. This makes the visual update feature no longer work, since the rest of the functionality relies on the drawn circle to have an alpha value of 1.
The other problem in the update to 4.2 is that collision_holder.get_children()
and global_position
raise errors in the thread. This can be fixed by adding global_position, collision_holder.get_children()
to the thread argument list and replacing their respective occurrences in rebuild_collisions_from_geometry
.
I make this issue for posterity, not with the expectation that it will be fixed (it's easy to do ourselves). Thanks for the great code.
Loading the server, then the client, causes both instances to crash for me using 4.0a10, Windows 10
Is it working for you? a10 or a11?
Hi Mitch,
I used your networking tutorial to try to implement networking for my game. And the synchronizer works just fine but I cannot get the multiplayer spawner to do anything at all. Would you be willing to take a look at what I am doing wrong in my game? No one on IRC seems particularly knowledgeable about the MultiplayerSpawner since I get crickets when I ask about how it works.
If you could also type up an explanation of how it works programatically that would be enlightening; but I am grateful for any help you can spare.
Here is the link to my project:
https://code.bkeys.org/Game_Projects/zombie-shooter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.