Skip to content

Commit

Permalink
test hook c skill tester
Browse files Browse the repository at this point in the history
  • Loading branch information
Veslyquix committed Feb 17, 2025
1 parent a884083 commit 2d02e66
Show file tree
Hide file tree
Showing 15 changed files with 15,742 additions and 15,432 deletions.
18 changes: 18 additions & 0 deletions .FE8_Installer.event
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,26 @@ WORD 1
VramDest_DebugFont:
WORD 0x4800 // in glowy

EphraimCharPalette:
BYTE $10 $80 $00 $00 $00 $55 $53 $FF $7F $FF $6B $1F $4B $00 $18 $2A $2E $19 $B3 $7F $89 $7A $00 $62 $55 $FA $04 $90 $0C $98 $77 $00 $F3 $6E $50 $5E $69 $3D $A5 $14 $C0 $F0 $1F $10 $1F $1C $5B $3D $42 $99 $31 $20 $D1 $18 $F0 $1F $62 $55 $4E $32 $49 $00 $25 $78 $53 $71 $4F $AF $36 $68 $40 $21 $F0 $1F $62 $55 $F1 $39 $29 $29 $00 $F7 $5E $B5 $56 $31 $46 $6B $2D $00 $A5 $14
EirikaCharPalette:
BYTE $10 $80 $00 $00 $00 $55 $53 $FF $7F $FF $6B $1F $4B $00 $18 $2A $2E $19 $B3 $7F $89 $7A $00 $62 $5D $FF $1B $9E $1A $94 $01 $00 $1C $01 $76 $08 $6F $0C $A5 $14 $80 $90 $1F $99 $7F $92 $7E $6B $69 $9F $06 $42 $BD $29 $14 $0D $F0 $1F $B0 $3F $4D $06 $23 $6C $12 $86 $05 $F0 $1F $50 $1F $52 $00 $4A $8C $31 $C6 $18 $A5 $14


PUSH

// EF8008 CharacterPaletteTable is followed by free space, so don't bother repointing
ORG $95EF07
BYTE 0x6D
ORG 0xef86d4
POIN EphraimCharPalette

ORG $95EEA5
BYTE 0x6E
ORG 0xef86e4
POIN EirikaCharPalette



// 48752 5
// handaxes 588C0
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ Temporary Items
fe6srr.ups
fe7srr.ups
fe8srr.ups
fe8srr_c_skillsys.ups
5 changes: 5 additions & 0 deletions C_code.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ u32 HashByte_Simple(u32 rn, int max)
extern u8 VanillaSkill[];
extern int NumberOfSkills;
extern u8 * AlwaysSkill;
void EnableRandSkills(void)
{
RandValues->skills = 1;
}

int RandomizeSkill(int id, struct Unit * unit)
{
if (!id)
Expand Down
58 changes: 58 additions & 0 deletions MAKE_fe8_cskillsys.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@echo off

@rem USAGE: "MAKE HACK_full.cmd" [quick]
@rem If first argument is "quick", then this will not update text, tables, maps, or generate a patch
@rem "MACK HACK_quick.cmd" simply calls this but with the quick argument, for convenience

@rem defining buildfile config

set "source_rom=%~dp0fe8-kernel-dev.gba"

set "main_event=%~dp0RomBuildfile_c_skillsys.event"

set "target_rom=%~dp0fe8srr_c_skillsys.gba"
set "target_ups=%~dp0fe8srr_c_skillsys.ups"
set "target_sym=%~dp0fe8srr_c_skillsys.sym"

@rem defining tools

set "c2ea=%~dp0Tools\C2EA\c2ea"
set "textprocess=%~dp0Tools\TextProcess\text-process-classic"
set "ups=%~dp0Tools\ups\ups"
set "parsefile=%~dp0EventAssembler\Tools\ParseFileUTF8.exe"
set "tmx2ea=%~dp0Tools\tmx2ea\tmx2ea"
set symcombo=%~dp0Tools\sym\SymCombo.exe

@rem set %~dp0 into a variable because batch is stupid and messes with it when using conditionals?

set "base_dir=%~dp0"

@rem do the actual building

echo Copying ROM

copy "%source_rom%" "%target_rom%"

echo:
echo Assembling

cd "%base_dir%EventAssembler"
ColorzCore A FE8 "-output:%target_rom%" "-input:%main_event%" --nocash-sym "--build-times"


echo:
echo Generating patch

cd "%base_dir%"
"%ups%" diff -b "%source_rom%" -m "%target_rom%" -o "%target_ups%"


echo:
echo Generating sym file

echo: | ( "%symcombo%" "%target_sym%" "%target_sym%" "fe8.sym" )

echo:
echo Done!

pause
41 changes: 22 additions & 19 deletions Patches/FE8.lyn.event

Large diffs are not rendered by default.

Binary file modified Patches/FE8.o
Binary file not shown.
Loading

0 comments on commit 2d02e66

Please sign in to comment.