NEWS 9.8 KB

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