SantX27 / yu-topy

A crappy program that tries (and fails) to programmatically convert yu-ris engine decrypted files by ToolForYuris into mostly working ren'py visual novels
Other
6 stars 0 forks source link

can't seem to figure this out. #2

Open Psycheux opened 10 months ago

Psycheux commented 10 months ago

i might just be stupid but when i run the programme it just tells me that there is no file for xxx.txt (example : yst00140.txt) i also tried to make a folder that has both the ybn files and then those same files but instead of .ybn they are .txt and tried it with both .ybn and .txt versions and got another error. I'm just uncertain if i'm screwing something up. this is also the English copy of Euphoria so maybe thats it? i also used YuRISTools since i couldnt find a copy of ToolForYuris, so maybe that's the issue? I'm just curious, this may be a dumb ish thing but i'd love to try getting it working. (also im sorry if my wording is not that great, i'm just dumb with not a ton of experience) 1 2

SantX27 commented 10 months ago

Hi, First of all, thank you for checking out this repository, it truly means a lot to us. Second, we're sorry if you lost time figuring out how the hell to run the converter, we just never thought somebody would actually try and use it, so we never made a proper documentation on how to get everything set up correctly. As for the errors you are getting, yu-topy can't actually decode ybns, but it uses the txt files that ToolForYuris spits out. I can't give a proper indepth tutorial rn, but the gist of it is:

Psycheux commented 10 months ago

nyot to sound like a broken record or be too annoying but do you happen to have a backup of ToolForYuris? I cant seem to download from the provided link (i can view the link while in america but used a VPN for Canada and could see it but it seems to still be unavailable, i attatched screencaps)

(edit: imma still follow the rest of what you said with what i have to see if i can figure something out, but thank you in advance) screencap_0_172

screencap_1_173

MrPalloncini commented 10 months ago

Apparently we had an old link for the version we used for development (v1.16) These are the current official links for the 1.21 version, that should be working: https://arca.live/b/handtranslator/37085669 https://mega.nz/file/YsV3QaDI#Nr2apJiFJibHv1R2vad8uuyIR1ovNthTWsbTUpHXdAU Also, for posterity, in case the links go down again, we have archived both 1.16 and 1.21: https://mega.nz/folder/cdBRTZzC#GijdUmHvNtaLc1RJA6vlmw In case these links go down, please contact me at santikrusso@gmail.com, if I am not dead yet I will reply with a copy of the files.

Msfrhdsa commented 3 weeks ago

What to do with files like yst_list.ybn ysc.ybn yscfg.ybn in euphoria? They also contain some scripts, right? They can't be decoded, and I don't think the game will work normally with endings without them.

SantX27 commented 3 weeks ago

You're absolutely correct. yst_list is somewhat decoded by that hellish regex, and it contains just the file name and other trival information regarding all the script files. Some other files, like ysv and ysl are really important, since they contain accordingly the variables and the labels. This "release" of yu-topy can't process these files, it's stuck with whatever ToolForYuris decodes, so it absolutely doesn't know jack ass about jumps, gotos, ifs and whatever else is going on in the logic side of the Yuris scripting language, it can only read text, image and sound data and shove all this jumbled data into Renpy's throat, as of now it's just a testament on the flexibility of Renpy, nothing else.

For the past 4-5 months, I have started, in the few hours I can get without feeling sick, a total rewrite of yu-topy, that doesn't necessitate ToolForYuris in order to work and that is able to correctly parse most of the config files you've cited and all the actual script files. The development it's going to be very long, I am a novice of both python and byte parsing solutions, and most of the code that I end up writing ends up being deleted shortly after since i keep finding "better" ways of doing stuff. I would love to finish what I and my friend started, but I can't find someone, not even myself, that actually cares about getting all of this stuff done.

I will make a new branch with this new code, if someone that is reading this is interested in helping out, in any way, shape or form, I will be glad to be more proactive with the development side of things. Also, here's the document that inspired me to restart yutopy's development, it contains the "map" of all the bytes inside each yuris file: https://github.com/arcusmaximus/VNTranslationTools/blob/main/VNTextPatch.Shared/Scripts/Yuris/Notes.txt

SantX27 commented 3 weeks ago

Update: the new code is up on the pron branch, I need to port the struct syntax to all decoders.