DmitriySalnikov/GodotPCKExplorer

[question] Recreate the .exe file ? (without .pck but with loose folders)

Closed this issue · 4 comments

Hi, first of all thank you for your work. Lately I've been encountering games that archive files inside the .exe file (there are no .pck archives inside the executable but the folders are loose), can you tell me if there is any way to recreate the exe?

Could this be a new feature to implement?

A thousand thanks.

Can you give an example of such a game? I don't quite understand which folders you're talking about.
And by recreate the .exe do you mean to pack the game files inside .exe?

Can you give an example of such a game? I don't quite understand which folders you're talking about. And by recreate the .exe do you mean to pack the game files inside .exe?

I have come across games where there was only the executable and within them, there were two types. The structure of these two types:

1 Exe file - pck file - loose folders (extracted)
2 Exe file - loose folders (extracted)

Now I'll give you the example of this game that I'm trying to translate.

[Thanks for the example.]

I open the exe with your program and extract all the files in a folder and it gave this syntax error, but only for this game, the others work... I forgot, with this game sometimes it didn't give me the syntax error when extracting. so I don't know what it could be.

1

I extract the .exe file and have these folders all loose

2

I modify the files I need and now what can I do to recreate the exe?
If I have to recreate the file this way without having the pck file, how could I do it?

Screenshot 2024-04-04 002831

Here is the error, rightly so because there is no pck file. maybe it's a different thing to do

What's wrong with Godot? Why is it writing files multiple times? After all, if they have the same name, then only one of the files will be used... I made this renaming system because I met a duplicate file in Window Kill, but I didn't think there could be so many of them -_-

[04/04/2024 01:50:16]   [Progress] Open PCK: Duplicate file found. It will be renamed 'res://dialogic/timelines/timeline-1710956045.json' -> 'res://dialogic/timelines/timeline-1710956045.duplicate_1.json'
[04/04/2024 01:50:16]   [Progress] Open PCK: Duplicate file found. It will be renamed 'res://dialogic/timelines/timeline-1710955955.json' -> 'res://dialogic/timelines/timeline-1710955955.duplicate_1.json'
[04/04/2024 01:50:16]   [Progress] Open PCK: Duplicate file found. It will be renamed 'res://dialogic/timelines/timeline-1710955686.json' -> 'res://dialogic/timelines/timeline-1710955686.duplicate_1.json'
[04/04/2024 01:50:16]   [Progress] Open PCK: Duplicate file found. It will be renamed 'res://dialogic/timelines/timeline-1710955639.json' -> 'res://dialogic/timelines/timeline-1710955639.duplicate_1.json'
[04/04/2024 01:50:16]   [Progress] Open PCK: Duplicate file found. It will be renamed 'res://dialogic/timelines/timeline-1710955632.json' -> 'res://dialogic/timelines/timeline-1710955632.duplicate_1.json'

1

Here in the screenshot you can see that the developer somehow managed to put files with the path user:// into the PCK.

image

It's not that much of a problem to manually specify absolutely any path to the resource, but how can this be done from the editor during export!?


Screenshot 2024-04-04 002831

Here is the error, rightly so because there is no pck file. maybe it's a different thing to do

PCK is inside the EXE, that is, embedded.

You just need to remove the PCK from the original EXE.
image

And don't forget to specify the correct version of the PCK before packing:
image

I managed to successfully change the main scene:
image
(but as I understand it, for some reason it is impossible to change the file size in bytes)
I was also able to launch and play without any problems.


I found a couple of problems with user:// and packing, but in this situation they should not prevent the content from changing.
I'll also consider adding an option to quickly replace PCKs when packing.

Dmitriy It works perfectly. A thousand thanks
I thought there was no .pck file here, but it was embedded.
It didn't give me any user:// errors when packing.
Thanks so much again, very kind.