ROM Hack Negima!? Chou Mahora Taisen Chuu (fantranslation)

azerty1

Well-Known Member
Member
Joined
Mar 22, 2009
Messages
160
Trophies
0
Age
29
Website
Visit site
XP
99
Country
Canada
ok, then, i'm almost done the repacking method, then i need to test and double check everything. just debugging some of my integer to pointer byte stuff, but the extractor and inserter are working fine now.
i'll be a bit busy this week, but i promise the whole tool will be done by next weekend.

i can insert the any changed file you want with just the starting offset and the ending offset or the difference in size, if you want.
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
Oh, I think the new NFTR file is the same size as the old one. I got it confused with the file from the other game. (Hacking too many games all at once isn't a good thing.
tongue.gif
) I'll try a quick check if the font works.
happy.gif


Okay, I probably need some sleep. The new NFTR is actually bigger than the old one and it can't be copy-pasted to the fpak.

So azerty1, could you add the new NFTR file to the packfile.pak file? It should start at Hex 151F6E8 (if nothing else has been edited. Otherwise, just search for "RTFN" and once you find the first RTFN, search for the next one. The one we need to change is the second RTFN in the packfile.pak.) This file doesn't need to be compressed so just swap the files and adjust the filesize should be fine, I guess.
happy.gif
 

azerty1

Well-Known Member
Member
Joined
Mar 22, 2009
Messages
160
Trophies
0
Age
29
Website
Visit site
XP
99
Country
Canada
2 problems.
One is with LZ77 compression. WHen i recompress the files with the method from nintenlord's lz77.lib, some of the values are different, i've noticed, like some 40s are coming out as 2C or something. It extracts to the same thing, but i'm not sure whether the different LZ77 changes anything. I'm not sure due to my second problem, which is that the game won't run on the no$. i could try putting it on my sd card, but i have noticed that jjewel had a few screenshots...so if anyone knows how to get it to work on it, i'm all ears.
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
azerty1 said:
2 problems.
One is with LZ77 compression. WHen i recompress the files with the method from nintenlord's lz77.lib, some of the values are different, i've noticed, like some 40s are coming out as 2C or something. It extracts to the same thing, but i'm not sure whether the different LZ77 changes anything. I'm not sure due to my second problem, which is that the game won't run on the no$. i could try putting it on my sd card, but i have noticed that jjewel had a few screenshots...so if anyone knows how to get it to work on it, i'm all ears.

Don't know about the LZ77 but for the emulator, my game ROM worked fine on No$GBA 2.6a and DeSmuME.0.9.4-win32. Could it be a problem with your game ROM?
 

suruz

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
607
Trophies
0
Website
Visit site
XP
338
Country
I got this random error when I tried playing the ROM with NO$GBA 2.6 xDD
2iqftkh.png


And that's after changing the save type to the correct one, and resetting the cart twice... @_@

The game works fine on my flashcard though.

If the game doesn't run AT ALL, it may be a faulty rom or something... :wtf:
 

dnniwa485

Well-Known Member
OP
Member
Joined
Oct 4, 2009
Messages
458
Trophies
0
XP
13
Country
just use the 2.6a version of no$gba .. itll work fine

asabf.jpg


see.. but one thing, set the save to autodetect or you cant use youre save file on your flashcart
 

suruz

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
607
Trophies
0
Website
Visit site
XP
338
Country
dnniwa485 said:
just use the 2.6a version of no$gba .. itll work fine

asabf.jpg


see.. but one thing, set the save to autodetect or you cant use youre save file on your flashcart

Ahh ok, thanks... I dont need to use an emulator, I was just curious xD
 

azerty1

Well-Known Member
Member
Joined
Mar 22, 2009
Messages
160
Trophies
0
Age
29
Website
Visit site
XP
99
Country
Canada
fixed the problem jjewwel found.
i haven't tested whether the strange compression will make the rom crash or anything, but when i ran all four methods, it produced a file same size, same pointers as the original, the only difference being the differing compression, and things were the right size and pointers were reset properly when i added and deleted random lines.

This does not automatically turn all input into two-byte ascii, though, since you guys changed the font.

http://www.mediafire.com/download.php?qlb5mditwjn
 

dnniwa485

Well-Known Member
OP
Member
Joined
Oct 4, 2009
Messages
458
Trophies
0
XP
13
Country
ok i extracted the scripts and tranlated the 1st scene on hotupa hot spring resort.

for some reason.. inserting the text will generate this error:
Code:
Description:
ÂÂStopped working

