YoYo Games data.win

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Combine
Posts: 2
Joined: Sat Oct 17, 2015 1:50 pm

Re: YoYo Games data.win

Post by Combine »

Sorry for the rather massive bump, but i've been having a lot of trouble with this script.

It seems that it extracts everything fine at first, but then it seems extracted sprites have no extension and are not recognised by any image editing programs. I'm not sure what could be causing this issue. Any help?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

In this case we need to know:
are you using the latest version of quickbms? 0.6.7a
are you using the latest script? 0.1.1
can you provide this data.win or the name of the game so we can check it?
I don't remember if what you see it's normal or not but I think the archive contains common formats as png and not custom/raw formats
Combine
Posts: 2
Joined: Sat Oct 17, 2015 1:50 pm

Re: YoYo Games data.win

Post by Combine »

aluigi wrote:In this case we need to know:
are you using the latest version of quickbms? 0.6.7a
are you using the latest script? 0.1.1
can you provide this data.win or the name of the game so we can check it?
I don't remember if what you see it's normal or not but I think the archive contains common formats as png and not custom/raw formats



I am using the latest version of quickBMS and the script, I don't think sending the data.win would help because it does this with any game I try, including ones i've made myself.
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

Hey, I'm having trouble reimporting a .win file. You see, I'm trying to make a translation for xxxxxxxxx to spanish as it doesn't have one, but everytime I reimport the CMD throws an error at the end of every file that says "your string is longer than the original of X bytes!!! Re-importing done" (this even happens with strings I haven't even edited yet!). After it completely re-imported, I try opening the game and it shows the following error:
"___________________________________________
Error on load
Unable to find function You recovered"

How can I fix this?

If you need any files just tell me which files and I'll send them over.
Last edited by Santikun on Mon Nov 09, 2015 9:13 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

I suspect it's a problem of the slog command or a sort of compatibility for this specific case, maybe related to the unicode problem I have fixed in quickbms 0.6.8 (not public yet).
Can you provide the win archive?
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

My personal opinion is that your file is invalid or corrupted, there is something that it's wrong.
At offset 0xa69ffa there is missing data and in fact the STRG chunk is wrong from that point.
There is some data till offset 0xb5f997 which is probably part of other chunks and then just zeroes till offset 0x13204d1.

That archive doesn't respect the format, not even the basic chunk format, in fact at offset 0x0b7c080 the STRG chunk ends and a new one should start but it's all zeroes.
That explains also why there are wrong filenames for the other files.
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

Well, I sent you the modified one, here's the original one, maybe you can find something else:
https://mega.nz/#!MN9wRKxC!kYNHutll5PjL ... t_SW_k8C2o
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

Both the extraction and reimporting are perfect.
I had some doubt about reimporting STRG.txt because it's huge and not exactly stuff to translate but it worked without problems.
I performed an extraction, reimporting and re-extraction with comparison of the first and second output folder and it was all perfect at 100%, I mean 0 different files.
I have used QuickBMS 0.6.7a.

I don't know what you did or what version of quickbms you used, but you can't have problems with unmodified files like instead you said.
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

aluigi wrote:Both the extraction and reimporting are perfect.
I had some doubt about reimporting STRG.txt because it's huge and not exactly stuff to translate but it worked without problems.
I performed an extraction, reimporting and re-extraction with comparison of the first and second output folder and it was all perfect at 100%, I mean 0 different files.
I have used QuickBMS 0.6.7a.

I don't know what you did or what version of quickbms you used, but you can't have problems with unmodified files like instead you said.


I used the latest version on this thread, also I modified a few words (PAGE 1, PAGE 2, CONTINUE) on the STRG.txt, maybe that's why?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

It depends by how you modified that.
Reimporting strings is not easy for various reasons, Slog works very well but reimporting is not guarantee at 100%.
My suggestion is doing it with "Ins" enabled for overwriting the existing chars.
In your first post you told me to have edited nothing... it's quite different than modifying few words :)
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

aluigi wrote:It depends by how you modified that.
Reimporting strings is not easy for various reasons, Slog works very well but reimporting is not guarantee at 100%.
My suggestion is doing it with "Ins" enabled for overwriting the existing chars.
In your first post you told me to have edited nothing... it's quite different than modifying few words :)


INS? What does that mean? :o

By the way, I said it gave me that error even with the strings I havent modified yet, doesn't mean I didn't modify anything. :P
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

Oh I get it :)
With Ins I mean the key for overwriting the text to preserve the original length.
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

aluigi wrote:Oh I get it :)
With Ins I mean the key for overwriting the text to preserve the original length.


Ohh, the INSERT key. Okay, I'll try and I'll let you know!
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

Got it working, thanks! Now I have another doubt: Any possible way of adding more characters? In spanish, there are some words that have one or two letters more than in English, that's why I'm asking.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

Currently there is no way, it works just like a reinjector.
Probably you need an ad-hoc solution written for that specific format: rebuilder of STRG and rebuilder of data.win ... lot of work.
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

Darn, I guess I'll have to do with same length text. Thank you for this software and support! :D
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

Alright, new problem: I can reimport STRG files without problem (except the text length) but I can't reimport textures. I modified a few of them, but when I test the game, nothing changed.

I tried reimporting from quickbms/undertract (same as STRG file) and quickbms/undetract/TXTR (where all of the textures are saved at), none worked.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: YoYo Games data.win

Post by aluigi »

Do you mean that the files are not reimported?
Don't you see the following message? < path\file
Santikun
Posts: 13
Joined: Wed Oct 28, 2015 7:56 pm

Re: YoYo Games data.win

Post by Santikun »

Where would that message be?

The STRG works on reimporting even if edited, but the textures don't seem to change. After reimporting I get a message on CMD that says:

"- error in src\xalloc.c line 617: xdbg malloc()

Error: memory allocation problem
No such file or directory

press RETURN to quit"

I don't think that's the problem, in fact I get it everytime after reimporting and I see no problem with the strings or anything, it's just the textures that have this problem.