NEWS 8.6 KB

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