Time |
Nick |
Message |
05:27 |
|
kaeza joined #minetest-mods |
07:40 |
|
jin_xi joined #minetest-mods |
11:13 |
|
PilzAdam joined #minetest-mods |
12:08 |
|
Wuzzy joined #minetest-mods |
12:35 |
|
PilzAdam joined #minetest-mods |
13:33 |
|
jin_xi joined #minetest-mods |
14:28 |
|
jin_xi joined #minetest-mods |
15:08 |
|
bas080 joined #minetest-mods |
15:22 |
jin_xi |
new and improved turtle graphics mod: pls test if you have some time |
15:23 |
jin_xi |
https://github.com/obneq/turtle/archive/master.zip |
15:30 |
bas080 |
I'm checking |
15:30 |
jin_xi |
thanks, will be here for support if you need it |
15:31 |
jin_xi |
its for creative singleplayer use only atm |
15:34 |
bas080 |
This looks neat. So i have to insert nodes to make the turtle "move" |
15:34 |
bas080 |
Do you have a nice turtle string for me? |
15:35 |
jin_xi |
sorta, gimme a sec |
15:37 |
bas080 |
i just typed a+b and it crashed minetest |
15:37 |
jin_xi |
yeah, well |
15:38 |
jin_xi |
you need to enter correct programs for now |
15:38 |
jin_xi |
try something simple like G G G G and add four different materials to the upper inv |
15:38 |
jin_xi |
G places one node, turtle starts facing up |
15:39 |
jin_xi |
then you can enter a word definition like : a 0 DO G LOOP ; |
15:39 |
jin_xi |
then do something like 33 a |
15:39 |
bas080 |
So G G G G would create 4 turtles facing up? |
15:40 |
jin_xi |
its one turtle doing 4 steps |
15:40 |
jin_xi |
you dont see the turtle tho, just the result |
15:41 |
bas080 |
but it does not show anything. Is it spawned and the location the tool was used? |
15:41 |
bas080 |
Even one G does not spawn anything |
15:41 |
jin_xi |
hm, do you have git mt or stable? |
15:42 |
bas080 |
I have git |
15:42 |
bas080 |
updated yesterday |
15:42 |
bas080 |
turtles should work |
15:42 |
bas080 |
They do with moretrees |
15:43 |
jin_xi |
so, if you hit run does the formspec update to something like G ok |
15:43 |
bas080 |
Nice, a help button! |
15:43 |
bas080 |
yes it does |
15:44 |
jin_xi |
left click is spawn |
15:44 |
bas080 |
SThere we go! |
15:44 |
bas080 |
it works! |
15:45 |
bas080 |
Finally a way to learn turtles in a minetest way. |
15:45 |
jin_xi |
so try a loop! enter ": a 0 DO G LOOP ;" to define a word |
15:45 |
bas080 |
What references did you use? Is it based on some standards? |
15:45 |
jin_xi |
then enter 12 a to run it |
15:47 |
bas080 |
: a 0 DO G LOOP ; 12 a |
15:47 |
bas080 |
is that what i should type? |
15:47 |
jin_xi |
exactly |
15:47 |
jin_xi |
the language is forth like |
15:47 |
jin_xi |
so it looks somewhat old |
15:48 |
jin_xi |
should give you a tower of 12 nodes consisting of your first material or red wool if upper inv is empty |
15:48 |
bas080 |
why not use latest standards? |
15:48 |
bas080 |
So if i do not insert nodes it will draw with red wool |
15:49 |
jin_xi |
yes |
15:49 |
jin_xi |
and if you do you need to switch them with 1 M for first, 2 M for second |
15:50 |
jin_xi |
so you can put in two materials and enter : striped 0 DO 1 M G 2 M G LOOP ; 200 striped |
15:50 |
bas080 |
You should remove the items and just have nodes in the creative like inventory at the bottom |
15:50 |
jin_xi |
i know |
15:50 |
jin_xi |
a lot to do |
15:50 |
bas080 |
so i have this :a 0 DO G LOOP; 12 a |
15:51 |
bas080 |
i'm not putting anything in the inventory |
15:51 |
jin_xi |
spaces between : and a needed |
15:51 |
jin_xi |
space |
15:51 |
jin_xi |
also ; |
15:51 |
bas080 |
ty |
15:51 |
bas080 |
: a 0 DO G LOOP ; 12 a |
15:51 |
bas080 |
ok |
15:51 |
bas080 |
i'm learning |
15:51 |
jin_xi |
now you can use a just like a builtin word. try 1000 a for example |
15:51 |
bas080 |
Yes, i made a pole |
15:52 |
bas080 |
I don't want the pole to be that long |
15:52 |
jin_xi |
then do a 3 a |
15:52 |
bas080 |
Looking threw the help menu |
15:52 |
bas080 |
ok |
15:52 |
jin_xi |
"3 a" that is |
15:52 |
jin_xi |
without quotes |
15:53 |
bas080 |
I want the turtle to turn |
15:53 |
bas080 |
A |
15:53 |
jin_xi |
ok, lets try a circle ok? |
15:53 |
bas080 |
yes! |
15:53 |
bas080 |
R |
15:54 |
jin_xi |
: c 60 0 DO [ DUP 0 DO U G LOOP D T ] 6 A X R LOOP DROP ; |
15:54 |
jin_xi |
enter this (phew) and hit run |
15:54 |
jin_xi |
then do "12 c" for circle with radius 12 |
15:55 |
jin_xi |
oh shit |
15:55 |
jin_xi |
that T is supposed to be a G |
15:56 |
bas080 |
: c 60 0 DO [ DUP 0 DO U G LOOP D G ] 6 A X R LOOP DROP ; |
15:56 |
bas080 |
what does DROP mean? |
15:56 |
bas080 |
and DUP |
15:57 |
bas080 |
No error but also no circle |
15:58 |
jin_xi |
hmm |
15:58 |
jin_xi |
i got the circle |
15:58 |
jin_xi |
let me check again |
15:58 |
bas080 |
: c 60 0 DO [ DUP 0 DO U G LOOP D G ] 6 A X R LOOP DROP ; << is that correct? |
15:59 |
bas080 |
There is no output also |
16:00 |
jin_xi |
do "12 c" now |
16:00 |
jin_xi |
did you do that? |
16:00 |
bas080 |
no i forgot |
16:00 |
jin_xi |
first is definition of word, then you use it :) |
16:01 |
jin_xi |
you can check print stacks to sorta see how it works |
16:02 |
bas080 |
I notice that the circle has some gaps. |
16:02 |
bas080 |
But it's really neat. |
16:03 |
bas080 |
It might be better for people that do not know the notation yet to give them some presets. |
16:03 |
bas080 |
That way they have something to work with. |
16:03 |
jin_xi |
my plan is to create some format of procedural things to be created on mapgen |
16:04 |
bas080 |
But player has no control over mapgen. |
16:05 |
bas080 |
Do you want to make mapgen engine using this notation. |
16:05 |
bas080 |
? |
16:05 |
jin_xi |
yes, different randomized structures for different biomes |
16:06 |
bas080 |
How does your notation for 3d models differ from the L-system? |
16:07 |
bas080 |
pros cons i mean |
16:08 |
jin_xi |
l system has recursion, this is iterative |
16:08 |
jin_xi |
l system has fixed angle and fewer materials, this is more generic |
16:09 |
bas080 |
Now i understand why you are working on this. It's a good idea |
16:09 |
bas080 |
If this would work i could translate tiny trees to this notation. |
16:10 |
bas080 |
well, it does work. |
16:10 |
jin_xi |
its not really ready yet, but i am exactly looking for inputs on how to specify such things |
16:11 |
bas080 |
yes, Could you share reference to this manner of notation. |
16:11 |
bas080 |
or did you make it yourself? |
16:11 |
jin_xi |
i will try to make a writeup, but the language used is a really simple forth |
16:12 |
jin_xi |
google it, forth is the language used on the voyager space things and probably the only programming language to have left the solar system |
16:13 |
bas080 |
am googling |
16:13 |
jin_xi |
logo is often used for turtle graphics and might be a better choice |
16:15 |
bas080 |
I would choose for the simplest and easiest understandable notation so modders are encouraged to try it out. |
17:29 |
|
PilzAdam joined #minetest-mods |
18:29 |
bas080 |
what is a voxel_manip. Does it stand for anything? |
18:30 |
bas080 |
I am looking for good that uses it so i can use for an example. |
18:30 |
bas080 |
code* |
18:32 |
bas080 |
PilzAdam, do you have some example code of voxel_manip or can you tell me where i can found example code |
18:32 |
PilzAdam |
yes, in my nether mod in the voxelmanip branch |
18:33 |
bas080 |
thnx |
18:45 |
bas080 |
is there a reason why it is called voxelmanip? |
18:45 |
PilzAdam |
because it uses the Voxel Manipulator |
18:46 |
bas080 |
Manipulator, i get it! |
18:46 |
bas080 |
Finally some peace in my head |
19:16 |
|
Miner_48er joined #minetest-mods |
19:22 |
Tesseract |
bas080: Short for "Lua implementation of ManualMapVoxelManipulator". |
19:42 |
|
bas080 left #minetest-mods |
20:46 |
|
kaeza joined #minetest-mods |
22:03 |
|
ecube joined #minetest-mods |
22:22 |
|
Wuzzy joined #minetest-mods |