summaryrefslogtreecommitdiffstats
path: root/core/io
Commit message (Collapse)AuthorAgeFilesLines
* Remove more deprecated methods and codeRémi Verschelde2020-02-133-79/+2
|
* Merge pull request #36144 from akien-mga/remove-deprecated-allow-decodingRémi Verschelde2020-02-133-24/+5
|\ | | | | Remove deprecated PacketPeer allow_object_decoding
| * Remove deprecated PacketPeer allow_object_decodingRémi Verschelde2020-02-133-24/+5
| | | | | | | | | | | | | | | | It was added for 3.2 in #27485 to preserve backwards compatibility, but we can now remove it. It is still needed in MultiplayerAPI as it's the only way to control it for the internal put_var calls.
* | Remove deprecated sync and slave networking keywordsRémi Verschelde2020-02-132-4/+0
|/ | | | | | Those keywords were deprecated for 3.1 in #22087. Also fix token name for `TK_REMOTE`, should be "remote" like the keyword.
* ObjectID converted to a structure, fixes many bugs where used incorrectly as ↵Juan Linietsky2020-02-122-6/+4
| | | | 32 bits.
* Optmized data sent during RPC and RSet calls.Andrea Catania2020-02-122-98/+422
| | | | | | | | | | - Now is sent the method ID rather the full function name. - The passed IDs (Node and Method) are compressed so to use less possible space. - The variant (INT and BOOL) is now encoded and compressed so to use much less data. - Optimized RPCMode retrieval for GDScript functions. - Added checksum to assert the methods are the same across peers. This work has been kindly sponsored by IMVU.
* Merge pull request #36095 from timothyqiu/corrupted-resourceRémi Verschelde2020-02-112-16/+33
|\ | | | | Fixes crash when resource file is corrupted
| * Fixes crash when resource file is corruptedHaoyu Qiu2020-02-112-16/+33
| |
* | GIProbes working.Juan Linietsky2020-02-112-2/+3
| |
* | Rewritten StreamTexture for better code reuse, added basis universal supportJuan Linietsky2020-02-111-1/+2
| |
* | Several fixes to 3D rendering, and multimesh implementation.Juan Linietsky2020-02-111-0/+1
| |
* | Added a spinlock template as well as a thread work pool class.Juan Linietsky2020-02-113-8/+8
|/ | | | Also, optimized shader compilation to happen on threads.
* Merge pull request #36072 from RandomShaper/imvu/configfile_parseRémi Verschelde2020-02-112-4/+25
|\ | | | | Add ConfigFile::parse()
| * Add ConfigFile::parse()Pedro J. Estébanez2020-02-102-4/+25
| |
* | Merge pull request #35301 from Calinou/improve-console-error-loggingRémi Verschelde2020-02-101-6/+6
|\ \ | |/ |/| Improve the console error logging appearance
| * Improve the console error logging appearanceHugo Locurcio2020-01-191-6/+6
| | | | | | | | | | | | | | This makes secondary information less visually prominent to improve overall readability. Various loggers were also tweaked for consistency.
* | Remove duplicate WARN_PRINT macro.Marcel Admiraal2020-02-052-2/+2
| |
* | Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-057-17/+17
| |
* | Fixes leak when importing zip in AssetLibHaoyu Qiu2020-01-221-0/+1
| |
* | Merge pull request #35408 from Faless/ws/fix_packet_countRémi Verschelde2020-01-211-0/+1
|\ \ | | | | | | Fix MultiplayerAPI crash when peer implementation misbehave.
| * | Fix MultiplayerAPI crash when peer impl misbehave.Fabio Alessandrelli2020-01-211-0/+1
| |/ | | | | | | | | Also fix WebSocketMultiplayer::get_available_packet_count() return value when peer is not configured to use the multiplayer API.
* | Merge pull request #35345 from timothyqiu/pck-packer-leakRémi Verschelde2020-01-201-0/+4
|\ \ | | | | | | Fixes leak when calling PCKPacker::pck_start multiple times
| * | Fixes leak when pck_start multiple timesHaoyu Qiu2020-01-201-0/+4
| | |
* | | Fixes XMLParser leak when open multiple timesHaoyu Qiu2020-01-201-0/+8
|/ /
* / PacketPeer use heap buffer for var encoding.Fabio Alessandrelli2020-01-192-5/+34
|/ | | | | | | Used to allocate in stack (via alloca) which causes crashes when trying to encode big variables. The buffer grows as needed up to `encode_buffer_max_size` (which is 8MiB by default) and always in power of 2.
* GDScript: Validate object instance on `is` operationGeorge Marques2020-01-091-0/+12
| | | | | | | | Avoids crashes on debug mode. Instead it now breaks the execution and show the error in-editor. Will still crash on release. Also add a similar check to Marshalls to ensure the debugger doesn't crash when trying to serialize the invalid instance.
* Check if resource exists before loadingTomasz Chabora2020-01-081-0/+5
|
* PCK: Set VERSION_PATCH in header, factor out header magicJoost Heitbrink2020-01-063-14/+16
| | | | | | | | | | | | Unify pack file version and magic to avoid hardcoded literals. `version.py` now always includes `patch` even for the first release in a new stable branch (e.g. 3.2). The public name stays without the patch number, but `Engine.get_version_info()` already included `patch == 0`, and we can remove some extra handling of undefined `VERSION_PATCH` this way. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* MultiplayerAPI: Fix disconnect errors when passing invalid peerRémi Verschelde2020-01-031-2/+3
| | | | Fixes #34634.
* Update copyright statements to 2020Rémi Verschelde2020-01-0167-134/+134
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Fix buffers size calculation in PacketPeerStream.Fabio Alessandrelli2019-12-221-1/+1
| | | | | | | | | | | | | | | | | The calculation used to be wrong when exactly at a power of 2. `nearest_shift` always return the "next" power of 2 `nearest_shift(4) == 3 # 2^3 = 8`. On the other hand `next_power_of_2` returns the exact value if that value is a power of 2 (i.e. `next_power_of_2(4) == 4`). I.e. : ``` WARN_PRINT(itos(next_power_of_2(4)) + " " + itos(1 << nearest_shift(4))); // WARNING: ... : 4 8 ``` Is this by design?
* UDP sockets broadcast is now disabled by default.Fabio Alessandrelli2019-12-142-0/+13
| | | | | Add method `set_broadcast_enabled` to allow enabling broadcast via GDScript.
* NetSocket set_broadcast_enabled returns Error enumFabio Alessandrelli2019-12-101-1/+1
|
* Make some arguments in PCKPacker methods optionalHugo Locurcio2019-12-072-3/+3
| | | | | Those arguments aren't required for most common use cases, so making them optional should help with code readability.
* ResourceLoader: Add language code matching for localized resourcesRémi Verschelde2019-12-041-15/+38
| | | | | | | | Near matching was not implemented like in TranslationServer, so a resource remapped for 'ru' (but not 'ru_RU') would not be used as fallback if the system locale was 'ru_RU'. Fixes #34058.
* Merge pull request #33640 from mewin/http_head_requestFabio Alessandrelli2019-12-012-0/+11
|\ | | | | Fix HTTP HEAD requests
| * do not wait for response body when making a HEAD requestPatrick Wuttke2019-11-262-0/+11
| |
* | Merge pull request #33862 from Faless/net/http_request_chunk_sizeRémi Verschelde2019-11-252-0/+7
|\ \ | | | | | | Add download_chunk_size property to HTTPRequest.
| * | Add download_chunk_size property to HTTPRequest.Fabio Alessandrelli2019-11-242-0/+7
| | | | | | | | | | | | | | | | | | This allows setting the `read_chunk_size` of the internal HTTPClient. This is important to reduce the allocation overhead and number of file writes when downloading large files, allowing for better download speed.
* | | Merge pull request #33652 from Black-Cat/http-client-fixFabio Alessandrelli2019-11-231-0/+2
|\ \ \ | |/ / |/| | Fix HTTPClient::poll crash when connection set to null
| * | Fix HTTPClient::poll crash when connection set to nullArtem Burjachenko2019-11-231-0/+2
| |/
* / Fix some overflows and unitialized variablesRafał Mikrut2019-11-201-0/+1
|/
* MultiplayerAPI cleanup cache when peer disconnectsFabio Alessandrelli2019-10-251-1/+10
| | | | | We used to only cleanup path_get_cache and not path_send_cache causing issues when a peer disconnects and then reconnects with the same ID.
* Merge pull request #32426 from gianllucah/masterRémi Verschelde2019-10-082-0/+9
|\ | | | | Option to erase a section key in ConfigFile
| * Added a method to erase section key in ConfigFileGianlluca2019-10-072-0/+9
| |
* | Fix small memory leak in PackedSourcePCK::try_open_packqarmin2019-10-031-2/+14
|/
* Merge pull request #32228 from damianday/patch-1Fabio Alessandrelli2019-09-261-10/+1
|\ | | | | TCP is_connected_to_host comparison error
| * Update stream_peer_tcp.cppDamian Day2019-09-251-10/+1
| |
| * TCP is_connected_to_host comparison errorDamian Day2019-09-211-1/+1
| | | | | | We was returning true when the state was not connected, so we would never return true when the state was connected.
* | Merge pull request #32291 from Dragoncraft89/add_load_resource_flagRémi Verschelde2019-09-254-13/+14
|\ \ | | | | | | Add flag to control the replacement of files by ProjectSettings.load_resource_pack