Code: Select all
I would suggest just using sethook to set up a count hook. It will run much faster than inserting function calls everywhere,
2. can you give me concrete example how to run code in other thread in lua(jit)
Code: Select all
I would suggest just using sethook to set up a count hook. It will run much faster than inserting function calls everywhere,
Code: Select all
local function bad()
while true do
end
end
-- Need this if you have luajit (only turns it off for the function)
if jit then
jit.off(bad, true)
end
local thread = coroutine.create(bad)
debug.sethook(thread, function() error("Spent too much time") end, "", 10000)
print(coroutine.resume(thread))
Code: Select all
➜ temp luajit blah.lua
false blah.lua:12: Spent too much time
Nice - but at github, the latest commit c51bf32 doesn't have those features, and also no updated gui etc.rnd wrote:update: fixes, can sense players around, new direction forward_down for place and read_node..
The spawner cannot be picked up when items are still in its inventory or library.rnd wrote:-has library inventory, containing 32 books
-can read books or write to them
if you play as "admin" it doesnt check if item is in inventory, it just gives ithajo"]For the command 'place.up("default.torch")',
I got the errormessage "attempt to index a nil value".
Instead of an option, you could just check if game is running in creative-mode.rnd wrote:1.if you play as "admin" it doesnt check if item is in inventory, it just gives ithajo"]For the command 'place.up("default.torch")',
I got the errormessage "attempt to index a nil value".
Yes, but then the user has to carry around his library-books in his inventory,2. if i were allow spawner dig with stuff in it, comments would be:
omg, i had so much books and stuff, now its all gone.
I also figured out how the remotecontrol works,hajo wrote:I made a "User-documentation"-page on the wiki,
with some example-programs as an introduction.
Code: Select all
TLeft FWD TRight
DigUp Up BuildFwd
DigFwd Down BuildDownFwd
DigDown info Action/change build-stuff
its not, make a pull request on githubhajo wrote: Also, I set up a github-account, and made a little patch,
to add description.txt, and top/front-textures for the cpu-box.
I haven't used github yet, so I hope that's the correct way to do collaboration here.
so, it got "ignore" items in storage. unloaded mapblocks are made of ignore nodes. the robot dug into an unloaded mapblock.hajo wrote: Also, I had the robot digging stairs downward, and it has already found
several "ignore"-blocks. Mapgen used was v5.
the formspec doesnt come if you are pointing a node while right clickinghajo wrote:sometimes the form doesn't come up when rightclicking an rc.
this isnt possible that easyhajo wrote:Also, it would be nice of the remotes could have different names,
and maybe colors, to tell them apart.
only players, i thinkhajo wrote:Can the robot sense mobs as well as players ?
I think I did, but then there was no further activity (on github and here),DS-minetest wrote:make a pull request on github
hajo wrote:it would be nice of the remotes could have different names,
and maybe colors, to tell them apart.
Maybe just use a bunch of colored textures (like the wool-colors)this isnt possible that easy
there are no open pull requests https://github.com/ac-minetest/basic_robot/pullshajo wrote:I think I did, but then there was no further activity (on github and here),DS-minetest wrote:make a pull request on github
so I just assumed everybody was busy elsewhere.
hajo wrote:it would be nice of the remotes could have different names,
and maybe colors, to tell them apart.Maybe just use a bunch of colored textures (like the wool-colors)this isnt possible that easy
or at least different textures for empty-rc and rc-with-code (like book/with text) ?
Code: Select all
while (function(f) return f(f) end)(function(f) return f(f) end) do print("a") end
I made a fresh attempt, starting with basic_robot v11/26a.DS-minetest wrote:there are no open pull requests https://github.com/ac-minetest/basic_robot/pulls
Code: Select all
WARNING[Server]: Assignment to undeclared global "placename" inside a function at ...test-0.4.14_785a9a6\bin\..\mods\basic_robot/commands.lua:217.
..
WARNING[Server]: Assignment to undeclared global "script" inside a function at ...minetest-0.4.14_785a9a6\bin\..\mods\basic_robot\init.lua:1057.
Same problem as above:rgh wrote:Do robots stop working when they get a certain distance away from their owner, or an observer?
The first thing I tried was just building an endless column. The robot seems to go up & then stop.
However, If I fly up alongside it, the robot continues.
Is is predictable what happens when that occurs? When I experimented (0.4.14) having a robot build a never ending column, sometimes the robot was paused at the top & resumed building when I flew up to look at it, sometimes the robot had I think vanished from the top.hajo wrote: Same problem as above:
the robot got to an unloaded mapblock.
When you are around, the server keeps loading them.
all minetest objects hide when no player around. areas will unload after some time if noone around.Is is predictable what happens when that occurs?
Just press the stop-button.rgh wrote:It can't get somehow moved back to the robot spawner from which it came?
Users browsing this forum: No registered users and 20 guests