ROM Hack Question About the main file in exefs folder

zellfy

Member
OP
Newcomer
Joined
Mar 8, 2019
Messages
22
Trophies
0
Age
33
XP
138
Country
China
Is there someone know how to edit the code in main file of exefs folder.
Or some tools to do it.
Please, I need to translate a game to another lanuage, so I have to rewrite the code so that I can set the path to my own font Atlas.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,278
Trophies
3
XP
12,043
Country
Poland
What you need:
> nx2elf & elf2nso for decompressing and compressing main file
https://github.com/shuffle2/nx2elf
https://github.com/switchbrew/switch-tools

In attachment i uploaded compiled binaries for this tools.
Decompress.bat will decompress main to main.elf
Compress.bat will compress main.elf to main.nso - just rename to main
Ignore errors if it will show something - it's still good to edit.

> IDA Pro 7 (not free version) with SwitchIDAProLoader or nxo64.py for deassembling (it's loading original main file, don't try to open with them decompressed main files)
https://github.com/reswitched/loaders/
https://github.com/pgarba/SwitchIDAProLoader

And just wait until app will show "idle" in left lower corner of app (it will play windows jingle). If you do something in IDA when it's deassembling code, it will slow down dramatically.
 

Attachments

  • nx2elf2nso.zip
    160.6 KB · Views: 946
Last edited by masagrator,

zellfy

Member
OP
Newcomer
Joined
Mar 8, 2019
Messages
22
Trophies
0
Age
33
XP
138
Country
China
What you need:
> nx2elf & elf2nso for decompressing and compressing main file
https://github.com/shuffle2/nx2elf
https://github.com/switchbrew/switch-tools

In attachment i uploaded compiled binaries for this tools.
Decompress.bat will decompress main to main.elf
Compress.bat will compress main.elf to main.nso - just rename to main
Ignore errors if it will show something - it's still good to edit.

> IDA Pro 7 (not free version) with SwitchIDAProLoader or nxo64.py for deassembling (it's loading original main file, don't try to open with them decompressed main files)
https://github.com/reswitched/loaders/
https://github.com/pgarba/SwitchIDAProLoader

And just wait until app will show "idle" in left lower corner of app (it will play windows jingle). If you do something in IDA when it's deassembling code, it will slow down dramatically.


upload_2019-3-19_11-2-29.png


It dosen't work bro.
 

Attachments

  • upload_2019-3-19_11-2-29.png
    upload_2019-3-19_11-2-29.png
    71 KB · Views: 268

Colmines92

Member
Newcomer
Joined
Sep 14, 2015
Messages
14
Trophies
0
Age
32
XP
577
Country
Cuba
Which redists are needed to run nx2elf?
I have installed c++ redist 2015-2022 for both x86 and x64 and it still doesn't launch because of missing the following files:
UCRTBASED.DLL
MSVCP140D.DLL
VCRUNTIME140D.DLL

Thanks in advance.
 

morarin

Well-Known Member
Newcomer
Joined
Jul 6, 2022
Messages
70
Trophies
0
XP
353
Country
Japan
What you need:
> nx2elf & elf2nso for decompressing and compressing main file
https://github.com/shuffle2/nx2elf
https://github.com/switchbrew/switch-tools

In attachment i uploaded compiled binaries for this tools.
Decompress.bat will decompress main to main.elf
Compress.bat will compress main.elf to main.nso - just rename to main
Ignore errors if it will show something - it's still good to edit.

> IDA Pro 7 (not free version) with SwitchIDAProLoader or nxo64.py for deassembling (it's loading original main file, don't try to open with them decompressed main files)
https://github.com/reswitched/loaders/
https://github.com/pgarba/SwitchIDAProLoader

And just wait until app will show "idle" in left lower corner of app (it will play windows jingle). If you do something in IDA when it's deassembling code, it will slow down dramatically.
I`m lost, what should I do?
Screenshot 2023-12-06 092757.png

Post automatically merged:

I used Il2CppDumper GUI 2.1.0 with main(.nso) and global-metadata.dat and got these files
Can I continue with main(.nso)?
Screenshot 2023-12-06 093512.png
 
Last edited by morarin,

morarin

Well-Known Member
Newcomer
Joined
Jul 6, 2022
Messages
70
Trophies
0
XP
353
Country
Japan
This "advise" is outdated as f.
For IDA use this, read readme

https://github.com/TSRBerry/nxo64

Then when loading original main it should detect by default that it's compatible with nxo64, don't change architecture
thank you so much :)
Post automatically merged:

I`ve never installed requirements.txt and got a few error messages and managed to solve ... done?

Screenshot 2023-12-06 171018.png


for someone like me
with command prompt
①pip install --upgrade pip
②install this https://aka.ms/vs/17/release/vs_BuildTools.exe

Post automatically merged:

This "advise" is outdated as f.
For IDA use this, read readme

https://github.com/TSRBerry/nxo64

Then when loading original main it should detect by default that it's compatible with nxo64, don't change architecture
after installing nxo64, I tried to open a plain main file and got this error message :(
what`s going on?
Screenshot 2023-12-07 130440.png
 
Last edited by morarin,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-