@@ -65,7 +65,7 @@ bool GDExtensionCompatHashes::get_legacy_hashes(const StringName &p_class, const
65
65
if (p_check_valid) {
66
66
MethodBind *mb = ClassDB::get_method_with_compatibility (p_class, p_method, mapping.current_hash );
67
67
if (!mb) {
68
- WARN_PRINT (vformat (" Compatibility hash %d mapped to non-existent hash %d. Please update gdextension_compat_hashes.cpp." , mapping.legacy_hash , mapping.current_hash ));
68
+ WARN_PRINT (vformat (" Compatibility hash %d for %s::%s() mapped to non-existent hash %d. Please update gdextension_compat_hashes.cpp." , mapping.legacy_hash , p_class, p_method , mapping.current_hash ));
69
69
continue ;
70
70
}
71
71
}
@@ -107,7 +107,11 @@ void GDExtensionCompatHashes::initialize() {
107
107
{ " add_track" , 2393815928 , 3843682357 },
108
108
{ " track_insert_key" , 1985425300 , 808952278 },
109
109
{ " track_find_key" , 3898229885 , 3245197284 },
110
+ #ifdef REAL_T_IS_DOUBLE
111
+ { " bezier_track_insert_key" , 1057544502 , 3767441357 },
112
+ #else
110
113
{ " bezier_track_insert_key" , 1057544502 , 3656773645 },
114
+ #endif
111
115
{ " bezier_track_set_key_in_handle" , 1028302688 , 1719223284 },
112
116
{ " bezier_track_set_key_out_handle" , 1028302688 , 1719223284 },
113
117
{ " audio_track_insert_key" , 3489962123 , 4021027286 },
@@ -125,10 +129,18 @@ void GDExtensionCompatHashes::initialize() {
125
129
{ " add_triangle" , 642454959 , 753017335 },
126
130
});
127
131
mappings.insert (" AnimationNodeBlendTree" , {
132
+ #ifdef REAL_T_IS_DOUBLE
133
+ { " add_node" , 2055804584 , 1407702499 },
134
+ #else
128
135
{ " add_node" , 2055804584 , 1980270704 },
136
+ #endif
129
137
});
130
138
mappings.insert (" AnimationNodeStateMachine" , {
139
+ #ifdef REAL_T_IS_DOUBLE
140
+ { " add_node" , 2055804584 , 1407702499 },
141
+ #else
131
142
{ " add_node" , 2055804584 , 1980270704 },
143
+ #endif
132
144
});
133
145
mappings.insert (" AnimationNodeStateMachinePlayback" , {
134
146
{ " travel" , 3683006648 , 3823612587 },
@@ -177,8 +189,13 @@ void GDExtensionCompatHashes::initialize() {
177
189
{ " draw_multiline_string_outline" , 3717870722 , 1912318525 },
178
190
{ " draw_char" , 2329089032 , 3339793283 },
179
191
{ " draw_char_outline" , 419453826 , 3302344391 },
192
+ #ifdef REAL_T_IS_DOUBLE
193
+ { " draw_mesh" , 1634855856 , 4036154158 },
194
+ { " draw_set_transform" , 3283884939 , 156553079 },
195
+ #else
180
196
{ " draw_mesh" , 1634855856 , 153818295 },
181
197
{ " draw_set_transform" , 3283884939 , 288975085 },
198
+ #endif
182
199
{ " draw_animation_slice" , 2295343543 , 3112831842 },
183
200
});
184
201
mappings.insert (" CodeEdit" , {
@@ -210,10 +227,18 @@ void GDExtensionCompatHashes::initialize() {
210
227
{ " add_point" , 2766148617 , 434072736 },
211
228
});
212
229
mappings.insert (" Curve2D" , {
230
+ #ifdef REAL_T_IS_DOUBLE
231
+ { " add_point" , 529706502 , 3343370600 },
232
+ #else
213
233
{ " add_point" , 2437345566 , 4175465202 },
234
+ #endif
214
235
});
215
236
mappings.insert (" Curve3D" , {
237
+ #ifdef REAL_T_IS_DOUBLE
238
+ { " add_point" , 3544159631 , 917388502 },
239
+ #else
216
240
{ " add_point" , 3836314258 , 2931053748 },
241
+ #endif
217
242
});
218
243
mappings.insert (" DirAccess" , {
219
244
{ " list_dir_begin" , 2018049411 , 2610976713 },
@@ -253,8 +278,13 @@ void GDExtensionCompatHashes::initialize() {
253
278
{ " window_set_ime_active" , 450484987 , 1661950165 },
254
279
{ " window_set_ime_position" , 3614040015 , 2019273902 },
255
280
{ " window_set_vsync_mode" , 1708924624 , 2179333492 },
256
- { " virtual_keyboard_show" , 860410478 , 3042891259 },
281
+ #ifdef REAL_T_IS_DOUBLE
282
+ { " cursor_set_custom_image" , 1358907026 , 4163678968 },
283
+ { " virtual_keyboard_show" , 384539973 , 1323934605 },
284
+ #else
257
285
{ " cursor_set_custom_image" , 1358907026 , 1816663697 },
286
+ { " virtual_keyboard_show" , 860410478 , 3042891259 },
287
+ #endif
258
288
});
259
289
mappings.insert (" ENetConnection" , {
260
290
{ " create_host_bound" , 866250949 , 1515002313 },
@@ -289,7 +319,11 @@ void GDExtensionCompatHashes::initialize() {
289
319
});
290
320
mappings.insert (" EditorNode3DGizmo" , {
291
321
{ " add_lines" , 302451090 , 2910971437 },
322
+ #ifdef REAL_T_IS_DOUBLE
323
+ { " add_mesh" , 3332776472 , 2161761131 },
324
+ #else
292
325
{ " add_mesh" , 1868867708 , 1579955111 },
326
+ #endif
293
327
{ " add_unscaled_billboard" , 3719733075 , 520007164 },
294
328
});
295
329
mappings.insert (" EditorNode3DGizmoPlugin" , {
@@ -316,7 +350,6 @@ void GDExtensionCompatHashes::initialize() {
316
350
{ " add_filter" , 233059325 , 3388804757 },
317
351
});
318
352
mappings.insert (" Font" , {
319
- { " find_variation" , 1222433716 , 3344325384 },
320
353
{ " get_string_size" , 3678918099 , 1868866121 },
321
354
{ " get_multiline_string_size" , 2427690650 , 519636710 },
322
355
{ " draw_string" , 2565402639 , 1983721962 },
@@ -325,8 +358,13 @@ void GDExtensionCompatHashes::initialize() {
325
358
{ " draw_multiline_string_outline" , 1649790182 , 3206388178 },
326
359
{ " draw_char" , 1462476057 , 3815617597 },
327
360
{ " draw_char_outline" , 4161008124 , 209525354 },
361
+ #ifdef REAL_T_IS_DOUBLE
362
+ { " find_variation" , 625117670 , 2196349508 },
363
+ #else
364
+ { " find_variation" , 1222433716 , 3344325384 },
328
365
// Pre-existing compatibility hash.
329
366
{ " find_variation" , 1149405976 , 1851767612 },
367
+ #endif
330
368
});
331
369
mappings.insert (" GLTFDocument" , {
332
370
{ " append_from_file" , 1862991421 , 866380864 },
@@ -380,11 +418,19 @@ void GDExtensionCompatHashes::initialize() {
380
418
{ " get_vector" , 1517139831 , 2479607902 },
381
419
{ " start_joy_vibration" , 1890603622 , 2576575033 },
382
420
{ " action_press" , 573731101 , 1713091165 },
421
+ #ifdef REAL_T_IS_DOUBLE
422
+ { " set_custom_mouse_cursor" , 3489634142 , 1277868338 },
423
+ #else
383
424
{ " set_custom_mouse_cursor" , 3489634142 , 703945977 },
425
+ #endif
384
426
});
385
427
mappings.insert (" InputEvent" , {
386
428
{ " is_match" , 3392494811 , 1754951977 },
429
+ #ifdef REAL_T_IS_DOUBLE
430
+ { " xformed_by" , 2747409789 , 3242949850 },
431
+ #else
387
432
{ " xformed_by" , 2747409789 , 1282766827 },
433
+ #endif
388
434
});
389
435
mappings.insert (" InputMap" , {
390
436
{ " add_action" , 573731101 , 4100757082 },
@@ -429,8 +475,13 @@ void GDExtensionCompatHashes::initialize() {
429
475
{ " set_multiplayer_authority" , 4023243586 , 972357352 },
430
476
});
431
477
mappings.insert (" Node3D" , {
478
+ #ifdef REAL_T_IS_DOUBLE
479
+ { " look_at" , 136915519 , 819337406 },
480
+ { " look_at_from_position" , 4067663783 , 1809580162 },
481
+ #else
432
482
{ " look_at" , 3123400617 , 2882425029 },
433
483
{ " look_at_from_position" , 4067663783 , 2086826090 },
484
+ #endif
434
485
});
435
486
mappings.insert (" Noise" , {
436
487
{ " get_image" , 2569233413 , 3180683109 },
@@ -470,7 +521,11 @@ void GDExtensionCompatHashes::initialize() {
470
521
{ " add_custom_monitor" , 2865980031 , 4099036814 },
471
522
});
472
523
mappings.insert (" PhysicalBone3D" , {
524
+ #ifdef REAL_T_IS_DOUBLE
525
+ { " apply_impulse" , 1002852006 , 2485728502 },
526
+ #else
473
527
{ " apply_impulse" , 1002852006 , 2754756483 },
528
+ #endif
474
529
});
475
530
mappings.insert (" PhysicsBody2D" , {
476
531
{ " move_and_collide" , 1529961754 , 3681923724 },
@@ -481,14 +536,26 @@ void GDExtensionCompatHashes::initialize() {
481
536
{ " test_move" , 680299713 , 2481691619 },
482
537
});
483
538
mappings.insert (" PhysicsDirectBodyState2D" , {
539
+ #ifdef REAL_T_IS_DOUBLE
540
+ { " apply_impulse" , 496058220 , 1271588277 },
541
+ { " apply_force" , 496058220 , 1271588277 },
542
+ { " add_constant_force" , 496058220 , 1271588277 },
543
+ #else
484
544
{ " apply_impulse" , 496058220 , 4288681949 },
485
545
{ " apply_force" , 496058220 , 4288681949 },
486
546
{ " add_constant_force" , 496058220 , 4288681949 },
547
+ #endif
487
548
});
488
549
mappings.insert (" PhysicsDirectBodyState3D" , {
550
+ #ifdef REAL_T_IS_DOUBLE
551
+ { " apply_impulse" , 1002852006 , 2485728502 },
552
+ { " apply_force" , 1002852006 , 2485728502 },
553
+ { " add_constant_force" , 1002852006 , 2485728502 },
554
+ #else
489
555
{ " apply_impulse" , 1002852006 , 2754756483 },
490
556
{ " apply_force" , 1002852006 , 2754756483 },
491
557
{ " add_constant_force" , 1002852006 , 2754756483 },
558
+ #endif
492
559
});
493
560
mappings.insert (" PhysicsDirectSpaceState2D" , {
494
561
{ " intersect_point" , 3278207904 , 2118456068 },
@@ -507,21 +574,37 @@ void GDExtensionCompatHashes::initialize() {
507
574
{ " create" , 680321959 , 3110599579 },
508
575
});
509
576
mappings.insert (" PhysicsServer2D" , {
577
+ #ifdef REAL_T_IS_DOUBLE
578
+ { " area_add_shape" , 754862190 , 3597527023 },
579
+ { " body_add_shape" , 754862190 , 3597527023 },
580
+ { " body_apply_impulse" , 34330743 , 1124035137 },
581
+ { " body_apply_force" , 34330743 , 1124035137 },
582
+ { " body_add_constant_force" , 34330743 , 1124035137 },
583
+ #else
510
584
{ " area_add_shape" , 754862190 , 339056240 },
511
585
{ " body_add_shape" , 754862190 , 339056240 },
512
586
{ " body_apply_impulse" , 34330743 , 205485391 },
513
587
{ " body_apply_force" , 34330743 , 205485391 },
514
588
{ " body_add_constant_force" , 34330743 , 205485391 },
589
+ #endif
515
590
{ " joint_make_pin" , 2288600450 , 1612646186 },
516
591
{ " joint_make_groove" , 3573265764 , 481430435 },
517
592
{ " joint_make_damped_spring" , 206603952 , 1994657646 },
518
593
});
519
594
mappings.insert (" PhysicsServer3D" , {
595
+ #ifdef REAL_T_IS_DOUBLE
596
+ { " area_add_shape" , 4040559639 , 183938777 },
597
+ { " body_add_shape" , 4040559639 , 183938777 },
598
+ { " body_apply_impulse" , 110375048 , 2238283471 },
599
+ { " body_apply_force" , 110375048 , 2238283471 },
600
+ { " body_add_constant_force" , 110375048 , 2238283471 },
601
+ #else
520
602
{ " area_add_shape" , 4040559639 , 3711419014 },
521
603
{ " body_add_shape" , 4040559639 , 3711419014 },
522
604
{ " body_apply_impulse" , 110375048 , 390416203 },
523
605
{ " body_apply_force" , 110375048 , 390416203 },
524
606
{ " body_add_constant_force" , 110375048 , 390416203 },
607
+ #endif
525
608
});
526
609
mappings.insert (" PopupMenu" , {
527
610
{ " add_item" , 3224536192 , 3674230041 },
@@ -581,23 +664,27 @@ void GDExtensionCompatHashes::initialize() {
581
664
{ " buffer_get_data" , 125363422 , 3101830688 },
582
665
{ " render_pipeline_create" , 2911419500 , 2385451958 },
583
666
{ " compute_pipeline_create" , 403593840 , 1448838280 },
667
+ { " draw_list_draw" , 3710874499 , 4230067973 },
668
+ #ifdef REAL_T_IS_DOUBLE
669
+ { " draw_list_begin" , 4252992020 , 848735039 },
670
+ { " draw_list_begin_split" , 832527510 , 2228306807 },
671
+ { " draw_list_enable_scissor" , 338791288 , 730833978 },
672
+ #else
584
673
{ " draw_list_begin" , 4252992020 , 2468082605 },
585
674
{ " draw_list_begin_split" , 832527510 , 2406300660 },
586
- { " draw_list_draw" , 3710874499 , 4230067973 },
587
675
{ " draw_list_enable_scissor" , 338791288 , 244650101 },
676
+ #endif
588
677
});
589
678
mappings.insert (" RenderingServer" , {
590
679
{ " texture_rd_create" , 3291180269 , 1434128712 },
591
680
{ " shader_set_default_texture_parameter" , 3864903085 , 4094001817 },
592
681
{ " shader_get_default_texture_parameter" , 2523186822 , 1464608890 },
593
682
{ " mesh_create_from_surfaces" , 4007581507 , 4291747531 },
594
683
{ " mesh_add_surface_from_arrays" , 1247008646 , 2342446560 },
595
- { " viewport_attach_to_screen" , 1278520651 , 1062245816 },
596
684
{ " environment_set_ambient_light" , 491659071 , 1214961493 },
597
685
{ " instances_cull_aabb" , 2031554939 , 2570105777 },
598
686
{ " instances_cull_ray" , 3388524336 , 2208759584 },
599
687
{ " instances_cull_convex" , 3690700105 , 2488539944 },
600
- { " canvas_item_set_custom_rect" , 2180266943 , 1333997032 },
601
688
{ " canvas_item_add_line" , 2843922985 , 1819681853 },
602
689
{ " canvas_item_add_polyline" , 3438017257 , 3098767073 },
603
690
{ " canvas_item_add_multiline" , 3176074788 , 2088642721 },
@@ -607,11 +694,19 @@ void GDExtensionCompatHashes::initialize() {
607
694
{ " canvas_item_add_nine_patch" , 904428547 , 389957886 },
608
695
{ " canvas_item_add_polygon" , 2907936855 , 3580000528 },
609
696
{ " canvas_item_add_triangle_array" , 749685193 , 660261329 },
610
- { " canvas_item_add_mesh" , 3548053052 , 316450961 },
611
697
{ " canvas_item_add_multimesh" , 1541595251 , 2131855138 },
612
698
{ " canvas_item_add_animation_slice" , 4107531031 , 2646834499 },
613
699
{ " canvas_item_set_canvas_group_mode" , 41973386 , 3973586316 },
614
700
{ " set_boot_image" , 2244367877 , 3759744527 },
701
+ #ifdef REAL_T_IS_DOUBLE
702
+ { " viewport_attach_to_screen" , 1410474027 , 2248302004 },
703
+ { " canvas_item_set_custom_rect" , 2180266943 , 1134449082 },
704
+ { " canvas_item_add_mesh" , 3877492181 , 3024949314 },
705
+ #else
706
+ { " viewport_attach_to_screen" , 1278520651 , 1062245816 },
707
+ { " canvas_item_set_custom_rect" , 2180266943 , 1333997032 },
708
+ { " canvas_item_add_mesh" , 3548053052 , 316450961 },
709
+ #endif
615
710
});
616
711
mappings.insert (" ResourceLoader" , {
617
712
{ " load_threaded_request" , 1939848623 , 3614384323 },
@@ -623,23 +718,40 @@ void GDExtensionCompatHashes::initialize() {
623
718
{ " save" , 2303056517 , 2983274697 },
624
719
});
625
720
mappings.insert (" RichTextLabel" , {
626
- { " add_image" , 3346058748 , 3580801207 },
627
721
{ " push_font" , 814287596 , 2347424842 },
628
722
{ " push_paragraph" , 3218895358 , 3089306873 },
629
723
{ " push_list" , 4036303897 , 3017143144 },
630
724
{ " push_table" , 1125058220 , 2623499273 },
631
- { " push_dropcap" , 311501835 , 4061635501 },
632
725
{ " set_table_column_expand" , 4132157579 , 2185176273 },
726
+ #ifdef REAL_T_IS_DOUBLE
727
+ { " add_image" , 3346058748 , 1507062345 },
728
+ { " push_dropcap" , 981432822 , 763534173 },
729
+ #else
730
+ { " add_image" , 3346058748 , 3580801207 },
731
+ { " push_dropcap" , 311501835 , 4061635501 },
732
+ #endif
633
733
});
634
734
mappings.insert (" RigidBody2D" , {
735
+ #ifdef REAL_T_IS_DOUBLE
736
+ { " apply_impulse" , 496058220 , 1271588277 },
737
+ { " apply_force" , 496058220 , 1271588277 },
738
+ { " add_constant_force" , 496058220 , 1271588277 },
739
+ #else
635
740
{ " apply_impulse" , 496058220 , 4288681949 },
636
741
{ " apply_force" , 496058220 , 4288681949 },
637
742
{ " add_constant_force" , 496058220 , 4288681949 },
743
+ #endif
638
744
});
639
745
mappings.insert (" RigidBody3D" , {
746
+ #ifdef REAL_T_IS_DOUBLE
747
+ { " apply_impulse" , 1002852006 , 2485728502 },
748
+ { " apply_force" , 1002852006 , 2485728502 },
749
+ { " add_constant_force" , 1002852006 , 2485728502 },
750
+ #else
640
751
{ " apply_impulse" , 1002852006 , 2754756483 },
641
752
{ " apply_force" , 1002852006 , 2754756483 },
642
753
{ " add_constant_force" , 1002852006 , 2754756483 },
754
+ #endif
643
755
});
644
756
mappings.insert (" SceneMultiplayer" , {
645
757
{ " send_bytes" , 2742700601 , 1307428718 },
@@ -699,7 +811,11 @@ void GDExtensionCompatHashes::initialize() {
699
811
{ " draw_outline" , 1364491366 , 1343401456 },
700
812
});
701
813
mappings.insert (" TextParagraph" , {
814
+ #ifdef REAL_T_IS_DOUBLE
815
+ { " set_dropcap" , 2613124475 , 2897844600 },
816
+ #else
702
817
{ " set_dropcap" , 2613124475 , 2498990330 },
818
+ #endif
703
819
{ " add_string" , 867188035 , 621426851 },
704
820
{ " add_object" , 735420116 , 1316529304 },
705
821
{ " resize_object" , 960819067 , 2095776372 },
0 commit comments