74 Commits

Author SHA1 Message Date
Hugo Locurcio
5ab61fbba6 Document the permission requirement on Android on network tutorials 2021-08-12 00:19:23 +02:00
Rodrigo Ceccato de Freitas
9642c94df7 Fix small typo 2021-07-12 22:42:57 +02:00
TechnoPorg
d87fa5e941 Add C# code examples for HTTPClient and HTTPRequest
Ported the existing GDScript code examples to C# for both HTTPClient and HTTPRequest.

(cherry picked from commit 8d78a46f0d)
2021-03-19 13:19:36 +01:00
Divided by Zer0
2875c009fa Adjust HTTPClient example code to not break in HTML5 exports (#4738)
Fixes godotengine/godot#46857

Added supported wait periods after poll() for HTML5
This prevents warning about multiple polls in the same frame
and prevent hanging the game when fetching the body chunks
2021-03-11 12:15:06 +01:00
Rémi Verschelde
2c4db3ba10 Merge branch 'master' into 3.2 2020-08-11 13:30:27 +02:00
Meriipu
f4aeaac2e2 high-level networking: remove bad practice; bomber demo more explicit
Removed an instance of a bad practice (letting the clients pass their
own rpc caller id to the server and having the server trust it), as
well as making the server the only one able to unpause the game.

The first of the two is a fairly harmful habit to teach, especially
in a first introduction.

Also made the bomber demo way more explicit (and verbose) by avoiding
as many ambiguous pronouns as possible, instead being quite explicit
about which nodes or methods are being referred to at any time, and
also some intermingled motivations/reminders for why these steps are
being taken.
2020-06-25 10:44:17 +02:00
Rémi Verschelde
10f20b00cb Merge branch 'master' into 3.2 2020-05-20 15:08:42 +02:00
Max Hilbrunner
c302e96507 Update tutorials/networking/high_level_multiplayer.rst 2020-05-20 11:24:29 +02:00
Hugo Locurcio
ec77f48d5e Add documentation about exporting for dedicated servers
This also documents how to build dedicated server binaries.
The part about compiling will need to be updated for Godot 4.0
once the server platform is usable again.

This also removes prompts before commands so that they can be
copy-pasted by triple-clicking without selecting the prompt.
2020-05-19 21:52:23 +02:00
Hugo Locurcio
4f6fdbc710 Fix various spacing and capitalization issues 2020-05-18 09:54:32 +02:00
Hugo Locurcio
d494d19dac Remove trailing whitespace and irregular whitespace 2020-05-17 00:26:19 +02:00
vetu11
b04225c997 fix-3511 2020-05-10 10:52:11 +02:00
Rémi Verschelde
31a288783c Merge branch 'master' into 3.2 2020-05-04 09:08:34 +02:00
Hugo Locurcio
726fe7ca1f Use network_peer as a property instead of using the setter method 2020-05-02 01:12:09 +02:00
Hugo Locurcio
30230b2971 Clarify that NetworkedMultiplayerPeer cannot be extended via GDScript
See #3460.
2020-04-28 09:39:20 +02:00
Rémi Verschelde
0a9fc75dc0 Merge branch 'master' into 3.2 2020-04-27 12:18:11 +02:00
Yuri Sizov
135b33b768 Replace British spelling and fix various typos 2020-04-27 12:18:52 +03:00
Rémi Verschelde
997fc68e78 Merge branch 'master' into 3.2 2020-04-17 19:09:14 +02:00
Rémi Verschelde
48faee9f73 Merge branch 'master' into 3.2 2020-04-17 19:09:11 +02:00
Hugo Locurcio
046215542d Fix some typos and grammar mistakes found using LanguageTool 2020-04-16 23:07:05 +02:00
nolike
8e7c82904f Links to Gaffer On Games blog (#3388)
Gaffer has relaunched his blog. No need to keep links to web archive anymore. 
I propose substitute links to updated blog.
2020-04-15 21:23:54 +02:00
Yuri Sizov
4acf7a6563 Fix syntax highlighting for various languages (#3387) 2020-04-15 16:33:20 +02:00
Yuri Sizov
075acc61b0 Replace Pool*Arrays with Packed*Arrays in tutorials and references 2020-03-17 11:15:34 +03:00
Jummit
fa93ed5505 remove image in networking docs
and mention some more multiplayer peers
2020-03-13 13:05:12 +01:00
Antonio Marcum
52026c1a0a Add a state design pattern tutorial (#2710) 2020-03-03 22:32:39 +01:00
Mark Spiezio
9a789fc38d Minor Documentation Clarifications (#3199)
Clarify PEM acronym.
The "public key" goes to the .crt file, not "public pair".
2020-02-23 19:09:23 +01:00
follower
1b0021662f Fix inline code formatting that used "" not "`".
Restructured text uses double back-ticks to indicate inline monospace code formatting (a.k.a "verbatim"). 

(via <https://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html#inline-markup-and-special-characters-e-g-bold-italic-verbatim>)

Without this change the text is rendered as italic rather than monospaced on the [docs site](https://godot.readthedocs.io/en/3.2/tutorials/networking/high_level_multiplayer.html).
2020-02-14 00:57:48 +13:00
follower
74ec3b46ca Add mono-space code formatting in text. 2020-02-13 22:33:14 +13:00
Koyper
1add36112d bug fixes in main.gd chat _ready
Added missing yield to main.gd and updated p1/p2 to get_path
2020-01-23 13:46:23 -06:00
Enhex
a819cb9d45 fixed variable name 2019-12-27 21:33:21 +02:00
Rémi Verschelde
95355f8e43 Merge pull request #2905 from nekomatata/code-tags
Fixed code tags for true/false/null and a few property references
2019-11-02 17:15:05 +01:00
Juozas Rastenis
730b4d6294 Fixed example that was not working 2019-11-02 15:29:04 +01:00
PouleyKetchoupp
854185495c Fixed code tags for true/false/null and a few property references 2019-11-02 13:09:14 +01:00
frido
6a6464aea1 Fix various typos and grammar issues in tutorial articles 2019-10-09 23:56:08 +02:00
follower
c867b5bd29 Typo fix: "connecitons" -> "connections" 2019-08-23 16:39:54 +12:00
Fabio Alessandrelli
ca1ce9c710 Add minimal websocket tutorial. 2019-07-28 15:28:39 +02:00
Fabio Alessandrelli
d5e498ed0c Use p2p in high level multiplayer player exchange.
We used to broadcast player info on connect and have the server relay it
to other clients.
With this approach, each peer (including server) sends its own info once
to other peers as soon as they connects.
When a new player connects, it is notified of all the already connected
peers by the `network_peer_connected` signal.
Any already connected peer is also notified of the newly connected peer
by the same signal.
2019-07-10 11:54:54 +02:00
Fabio Alessandrelli
08b390fca7 Add WebRTC tutorial (#2534) 2019-06-16 21:12:59 +02:00
zEh-
9410d71a80 fix: there is get_network_peer on SceneTree 2019-04-24 14:54:47 +02:00
Rémi Verschelde
5b2aaf8d41 Optimize PNGs with optipng
Using `find -name "*.png" -exec optipng \;` and optipng 0.7.7
2019-01-26 22:10:03 +01:00
Rémi Verschelde
721ad728fd Merge pull request #2155 from eska014/html5-3.1
Update web platform docs
2019-01-26 21:04:33 +01:00
Fabio Alessandrelli
2dcaaf5666 Fix High Level Multiplayer tutorial listing.
Was not properly setting the network_master for remote peers, only for
the local one, causing the clients to go out of sync
2019-01-25 10:47:08 +01:00
Leon Krause
7fdc28bbcc Fix HTTPClient script for HTML5 platform 2019-01-23 23:23:24 +01:00
Rémi Verschelde
44ae4b72b1 Merge pull request #2140 from corrigentia/patch-118
Add a missing comma to ssl_certificates
2019-01-16 22:54:50 +01:00
Rémi Verschelde
8fd29bf83b Merge pull request #2139 from corrigentia/patch-117
Tweak http_client_class
2019-01-16 22:54:36 +01:00
corrigentia
8979159202 Add a missing comma to ssl_certificates
Add a missing comma to ssl_certificates.
2019-01-15 19:28:08 +02:00
corrigentia
0366cac0fb Tweak http_client_class
Fix punctuation, grammar and GDScript compliance in http_client_class.
2019-01-15 19:12:17 +02:00
corrigentia
0b9895df8f Fix punctuation and spelling in http_request_class
Fix punctuation and spelling in http_request_class.
2019-01-15 18:30:42 +02:00
corrigentia
ebd232d45d Tweak high_level_multiplayer
Fix punctuation and grammar in high_level_multiplayer. Distinguish between function and method; ensure consistency.
2019-01-15 14:27:07 +02:00
Rémi Verschelde
a1af0dfc13 Adapt tutorial hyperlinks after godotengine/godot#24640 2019-01-07 11:43:18 +01:00