Alfius how did you extract the dialog from the Unity game? Or did you use the program that copies the dialog to another file as you play it?
I was wondering because there is a Unity game I would like to remake in Ren'Py myself and can't find a way to extract the dialog except by playing it, and then trying to sort through the mess.
You are not going to like my answer. My first game I converted, I kinda had to play the game and get all my text that way. Save various states of the game and try all different combinations. The way I checkecd if I converted everything correctly was basically when I've used up all the images!
There are better ways to do this. With Sexduction, I asked the help of
NightTrain (He converted The Follower from Unity to RenPy) for this one. He wrote a tool that managed to find certain patterns in the binary file that converted it in a logical flow of a rough Renpy Script File. HoneyGames used the Fungis engine inside all of his Unity games. It's structure are very similar to Renpy, so I'm sure that helped a bit. I was also busy trying to figure this out on my own, but I'm glad, he agreed to help.
I also chatted to
dsconstructor that did a lot of work on The Twist. He used hooks and plugins to directly plug into the exe of the unity file. I did play around with some of his tools and got some great info(Text and flow) out of the binary, but could never get it to work 100%. To be clear, I think his tools were great, but I probably did not understand it completely.
So something a bit more helpful:
Step 1)
Regardless of what method you need to use, you will need a tool to extract the assets. I used uTinyRipper_x64 for that.
Step 2)
This will give you all the images, Mine were under
\Scene\level0\Assets\Texture2D
This
will also give you a meta file that contains the logic and all the text.
In the root look for the file level0
This file contains all the plain text of the game, but to get that in a logical order is where it becomes tricky.
Luckily, this is where I managed to get some help, before I were able to try and figure it out by myself.
I was wondering because there is a Unity game I would like to remake in Ren'Py myself and can't find a way to extract the dialog except by playing it, and then trying to sort through the mess.
This is basically what I did with the first game I converted. It was a pain, but the game was relatively simple, so it worked out perfectly. The nice thing about doing it that way, is that you can actually make some slight improvements while doing it or make it a bit more balanced etc. Although I stuck mostly to the original, I did change a thing here or there to make it a bit more to my liking. Since HG is also not a native English speaker, I also improved his dialogue a lot while doing it this way.