Problem signature:
ÂÂProblem Event Name:ÂÂÂÂCLR20r3
ÂÂProblem Signature 01:ÂÂÂÂnegitool.exe
ÂÂProblem Signature 02:ÂÂÂÂ1.0.3768.40289
ÂÂProblem Signature 03:ÂÂÂÂ4bd65893
ÂÂProblem Signature 04:ÂÂÂÂmscorlib
ÂÂProblem Signature 05:ÂÂÂÂ2.0.0.0
ÂÂProblem Signature 06:ÂÂÂÂ4a275af7
ÂÂProblem Signature 07:ÂÂÂÂ15d
ÂÂProblem Signature 08:ÂÂÂÂ38
ÂÂProblem Signature 09:ÂÂÂÂSystem.ArgumentOutOfRange
ÂÂOS Version:ÂÂÂÂ6.1.7600.2.0.0.256.1
ÂÂLocale ID:ÂÂÂÂ1124

and after that error it wont let me see the results .. sob sob
 

Raika

uguu
Member
Joined
Sep 15, 2008
Messages
4,858
Trophies
1
Age
29
Location
uguu
XP
309
Country
Wow, I thought I was the only one who read the Negima manga on this forum.
ohmy.gif

It's good to know that so many people here like this manga/anime.
Although I wish to help, I have 0 experience in hacking and translating, so all I can do is to wish you guys the best of luck, so...
Good luck guys!
yay.gif
 

azerty1

Well-Known Member
Member
Joined
Mar 22, 2009
Messages
160
Trophies
0
Age
29
Website
Visit site
XP
99
Country
Canada
dnniwa485 said:
ok i extracted the scripts and tranlated the 1st scene on hotupa hot spring resort.

for some reason.. inserting the text will generate this error:
Code:
Description:
ÂÂStopped working

Problem signature:
ÂÂProblem Event Name:ÂÂÂÂCLR20r3
ÂÂProblem Signature 01:ÂÂÂÂnegitool.exe
ÂÂProblem Signature 02:ÂÂÂÂ1.0.3768.40289
ÂÂProblem Signature 03:ÂÂÂÂ4bd65893
ÂÂProblem Signature 04:ÂÂÂÂmscorlib
ÂÂProblem Signature 05:ÂÂÂÂ2.0.0.0
ÂÂProblem Signature 06:ÂÂÂÂ4a275af7
ÂÂProblem Signature 07:ÂÂÂÂ15d
ÂÂProblem Signature 08:ÂÂÂÂ38
ÂÂProblem Signature 09:ÂÂÂÂSystem.ArgumentOutOfRange
ÂÂOS Version:ÂÂÂÂ6.1.7600.2.0.0.256.1
ÂÂLocale ID:ÂÂÂÂ1124

and after that error it wont let me see the results .. sob sob
can you send me your translated text file? I'll debug it...
 

suruz

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
607
Trophies
0
Website
Visit site
XP
338
Country
I found the first line of text in the game, and literally just changed that line to english. I kept the @ sign, made sure it didn't go over the number of characters..

Then I ran your tool, and first did 'recompress' and then 'insert'. But it froze every time.. dunno about any error message, it just froze. All the files were in the right folder, I didnt change anything else at all..

It created a packfile_new or something, but it was identical to the original packfile (Tried repacking the game, and the line I changed was still in japanese)

Anyway, I was just curious so I tried it out for one line :/ Hope u guys figure it out..

EDIT: I edited the FPAK20053832_2.txt file in the 20053832 folder. And i changed the first japanese line to: I knew it!@Chupacabra!
(I dunno.. im going to bed now)
 

dnniwa485

Well-Known Member
OP
Member
Joined
Oct 4, 2009
Messages
458
Trophies
0
XP
13
Country
yes the problem stopeed working after the FPAK20053832_77 file..

anyway.. trying it again...ill see if it works

EDIT:

it seems its fine now.. but after the process it generates a packfile.pak.new?

then i replace the file with the new one. then repack the NDS

after that.. test it on no$gba and cause a Black Screen of Death as soon as you select, new game or load game.

heres my test file

from FPAK20053832_2.txt

