Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compression tool #139

Merged
merged 4 commits into from
Nov 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
# Denote all files that are truly binary and should not be modified.
*.png binary diff=hex
*.bin binary diff=hex
*.lz.match binary diff=hex

# these are generated but just in case
*.2bpp binary diff=hex
*.1bpp binary diff=hex
*.lz binary diff=hex
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
*.2bpp
*.pal

# compressed data
*.lz

# *disasm.py output file
*disasm_output.asm
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ clean: tidy
-o -iname '*.pal' \) \
-delete

find src/data \
\( -iname '*.lz' \) \
-delete

tidy:
$(RM) $(rom) \
$(rom:.gbc=.sym) \
Expand Down Expand Up @@ -158,3 +162,7 @@ src/gfx/titlescreen/title_screen_cgb.2bpp: rgbgfx += -x 12
$(RGBGFX) $(rgbgfx) -d1 -o $@ $<
$(if $(tools/gfx),\
tools/gfx $(tools/gfx) -d1 -o $@ $@)

# remove -m if you don't care for matching
%.lz: %
tools/compressor -m $(tools/compressor) $< $@
Binary file modified src/data/maps/permissions/challenge_hall.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/challenge_hall_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/challenge_hall_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/challenge_hall_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/challenge_machine_map_event.bin
Binary file not shown.
Binary file modified src/data/maps/permissions/challenge_machine_map_event_cgb.bin
Binary file not shown.
Binary file modified src/data/maps/permissions/club_lobby.bin
Binary file not shown.
Binary file added src/data/maps/permissions/club_lobby.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/club_lobby_cgb.bin
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/data/maps/permissions/deck_machine_map_event.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
��
��
2 changes: 1 addition & 1 deletion src/data/maps/permissions/deck_machine_map_event_cgb.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
��
��
Binary file modified src/data/maps/permissions/deck_machine_room.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/deck_machine_room_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/fighting_club.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/fighting_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/fighting_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/fighting_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/fire_club.bin
Binary file not shown.
Binary file added src/data/maps/permissions/fire_club.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/fire_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/fire_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/fire_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/grass_club.bin
Binary file not shown.
Binary file added src/data/maps/permissions/grass_club.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/grass_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/grass_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/grass_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/hall_of_honor.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/hall_of_honor_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/hall_of_honor_door_map_event.bin
Binary file not shown.
Binary file modified src/data/maps/permissions/hall_of_honor_door_map_event_cgb.bin
Binary file not shown.
Binary file modified src/data/maps/permissions/ishihara.bin
Binary file not shown.
Binary file added src/data/maps/permissions/ishihara.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/ishihara_cgb.bin
Binary file not shown.
Binary file added src/data/maps/permissions/ishihara_cgb.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/lightning_club.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/lightning_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/lightning_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/lightning_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/mason_laboratory.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/mason_laboratory_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/pokemon_dome.bin
Binary file not shown.
Binary file added src/data/maps/permissions/pokemon_dome.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/pokemon_dome_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/pokemon_dome_door_map_event.bin
Binary file not shown.
Binary file modified src/data/maps/permissions/pokemon_dome_door_map_event_cgb.bin
Binary file not shown.
Binary file modified src/data/maps/permissions/pokemon_dome_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/pokemon_dome_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/psychic_club.bin
Binary file not shown.
Binary file added src/data/maps/permissions/psychic_club.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/psychic_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/psychic_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/psychic_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/rock_club.bin
Binary file not shown.
Binary file added src/data/maps/permissions/rock_club.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/rock_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/rock_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/rock_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/science_club.bin
Binary file not shown.
Binary file added src/data/maps/permissions/science_club.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/science_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/science_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/science_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/water_club.bin
Binary file not shown.
Binary file added src/data/maps/permissions/water_club.bin.lz.match
Binary file not shown.
Binary file modified src/data/maps/permissions/water_club_cgb.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/water_club_entrance.bin
Binary file not shown.
Binary file not shown.
Binary file modified src/data/maps/permissions/water_club_entrance_cgb.bin
Binary file not shown.
Binary file not shown.
Loading