NEWS 10 KB

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