diff options
| author | Wiimm <wiimm@wiimm.de> | 2023-07-11 16:18:26 +0200 |
|---|---|---|
| committer | Wiimm <wiimm@wiimm.de> | 2023-07-11 16:18:26 +0200 |
| commit | b5b1fe7fc0cf460d6204c18ba7bb4c40f7597efa (patch) | |
| tree | a7b4bb1e79fde818dd7af17fee1207ae40178ab7 /project/text-files | |
| parent | 74ac39c1af5c8e85bf10711aed2ffc9dfee2e277 (diff) | |
SZS v2.35a
Diffstat (limited to '')
| -rw-r--r-- | project/text-files/kmp.inc/kmp-pt-info-cr.inc | 2 | ||||
| -rw-r--r-- | project/text-files/lex.inc/lex-elem-ritp-cr.inc | 47 | ||||
| -rw-r--r-- | project/text-files/lex.inc/lex-elem-ritp-tabhead-cr.inc | 4 | ||||
| -rw-r--r-- | project/text-files/lex.inc/lex-elem-set1-cr.inc | 9 | ||||
| -rw-r--r-- | project/text-files/lex.inc/lex-elem-set1-develop-cr.inc | 4 | ||||
| -rw-r--r-- | project/text-files/lex.inc/lex-hexdump-cr.inc | 19 | ||||
| -rw-r--r-- | project/text-files/lex.inc/lex-hexdump-sep-cr.inc | 1 | ||||
| -rw-r--r-- | project/text-files/lex.inc/lex-setup-cr.inc | 4 | ||||
| -rw-r--r-- | project/text-files/lpar.inc/lpar-sect-param-cr.inc | 14 |
9 files changed, 95 insertions, 9 deletions
diff --git a/project/text-files/kmp.inc/kmp-pt-info-cr.inc b/project/text-files/kmp.inc/kmp-pt-info-cr.inc index f11d5a8..a90e5dc 100644 --- a/project/text-files/kmp.inc/kmp-pt-info-cr.inc +++ b/project/text-files/kmp.inc/kmp-pt-info-cr.inc @@ -31,6 +31,6 @@ # If you enable EXPORT-FLAGS (set it to 1), the flags are exported using the # lowest byte of WIDTH FACTOR. The factor needs only 2 or 3 digits, so this # has no disadvantage on the width factors. 5 of the 8 bits are used to verify -# changes by other tools on import. If at least 1 of these bit of all points +# changes by other tools on import. If at least 1 of these bit of any point # is wrong, import is canceled. @EXPORT-FLAGS = %d # 0=disabled, 1=enabled (overridden by option --export-flags) diff --git a/project/text-files/lex.inc/lex-elem-ritp-cr.inc b/project/text-files/lex.inc/lex-elem-ritp-cr.inc new file mode 100644 index 0000000..88050d2 --- /dev/null +++ b/project/text-files/lex.inc/lex-elem-ritp-cr.inc @@ -0,0 +1,47 @@ + +#FF# +############################################################################### + +[RITP] +# Sort order: %u + +# Normally only the first next-link of KMP:ITPH is used for Bullet Bill and +# Red Shells (except when the shell has already targeted a player). In the +# case of equivalent routes, however, it would be desirable for one of the +# possible routes to always be selected at random. It is important to ensure +# that everyone uses the same route when racing online. +# +# And exactly this can be defined with this section. Therfore you define a +# list with rules. Each rule defines the index of the ITPH element, the number +# of next-links affected, and the type of modification. LE-CODE is very robust +# here and only accepts valid rules on existing elements. + +# Rule members: +# INDEX: Index of KMP:ITPH entry (0..255). +# NN: Number of next-links to shuffle (2..6). +# MODE: How to shuffle (see below). +# PARAM: Optional parameter for some modes (see below). + +# Modes: +# +# RITP$OFF +# Ignore this rule, but store it including PARAM. +# This mode can be used to temporary deactivate a rule. +# +# RITP$START +# Select first next-link by random at race start. The selected next-link +# must be defined (not -1 == not 0xff), otherwise ignore the rule. +# PARAM is ignored. +# +# More modes are planned. + +# Example: +# ITPH element #10 (zero based index) has defined 3 equivalent routes and 2 +# additional routes by its next-links. At race start one of the first 3 links +# should be selected by random as standard route. The rule for this case is: +# +# 10 3 RITP$START +# +# This rule is ignored by LE-CODE, if the addressed ITPH element does not +# exists or if the by random selected next-link is not defined. + diff --git a/project/text-files/lex.inc/lex-elem-ritp-tabhead-cr.inc b/project/text-files/lex.inc/lex-elem-ritp-tabhead-cr.inc new file mode 100644 index 0000000..971cafb --- /dev/null +++ b/project/text-files/lex.inc/lex-elem-ritp-tabhead-cr.inc @@ -0,0 +1,4 @@ +#RITP# +#----------------------------- +# index nn mode param +#----------------------------- diff --git a/project/text-files/lex.inc/lex-elem-set1-cr.inc b/project/text-files/lex.inc/lex-elem-set1-cr.inc index 4700bc8..e41d1ca 100644 --- a/project/text-files/lex.inc/lex-elem-set1-cr.inc +++ b/project/text-files/lex.inc/lex-elem-set1-cr.inc @@ -25,3 +25,12 @@ # tracks that must be marked with value 1 as an exception to avoid banning. @START-ITEM = %u + +# If playing online, the racing time is limited. The original MKW uses 5:00 +# and LE-CODE 5:40 by default. A racing track can apply another online limit +# if the following setting is >0. Values between %us%s and %us%s +# are accepted. LPAR settings MIN-ONLINE-SEC and MAX-ONLINE-SEC limit the +# actually used value. + +@APPLY-ONLINE-SEC = %u%s + diff --git a/project/text-files/lex.inc/lex-elem-set1-develop-cr.inc b/project/text-files/lex.inc/lex-elem-set1-develop-cr.inc index b639c61..f0de66c 100644 --- a/project/text-files/lex.inc/lex-elem-set1-develop-cr.inc +++ b/project/text-files/lex.inc/lex-elem-set1-develop-cr.inc @@ -5,6 +5,4 @@ # values can still change. Therefore, they should not be used, or at most # experimentally. -@TEST_0D = %d -@TEST_0E = %d -@TEST_0F = %d +@PADDING-0D = %d diff --git a/project/text-files/lex.inc/lex-hexdump-cr.inc b/project/text-files/lex.inc/lex-hexdump-cr.inc index 156281f..ecd3e28 100644 --- a/project/text-files/lex.inc/lex-hexdump-cr.inc +++ b/project/text-files/lex.inc/lex-hexdump-cr.inc @@ -5,12 +5,25 @@ [HEXDUMP] # Sort order: %u -# Unknown sections are stored as hexdump to keep the data. The address field -# and the ASCII part are for info only and ignored on scanning. +# Unknown sections are stored as hexdump to keep the data. Parameter @MAGIC +# defines the type of the section. @MAGIC = 0x%08x # %s +# Syntax of the data lines: +# HEXLINE := [ ADDRESS ':' ] DATA [COMMENT] +# COMMENT := ( [ ':' | '#' | '/' ) ANY_TEXT +# DATA := HEXBYTE | EXPR +# EXPR := '(' SZS_TOOLS_EXPRESSION ')' +# +# The address field and the ASCII part (a COMMENT by definition) are for info +# only and ignored on scanning. +# +# The result of SZS_TOOLS_EXPRESSION is stored in network byte order (big +# endian). Integers and floats are stored as 4 bytes, vectors as 3 floats with +# 12 bytes total. Strings are stored as bytes without terminating NULL. + #HEX# #----+------------------------------------------------------+----------------+ -#addr: data: bytes in hex | '(' expression ')' : ASCII of data : +#addr: data: byte in hex | '(' expression ')' : ASCII of data : #----+------------------------------------------------------+----------------+ diff --git a/project/text-files/lex.inc/lex-hexdump-sep-cr.inc b/project/text-files/lex.inc/lex-hexdump-sep-cr.inc new file mode 100644 index 0000000..403297c --- /dev/null +++ b/project/text-files/lex.inc/lex-hexdump-sep-cr.inc @@ -0,0 +1 @@ +#----+------------------------------------------------------+----------------+ diff --git a/project/text-files/lex.inc/lex-setup-cr.inc b/project/text-files/lex.inc/lex-setup-cr.inc index 9ba1e5f..2e22c97 100644 --- a/project/text-files/lex.inc/lex-setup-cr.inc +++ b/project/text-files/lex.inc/lex-setup-cr.inc @@ -5,7 +5,7 @@ [SETUP] # This is the general setup and info section. Some parameters are preceeded by # a hash ('#') to signal the informative only status. This section should -# always be the first one. +# always be the first one to setup correct scanning modes. # Identify the tool and version, that have written this file: TOOL = %s @@ -14,4 +14,4 @@ VERSION = %s REVISION = %u DATE = %s -# Statistics: List of all included sections (magic text+hex,size): +# Statistics: List of all included sections (magic name+hex,size): diff --git a/project/text-files/lpar.inc/lpar-sect-param-cr.inc b/project/text-files/lpar.inc/lpar-sect-param-cr.inc index e83bb8e..d165e35 100644 --- a/project/text-files/lpar.inc/lpar-sect-param-cr.inc +++ b/project/text-files/lpar.inc/lpar-sect-param-cr.inc @@ -130,3 +130,17 @@ BLOCK-TEXTURES = %u STATICR-POINTS = %u +# If playing online, the racing time is limited. The original MKW uses 5:00 +# and LE-CODE & CTGP use 5:40. With the next parameter this time can be +# changed between %us%s and %us%s. If the time is >%u%s, then +# the related watchdog (countdown + race_time + scoreboards) is disabled. + +DEF-ONLINE-SEC = %3u%s + +# A racing track can request a different online limit by LEX setting +# SET1:APPLY-ONLINE-SEC. The following 2 parameters limit the actually used +# value. If either of them is zero, then SET1:APPLY-ONLINE-SEC is ignored. + +MIN-ONLINE-SEC = %3u%s +MAX-ONLINE-SEC = %3u%s + |
