C Setup for Dummies

FE8U decomp

FE8U Addresses of decomp functions

Setting up

This guide only covers Windows.

Linux & make focused guide links

GitHub - MokhaLeee/FE-CLib-Mokha: C headers and references for FE8 wizardry

[GUIDE/DOC] EA/make/decomp wizardry

[GUIDE/DOC] ASM Hacking in C (with EA)

Install devkitPro to its default path of c:\devkitPro | Wiki

devkitPro: assembles code

image

Download lyn.exe by @StanH and place it into c:\devkitPro\ | FEU Thread

lyn.exe: links code

Download C_HackingTemplate and place it as C:\devkitPro\FE-CLib_2024

Double click aMake.bat

Double click aMake.bat to test if it worked. If it errors, then try and follow the instructions again.

No errors.

If you repeatedly click it without making any changes, it will simply tell you it’s already up to date:

Ok, cool. Now what?

  • Find a function from the FE8U decomp you want to edit (or ask if someone can help find x function based on your description).
  • Edit C_Code.c, click aMake.bat when done, & install the resulting .lyn.event file (eg. via FEBuilder’s insert EA).

The example provided is ComputeBattleUnitAvoidRate, as it’s a simple function with an easily noticeable result. I highly recommend that you follow the above steps and test that your formula change has an ingame result.

Other useful programs

Install notepad++ or sublime for editing text and setup EA highlighting & asm highlighting.

notepad++: QoL over notepad

image

Install grepWin

grepWin: find things within a buildfile easier

image

Install GithubDesktop and create an account

GithubDesktop: so we can see your edits

Fork the SkillSystemBuildfile and make your copy public.

SkillSystemBuildfile: Begin testing custom skills within seconds; febuilder is very slow for this

10 Likes