I tried that - no crash now, but still error (and the turtle doesn't move):endev15 wrote:the syntax is move("forward")
Code: Select all
ACTION[Server]: [string "move("forward")"]:1: attempt to call global 'move' (a nil value)
I tried that - no crash now, but still error (and the turtle doesn't move):endev15 wrote:the syntax is move("forward")
Code: Select all
ACTION[Server]: [string "move("forward")"]:1: attempt to call global 'move' (a nil value)
hmmmm nice job with the sequencing buttons! However, there are a few issues. When in multiplayer, since you used single local variables to store the turtle's action, different people using the sequencer at the same time will likely break the mod. Instead of each person's turtle moving as expected, it might move as someone else had recorded.JulienPavageau wrote: I have never program a mod for mintetest or over game and i don't know lua but i have tried (and succes ;-) to make a record/play/stop buttom to make a sequence of few instructions and to simulate a repeat loop. I thinks it s could be a first step for initiat children with code. You can see my script on Github (it's my first time and i hope i use it correctly) and i make a first video: https://www.youtube.com/watch?v=3kbbj4HP7lE
Ok, I had just tested in singleplayer.endev15 wrote:... When in multiplayer, since you used single local variables to store the turtle's action, different people using the sequencer at the same time will likely break the mod. Instead of each person's turtle moving as expected, it might move as someone else had recorded.
Ok, I thinks it's better you make change when you want.endev15 wrote:It'd be great to get this type of thing merged into the mod, but the above needs to be fixed first.
I have just choose this block to be use with a "mod" that can export to a 3d printer. You can see it at this adress (only in french) :endev15 wrote:Edit: Oh, and it wouldn't be able to place a block from mesecons. I'd recommend instead placing red wool or something like that. Or hardened clay, if/when my PR (Pull Request) to MTG (Minetest Game) is completed. I can fix that at merge though.
Code: Select all
if read_node.forward()~="air" then
turn.right()
else
move.forward()
end
A working 'bot - that's a nice surprise. Thanks !rnd wrote:Perhaps my basic_robot mod could be of help too
simple_robots mod works fine, toohajo wrote:A working 'bot - that's a nice surprise. Thanks !rnd wrote:Perhaps my basic_robot mod could be of help too
rnd wrote:Perhaps my basic_robot mod could be of help too
I have had a look at them - working, but the userinterface is quite cumbersome.DS-minetest wrote:simple_robots mod works fine, too
I agree.hajo wrote:rnd wrote:Perhaps my basic_robot mod could be of help tooI have had a look at them - working, but the userinterface is quite cumbersome.DS-minetest wrote:simple_robots mod works fine, too
minetest has no good interface for writing large texts, luacontroller for example is cumbersome, toohajo wrote:the userinterface is quite cumbersome.
simple_robot has a fixed number of 64 instruction-lines.DS-minetest wrote:minetest has no good interface for writing large texts,hajo wrote:the userinterface is quite cumbersome.
i dont think, the userinterface of the simple_robot mod is cumbersome
rnd wrote:Perhaps my basic_robot mod could be of help too - you can write simple lua programs
..
Example of simple program to navigate robot around and turn if it hits the wallCode: Select all
if read_node.forward()~="air" then turn.right() else move.forward() end
Please have a look at rnd's basic_robot.BirgitLachner wrote:At least ...
- name the turtle
? remove the turtle and put it anywhere else without the need to rename it again
- use turtle with open remote control ..
- have an inventory to collect the diged blocks
- use the blocks in the inventory to put the blocks ..
- have a recorder to record and play sequences
Turtles will soon have the ability to read and write to discs, as well as interact with an inventory. I will, however, take a look at basic_robot to get an idea as to how it works, and maybe Birgit will too.hajo wrote:He did a lot of work on it during the last days,
it now has an inventory and a remote-control,
and can access/write to books.
Maybe with your feedback you can get the features
that are still missing from the turtles, from basic_robot.
And the simple, cubic look makes it easier to modify its outlook...
I have been playing quite a lot with basic_robot, and wrote a pageendev15 wrote:I will, however, take a look at basic_robot to get an idea as to how it works,hajo wrote:Maybe with your feedback you can get the features
that are still missing from the turtles, from basic_robot.
and maybe Birgit will too.
Code: Select all
for i=1,10 do
turtle.place("front", "default:stone")
turtle.move("up")
turtle.move("forward")
end
I tried that, and made a short tutorial of it,rubenwardy wrote:My fork allows you to run scripts (although only statements so far) https://github.com/minetest-edu/turtleminer
Done, and I added a chapter to my TurtleMiner-Tutor.rubenwardy wrote:you also need to install this mod for the scripting
Users browsing this forum: No registered users and 31 guests