Awesomenauts encryption

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
DaveRipper
n00b
Posts: 14
Joined: Sat Feb 11, 2017 3:58 am
Has thanked: 4 times
Been thanked: 1 time

Awesomenauts encryption

Post by DaveRipper » Tue Jan 23, 2018 8:02 am

Hello! I'm trying to translte 'Awesomenauts' into Korean.

https://github.com/Nodja/AwesomenautsFileDumper

Then, I found out this program.

Decrypting files with that program working really well.

BUT encrypting files does not work well.

Encrypt/Compress functions are in that program, but not work.

From what the author of that program discovered, This game uses a modified AES-128 crypto. He said just key expansion was modified.

Encrypt function is included at animolite\crypto\operations.py.

Encrypt function is works as a CFB encryption graph, which in this link. https://en.wikipedia.org/wiki/Block_cip ... _operation

But it not works well.

Are Key and IV wrong? They are generated by file size and relative path, Is it because of relative path?

I've been trying to make encrypt function work for a month.

I'm super noob in crypto. SOMEBODY SAVE ME PLEASE...


Sorry for super bad English :(


Localization file: https://www.datafilehost.com/d/d1d816ba

Nodja
ultra-n00b
Posts: 2
Joined: Fri Jul 06, 2018 7:38 pm
Been thanked: 4 times

Re: Awesomenauts encryption

Post by Nodja » Fri Jul 06, 2018 7:55 pm

There's 2 reasons the encryption isn't working.
1. My code was missing a step of trimming the end of the block stream. File size is used in the decryption algorithm so the file ends up invalid.
2. The game does a checksum of files and doesn't load them if they don't match what it's supposed to be, you'll need to change game code for this to not happen.

But you're in luck, I recently made a new a game modder for a friend.

https://github.com/Nodja/NautsFileModder

Dump the localization files, edit them however you want and place them inside the mods folder.

Then create a text file with the extension .nfm inside the mods folder with these contents

Code: Select all

[file=Data\Localization\Localization.settings]
replace_with = mods\Localization.settings

[file=Data\Localization\LocalizationAUTO.settings]

Since english doesn't seem to be your native language it's likely you'll also have to tell where you have your game installed, edit nfm.cfg to match where you have the game installed.
replace_with = mods\LocalizationAUTO.settings

[file=Data\Localization\LocalizationIDS.settings]
replace_with = mods\LocalizationIDS.settings

[file=Data\Localization\LocalizationPC.settings]
replace_with = mods\LocalizationPC.settings
Then start the modder and your localization should be modded into the game.

Since english doesn't seem to be your native language it's likely you'll also have to tell where you have your game installed, edit nfm.cfg to match where you have the game installed.

DaveRipper
n00b
Posts: 14
Joined: Sat Feb 11, 2017 3:58 am
Has thanked: 4 times
Been thanked: 1 time

Re: Awesomenauts encryption

Post by DaveRipper » Thu Jul 26, 2018 11:49 am

Nodja wrote:There's 2 reasons the encryption isn't working.
1. My code was missing a step of trimming the end of the block stream. File size is used in the decryption algorithm so the file ends up invalid.
2. The game does a checksum of files and doesn't load them if they don't match what it's supposed to be, you'll need to change game code for this to not happen.

But you're in luck, I recently made a new a game modder for a friend.

https://github.com/Nodja/NautsFileModder

Dump the localization files, edit them however you want and place them inside the mods folder.

Then create a text file with the extension .nfm inside the mods folder with these contents

Code: Select all

[file=Data\Localization\Localization.settings]
replace_with = mods\Localization.settings

[file=Data\Localization\LocalizationAUTO.settings]

Since english doesn't seem to be your native language it's likely you'll also have to tell where you have your game installed, edit nfm.cfg to match where you have the game installed.
replace_with = mods\LocalizationAUTO.settings

[file=Data\Localization\LocalizationIDS.settings]
replace_with = mods\LocalizationIDS.settings

[file=Data\Localization\LocalizationPC.settings]
replace_with = mods\LocalizationPC.settings
Then start the modder and your localization should be modded into the game.

Since english doesn't seem to be your native language it's likely you'll also have to tell where you have your game installed, edit nfm.cfg to match where you have the game installed.
OMG!! I didn't know you would answer me!! Thank you soooooo much!
But I keep get this error :/

Code: Select all

Traceback (most recent call last):
  File "E:\NautsFileModder.v1.2-standalone\NautsFileModder\animo\patcher.py", line 54, in patch_game
    search_and_patch(address)
  File "E:\NautsFileModder.v1.2-standalone\NautsFileModder\animo\patcher.py", line 50, in search_and_patch
    raise PatchError("Patching failed. No signature found.")
animo.patcher.PatchError: Patching failed. No signature found.
How can I solve it? I'm sorry to keep asking you
Last edited by DaveRipper on Sun Jul 29, 2018 7:34 am, edited 1 time in total.

Nodja
ultra-n00b
Posts: 2
Joined: Fri Jul 06, 2018 7:38 pm
Been thanked: 4 times

Re: Awesomenauts encryption

Post by Nodja » Sat Jul 28, 2018 10:34 am

Version 1.3 should fix that.

That was my fault, the config file only matches one specific version of the game. Added pattern matching that should match all future versions, unless I missed something again.

DaveRipper
n00b
Posts: 14
Joined: Sat Feb 11, 2017 3:58 am
Has thanked: 4 times
Been thanked: 1 time

Re: Awesomenauts encryption

Post by DaveRipper » Sun Jul 29, 2018 7:35 am

IT WORKS VERRRRRRRRRRY WELL!!!

Thank you very very very much for helping :D!!

Post Reply