Among The Sleep

Need help translating games in other languages? Have your language problems solved here.
Post Reply
TRfan
n00b
Posts: 16
Joined: Thu Jul 12, 2012 4:44 pm
Has thanked: 3 times
Been thanked: 2 times

Among The Sleep

Post by TRfan »

Hi all.

I feel like someone has a solution for me in this forum :D

I need to edit text files from assets file of this game. I tried a tool called Unity Assets Explorer (viewtopic.php?f=10&t=10085) but I only managed to extract files. I found text files but couldn't import them back into the file. I hope someone will reply soon.
swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 14 times
Been thanked: 106 times

Re: Among The Sleep

Post by swuforce »

Use the tool that Haoose linked here: viewtopic.php?f=33&t=10739&start=22
TRfan
n00b
Posts: 16
Joined: Thu Jul 12, 2012 4:44 pm
Has thanked: 3 times
Been thanked: 2 times

Re: Among The Sleep

Post by TRfan »

Thanks but it's all russian and I don't know how to use the tool.
kofola
n00b
Posts: 10
Joined: Sun Mar 09, 2014 5:12 pm
Has thanked: 2 times

Re: Among The Sleep

Post by kofola »

I need too.
Can some do import/extract tool.
I need translate for my country.

Thank you for any help.
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: Among The Sleep

Post by merlinsvk »

Just use Haoose's Unity Assets Explorer. Plus some hex editor and some text editor.
For faster "searching" through .assets files, you can use Barracuda's DisUnity tool.
User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 202
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 7 times

Re: Among The Sleep

Post by lostprophet »

Here is how you can translate this game (I think it'll work with other Unity games too):
1. Download the Unity Asset Editor from this link:

Code: Select all

http://7daystodie.com/forums/showthread.php?5030-Grim-s-Unity-Asset-Editor
2. Open up resources.asset with it.
3. Search up all texts (they will have "Text" type and if you're looking for the English texts, they'll have "_en" in the end).
4. Right click on each of them and "Export".
5. Translate them.
6. Right click on each of them and "Import".
7. "File -> Save as" and overwrite the original resources.asset file.
8. Profit! :)

Some texts are not translatable sadly (like the text in Options like "Audio", "Video", "Controls", but they are in the files. Why the game doesn't use those lines, who knows?).
Hungarian translator | Previous translations: http://lostprophet.hu
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: Among The Sleep

Post by merlinsvk »

lostprophet wrote: Some texts are not translatable sadly (like the text in Options like "Audio", "Video", "Controls", but they are in the files. Why the game doesn't use those lines, who knows?).
Probably a bug. Those words (and "ago" and "<New Profile>") are in Among the Sleep_Data\Managed\Assembly-CSharp.dll file. I used .NET Reflector to edit that .dll.
User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 202
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 7 times

Re: Among The Sleep

Post by lostprophet »

merlinsvk wrote:
lostprophet wrote: Some texts are not translatable sadly (like the text in Options like "Audio", "Video", "Controls", but they are in the files. Why the game doesn't use those lines, who knows?).
Probably a bug. Those words (and "ago" and "<New Profile>") are in Among the Sleep_Data\Managed\Assembly-CSharp.dll file. I used .NET Reflector to edit that .dll.
I opened up .NET Reflector, opened "Assembly-CSharp.dll" and tried searching for eg. "New Profile" but there is no such text like that in it. Am I doing something wrong?
Hungarian translator | Previous translations: http://lostprophet.hu
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: Among The Sleep

Post by merlinsvk »

Image


But I totally forgot to mention that you have to use Reflexil add-in (it's free) for Reflector to be able modify .NET source code. Sorry about that (:
User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 202
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 7 times

Re: Among The Sleep

Post by lostprophet »

merlinsvk wrote:Image


But I totally forgot to mention that you have to use Reflexil add-in (it's free) for Reflector to be able modify .NET source code. Sorry about that (:
Oh, okay, I got a bit further now :)
1. I opened up Assembly-CSharp.dll.
2. I've done what you have shown me.
3. After finding <New profile>, I can't edit it.
4. I chose Tools > Reflexil v1.7.
5. I clicked on New profile with the right mouse button and chose Edit.
6. Modified "<New Profile>" and clicked "Update".
7. I couldn't find any Save button and the modified text doesn't show up in-game.
Hungarian translator | Previous translations: http://lostprophet.hu
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: Among The Sleep

Post by merlinsvk »

Yeah, it's hidden in the context menu.

Image
Post Reply