I need help extracting the strings from these files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
paloslios
Posts: 5
Joined: Fri Oct 29, 2021 2:52 pm

I need help extracting the strings from these files

Post by paloslios »

I've tried everything and I can't get it

I have managed to get these files

I only need the strings to create a translation, I just extract
I've tried in a thousand ways and I can't

I leave you the files here

https://pixeldrain.com/u/3NqWqZUL

if you look, before each string there is a value of the "size" of the string, it is the only thing that I have been able to "see"

It is enough for me that you can extract the strings, I do not need to "reimport" anything

thank you very much and i hope you can help me
a greeting
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: I need help extracting the strings from these files

Post by rabatini »

I just can't get the all logic.

Its seems you've extracted for another file, and some is missing.

I made this script, it wil extract every string in the file, so, text, path etc etc.

Code: Select all


findloc OFFSET THREEBYTE "0X000000"
do
    goto OFFSET
math offset - 1
goto offset
   
     get size long
    findloc next_OFFSET THREEBYTE  "0X000000" 0 ""

     if NEXT_OFFSET == ""
findloc next_OFFSET THREEBYTE  "0X000000" 0 "" 0
    goto OFFSET

        get SIZE long
xmath offset "(offset + 0x04)"
slog "" OFFSET SIZE
break
    else

    endif
   
    string NAME p= OFFSET SIZE i
    STRING PATH = NAME
   
xmath offset "(offset + 0x04)"
    slog "" OFFSET SIZE
    math i += 1
    math OFFSET = NEXT_OFFSET

while NEXT_OFFSET != ""
Last edited by rabatini on Fri Jul 15, 2022 4:31 pm, edited 2 times in total.
Pickle
Posts: 9
Joined: Thu Jul 14, 2022 6:24 pm

Re: I need help extracting the strings from these files

Post by Pickle »

I don't see any structure to the files aside from the string length you mentioned so there's no easy way to do this.

I wrote an AutoIt script to read the file as a binary blob and parse the strings based on the assumption that no string is longer than 255 characters. It works for the files you posted. The list of strings in each of those files is 100% identical so I'll just post the strings here.

Code: Select all

version
key
unlocked
name
panties_hint
parameters
positional
extrapos
extrakw
positional_only
keyword_only
block
entries
persistent.panties is None
game/script/drawer.rpy
filename
linenumber
py
identifier
panties_hint_40297f47
alternate
language
who
who_fast
what
Throughout the game, you can collect panties from each girl to unlock special renders.
with_
interact
attributes
arguments
temporary_attributes
rollback
normal
game/script/drawer.rpy
next
translate
end_translate
panties_hint_65441af9
Click on them in the right screen to collect them. You won't get any hints later!
panties_hint_094347bf
If you miss one (or don't want to collect them), you'll get the special renders if you complete the respective girl's path.
hide
code
persistent.panties = True
exec
store
expression
paloslios
Posts: 5
Joined: Fri Oct 29, 2021 2:52 pm

Re: I need help extracting the strings from these files

Post by paloslios »

many thanks
paloslios
Posts: 5
Joined: Fri Oct 29, 2021 2:52 pm

Re: I need help extracting the strings from these files

Post by paloslios »

Pickle wrote:I don't see any structure to the files aside from the string length you mentioned so there's no easy way to do this.

I wrote an AutoIt script to read the file as a binary blob and parse the strings based on the assumption that no string is longer than 255 characters. It works for the files you posted. The list of strings in each of those files is 100% identical so I'll just post the strings here.



Could you upload the AutoIt script please?
paloslios
Posts: 5
Joined: Fri Oct 29, 2021 2:52 pm

Re: I need help extracting the strings from these files

Post by paloslios »

rabatini wrote:I just can't get the all logic.

Its seems you've extracted for another file, and some is missing.

I made this script, it wil extract every string in the file, so, text, path etc etc.




I have already tried it and it works PERFECT

many thanks
Pickle
Posts: 9
Joined: Thu Jul 14, 2022 6:24 pm

Re: I need help extracting the strings from these files

Post by Pickle »

paloslios wrote:Could you upload the AutoIt script please?

Sure, here it is.
paloslios
Posts: 5
Joined: Fri Oct 29, 2021 2:52 pm

Re: I need help extracting the strings from these files

Post by paloslios »

Pickle wrote:
paloslios wrote:Could you upload the AutoIt script please?

Sure, here it is.

Thank you very much