Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a changelog for this program: https://pastebin.com/Rac6Jxjg
- 2025/01/08:
- • Added documentation for the update I made on 2024/05/14 since I forgot to add
- it then. I forgot I made that update and I genuinely could not remember what
- that code was for until I looked back at the changelog.
- 2024/06/06:
- • Added expect.range to 'tobase' to ensure that the base is between 2 and 36;
- this was not being checked before.
- 2024/05/14:
- • doubleBuffer: Pass windows as additional arguments to a new buffer to assign
- the buffer as the parent of those windows.
- • 'swap' will automatically reassign the parent of the windows to the next
- buffer.
- • 'reset' will automatically reassign the parent of the windows to the parent
- of the buffer.
- 2023/12/01:
- • Added 'table.swap' to make it easier to swap the values of two elements in a
- table. This accepts both numbers and strings as keys.
- • Added 'table.shift' to make it easier to move elements up and down in a table.
- This is ideal for ordered lists with index numbers as keys. This will NOT
- work for elements with strings as keys.
- 2023/09/11:
- • Reimplemented 'AND(val, ...)' to check if multiple variables are equal to a
- value.
- 2023/09/05:
- • doubleBuffer.new() now takes a 'parent' argument so the double buffer can be
- used on a specified terminal object instead of being restricted to
- 'term.current()'.
- • Also changed the if statment in the 'swap' function to some simple math.
- 2023/07/10:
- • Removed 'math.rpow'. I added this function in the 2023/02/08 update. This
- function worked by doing 'math.log(number) / math.log(base)'. What I didn't
- realize is that math.log already does what math.rpow did,
- 'math.log(16, 2) = 4'.
- • The only reason I made math.rpow is because that function was the only answer
- I was given when scouring the internet because my knowledge of math isn't the
- best. Now that I know math.log already does the exact same thing, math.rpow is
- no longer needed.
- • Swapped various 'error' functions with 'expect.expect'.
- 2023/07/09:
- • Made 'require' usable even if a file is loaded with 'dofile'.
- • Made a global 'expect' for the expect module.
- 2023/07/08:
- • Removed the textutils.serialize rewrite due to it causing stack overflows when
- a table references itself or its parent table.
- 2023/07/04:
- • 'bugCheck' now returns to the previous cursor position after it runs.
- 2023/05/08:
- • Slightly reworded the comments above the vector API.
- • Moved this changelog to its own file.
- 2023/04/19:
- • 'vector2' has been removed and the vector API has been rewritten to include
- 2D vectors and 4D vectors.
- • 'vector.new()' is a one stop shop for 2D, 3D and 4D vectors.
- • Pass 2, 3 or 4 arguments respectively and a vector of the correct size will be
- automatically created.
- • 'w' is the name for the 4th dimension.
- • Error messages will be thrown when invalid values have been passed to vector
- functions, making it a lot easier to debug programs.
- • Instruction at the top saying to use 'require' has been changed to 'dofile'.
- 2023/03/28:
- • textutils.serialize
- • changed 'removePointers' to 'addPointers' so that the function can be used
- like normal without additional arguments.
- • Fixed strings not being serialized correctly.
- 2023/03/26:
- • Added term.printBlit.
- 2023/03/14:
- • Added a 'wait' function, which does the same thing as 'sleep' but it uses
- tickrates instead of time. See the comments above for how to use it.
- • Added 'doubleBuffer' which creates double frame buffers.
- 2023/03/05:
- • Fixed vector2.cross returning vector.new instead of vector2.new.
- • Added errors messages to vector2 methods for easier debugging.
- 2023/02/23:
- • Simplified the code for math.round().
- • Added a fix for textutils.serialize() that makes it easier to serialize
- tables.
- See the comments above the function.
- • Renamed Vector2 to vector2 which now mimics exactly what vector does.
- • Just like vector, you must call vector2.new() to create a new 2D vector.
- • Reformatted the changelog so it's a bit cleaner than before.
- 2023/02/20:
- • Changed bugCheck(). Instead of waiting for a time, it waits for a key press.
- • Removed argument 't' from bugCheck().
- 2023/02/08:
- • Added colors.name and colours.name to get the name of a color, similar to
- keys.getName returning the name of a key.
- • Added math.rpow to reverse calculate an exponent, not to be confused with
- getting the nth root. Example: 2^4 -> 16, math.rpow(16, 2) -> 4.
- • Added string.pad to use arguments to easily add padding to a string instead of
- using weird c string formatting.
- • Added tobase as an antithesis to tonumber. Converts a number to a base instead
- of converting a base to a number.
- • Added OR to do multiple 'or' comparisons with a single variable.
- • Added isBetween to check if a number is between two numbers exclusive. Use a
- boolean as the optional fourth argument to check if the number is between two
- numbers inclusive.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement