Commit Graph

79 Commits

Author SHA1 Message Date
e060783202 Fix mistake. 2022-07-27 19:35:50 +02:00
Hugo Locurcio
3395a3a727 Improve error messages when creating Images from code
The rationale behind the expected number of bytes is now displayed
in clear (width, height, format, number of mipmaps expected if any).

(cherry picked from commit 18e9e6a81a0aef27bbb78d3e52d52a4b009457bf)
2022-07-27 19:11:16 +02:00
kobewi
e4133904a2 Move Display settings higher in the list
(cherry picked from commit 739242dd04d16f85d542bcf9a29aa44402410481)
2022-07-27 18:44:38 +02:00
Haoyu Qiu
3886161d4e Fix invalid memory usage when using Image.convert
(cherry picked from commit 34c1a2beaa8ae92a445b85458d3681f60cd5216f)
2022-07-27 18:42:27 +02:00
24eccc4281 Ported: Fix warnings found by Emscripten 3.1.10
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and
`-Wliteral-range` warnings.
- akien-mga
5e693b6d84
2022-07-27 18:39:35 +02:00
Nicholas Huelin
c1010f7d1b Fix inconsistent naming in Time
(cherry picked from commit 8409d92282e71f8ad479f48d6b1f6d52eb73ae39)
2022-07-27 18:28:47 +02:00
Mario Liebisch
e1be17e581 Increase line counter when parsing comments
(cherry picked from commit bf708e72dc5b6de7f2b0e8f433f17ba2e3064179)
2022-07-27 18:27:16 +02:00
a8fae729d2 Fix typos in binds. 2022-07-27 15:46:41 +02:00
48eee02c1d Ported: Add search methods for pool arrays
* has()
* count()
* find()
* rfind()
- timothyqiu
3d1644f7c3
2022-07-27 15:44:10 +02:00
Hugo Locurcio
f7585bea99 Rename profiler "Idle Time" to "Process Time"
References to "idle time" are progressively being replaced by
"process time" throughout the engine to avoid confusion.

This also changes some debug prints to be printed only when verbose
mode is enabled (like in `master`).
2022-07-27 15:08:06 +02:00
smix8
62518e9a95 Allow AStar/AStar2D zero point weight
Allow AStar/AStar2D zero point weight.

Limit was set to 1 which seemed like an arbitrary value as lower values down to zero can be useful for common gameplay navigation elements like teleports.
2022-07-27 15:01:51 +02:00
850a84584d ported: Add OS::is_process_running function.
Adds the is_process_running function to the native OS class and exposes it to script.
This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function.
Documentation is updated to reflect new API function. - mdavisprog
53fb0440d3
I did change it a bit.
2022-07-27 14:46:53 +02:00
lawnjelly
da628411d2 Physics Interpolation - Flush transforms after physics tick
Leftover transforms from the physics tick were being flushed during idle, which was causing problems for physics interpolation.

This PR flushes the transforms at the end of the physics tick when physics interpolation is active.
2022-07-27 14:14:36 +02:00
Haoyu Qiu
b33251a6f5 Fix left aligned integer sign in string formatting 2022-07-27 13:57:44 +02:00
b26a1cd3b4 Ported: [3.x] Improve embedded PCK loading and exporting. - bruvzg
bea7c9be5d
2022-07-27 09:33:39 +02:00
kobewi
15a58cabc0 Expose move_to_trash()
(cherry picked from commit b80e52f04899d28ea191ce3eaad9fdb76bc11b52)
2022-07-27 09:04:19 +02:00
kleonc
78aff244f1 Fix Image.blit_rect/blend_rect() for negative p_dest point
(cherry picked from commit 4038bc0c369578c7483a5b1eae31e1ab4f35db34)
2022-07-27 09:03:55 +02:00
laws65
1ec045e2f1 Proper validation of negative values in datetime strings and datetime dicts
(cherry picked from commit cf9fc0b93609abd52e0f9fe8cd425fef012b6b46)
2022-07-27 01:25:11 +02:00
Oğuzhan Eroğlu
49a98d13a0 Quick fix: Crash when parsing invalid datetime string #60189
(cherry picked from commit 2b8eb126b4dfaa6b3217adef96dca5ed03708de1)
2022-07-27 01:24:52 +02:00
d1108dc8bc Ported: Implement Scene Unique Nodes - KoBeWi
e1c74ae83f
2022-07-27 00:45:48 +02:00
f3ec84fa78 Ported: Add a method for obtaining display cutouts on Android - madmiraal
ec2270b88f
2022-07-27 00:21:20 +02:00
Haoyu Qiu
aed26cc13b Bind Semaphore.try_wait() 2022-07-26 15:55:06 +02:00
50ed908929 Ported: Add fill method to Array and PoolArrays - timothyqiu, DarknessCatt
77b6f7595a
2022-07-26 15:49:30 +02:00
a2cb12fd07 Ported: Improve locking safety for RID handles builds. Additional locks are added. This is primarily to cover a potential race condition where the pool is resized from another thread during a get operation. - lawnjelly
130cc36a88
2022-07-26 15:34:36 +02:00
309055ce7f Renamed OAHashMap's const lookup_ptr method to lookup_ptr_const. Also added back const qualifier to the other one. 2022-07-26 15:33:36 +02:00
1e0353e179 Alos add a const version of lookup_ptr for OAHashMap, similar to 62e9044837 . 2022-07-26 15:09:11 +02:00
AndreaCatania
dacb9e650f Backported the Vector function to_byte_array and slice 2022-07-26 15:05:54 +02:00
RedHeadphone
fe77fedbbf validate input in Time.get_datetime_string_from_dict()
format fix

