• R/O
  • SSH
  • HTTPS

oricsdk: Commit


Commit MetaInfo

Revision1709 (tree)
Time2023-09-30 20:52:01
Authordbug

Log Message

Added some statistics to the build to see the size of the various texts groups in the code

Change Summary

Incremental Difference

--- users/dbug/UpgradeTime/Encounter/FloppyBuilderVersion/code/game_text.s (revision 1708)
+++ users/dbug/UpgradeTime/Encounter/FloppyBuilderVersion/code/game_text.s (revision 1709)
@@ -5,11 +5,14 @@
55
66 .text
77
8+_StartGameTextData
9+
810 #ifdef LANGUAGE_FR
9-#pragma osdk replace_characters : é:{ è:} ê:| à:@
11+#pragma osdk replace_characters : é:{ è:} ê:| à:@ î:i
1012 #endif
1113
1214 // Small feedback messages and prompts
15+_StartMessagesAndPrompts
1316 #ifdef LANGUAGE_FR
1417 _gTextAskInput .byt "Quels sont vos instructions ?",0
1518 _gTextNothingHere .byt "Il n'y a rien d'important ici",0
@@ -57,8 +60,10 @@
5760 _gTextDogJumpingAtMe .byt "a dog jumping at me",0
5861 _gTextThugShootingAtMe .byt "a thug shooting at me",0
5962 #endif
63+_EndMessagesAndPrompts
6064
6165 // Error messages
66+_StartErrorMessages
6267 #ifdef LANGUAGE_FR
6368 _gTextErrorInvalidDirection .byt "Impossible d'aller par la",0
6469 _gTextErrorCantTakeNoSee .byt "Je ne vois pas ca ici",0
@@ -110,8 +115,11 @@
110115 _gTextErrorInappropriate .byt "Probably inappropriate",0
111116 _gTextErrorDeadDontMove .byt "Dead don't move",0
112117 #endif
118+_EndErrorMessages
113119
120+
114121 // Places
122+_StartLocationNames
115123 #ifdef LANGUAGE_FR
116124 // 0 1 2 3
117125 // 0123456789012345678901234567890123456789
@@ -235,9 +243,10 @@
235243
236244 _gTextLocationGirlRoomOpenned .byt "The girl room (openned lock)",0
237245 #endif
246+_EndLocationNames
238247
239-
240248 // Items
249+_StartItemNames
241250 #ifdef LANGUAGE_FR
242251 // Containers
243252 _gTextItemTobaccoTin .byt "une boîte à tabac vide",0
@@ -345,10 +354,13 @@
345354 _gTextItemLadderInTheHole .byt "a ladder in a hole",0
346355 _gTextItemeRopeAttachedToATree .byt "a rope attached to a tree",0
347356 #endif
357+_EndItemNames
348358
349359 _gTextLowerCaseAlphabet .byt "abcde",255-2,"f",255-2,"ghi",255-2,"jklmnopqrstuvwxyz",0
350360
361+
351362 // Scene descriptions
363+_StartSceneScripts
352364 _gDescriptionTeenagerRoom .byt "T",255-2,"eenager r",255-1,"oom?",0
353365
354366 _gDescriptionNone
@@ -913,4 +925,17 @@
913925 ; Should probably have a "game over" command
914926 .byt COMMAND_FADE_BUFFER
915927 END
928+_EndSceneScripts
916929
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+
--- users/dbug/UpgradeTime/Encounter/FloppyBuilderVersion/code/last_module.s (revision 1708)
+++ users/dbug/UpgradeTime/Encounter/FloppyBuilderVersion/code/last_module.s (revision 1709)
@@ -5,8 +5,7 @@
55 _EndText
66
77 #if DISPLAYINFO=1
8-#echo Remaining space:
9-#print ($9800 - *)
8+#print Remaining space = ($9800 - *)
109 #endif
1110
1211 .bss
Show on old repository browser