a36ef944a3
ascii() and unascii() to help with broken utf-8 or binary data
2025-04-10 09:36:42 +03:00
bb8c4cd070
fix fsdump() dumping passed strings - just paste them raw
2025-04-07 11:37:25 +03:00
b5f78fea9f
add a couple of examples to readme
2025-04-05 17:09:13 +03:00
e944e4ff67
fix a typo in readme
2025-04-05 16:56:56 +03:00
c87144e0e2
add some useless bytes
2025-04-05 16:35:49 +03:00
b91dc915fd
add /eval_reset to clear your personal environment
2025-04-05 11:37:06 +03:00
15ef934e3c
fix log showing nils
2025-04-05 11:32:06 +03:00
9341af4178
update help
too
2025-04-05 08:40:00 +03:00
eb718cd729
make players
iterator check for validity of players
2025-04-05 08:38:19 +03:00
b036f36762
update readme, document stuff
2025-04-05 08:37:53 +03:00
9276f239e2
check for privs before resuming from formspec, just in case
2025-04-05 07:56:27 +03:00
8a2bb20925
better handle quit(pause) and resume via formspec
2025-04-05 07:50:10 +03:00
30af38c5a7
add formspec escapes
2025-04-05 07:49:53 +03:00
f0eab8adeb
cleanup/deduplicate
2025-04-05 07:38:21 +03:00
33c0b31046
make output formatting more consistent
2025-04-05 07:03:04 +03:00
eedfb6f4af
Allow to pass strings back into /eval via fsinput()
2025-04-05 06:53:04 +03:00
1c09fb984d
allow dumping to formspec with fsdump()
2025-04-05 06:31:47 +03:00
3f2c3882dd
store and allow to resume previous yielded coroutine
2025-04-05 05:37:41 +03:00
c4023d454c
fix pointing to objects
2025-04-01 12:00:23 +03:00
a493a51f7c
fix some luacheck warnings
2025-03-30 21:47:26 +03:00
a80c8eb66b
fix a typo causing "undeclared global t" warning
2025-03-30 21:46:57 +03:00
7409e20a89
be more consistent and less confusing with dumped object names
2025-03-29 16:23:16 +03:00
4e0c194e98
add players
magic variable
2025-03-27 21:51:44 +03:00
7892615f3c
actually use oir for oir
2025-03-27 00:07:17 +03:00
65e1e684d3
replace this_node_pos
with above
/under
; avoid errors in magic
2025-03-26 16:28:55 +03:00
8a21524ade
fix crash when running eval without player online
2025-03-26 16:05:56 +03:00
94abeadbf3
add boring "help" variable
2025-03-25 14:14:39 +03:00
a5a6ba6630
add goir() and oir()
2025-03-25 13:01:52 +03:00
ed80ef004d
add docs for dir() and keys()
2025-03-25 13:01:33 +03:00
82502c833b
move code around
2025-03-25 11:51:34 +03:00
723bab7fd8
rename dir2() to keys()
2025-03-25 00:36:35 +03:00
1688a712cb
provide dir and dir2 functions for listing table keys
...
Both functions don't expand tables used as keys/values.
`dir(table)` will list `key = value` pairs, but non-recursively.
`dir2(table)` will only list the keys.
These functions return nothing and are to be used only interactively.
2025-03-25 00:28:33 +03:00
b4c641bc57
add dir
convenience function to list table keys
...
Useful to explore tables
2025-03-25 00:11:08 +03:00
bf99ec97bc
some quality of life features for using global vars
2025-03-20 12:43:45 +03:00
9c76127516
add logging
...
Logs entered code and error, if happens.
2025-03-20 11:07:25 +03:00
6101594d38
add dead bytes
2025-03-19 10:28:32 +03:00
86b59e4d08
fix crash on dump because of assumtion that every ref as is_valid
2024-12-11 23:51:27 +03:00
44d24e549d
better handle cases when "nothing" is returned
2024-12-11 17:23:24 +03:00
e819fbe5d9
make sure to show nil
when api call returns nothing
2024-12-11 17:11:08 +03:00
3686716438
add todo file...
2024-12-09 23:11:56 +03:00
8c6206c069
add readme
2024-12-09 22:55:54 +03:00
733a1690fe
couple of comments
2024-12-09 20:54:51 +03:00
af2f0939da
prefix each output line with a pipe symbol - easier to see things
2024-12-09 20:39:51 +03:00
e42862a9b0
add print() that will print to chat
2024-12-09 20:39:25 +03:00
6daaafc721
modify dump() function to work better in repl
2024-12-09 14:05:58 +03:00
5914d04f68
remove moved var
2024-12-09 13:16:26 +03:00
de63351c41
add pointing to objects and nodes
2024-12-08 20:41:45 +03:00
87bd7a098c
better name for variable
2024-12-08 18:35:13 +03:00
80b76037fb
store last result in '_'
2024-12-08 18:32:39 +03:00
929472938f
just brute force adding return
2024-12-08 18:26:00 +03:00