@@ -340,7 +340,7 @@ static const char *gdscript_function_renames[][2] = {
340
340
{ " get_neighbor_dist" , " get_neighbor_distance" }, // NavigationAgent2D, NavigationAgent3D
341
341
{ " get_network_connected_peers" , " get_peers" }, // Multiplayer API
342
342
{ " get_network_master" , " get_multiplayer_authority" }, // Node
343
- { " get_network_peer" , " get_multiplayer_peer" }, // Multiplayer API
343
+ // { "get_network_peer", "get_multiplayer(). get_multiplayer_peer" }, // Multiplayer API
344
344
{ " get_network_unique_id" , " get_unique_id" }, // Multiplayer API
345
345
{ " get_ok" , " get_ok_button" }, // AcceptDialog
346
346
{ " get_oneshot" , " get_one_shot" }, // AnimatedTexture
@@ -581,6 +581,8 @@ static const char *gdscript_function_renames[][2] = {
581
581
{ " get_shader_param" , " get_shader_parameter" }, // ShaderMaterial
582
582
{ " set_uniform_name" , " set_parameter_name" }, // ParameterRef
583
583
{ " get_uniform_name" , " get_parameter_name" }, // ParameterRef
584
+ { " is_active" , " is_alive" }, // Thread.is_active() removed.
585
+ // { "plus_file", "path_join" }, //String, Checks state this is not a valid function. But I disagree.
584
586
585
587
// Builtin types
586
588
// Remember to add them to builtin_types_excluded_functions variable, because for now this functions cannot be listed
@@ -1271,6 +1273,7 @@ static const char *gdscript_signals_renames[][2] = {
1271
1273
// {"changed","settings_changed"}, // EditorSettings
1272
1274
{ " about_to_show" , " about_to_popup" }, // Popup
1273
1275
{ " button_release" , " button_released" }, // XRController3D
1276
+ { " idle_frame" , " process_frame" },
1274
1277
{ " network_peer_connected" , " peer_connected" }, // MultiplayerAPI
1275
1278
{ " network_peer_disconnected" , " peer_disconnected" }, // MultiplayerAPI
1276
1279
{ " network_peer_packet" , " peer_packet" }, // MultiplayerAPI
@@ -1321,6 +1324,8 @@ static const char *project_settings_renames[][2] = {
1321
1324
{ " audio/output_latency" , " audio/driver/output_latency" },
1322
1325
{ " audio/output_latency.web" , " audio/driver/output_latency.web" },
1323
1326
{ " audio/video_delay_compensation_ms" , " audio/video/video_delay_compensation_ms" },
1327
+ { " display/window/size/width" , " display/window/size/viewport_width" },
1328
+ { " display/window/size/height" , " display/window/size/viewport_height" },
1324
1329
{ " display/window/vsync/use_vsync" , " display/window/vsync/vsync_mode" },
1325
1330
{ " editor/main_run_args" , " editor/run/main_run_args" },
1326
1331
{ " gui/common/swap_ok_cancel" , " gui/common/swap_cancel_ok" },
@@ -3586,6 +3591,39 @@ void ProjectConverter3To4::process_gdscript_line(String &line, const RegExContai
3586
3591
}
3587
3592
}
3588
3593
}
3594
+ // OS.get_real_window_size() -> DisplayServer.window_get_real_size()
3595
+ if (line.contains (" OS.get_real_window_size(" )) {
3596
+ int start = line.find (" OS.get_real_window_size(" );
3597
+ int end = get_end_parenthesis (line.substr (start)) + 1 ;
3598
+ if (end > -1 ) {
3599
+ Vector<String> parts = parse_arguments (line.substr (start, end));
3600
+ if (parts.size () == 0 ) {
3601
+ line = line.substr (0 , start) + " DisplayServer.window_get_real_size()" + line.substr (end + start);
3602
+ }
3603
+ }
3604
+ }
3605
+ // OS.get_screen_size() -> DisplayServer.screen_get_size()
3606
+ if (line.contains (" OS.get_screen_size(" )) {
3607
+ int start = line.find (" OS.get_screen_size(" );
3608
+ int end = get_end_parenthesis (line.substr (start)) + 1 ;
3609
+ if (end > -1 ) {
3610
+ Vector<String> parts = parse_arguments (line.substr (start, end));
3611
+ if (parts.size () == 0 ) {
3612
+ line = line.substr (0 , start) + " DisplayServer.screen_get_size()" + line.substr (end + start);
3613
+ }
3614
+ }
3615
+ }
3616
+ // OS.get_window_size() -> DisplayServer.window_get_size()
3617
+ if (line.contains (" OS.get_window_size(" )) {
3618
+ int start = line.find (" OS.get_window_size(" );
3619
+ int end = get_end_parenthesis (line.substr (start)) + 1 ;
3620
+ if (end > -1 ) {
3621
+ Vector<String> parts = parse_arguments (line.substr (start, end));
3622
+ if (parts.size () == 0 ) {
3623
+ line = line.substr (0 , start) + " DisplayServer.window_get_size()" + line.substr (end + start);
3624
+ }
3625
+ }
3626
+ }
3589
3627
// draw_rect(a,b,c,d,e) -> draw_rect(a,b,c,d)#e) TODOGODOT4 Antialiasing argument is missing
3590
3628
if (line.contains (" draw_rect(" )) {
3591
3629
int start = line.find (" draw_rect(" );
@@ -3658,6 +3696,9 @@ void ProjectConverter3To4::process_gdscript_line(String &line, const RegExContai
3658
3696
if (line.contains (" OS.get_datetime" )) {
3659
3697
line = line.replace (" OS.get_datetime" , " Time.get_datetime_dict_from_system" );
3660
3698
}
3699
+ if (line.contains (" OS.get_system_time_secs()" )) {
3700
+ line = line.replace (" OS.get_system_time_secs()" , " Time.get_time_dict_from_system()['second']" );
3701
+ }
3661
3702
}
3662
3703
3663
3704
void ProjectConverter3To4::process_csharp_line (String &line, const RegExContainer ®_container) {
0 commit comments