9055 Commits

Author SHA1 Message Date
cron
76f3138dbe turtle: improve state execution and interaction 2021-08-28 23:12:29 -05:00
cron
f1dfe28848 turtle/tlang: fix binary operators being backwards 2021-08-28 23:12:29 -05:00
cron
88c675193a turtle/tlang: add else to if, fix end of scope error 2021-08-28 23:12:29 -05:00
cron
4be2c31314 turtle/tlang: add boolean conversion API, improve automatic conversion 2021-08-28 23:12:29 -05:00
cron
b7793dbb9a turtle/tlang: fix nextpop bug, improve value conversion 2021-08-28 23:12:29 -05:00
cron
3f9f50620d turtle: improve coordinate handling and task scheduling 2021-08-28 23:12:29 -05:00
cron
7b3ebdb460 turtle/tlang: add args builtin
Also fixes some bugs regarding exiting code blocks.
2021-08-28 23:12:29 -05:00
cron
627c7d9bcb turtle/tlang: add WIP API
Some things aren't _raw, other things are, its WIP
2021-08-28 23:12:29 -05:00
cron
e30c012771 turtle: add public domain dedications 2021-08-28 23:12:29 -05:00
cron
33505596ed turtle: add .tlang, fix print log 2021-08-28 23:12:29 -05:00
cron
6e8c1fb739 turtle/tlang: log prints 2021-08-28 23:12:29 -05:00
cron
632eb7e286 turtle: fix tlang integration 2021-08-28 23:12:29 -05:00
cron
16fafaa193 turtle: remove unneeded code
Other functions need to be replaced with tlang cogs.
2021-08-28 23:12:29 -05:00
cron
a0434a7225 turtle: add tlang scheduler 2021-08-28 23:12:29 -05:00
cron
0753b8d94d turtle/tlang: make more modular 2021-08-28 23:12:29 -05:00
cron
2ca6d7ef31 turtle/tlang: remove unecessary dofile replacement 2021-08-28 23:12:29 -05:00
cron
5623c73578 autodupe: add automatic duping harness CSM
Currently nonworking, some promising methods but nothing concrete thus far.
2021-08-28 23:12:29 -05:00
cron
4c816f1071 turtle/tlang: add repeat
{code} count <var> repeat
2021-08-28 23:12:29 -05:00
cron
05da1be543 turtle/tlang: allow unary operators to assign to quotes, add more operators
`var -- is now possible
Added + - / % !
2021-08-28 23:12:29 -05:00
cron
e5f28d8469 turtle/tlang: make = assign to nearest defined
If identifier has never been assigned, assign it in current scope
If it has been assigned, reassign it at that scope to value
Needs a global assignment and local assignment, maybe rename = to set or something
2021-08-28 23:12:29 -05:00
cron
5c3df299a6 sapscaffold: allow place_node when buildable_to 2021-08-28 23:12:29 -05:00
cron
1a8f916fa7 clientmods/world: remove duplicate CSM 2021-08-28 23:12:29 -05:00
cron
bb55dcad38 df/inventory: remove odx restoration
this would happen too quick, since anticheat would see the wrong tool being used after mine
this would prevent blocks from being broken
2021-08-28 23:12:29 -05:00
cron
d4b2b38133 clientmods/inventory: fix duplicate CSMs 2021-08-28 23:12:29 -05:00
cron
5eddb0f02a sapscaffold: add small sapling scaffold CSM 2021-08-28 23:12:29 -05:00
cron
7e23013727 minetest.register_cheat: fix multiple definition 2021-08-28 23:12:29 -05:00
cron
0c0a8236e9 turtle/tlang: force beginning and end of string literals to match 2021-08-28 23:12:29 -05:00
cron
48da01beb5 turtle/tlang: add while 2021-08-28 23:12:29 -05:00
cron
1f0d77b0c4 builtin/client/util: backport from Dragonfire 2021-08-28 23:12:29 -05:00
cron
8e757040bf turtle/tlang: make access() search for newest locals first, globals last 2021-08-28 23:12:29 -05:00
cron
ac9f18f6dd turtle/tlang: fix copying error with = builtin 2021-08-28 23:12:29 -05:00
cron
0f8dd9c7f3 turtle/tlang: add forever and some other builtins
With forever, break, and (basic) if for and while can be made.
2021-08-28 23:12:29 -05:00
cron
93881793cf turtle/tlang: add comments, fix strings
Strings support '' syntax now. They can also be started with ' and ended with " or vice versa, and there is no way to put a literal ' in yet.
2021-08-28 23:12:29 -05:00
cron
a57a8772fa nodePlacement: add sort of working force_sneak
doesn't work with mcl2 and stuff
i suspect client->interact being annoying
2021-08-28 23:12:29 -05:00
cron
481f71967b lua_localplayer: add get_pitch(), use floats instead of ints for pitch/yaw 2021-08-28 23:12:29 -05:00
cron
d791294319 turtle/tlang: add run builtin
This changes how code is executed a bit, code from the stack is popped to an execution stack before.
This makes global executed functions and anonymous ones identical.
Not super well tested as always :]
2021-08-28 23:12:29 -05:00
cron
73d9e30816 turtle/tlang: fix lexer whitespace issues
This fixes the final whitespace issue as well as numbers requiring a final whitespace.
Maps don't need surrounding whitespace anymore.
2021-08-28 23:12:29 -05:00
cron
d6abb183b6 Merge branch 'master' of repo.or.cz:waspsaliva
Replicate the following commit (with cherry-picked parents on both
sides):

    commit a7e6ce649310b47768ffc1f4c731a3b9a774dc22
    Merge: 8f5dbbb1b 7ad3089d3
    Author:     cron <example@example.local>
    AuthorDate: Sun Nov 1 17:38:38 2020 +0000
    Commit:     cron <example@example.local>
    CommitDate: Sun Nov 1 17:38:38 2020 +0000

	Merge branch 'master' of repo.or.cz:waspsaliva
2021-08-28 23:10:43 -05:00
cora
37efa169d1 removed df chatcommand fuckery 2021-08-28 23:03:45 -05:00
cora
f8d8947818 lol 2021-08-28 23:03:45 -05:00
cora
287de74e55 added missing ws cheats ... time spent meaningful ... ^ 2021-08-28 23:03:45 -05:00
cora
d2c4108607 autoeat: fixed stupid mistake 2021-08-28 23:03:45 -05:00
cora
6def65f31d autofly: fixed autoSprint to reset correctly 2021-08-28 23:03:45 -05:00
cora
7a757a8c6a autofly: removed image test 2021-08-28 23:03:45 -05:00
cora
1f1e7558b0 autoeat: added seperate setting for timed autoeat 2021-08-28 23:03:45 -05:00
cora
4ff2b8bdbb autoeat: set conditional eating interval to 5 mins 2021-08-28 23:03:45 -05:00
cora
aec3fb38f5 autoeat: timed eat when certain things are happening 2021-08-28 23:03:45 -05:00
cron
836e29e653 chatcommands: fix duplicate definition functions 2021-08-28 23:01:50 -05:00
cron
7f09824e89 turtle: add working tlang
Not very well tested, needs a better public API, not integrated with Minetest, ...
This is WAY bigger than a commit should be.
The next stages will be:
- unit tests
- API (allows it to be more than just a language for this project)
- integration with Minetest
2021-08-28 23:01:49 -05:00
cora
c9b11b7c73 add ws cheats to cheat.lua ... why, fleck, why ? :D 2021-08-28 23:01:49 -05:00