Advertisement
theTANCO

LibAppend.lua.changelog

May 7th, 2023 (edited)
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. This is a changelog for this program: https://pastebin.com/Rac6Jxjg
  2.  
  3. 2025/01/08:
  4. • Added documentation for the update I made on 2024/05/14 since I forgot to add
  5. it then. I forgot I made that update and I genuinely could not remember what
  6. that code was for until I looked back at the changelog.
  7.  
  8. 2024/06/06:
  9. • Added expect.range to 'tobase' to ensure that the base is between 2 and 36;
  10. this was not being checked before.
  11.  
  12. 2024/05/14:
  13. • doubleBuffer: Pass windows as additional arguments to a new buffer to assign
  14. the buffer as the parent of those windows.
  15. • 'swap' will automatically reassign the parent of the windows to the next
  16. buffer.
  17. • 'reset' will automatically reassign the parent of the windows to the parent
  18. of the buffer.
  19.  
  20. 2023/12/01:
  21. • Added 'table.swap' to make it easier to swap the values of two elements in a
  22. table. This accepts both numbers and strings as keys.
  23. • Added 'table.shift' to make it easier to move elements up and down in a table.
  24. This is ideal for ordered lists with index numbers as keys. This will NOT
  25. work for elements with strings as keys.
  26.  
  27. 2023/09/11:
  28. • Reimplemented 'AND(val, ...)' to check if multiple variables are equal to a
  29. value.
  30.  
  31. 2023/09/05:
  32. • doubleBuffer.new() now takes a 'parent' argument so the double buffer can be
  33. used on a specified terminal object instead of being restricted to
  34. 'term.current()'.
  35. • Also changed the if statment in the 'swap' function to some simple math.
  36.  
  37. 2023/07/10:
  38. • Removed 'math.rpow'. I added this function in the 2023/02/08 update. This
  39. function worked by doing 'math.log(number) / math.log(base)'. What I didn't
  40. realize is that math.log already does what math.rpow did,
  41. 'math.log(16, 2) = 4'.
  42. • The only reason I made math.rpow is because that function was the only answer
  43. I was given when scouring the internet because my knowledge of math isn't the
  44. best. Now that I know math.log already does the exact same thing, math.rpow is
  45. no longer needed.
  46. • Swapped various 'error' functions with 'expect.expect'.
  47.  
  48. 2023/07/09:
  49. • Made 'require' usable even if a file is loaded with 'dofile'.
  50. • Made a global 'expect' for the expect module.
  51.  
  52. 2023/07/08:
  53. • Removed the textutils.serialize rewrite due to it causing stack overflows when
  54. a table references itself or its parent table.
  55.  
  56. 2023/07/04:
  57. • 'bugCheck' now returns to the previous cursor position after it runs.
  58.  
  59. 2023/05/08:
  60. • Slightly reworded the comments above the vector API.
  61. • Moved this changelog to its own file.
  62.  
  63. 2023/04/19:
  64. • 'vector2' has been removed and the vector API has been rewritten to include
  65. 2D vectors and 4D vectors.
  66. • 'vector.new()' is a one stop shop for 2D, 3D and 4D vectors.
  67. • Pass 2, 3 or 4 arguments respectively and a vector of the correct size will be
  68. automatically created.
  69. • 'w' is the name for the 4th dimension.
  70. • Error messages will be thrown when invalid values have been passed to vector
  71. functions, making it a lot easier to debug programs.
  72. • Instruction at the top saying to use 'require' has been changed to 'dofile'.
  73.  
  74. 2023/03/28:
  75. • textutils.serialize
  76. • changed 'removePointers' to 'addPointers' so that the function can be used
  77. like normal without additional arguments.
  78. • Fixed strings not being serialized correctly.
  79.  
  80. 2023/03/26:
  81. • Added term.printBlit.
  82.  
  83. 2023/03/14:
  84. • Added a 'wait' function, which does the same thing as 'sleep' but it uses
  85. tickrates instead of time. See the comments above for how to use it.
  86. • Added 'doubleBuffer' which creates double frame buffers.
  87.  
  88. 2023/03/05:
  89. • Fixed vector2.cross returning vector.new instead of vector2.new.
  90. • Added errors messages to vector2 methods for easier debugging.
  91.  
  92. 2023/02/23:
  93. • Simplified the code for math.round().
  94. • Added a fix for textutils.serialize() that makes it easier to serialize
  95. tables.
  96. See the comments above the function.
  97. • Renamed Vector2 to vector2 which now mimics exactly what vector does.
  98. • Just like vector, you must call vector2.new() to create a new 2D vector.
  99. • Reformatted the changelog so it's a bit cleaner than before.
  100.  
  101. 2023/02/20:
  102. • Changed bugCheck(). Instead of waiting for a time, it waits for a key press.
  103. • Removed argument 't' from bugCheck().
  104.  
  105. 2023/02/08:
  106. • Added colors.name and colours.name to get the name of a color, similar to
  107. keys.getName returning the name of a key.
  108. • Added math.rpow to reverse calculate an exponent, not to be confused with
  109. getting the nth root. Example: 2^4 -> 16, math.rpow(16, 2) -> 4.
  110. • Added string.pad to use arguments to easily add padding to a string instead of
  111. using weird c string formatting.
  112. • Added tobase as an antithesis to tonumber. Converts a number to a base instead
  113. of converting a base to a number.
  114. • Added OR to do multiple 'or' comparisons with a single variable.
  115. • Added isBetween to check if a number is between two numbers exclusive. Use a
  116. boolean as the optional fourth argument to check if the number is between two
  117. numbers inclusive.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement