Mokha's Hacks Sundries

All for FE8U.

Some minor modifications suitable for porting to other people’s games may be shown here. Mainly write in C, C-Lib is called as decomp-based include files.

Battle Forcast Hit-Counts Hack

BkSel Expansion

Download Here

33

This hack enables you to get any number of hit counts to show on Battle-Forcast window.

Just include BkSelExpansion.event and you will make it.

Unit Status Rework

Expand Unit Status to 63 index

See Here

cSkillSys3

In vanilla, unit status (buff & debuffs) use a u8 byte at Unit Struct +0x30 , 4 bits for status-index, 4 bits for status-duration. In this work, we have expanded unit status index to 6 bits, which can support up to 63 different states simultaneously. Meanwhile, through a series of modifications, we successfully used the remaining 2 bits to make the status last for up to 4 turns.

Null BWL

Remove the total BWL Table entry

Download Here

BWL Table, or Battle & Win & Lose table, a ram-space as large as 0x460 size that can be saved and loaded in save & suspand data.

The data has no meaning to the game experience, but it can provide a 0x460 saveable data for hackers as a free-ram-space.

Previously @StanH has worked Brif-Bwl in Skills-Lite, in this work, we completely shielded this area from all read and write operations except save-data operations, making it a free-ram-space that can store data freely.

Ekr Skill Activate Anime Hack

Hack on Skill Anime Effect

Download Here

Reset the Bg config to null the semi-transparency effect.

Vanilla:32
Hack:33

Costum Game Intro Gfx

H&S Screen Rework

Download Here

32

DIY on H&S Screen. You could just include GameStartScreen.event and get it. For your own gfx, replace the file Data/GameIntro.4bpp.lz with a LZ77 compressed Png2Dmp file.

Weapon Selection routine’s Eyes Blink

Eyes blink in Weapon-Selection
// Portrait's eye will wink
ORG $22C0A
SHORT 0 0

ORG $005EA8
SHORT 0 0

32

Promotion List Expansion

Promotion Rework

update 2022.05.30: fix bugs on identify item id

Download Here

32

Reworked on promotin routinue to allow diy on promotion list. Now you can freely decide the promotion list based on character index, class index and item index. Since this patch does not involve the item system rework, if you want to use non-promotion items to promote characters, you will also need other patches such as IER.

Just include PromotionRework.event and then you will get it. For custom usage, define your own usr-function const u8 *GetUnitPromoList(u8 charId, u8 classId, u8 itemId), I have made an example.

Map Anime Effect: Gravity

A Map Anime Effect

Download here

32

A DIY map anime, just like Debuff-Status-Clear-Routine.
Just include MapAnimesInstaller.event, then call for function void StartMapAnim_Gravity(struct Unit* unit, ProcPtr proc), then it will start a child blocking proc to show anime effect.

Due to the default of the program, the target character exists in the current screen, so there is no effect of moving the camera. If not, you can either move the camera over before calling the function, or delete the comment on line 41 in Gravity/Gravity.c

Replace “a” or “an” to space

Function: PrependArticleToString rework

Download Here

For now, replace “a” patch is just delete the character, this patch has rewrite function void PrependArticleToString(char *str, const char *insert_str, s8 c) so that we can replace “a” to a space.

Just include “RemoveA.lyn.event” and then you will make it. Don’t forget define your own FreeSpace since this is just a c-generated file.

13 Likes

Ekr Skill Activate Anime Hack

Download Here

Reset the Bg config to null the semi-transparency effect.

Vanilla:32
Hack:33

4 Likes

Custom Game Intro Gfx

Download Here

32

DIY on H&S Screen. You could just include GameStartScreen.event and get it. For your own gfx, replace the file Data/GameIntro.4bpp.lz with a LZ77 compressed Png2Dmp file.

4 Likes

Eyes blink during Weapon-Selection

// Portrait's eye will wink
ORG $22C0A
SHORT 0 0

ORG $005EA8
SHORT 0 0

32

8 Likes

Promotion List Expansion

update 2022.05.30: fix bugs on identify item id

Download Here

32

Reworked on promotin routinue to allow diy on promotion list. Now you can freely decide the promotion list based on character index, class index and item index. Since this patch does not involve the item system rework, if you want to use non-promotion items to promote characters, you will also need other patches such as IER.

Just include PromotionRework.event and then you will get it. For custom usage, define your own usr-function const u8 *GetUnitPromoList(u8 charId, u8 classId, u8 itemId), I have made an example.

6 Likes

Is there a standalone version of the skill animation that shows the skill name?
image

Yes, I slightly modified the activition routine, add the independent skill name rather than skill desc to show on screen.

But this patch is also support to the skillsys_FE8

1 Like

It seems that item index may be failed to indentify in Promotion-Rework patch, I have fixed this bug, also updated to download link to git repo.

Map Anime Effect: Gravity

Download here

32

A DIY map anime, just like Debuff-Status-Clear-Routine.
Just include MapAnimesInstaller.event, then call for function void StartMapAnim_Gravity(struct Unit* unit, ProcPtr proc), then it will start a child blocking proc to show anime effect.

Due to the default of the program, the target character exists in the current screen, so there is no effect of moving the camera. If not, you can either move the camera over before calling the function, or delete the comment on line 41 in Gravity/Gravity.c:

// PROC_CALL_2( ProcGravity_MoveCamera ),
7 Likes

Replace “a” or “an” to space

Download Here

For now, replace “a” patch is just delete the character, this patch has rewrite function void PrependArticleToString(char *str, const char *insert_str, s8 c) so that we can replace “a” to a space.

Just include RemoveA.lyn.event and then you will make it. Don’t forget define your own FreeSpace since this is just a C-generated file.

This is also supported for UTF8 Characters such as Chinese and Japanese texts.

5 Likes