Add the ingame book
ouioui2003 opened this issue · 3 comments
Hi
Another real difficult enhancement:
In the game, you can see in the items bag that you have a tab with all importants stuffs in.
The only item that have a green button on the right side is "the book".
In the Level5 Premium Platinum Demo of Ninokuni, the book haven't the green button in the bag.
I think the developers wanted to put the ingame book here, but had changed their minds and replace that with only a message.
Perhaps, the code to the ingame book is already here, just switched with the message and left there like dead code.
We all know that the game have plenty graphs from the demo version. Maybe it could be possible to replace the code behind the green button by the dead code, or grab the ingame book launcher in the demo version.
After have it activated, it will be another story to add all runes not in the game.
Good try, but I have just checked and there is no old code in that click button function. Actually, this button is used for:
- Give food to your team members.
- Call the dragon.
- Show that dialog text for the Magic Book
RAM:021165CA LDR R0, [R5,R0] ; Get selected object ID
RAM:021165CC CMP R0, #0x83 ; Check if it's 'Magic Book'
RAM:021165CE BNE isFood
RAM:021165D0 LDR R1, =0x2141660 ; Get 'Open your book...' string
RAM:021165D4 LDR R1, [R1,#0x14] ; ...
RAM:021165D2 ADD R6, SP, #0x310 ; Copy to stack
RAM:021165D6 MOVS R0, R6 ; ...
RAM:021165D8 BL ascii_copy ; ...
RAM:021165DC MOVS R0, R5
RAM:021165DE LDR R2, =0x2115C85
RAM:021165E0 B loc_2116628
[Function pool]
RAM:02116628 ADDS R0, #0xA4
RAM:0211662A MOVS R1, R6
RAM:0211662C MOVS R3, R5
RAM:0211662E STR R4, [SP]
RAM:02116630 BL dialog_show
[...] returns
As you can see, it checks if the selected object is the magic book, and in that case show that message, otherwise it show the menu to give food. There isn't more code for that function.
Maybe there is code to show the Magic Book menu somewhere, but it would be really hard to find without any reference... In fact, the demo text to explain the runes is not in the final game. Have you found the background images for the demo Magic Book menu in the game? If so or you have other idea, I will reopen the issue and continue looking for it.
Some backgrounds are in:
/data/UI/Menu/Skin/2/Rune/bg_a2.n2d
/data/UI/Menu/Skin/2/Rune/bg_a4.n2d
/data/UI/Menu/Skin/2/Rune/bg_a5.n2d
But it can be something useless in the game.
Or you can try in the demo version /data/UI/Menu/Skin/2/RuneNote (Can't verify: my tinke doesn't show NPCK files for that rom).
Confirmed !
Ingame Book In Premium Platinum Demo version: Scene_MenuRuneNote
Texts and logic to handle ingame Book screens in: /ftc/overlay9_19 (not the same as real game)
Background lower screen: /data/UI/Menu/Skin/2/RuneNote/bg_b.n2d
Backgrounds upper screen: /data/UI/Menu/Skin/2/RuneNote/bg_rune0xx.n2d (xx from 02 to 09)
Green buttons Left and right: /data/UI/Menu/Skin/2/RuneNote/button.n2d
Back button: Like others : /data/UI/Common/back.n2d
To make some rooms in the real game, you can delete /data/UI/Common/ed_.n2d, /data/UI/Common/TGS.n2d, /data/UI/Common/announce.n2d and /data/UI/Common/logo*.n2d because it's some graphs not used, from the demo version.