XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Nov 19, 2018 12:20 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Awesomenauts encryption
PostPosted: Tue Jan 23, 2018 8:02 am 
Offline
n00b

Joined: Sat Feb 11, 2017 3:58 am
Posts: 14
Has thanked: 4 times
Have thanks: 0 time

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

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Awesomenauts encryption
PostPosted: Fri Jul 06, 2018 7:55 pm 
Offline
ultra-n00b

Joined: Fri Jul 06, 2018 7:38 pm
Posts: 2
Has thanked: 0 time
Have thanks: 4 times
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:
[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.


Top
 Profile  
 
 Post subject: Re: Awesomenauts encryption
PostPosted: Thu Jul 26, 2018 11:49 am 
Offline
n00b

Joined: Sat Feb 11, 2017 3:58 am
Posts: 14
Has thanked: 4 times
Have thanks: 0 time
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:
[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:
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.

Top
 Profile  
 
 Post subject: Re: Awesomenauts encryption
PostPosted: Sat Jul 28, 2018 10:34 am 
Offline
ultra-n00b

Joined: Fri Jul 06, 2018 7:38 pm
Posts: 2
Has thanked: 0 time
Have thanks: 4 times
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.


Top
 Profile  
 
 Post subject: Re: Awesomenauts encryption
PostPosted: Sun Jul 29, 2018 7:35 am 
Offline
n00b

Joined: Sat Feb 11, 2017 3:58 am
Posts: 14
Has thanked: 4 times
Have thanks: 0 time
IT WORKS VERRRRRRRRRRY WELL!!!

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



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group