NEWS 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. Due to continuous improvements old tintin scripts aren't always compatible
  2. with new versions. This document tries to list most compatibility conflicts.
  3. TinTin++ 2.02.12
  4. ----------------
  5. 01) The behavior of $variable[] is now identical to $variable[%*].
  6. TinTin++ 2.02.11
  7. ----------------
  8. 01) %w now translates to {[a-zA-Z0-9_]*} instead of {[a-zA-Z]*} so it matches
  9. the behavior of \w. Same for %W.
  10. 02) The : time operator in #math should no longer be used since that is
  11. going to be changed to c style ? : ternary operator support.
  12. 03) #math and #if no longer recognize .1 as a number, you need to use 0.1.
  13. TinTin++ 2.02.04
  14. ----------------
  15. 01) Variables starting with a number are no longer supported, as per the
  16. C standard for naming variables. A warning is generated when trying to
  17. do so.
  18. Keep in mind that #var {8ball} {1} will still work, just that instead of
  19. being able to use $8ball you need to use ${8ball} for an explicit
  20. variable lookup.
  21. 02) Implicit index lookups on undefined variables are no longer supported. If
  22. you do something like #if {&target} this needs to be changed to
  23. #if {&{target}}.
  24. The reason for this is that "say I played d&d last night" would evaluate
  25. as "say I played d0 last night".
  26. TinTin++ 2.02.00
  27. ----------------
  28. 01) #format <var> %C needs to be changed to #screen get cols <var>
  29. #format <var> %R needs to be changed to #screen get rows <var>
  30. #format <var> %S needs to be changed to #info session save
  31. 02) If you were using ${variable}[1] this needs to be changed to
  32. ${variable[1]} to have the same behavior.
  33. 03) $variable() *variable() and &variable() are reserved until further notice,
  34. use ${variable}( for proper behavior.
  35. 04) %+ now has different behavior when followed by a number.
  36. You can replace '%+' with '%+1..a', see #help regex for more information.
  37. TinTin++ 2.01.92
  38. ----------------
  39. 01) The #buffer get command has been changed to use the new row notation
  40. standard.
  41. 02) The #split command has been changed to where it sets the number of
  42. top split lines if only one argument is given.
  43. The 2nd argument sets the number of bottom split lines which defaults
  44. to 1. The 3rd and 4th argument set the left and right split lines.
  45. 03) #killall gives a warning that it should be changed to #kill all
  46. 04) #forall has been removed.
  47. 05) Added a notice for people still using $variable[] instead of
  48. *variable[]. I'll change $variable[] eventually to be identical to
  49. $variable[%*].
  50. TinTin++ 2.01.90
  51. ---------------
  52. 01) You'll have to issue #map color reset and #map legend reset to get
  53. your old map files straightened out. Once the map is saved again
  54. it should work without issues.
  55. 02) There were two big problems that needed to be addressed to continue
  56. smooth development.
  57. 1. In VT100 row 1 is the top line, while in tintin row 1 is the split
  58. line.
  59. 2. In VT100 row, col (y, x) notation is used, while tintin has been
  60. favoring col, row (x, y) notation.
  61. While this may seem like a minor issue, I'm utilizing VT100 more often
  62. using more complex operations, and TinTin++ is currently pretty much
  63. mirrored in the way it behaves opposed to VT100.
  64. This has resulted in relatively simple math becoming weird unintuitive
  65. math, making already complex code even more complex, resulting in bugs
  66. and unreadable code that requires a lot of mental gymnastics to figure
  67. out.
  68. Subsequently I decided on a major interface change that will result in
  69. several compatibility issues.
  70. #split will stay the way it is.
  71. #showme {text} will stay the same.
  72. #showme {text} {0} will become invalid.
  73. #showme {text} {1} will print on the top line.
  74. #showme {text} {2} will print on the second line from the top.
  75. #showme {text} {-1} will print on the bottom line / input line.
  76. #showme {text} {-2} will print on the default split line.
  77. #prompt {text} {substitution} will stay the same.
  78. #prompt {text} {substitution} {0} will become invalid.
  79. #prompt {text] {substitution} {1} will write to the top line.
  80. #prompt {text} {substitution} {-1} will write to the bottom / input line.
  81. #prompt {text} {substitution} {-2} will write to the 2nd line from the
  82. bottom, which is the default split line.
  83. All code that takes {col} {row} as an argument will be changed to instead
  84. use {row} {col}. The main reason for this change is consistency, and
  85. because I've repeatedly swapped row and col in VT100 which can be a tricky
  86. bug to track down.
  87. TinTin++ 2.01.8
  88. ---------------
  89. 01) Changed the software license from GPL2 to GPL3.
  90. 02) The SYSTEM START event will no longer report the client name and version
  91. as %0 and %1. Instead you can use #info system save, which will save
  92. CLIENT_NAME and CLIENT_VERSION to the $info[SYSTEM] variable.
  93. TinTin++ 2.01.7
  94. ---------------
  95. Added proper class nesting. When closing the active class, the last active
  96. class is activated. This change will cause trouble for scripts that don't
  97. properly close classes.
  98. TinTin++ 2.01.5
  99. ---------------
  100. 01) The #FORALL command has been removed and instead #FOREACH should be used.
  101. 02) Removed dot notation support for variables. #var bla.bli blo is no longer
  102. valid, nor is $bla.bli.
  103. TinTin++ 2.01.4
  104. ---------------
  105. Added support for *{variable} to show variable names.
  106. TinTin++ 2.00.2
  107. ---------------
  108. Removed the #suspend command, it's been moved to #cursor suspend.
  109. TinTin++ 1.99.7
  110. ---------------
  111. 01) #LOOP, #FOREACH, and #PARSE take an additional argument which contains
  112. the variable used for storing the intermediate values.
  113. #LOOP {min} {max} {variable} {commands}
  114. #FOREACH {list} {variable} {commands}
  115. #PARSE {string} {variable} {commands}
  116. 02) #format {variable} {syntax} {{arg1} {arg2}} has been changed to
  117. #format {variable} {syntax} {arg1} {arg2}
  118. 03) Renamed #replacestring to #replace
  119. 04) Variables can be nested using brackets. Non existent nested variables
  120. report 0 if the base variable exists and always report 0 when the name
  121. is encapsulated in braces.
  122. Using & instead of $ will report the index of a variable.
  123. Using $variable[+1] will report the first nest, and $variable[-1] will
  124. report the last nest, $variable[-2] the second last nest, etc.
  125. To display all nests use $variable[]
  126. To check if a variable exists use: #if {&{variable}} which will report
  127. 0 if non existent, and the numeric index if the variable is found.
  128. 05) #LIST now works with nested variables. Read #HELP VARIABLE.
  129. 06) The #SWITCH, #CASE, #DEFAULT, #FOREACH, #BREAK, #CONTINUE, #ELSE, #ELSEIF,
  130. and #RETURN statements have been added and should work more or less as
  131. expected.
  132. TinTin++ 1.99.1
  133. ---------------
  134. 01) The #regex command now uses the same regular expression syntax as triggers.
  135. 02) #if {"%0" == "?test*"} needs to be replaced with #if {"%0" == "%?test%*"}
  136. as per the regex syntax documented in #HELP ACTION, or use
  137. #if {&{test} != 0} to see if a variable exists.
  138. 03) old lists need to be converted as following:
  139. #var {friends} {{Alicia} {Bubba} {Cathie} {Kayla} {Zorro}}
  140. to
  141. #var {friends} {{1}{Alicia} {2}{Bubba} {3}{Cathie} {4}{Kayla} {5}{Zorro}}
  142. or
  143. #list friends create {{Alicia} {Bubba} {Cathie} {Kayla} {Zorro}}
  144. TinTin++ 1.99.1
  145. ---------------
  146. Triggers now use PCRE (Perl Compatible Regular Expressions).
  147. See #help regex for details.
  148. TinTin++ 1.96.6
  149. ---------------
  150. #PATHDIR is now specifically designed to hold a direction, the opposite
  151. direction, and the vector of said direction for the #MAP command.
  152. TinTin++ 1.95.0
  153. ---------------
  154. Removed #antisubsittute as its utility was too limited for inclusion.
  155. TinTin++ 1.94.4
  156. ---------------
  157. 01) #SPLIT supports 2 arguments to set the top and bottom row.
  158. 02) In order to make a color trigger start a trigger with a tilda. In order to see
  159. color codes the way tintin wants you to enter them type: #CONFIG convert on
  160. when done use: #CONFIG convert off.
  161. #action {~\0;32m%0 says '%1'} {say I don't like green says.}
  162. TinTin++ 1.94.0
  163. ---------------
  164. #SLEEP has been removed. The #DELAY command can be used instead.
  165. TinTin++ 1.91.0
  166. ---------------
  167. Removed the #speedwalk command, it's been moved to the #config menu.
  168. TinTin++ 1.90.0
  169. ---------------
  170. 01) !<argument> will repeat the last command starting with that argument.
  171. score
  172. who all
  173. area
  174. ! --> repeats area
  175. !w --> repeats who all
  176. !s --> repeats score
  177. !ll --> sends !ll as a command
  178. TinTin++ 1.89.0
  179. ---------------
  180. 01) #HIGHLIGHT is now parsed as: #HIGHLIGHT {string} {color}. You can
  181. combine several colors by separating them by semicolons. The color
  182. argument can be a color code. See #HELP COLORS.
  183. 02) $result is now a default variable that can be used in #FUNCTION.
  184. #function dosomething {#math result 1 + 1}
  185. say @dosomething{} will print 2, the #RESULT command has been removed.
  186. It's possible to use #return <value> to exit the function and at the same
  187. time set the result variable.
  188. 03) #MATH and #IF support 64 floating point arithmatic expressions. They also
  189. support strings, which must be enclosed in quotes. See #HELP MATH for more
  190. information.
  191. TinTin++ 1.88.0
  192. ---------------
  193. 01) #FORMAT has been introduced and replaces a wide variety of commands.
  194. 02) #MESSAGE, #CONFIG, #IGNORE, #DEBUG are all you need to configure tintin,
  195. changes made with #CONFIG are written to file with #WRITE.
  196. 03) The old walk code has been removed, instead you can use the #PATH command.
  197. 04) #TICK has been changed quite a bit, new commands: #TICK and #UNTICK, you
  198. can have as many tickers as you want. The old #TICK command is gone.
  199. Syntax: #TICK {name} {commands} {seconds to tick}
  200. The name is added so you can delete it. You will no longer receive spam,
  201. but with a little bit of creativity you can rebuild the old tintin ticker
  202. spam.
  203. Use #READ to load the following ticker which emulates old behavior:
  204. #tick {oldtick}
  205. {
  206. #delay 50 #showme #10 SECONDS TO TICK!!;
  207. #showme #TICK!!!
  208. }
  209. {60}
  210. 05) #READ now supports multiline triggers, it also checks the nesting level
  211. before doing anything so you don't end up with bogus, and trims leading
  212. spaces/tabs. Make sure to remove non matching { }'s from #NOP comments,
  213. cause it will (and should) create error messages. The error message
  214. will try to inform you on what line the error occured.
  215. 06) Added #MACRO for macro support.
  216. 07) Defaults are no longer in a default .rc file.
  217. 08) Can now have multiple prompt triggers, the 2nd argument is the substitution
  218. string that works the same as #SUBSTITUTE. the 3rd argument is the row the
  219. line should be printed on, if left blank it picks the default split line.
  220. 09) All settings are inherited from the startup session when creating a new
  221. session.
  222. 10) A scrollback buffer has been added, which can be browsed with page up,
  223. page down, and the #GREP and #BUFFER command.