better fix to handle ERR_FAIL_COND_V_MSG return data type

(cherry picked from commit 7e35af3dc32870dcbbba95c13ccf6273ed7357ea)
2022-07-26 15:00:13 +02:00
kobewi
5467eddae8 Add optional 'default' argument to get_meta()
(cherry picked from commit 3eb7fc4bfd376bc27ea3313ccd1da4679c48f4cb)
2022-07-26 11:50:20 +02:00
Bartłomiej T. Listwon
ac5e352088 Remove get_data() from CowData 2022-07-25 18:49:24 +02:00
keptsecret
9ddf25e7ba fix unable to change directory in user access mode 2022-07-25 18:10:57 +02:00
Haoyu Qiu
10eba686fb Fix crash when exporting projects with shared libraries
(cherry picked from commit 680bcef82546fa0f50b431f20423b62621d1c5ac)
2022-07-25 17:43:42 +02:00
Hugo Locurcio
26dedeab0b Increase the maximum number of concurrent DNS queries from 32 to 256
This makes the following error message less likely to be printed
when performing many concurrent HTTP requests:

    Condition ' resolving == IP::RESOLVER_INVALID_ID ' is true. returned: ERR_BUG
2022-07-25 17:36:02 +02:00
fba03491ea Ported get_datetime_from_unix_time, and get_unix_time_from_datetime to OS from OS's binder class. 2022-07-16 00:22:17 +02:00
d618980dc9 Added 2 new helper methods to Color. 2022-07-15 17:08:48 +02:00
b8d602f847 Added a new helper method to DirAccess. 2022-07-03 17:29:52 +02:00
fa2ac74a7c Added 2 helper methods to Math. 2022-07-02 21:55:46 +02:00
02af86d362 Fix the logic of String::path_clean_end_slash(). 2022-07-02 19:55:18 +02:00
2a9b32847f Ported a few helper methods from my String implementation in rcpp_framework. 2022-06-26 03:38:28 +02:00
aa5a29444a Added find() and clear() methods to PoolVector. Also made sure they are callable by scripts (alongside contains). 2022-06-21 00:34:02 +02:00
667f466b9c Fix typo. 2022-06-11 23:01:00 +02:00
f0f41218df Cleaned up the log macros. 2022-06-11 18:07:21 +02:00
f911a9b363 Implement all the logging methods. 2022-06-11 18:01:27 +02:00
f3373e0fa4 Removed unnecessary methods from PLogger's bind class, and added properties. 2022-06-11 17:51:49 +02:00
b0ebe103f7 Added the new logging stuff to the build, and made everything compile. 2022-06-11 17:46:12 +02:00
fb125bac9d Binder class for the logger. 2022-06-11 17:15:51 +02:00
7d60706249 Logger API cleanup. 2022-06-11 16:55:09 +02:00
b52dd560ce Implemented the LoggerBackend. 2022-06-11 16:54:55 +02:00
26f0c17732 Initial cleanup for the logger. 2022-06-11 15:27:52 +02:00
9ceba2ce3b Added a logger backend skeleton class. 2022-06-11 15:27:33 +02:00