Topic was automatically imported from the old Question2Answer platform.
Asked By
KKIILLOOUU
Hi,
I searched a way to replace a scene in a exported project. ( Yes it’s Patching ). I looked docs but i don’t understand how to get_the_path from the Game.pck by running patch.exe and using it to replace scene in the game.pck by a scene in patch.pck.
func _on_Patch_pressed():
var pathpatch = OS.get_executable_path().get_base_dir().plus_file(“Patch.pck”)
if pathpatch == null:
print(“nopathpatch”)
ProjectSettings.load_resource_pack(pathpatch, true)
I choosed this way to patch ( by the game.exe finaly) but the issue is that scene in Patch.pck not replace old scene in the main project.pck. I believed that if there is same name scene and same path it will erase old scene.