mirror of
https://github.com/Artrios/pokecarde.git
synced 2026-04-26 00:27:25 -05:00
build (#11)
This commit is contained in:
parent
c3d117f733
commit
1cd781b903
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
|
|
@ -6,6 +6,26 @@ on:
|
|||
- master
|
||||
|
||||
jobs:
|
||||
BuildGift:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Verify gift
|
||||
run: |
|
||||
cd giftpokemon && make
|
||||
|
||||
BuildRibbons:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Verify ribbons
|
||||
run: |
|
||||
cd ribbons && make
|
||||
|
||||
BuildDecoration:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -2,41 +2,41 @@ all: 00-G000-EN.raw
|
|||
|
||||
|
||||
giftpokemon-%.tx: giftpokemon.asm
|
||||
python ../scripts/regionalize.py $< $@ $* $*
|
||||
python3 ../scripts/regionalize.py $< $@ $* $*
|
||||
giftpokemon-%.o: giftpokemon-%.tx
|
||||
./rgbasm -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgbasm -o $@ $<
|
||||
giftpokemon-%.gbc: giftpokemon-%.o
|
||||
./rgblink -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgblink -o $@ $<
|
||||
giftpokemon1-%.bin: giftpokemon-%.gbc
|
||||
python ../scripts/stripgbc.py $< $@
|
||||
python3 ../scripts/stripgbc.py $< $@
|
||||
giftpokemon-%.bin: giftpokemon1-%.bin
|
||||
python ../scripts/pokemonstructure.py $< $@
|
||||
python3 ../scripts/pokemonstructure.py $< $@
|
||||
giftpokemon-%.mev: giftpokemon-%.bin
|
||||
python ../scripts/checksum.py $< $@
|
||||
python3 ../scripts/checksum.py $< $@
|
||||
|
||||
prologue-%.tx: prologue.asm
|
||||
python ../scripts/regionalize.py $< $@ $* $*
|
||||
python3 ../scripts/regionalize.py $< $@ $* $*
|
||||
prologue-%.o: prologue-%.tx
|
||||
./rgbasm -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgbasm -o $@ $<
|
||||
prologue-%.gbc: prologue-%.o
|
||||
./rgblink -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgblink -o $@ $<
|
||||
prologue-%.bin: prologue-%.gbc
|
||||
python ../scripts/stripgbc.py $< $@
|
||||
python3 ../scripts/stripgbc.py $< $@
|
||||
|
||||
00-G000-%.tx: 00-G000.asm giftpokemon-%.mev prologue-%.bin
|
||||
python ../scripts/ereadertext.py $< $@ $*
|
||||
python3 ../scripts/ereadertext.py $< $@ $*
|
||||
00-G000-%.o: 00-G000-%.tx
|
||||
./rgbasm -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgbasm -o $@ $<
|
||||
00-G000-%.gbc: 00-G000-%.o
|
||||
./rgblink -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgblink -o $@ $<
|
||||
00-G000-%.z80: 00-G000-%.gbc
|
||||
python ../scripts/stripgbc.py $< $@
|
||||
python3 ../scripts/stripgbc.py $< $@
|
||||
00-G000-%.vpk: 00-G000-%.z80
|
||||
./nevpk -c -i $< -o $@
|
||||
../bin/nedc/v1.4/nevpk -c -i $< -o $@
|
||||
00-G000-%.raw: 00-G000-%.vpk
|
||||
./nedcmake -i $< -o $@ -type 1 -region 1
|
||||
../bin/nedc/v1.4/nedcmake -i $< -o $@ -type 1 -region 1
|
||||
mv $@-01.raw $@
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.tx *.o *.gbc *.z80 *.bin *.mev *.vpk *.raw
|
||||
rm -f *.tx *.o *.gbc *.z80 *.bin *.mev *.vpk *.raw
|
||||
|
|
|
|||
|
|
@ -2,39 +2,39 @@ all: 00-R000-EN.raw
|
|||
|
||||
|
||||
ribbon-%.tx: ribbon.asm
|
||||
python ../scripts/regionalize.py $< $@ $* $*
|
||||
python3 ../scripts/regionalize.py $< $@ $* $*
|
||||
ribbon-%.o: ribbon-%.tx
|
||||
./rgbasm -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgbasm -o $@ $<
|
||||
ribbon-%.gbc: ribbon-%.o
|
||||
./rgblink -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgblink -o $@ $<
|
||||
ribbon-%.bin: ribbon-%.gbc
|
||||
python ../scripts/stripgbc.py $< $@
|
||||
python3 ../scripts/stripgbc.py $< $@
|
||||
ribbon-%.mev: ribbon-%.bin
|
||||
python ../scripts/checksum.py $< $@
|
||||
python3 ../scripts/checksum.py $< $@
|
||||
|
||||
prologue-%.tx: prologue.asm
|
||||
python ../scripts/regionalize.py $< $@ $* $*
|
||||
python3 ../scripts/regionalize.py $< $@ $* $*
|
||||
prologue-%.o: prologue-%.tx
|
||||
./rgbasm -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgbasm -o $@ $<
|
||||
prologue-%.gbc: prologue-%.o
|
||||
./rgblink -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgblink -o $@ $<
|
||||
prologue-%.bin: prologue-%.gbc
|
||||
python ../scripts/stripgbc.py $< $@
|
||||
python3 ../scripts/stripgbc.py $< $@
|
||||
|
||||
00-R000-%.tx: 00-R000.asm ribbon-%.mev prologue-%.bin
|
||||
python ../scripts/ereadertext.py $< $@ $*
|
||||
python3 ../scripts/ereadertext.py $< $@ $*
|
||||
00-R000-%.o: 00-R000-%.tx
|
||||
./rgbasm -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgbasm -o $@ $<
|
||||
00-R000-%.gbc: 00-R000-%.o
|
||||
./rgblink -o $@ $<
|
||||
../bin/rgbds/v0.5.0/rgblink -o $@ $<
|
||||
00-R000-%.z80: 00-R000-%.gbc
|
||||
python ../scripts/stripgbc.py $< $@
|
||||
python3 ../scripts/stripgbc.py $< $@
|
||||
00-R000-%.vpk: 00-R000-%.z80
|
||||
./nevpk -c -i $< -o $@
|
||||
../bin/nedc/v1.4/nevpk -c -i $< -o $@
|
||||
00-R000-%.raw: 00-R000-%.vpk
|
||||
./nedcmake -i $< -o $@ -type 1 -region 1
|
||||
../bin/nedc/v1.4/nedcmake -i $< -o $@ -type 1 -region 1
|
||||
mv $@-01.raw $@
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.tx *.o *.gbc *.z80 *.bin *.mev *.vpk *.raw
|
||||
rm -f *.tx *.o *.gbc *.z80 *.bin *.mev *.vpk *.raw
|
||||
|
|
|
|||
|
|
@ -18,15 +18,15 @@ key3 = ((pv ^ otid) >> 16) & mask
|
|||
key2 = ((pv ^ otid) >> 8) & mask
|
||||
key1 = (pv ^ otid) & mask
|
||||
|
||||
substructG=[struct.unpack('<B', data[68])[0]]
|
||||
substructA=[struct.unpack('<B', data[80])[0]]
|
||||
substructE=[struct.unpack('<B', data[92])[0]]
|
||||
substructM=[struct.unpack('<B', data[104])[0]]
|
||||
substructG=[struct.unpack('<B', data[68:69])[0]]
|
||||
substructA=[struct.unpack('<B', data[80:81])[0]]
|
||||
substructE=[struct.unpack('<B', data[92:93])[0]]
|
||||
substructM=[struct.unpack('<B', data[104:105])[0]]
|
||||
for i in range(1,12):
|
||||
substructG.append(struct.unpack('<B', data[68+i])[0])
|
||||
substructA.append(struct.unpack('<B', data[80+i])[0])
|
||||
substructE.append(struct.unpack('<B', data[92+i])[0])
|
||||
substructM.append(struct.unpack('<B', data[104+i])[0])
|
||||
substructG.append(struct.unpack('<B', data[68+i:69+i])[0])
|
||||
substructA.append(struct.unpack('<B', data[80+i:81+i])[0])
|
||||
substructE.append(struct.unpack('<B', data[92+i:93+i])[0])
|
||||
substructM.append(struct.unpack('<B', data[104+i:105+i])[0])
|
||||
|
||||
|
||||
checksum=0
|
||||
|
|
@ -206,5 +206,5 @@ else:
|
|||
data = data[0:104+i] + struct.pack('<B', substructG[i]) + data[105+i:]
|
||||
|
||||
|
||||
out = open(sys.argv[2], 'w')
|
||||
out = open(sys.argv[2], 'wb')
|
||||
out.write(data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user