godot icon indicating copy to clipboard operation
godot copied to clipboard

Conversion Tool Problem

Open feendrache opened this issue 3 years ago • 4 comments

Godot version

4 Beta 1

System information

Windows 10

Issue description

I converted my 3.5 project to 4 there is a "world" folder in the res where i store some of my stuff the conversion tool exchanged all references from world to world3d wich broke plenty of links and references

Steps to reproduce

convert a 3.5 project with a world folder in res

Minimal reproduction project

No response

feendrache avatar Sep 22 '22 12:09 feendrache

This should be solved with #66150 for GDScripts. Adding a minimal reproduction project would help to check this

gotnospirit avatar Sep 23 '22 06:09 gotnospirit

This should be solved with #66150 for GDScripts. Adding a minimal reproduction project would help to check this

Here you go! This is a minimal project where the conversion mangles the resource path, so it looks for 'World3D/World3D.png' instead of 'World/World.png'

image

SampleProjectBeforeAndAfterConversion.zip

Proggle avatar Oct 06 '22 05:10 Proggle

I confirm that it will also solve this issue

before:

 4 4 World/World.tscn 0
    Checking file took      0.001 ms.
                Line(4), Texture -> Texture2D  -  LINE """ [ext_resource path="res://World/World.png" type="Texture" id=2] """
                Line(4), World -> World3D  -  LINE """ [ext_resource path="res://World/World.png" type="Texture" id=2] """
                Line(6), World -> World3D  -  LINE """ [node name="World" type="Node2D"] """
                Line(9), Sprite -> Sprite2D  -  LINE """ [node name="World" type="Sprite" parent="."] """
                Line(9), World -> World3D  -  LINE """ [node name="World" type="Sprite" parent="."] """

after:

 4 4 World/World.tscn 0
    Checking file took      0.001 ms.
                Line(4), Texture -> Texture2D  -  LINE """ [ext_resource path="__EXCLUDED_FROM_SCAN__" type="Texture" id=2] """
                Line(9), Sprite -> Sprite2D  -  LINE """ [node name="__EXCLUDED_FROM_SCAN__" type="Sprite" parent="__EXCLUDED_FROM_SCAN__"] """

gotnospirit avatar Oct 07 '22 02:10 gotnospirit

Same problem here: in Godot 3.5.1: var default_texture = preload("res://World/Interactive Objects/Button/button_temp.png") converted in Godot 4.0 to: var default_texture = preload("res://World3D/Interactive Objects/Button/button_temp.png")

TomasVojta avatar Nov 28 '22 05:11 TomasVojta

I haven't tested it for file names, scripts etc., but it still happens with node names. Nodes called "World" are still renamed to "World3D" in the tscn file.

Version: v4.0.rc1.official [8843d9ad3]

Warlaan avatar Feb 12 '23 06:02 Warlaan