Added some statistics to the build to see the size of the various texts groups in the code
@@ -5,11 +5,14 @@ | ||
5 | 5 | |
6 | 6 | .text |
7 | 7 | |
8 | +_StartGameTextData | |
9 | + | |
8 | 10 | #ifdef LANGUAGE_FR |
9 | -#pragma osdk replace_characters : é:{ è:} ê:| à:@ | |
11 | +#pragma osdk replace_characters : é:{ è:} ê:| à:@ î:i | |
10 | 12 | #endif |
11 | 13 | |
12 | 14 | // Small feedback messages and prompts |
15 | +_StartMessagesAndPrompts | |
13 | 16 | #ifdef LANGUAGE_FR |
14 | 17 | _gTextAskInput .byt "Quels sont vos instructions ?",0 |
15 | 18 | _gTextNothingHere .byt "Il n'y a rien d'important ici",0 |
@@ -57,8 +60,10 @@ | ||
57 | 60 | _gTextDogJumpingAtMe .byt "a dog jumping at me",0 |
58 | 61 | _gTextThugShootingAtMe .byt "a thug shooting at me",0 |
59 | 62 | #endif |
63 | +_EndMessagesAndPrompts | |
60 | 64 | |
61 | 65 | // Error messages |
66 | +_StartErrorMessages | |
62 | 67 | #ifdef LANGUAGE_FR |
63 | 68 | _gTextErrorInvalidDirection .byt "Impossible d'aller par la",0 |
64 | 69 | _gTextErrorCantTakeNoSee .byt "Je ne vois pas ca ici",0 |
@@ -110,8 +115,11 @@ | ||
110 | 115 | _gTextErrorInappropriate .byt "Probably inappropriate",0 |
111 | 116 | _gTextErrorDeadDontMove .byt "Dead don't move",0 |
112 | 117 | #endif |
118 | +_EndErrorMessages | |
113 | 119 | |
120 | + | |
114 | 121 | // Places |
122 | +_StartLocationNames | |
115 | 123 | #ifdef LANGUAGE_FR |
116 | 124 | // 0 1 2 3 |
117 | 125 | // 0123456789012345678901234567890123456789 |
@@ -235,9 +243,10 @@ | ||
235 | 243 | |
236 | 244 | _gTextLocationGirlRoomOpenned .byt "The girl room (openned lock)",0 |
237 | 245 | #endif |
246 | +_EndLocationNames | |
238 | 247 | |
239 | - | |
240 | 248 | // Items |
249 | +_StartItemNames | |
241 | 250 | #ifdef LANGUAGE_FR |
242 | 251 | // Containers |
243 | 252 | _gTextItemTobaccoTin .byt "une boîte à tabac vide",0 |
@@ -345,10 +354,13 @@ | ||
345 | 354 | _gTextItemLadderInTheHole .byt "a ladder in a hole",0 |
346 | 355 | _gTextItemeRopeAttachedToATree .byt "a rope attached to a tree",0 |
347 | 356 | #endif |
357 | +_EndItemNames | |
348 | 358 | |
349 | 359 | _gTextLowerCaseAlphabet .byt "abcde",255-2,"f",255-2,"ghi",255-2,"jklmnopqrstuvwxyz",0 |
350 | 360 | |
361 | + | |
351 | 362 | // Scene descriptions |
363 | +_StartSceneScripts | |
352 | 364 | _gDescriptionTeenagerRoom .byt "T",255-2,"eenager r",255-1,"oom?",0 |
353 | 365 | |
354 | 366 | _gDescriptionNone |
@@ -913,4 +925,17 @@ | ||
913 | 925 | ; Should probably have a "game over" command |
914 | 926 | .byt COMMAND_FADE_BUFFER |
915 | 927 | END |
928 | +_EndSceneScripts | |
916 | 929 | |
930 | +_EndGameTextData | |
931 | + | |
932 | +; | |
933 | +; Print statistics about the size of things | |
934 | +; | |
935 | +#print Total size of game text content = (_EndGameTextData - _StartGameTextData) | |
936 | +#print - Messages and prompts = (_EndMessagesAndPrompts - _StartMessagesAndPrompts) | |
937 | +#print - Error messages = (_EndErrorMessages - _StartErrorMessages) | |
938 | +#print - Location names = (_EndLocationNames - _StartLocationNames) | |
939 | +#print - Item names = (_EndItemNames - _StartItemNames) | |
940 | +#print - Scene scripts = (_EndSceneScripts - _StartSceneScripts) | |
941 | + |
@@ -5,8 +5,7 @@ | ||
5 | 5 | _EndText |
6 | 6 | |
7 | 7 | #if DISPLAYINFO=1 |
8 | -#echo Remaining space: | |
9 | -#print ($9800 - *) | |
8 | +#print Remaining space = ($9800 - *) | |
10 | 9 | #endif |
11 | 10 | |
12 | 11 | .bss |