Code:
Index:48
Length:37
Hey Listen?@Chupacabra does exist??
Index:88
Length:35
Huh, What's wrong Asuna-san?@Is there somethings wrong?
Index:126
Length:25
This?@Read it?
Index:154
Length:37
Ehh, so Asuna-san is reading newspaper?
Index:197
Length:16
What do you mean by that?
Index:219
Length:31
So?@What about this newspaper?
Index:253
Length:12
Read it?
Index:268
Length:91
Anxious incidents at hitou hot spring?@It might be a suspect for the mysterious blood sucker!?@It might be..@They talking about Chupacabra?
Index:362
Length:107
Don't Beleive what newspaper says@..@Ojou-sama you must not involve@yourself in this rudiculous research club…?
Index:475
Length:22
Hey, what do you mean rudiculous?!
Index:503
Length:35
So, What will you do?@Are you planning to capture those things?
Index:541
Length:45
Yep?@Chupacabra research club, Let's GO?
Index:625
Length:41
???????@?????????????
Index:675
Length:35
????@?????????????
Index:716
Length:39
???????@????????????
Index:782
Length:85
???????@???????@?????????????@??????????????
Index:873
Length:47
??????????@?????????????
Index:926
Length:64
??????????@????????????@?????????
Index:1017
Length:35
?????????@????????
Index:1069
Length:14
???????
Index:1113
Length:49
????????…?@??????????????
Index:1165
Length:33
????@????????????
Index:1228
Length:28
??????????????
Index:1259
Length:37
?????…?@???????????
Index:1299
Length:8
????
Index:1326
Length:127
????????????@???????????@????????@???????@???????????@????????????
Index:1481
Length:18
?????????
Index:1522
Length:16
????????
Index:1582
Length:37
????@??????????????
Index:1622
Length:31
???@????????????
Index:1656
Length:45
???????????@???????????
Index:1707
Length:22
???????????
Index:1735
Length:39
?????@??????????????
Index:1777
Length:87
??????????????@????????????@?????@???????????
Index:1867
Length:39
????????@???????????
Index:1956
Length:26
?????????????
Index:1985
Length:28
??????????????
Index:2016
Length:22
???????????
Index:2068
Length:33
????@????????????
Index:2104
Length:43
???????@??????????????
Index:2156
Length:20
…?????????
Index:2206
Length:24
????????????
Index:2233
Length:20
??????????
Index:2256
Length:22
???????????
Index:2297
Length:56
????@????????????@???????????
Index:2375
Length:70
?????????@??????????????@???????????
Index:2481
Length:39
??????????@?????????
Index:2523
Length:29
??????@????????
Index:2555
Length:41
?????????@???????????
Index:2599
Length:54
???????@?????????@??????????
Index:2656
Length:53
??????????????@????????????
Index:2712
Length:22
???????????

xD.. 1st scene
 

azerty1

Well-Known Member
Member
Joined
Mar 22, 2009
Messages
160
Trophies
0
Age
29
Website
Visit site
XP
99
Country
Canada
i tried out your file and everything worked fine as far as i could see...it was compressed, it was inserted and all the pointers were reset perfectly...

that could be the weird compression differences. could you first try just running decompress, extract, insert and recompress in succession, just to see if that changes anything. i may need to edit the lz77 compression method.
 

jjjewel

Well-Known Member
Member
Joined
Dec 17, 2009
Messages
1,010
Trophies
0
XP
522
Country
United States
Okay, after 2 cups of iced coffee that made me too alert to sleep, I cracked the mystery behind FPAKs and the font.
happy.gif
(I guess.)

Anyway, now I'm too sleepy to explain the process. I'll post later when I get enough sleep. It's kind of making some padding (added extra zero bytes spaces) for the files we need to change so when we inserted the translation and repacked, the whole packfile.pak file is still working correctly. Then also need to adjust the FPAK offset for the NFTR file. You can then import any NFTR from any other games you have. The one I used here is from Ouran Host Club's font.
biggrin.gif


(Pic 2 & 3 show that you'll have to use a manual line break ("@" sign) to make the script look nicer but the script is still readable even without the line breaks.)

neginewfont01.png
36900367.png
45650396.png
 

dnniwa485

Well-Known Member
OP
Member
Joined
Oct 4, 2009
Messages
458
Trophies
0
XP
13
Country
@azerty.

well i do process this "decompress" by typing on the console. After that it genrates pak files... well its preety unknown file to me so, looked again in the console, this time i typed "extract". After that it generates txt files. well that good i can open it now.. Then after that, i made some changes in one txt file. Then i looked again on the console, and typed "insert", well it did says some new lines inserted or something. Then after that i typed "recompress" after the processing is done, it generates "packfile.pak.new" which seems the new generated pak file with changes that i made. Then i replace the "packfile.pak.new" with the old "packfile.pak" (renamed it). Then i used ndstool to repack it.

After the repacking of ROM, the process did well fine, until i select new game or load game, which is im stuck on Black Screen, and it seems the game doesnt respond.

Let me knew if theres something wrong what i done with your tool.

@jjjewel

oh my, you did well on that one, i hope you share your knowledge with azerty so i can do inserting translated text, and release a menu, item, battle menu patch.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Looks like Link's Awakening was metaphorical.