peasant: hook up table compression to a lot of the dialog

does seem to be a net win
This commit is contained in:
Vince Weaver 2021-11-15 23:28:32 -05:00
parent bc883c428d
commit 9b53e239ef
9 changed files with 61 additions and 28 deletions

View File

@ -1 +1,2 @@
.include "text/cliff.inc" .include "text/lookup.inc"
.include "text/cliff.inc.lookup"

View File

@ -1,2 +1,3 @@
.include "text/inn.inc" .include "text/lookup.inc"
.include "text/inn.inc.lookup"

View File

@ -1,2 +1,3 @@
.include "text/inside.inc" .include "text/lookup.inc"
.include "text/inside.inc.lookup"

View File

@ -1,2 +1,3 @@
.include "text/peasant1.inc" .include "text/lookup.inc"
.include "text/peasant1.inc.lookup"

View File

@ -1,2 +1,3 @@
.include "text/peasant3.inc" .include "text/lookup.inc"
.include "text/peasant3.inc.lookup"

View File

@ -1 +1,2 @@
.include "text/peasant4.inc" .include "text/lookup.inc"
.include "text/peasant4.inc.lookup"

View File

@ -1,13 +1,42 @@
CC = gcc CC = gcc
CFLAGS = -O2 -Wall -g CFLAGS = -O2 -Wall -g
all: dump_text shrink_text peasant2.inc.lookup all: dump_text shrink_text \
peasant1.inc.lookup \
peasant2.inc.lookup \
peasant3.inc.lookup \
peasant4.inc.lookup \
kerrek.inc.lookup \
inside.inc.lookup \
inn.inc.lookup \
cliff.inc.lookup
### ###
cliff.inc.lookup: cliff.inc shrink_text
./shrink_text < cliff.inc > cliff.inc.lookup
inn.inc.lookup: inn.inc shrink_text
./shrink_text < inn.inc > inn.inc.lookup
inside.inc.lookup: inside.inc shrink_text
./shrink_text < inside.inc > inside.inc.lookup
peasant1.inc.lookup: peasant1.inc shrink_text
./shrink_text < peasant1.inc > peasant1.inc.lookup
peasant2.inc.lookup: peasant2.inc shrink_text peasant2.inc.lookup: peasant2.inc shrink_text
./shrink_text < peasant2.inc > peasant2.inc.lookup ./shrink_text < peasant2.inc > peasant2.inc.lookup
peasant3.inc.lookup: peasant3.inc shrink_text
./shrink_text < peasant3.inc > peasant3.inc.lookup
peasant4.inc.lookup: peasant4.inc shrink_text
./shrink_text < peasant4.inc > peasant4.inc.lookup
kerrek.inc.lookup: kerrek.inc shrink_text
./shrink_text < kerrek.inc > kerrek.inc.lookup
### ###

View File

@ -1,13 +1,11 @@
orig lzsa word wordlzsa orig lzsa word wordlzsa
==== ==== ==== ==== ==== ==== ==== ====
cliff 2836 1801 cliff 2836 1801 2209 1656
inn 3815 2251 inn 3815 2251 2926 2105
inside 7213 4111 inside 7213 4111 5645 3891
peasant1 7465 4234 peasant1 7758 4313 6564 4286
peasant2 7439 4269 5807 4055 peasant2 7439 4269 5807 4055
peasant3 6229 3599 peasant3 6229 3599 4837 3379
peasant4 6819 3947 peasant4 7112 4023 5991 3997
not peasant1/peasant4 has some of the kerrek text commented out
so it would fit

View File

@ -58,23 +58,23 @@ kerrek_look_at_message:
.byte "just go, ",34,"Yay! Piggies!",34,0 .byte "just go, ",34,"Yay! Piggies!",34,0
; + look (dead Kerrek) ; + look (dead Kerrek)
;.byte "There are large hoof prints",13 .byte "There are large hoof prints",13
;.byte "in the grass here.",13 .byte "in the grass here.",13
;.byte "There is a large",13 .byte "There is a large",13
;.byte "Kerrek-shaped mound on the",13 .byte "Kerrek-shaped mound on the",13
;.byte "grass.",0 .byte "grass.",0
; + look (rotting Kerrek) ; + look (rotting Kerrek)
;.byte "There are large hoof prints",13 .byte "There are large hoof prints",13
;.byte "in the grass here. Part",13 .byte "in the grass here. Part",13
;.byte "of the ground looks just",13 .byte "of the ground looks just",13
;.byte "like a rotting kerrek.",0 .byte "like a rotting kerrek.",0
; + look (skeletal Kerrek) ; + look (skeletal Kerrek)
;.byte "There are large hoof prints",13 .byte "There are large hoof prints",13
;.byte "in the grass here.",13 .byte "in the grass here.",13
;.byte "Looks like someone left",13 .byte "Looks like someone left",13
;.byte "their spare bones here.",0 .byte "their spare bones here.",0
; + buy kerrek a cold one (in the Kerrek's domain while he's still alive) ; + buy kerrek a cold one (in the Kerrek's domain while he's still alive)
; (Warning: This speeds the Kerrek up, so be careful.) ; (Warning: This speeds the Kerrek up, so be careful.)