Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Clever & smart: A movie adventure

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
strizek
beginner
Posts: 20
Joined: Fri Apr 06, 2012 7:34 pm
Has thanked: 1 time

Clever & smart: A movie adventure

Post by strizek »

This adventure game looks very amazing... There are language files and German texts. Texts it seems to be in NKR fïles, but how to decrypt or edit. Please LOOK and HELP.

Thank you

Fïlip
You do not have the required permissions to view the files attached to this post.
strizek
beginner
Posts: 20
Joined: Fri Apr 06, 2012 7:34 pm
Has thanked: 1 time

Re: Clever & smart: A movie adventure

Post by strizek »

I found which characters in game are in HEX. But, when i translate whole files manually, then it will be for a long long time... Is there some utility, which convert tëxt files in right way ? HEX table on link bellow.

http://s7.directupload.net/file/d/2964/sz4ymf99_jpg.htm
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: Clever & smart: A movie adventure

Post by WRS »

you got so close!

if you compared the values you wrote out against the ascii code for each letter ('A' == 0x41) then you might have caught on to the fact the values follow a simple pattern:

'A' (ascii 41) xor E2 == A3
'B' (ascii 42) xor E1 == A3

here is a bms script which can convert the nkr files to txt (to convert back, run the script on the file again, and change the extensions from .nkr.txt.txt to .nkr again)

Code: Select all

filexor 0xA3
get size asize
get fn filename
string fn += ".txt"
log fn 0 size
download quickbms here: http://aluigi.altervista.org/papers/quickbms.zip
Useful tool links:
strizek
beginner
Posts: 20
Joined: Fri Apr 06, 2012 7:34 pm
Has thanked: 1 time

Re: Clever & smart: A movie adventure

Post by strizek »

Thank you for your quick answer, but it seems not to be so easy.

i make everything you say. Compiling and recompiling goes fine, but when i change something in txt file, then it is not working. I try add or delete characters - not working, i try only change characters (same place and lenght) - not working.

Try yourself - i upload zip file with uninstallator and right language file for it.
You do not have the required permissions to view the files attached to this post.
merlinsvk
ultra-veteran
ultra-veteran
Posts: 411
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 121 times

Re: Clever & smart: A movie adventure

Post by merlinsvk »

Everything is fine.

Image
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: Clever & smart: A movie adventure

Post by WRS »

there looks to be a header at position 32 in the nkr file which consists of the xor key (0xA3) followed by the extension (".txt")

i updated my script, which is now split into an extractor and repacker: (see comments)

Code: Select all

# extract the nkr file
# WRS (xentax.com)

# read 5 byte info at position 32
goto 32
get nkr_xor byte
filexor nkr_xor
getdstring nkr_ext 4
get fn filename

# log initial data
log MEMORY_FILE 0 32

# log remaining data
get size asize
math size -= 37
append # enables for MEMORY_FILE
log MEMORY_FILE 37 size

get size asize MEMORY_FILE
string fn += nkr_ext
append # disables for logging
filexor 0 # remove xor key
log fn 0 size MEMORY_FILE

Code: Select all

# remake the nkr file
# WRS (xentax.com)

# save initial data
log MEMORY_FILE 0 32

# write 5 byte info
putvarchr MEMORY_FILE 32 0 # once xord this becomes the key
putvarchr MEMORY_FILE 33 '.'
putvarchr MEMORY_FILE 34 't'
putvarchr MEMORY_FILE 35 'x'
putvarchr MEMORY_FILE 36 't'

# save remaining data
get size asize
math size -= 37
append
log MEMORY_FILE 37 size
append

get fn basename
string fn += "_new.nkr"
get size asize MEMORY_FILE
filexor 0xA3
log fn 0 size MEMORY_FILE
Hope this helps you.
Useful tool links:
Post Reply