GGPO in Godot tutorial. Project structure and code analysis | Part 2 (outdated)

preview_player
Показать описание
I cant believe that I actually made a 1 hour tutorial on anything. anyways good luck on your proejcts and I hope this video helped.

Timestamps
0:00 - intro
0:10 - recap
0:40 - setting up the tutorial source
06:12 - structure of a game engine
8:55 - more in-depth structure of GGPO
18:45 - start of code analysis
33:49 - saving your gamestate
42:52 - loadgame state and rolling back
46:16 - Sync Test
54:13 - Adding connections
1:01:30 - checking ping and other information
1:03:30 - end
Рекомендации по теме
Комментарии
Автор

This is such a great tutorial, you explained from start to finish. I really wish there was a tutorial on this for the Unreal engine GGPO plug-in

DevNohara
Автор

I think you should show this in godot con coming this July

drac
Автор

Would you mind updating, or pointing me toward a more updated walk through? As far as I can tell. You're the only person out here explaining GGPO. Much appreciated, dude. I have a hard time learning from text books.

FlockofSmeagles
Автор

this is awesome! ill definately be using this in some of my own projects!

uzairgangat
Автор

incredible stuff. looking at your tutorial base to analyze it myself rn, will probably have to rewatch both tutorials too. what project types do you think this wouldn't work well on?

Pivot___
Автор

Thank you, I've been looking for something like this for so long. What would you do if you wanted to pass in multiple inputs for a player, like one for the joystick and another for a button?

happyburgerman
Автор

Could you quickly go over the differences between your source code for the godot_ggpo module and the FlutterTal one? Don't think you say in the vid

Might be worth making an actual fork on GitHub, also

MenacingMecha
Автор

I made some small mistakes in the project folder that I have already fixed in the source repo. An example of this would be me using the addplayer function 3 times in main.gd instead of 2 as shown in the video. So if you got confused by that just letting you it's fixed.You also might have to disable sync logs because that creates a huge folder full of 1kb logs of nothing. Ok now I can go to be cya guys.

Edit:

pecefulpro
Автор

Hey, i can't seem to get the exported project to work. It works fine when i run it from debug mode in godot but when i export the project and try to run the exe i get this error.

SCRIPT ERROR: GDScript::load_byte_code: Parse Error: The identifier "GGPO isn't declared in the current scope.
At: res://main:gdc:32
ERROR: load_byte_code: Method failed. Returning: ERR_PARSE_ERROR
At:
ERROR: Cannot load byte code from file 'res://main.gdc'.
At:
ERROR: Failed loading resource: res://main.gdc. Make sure resources have been imported by opening the project in the editor at least once.
At:
ERROR: poll: res://main.tscn:3 - Parse Error: [ext_resource] referenced nonexistent resource at res://main.gd
At:
ERROR: Failed to load resource 'res://main.tscn'.
At:
ERROR: Failed loading resource: res://main.tscn. Make sure resources have been imported by opening the project in the editor at least once.
At:
ERROR: Failed loading scene: res://main.tscn
AT: main/main.cpp:1944

megaolafur