Jump to content




Sphere and Dome Builder


  • You cannot reply to this topic
90 replies to this topic

#41 Keridos

  • Members
  • 75 posts

Posted 07 March 2013 - 12:42 PM

I have an idea: I am thinking of making the shape builder program a project on github so it can easily be changed. You may know that he incorporated your program (he of course credited you) into his.
Since the creator of the shape builder is not really online since quite a few days and he has not responded to questions in his thread and per pm it might be he is gone now.

And since a versatile shape builder could be more useful than like 5 small ones, I am asking you if you would like that idea and might want to help with it.

#42 pruby

  • Members
  • 48 posts
  • LocationWellington, New Zealand

Posted 07 March 2013 - 02:41 PM

View Postsolaris187, on 07 March 2013 - 01:55 AM, said:

I am attempting to build a dome using this command. I enter into the turtle (that has just been refueled) sdbuild -28 -sz 28 and it returns an invalid argument on the 28

Try with 28 instead of -28?

sdbuild 28 -sz 28

#43 pruby

  • Members
  • 48 posts
  • LocationWellington, New Zealand

Posted 07 March 2013 - 02:43 PM

View PostKeridos, on 07 March 2013 - 12:42 PM, said:

I have an idea: I am thinking of making the shape builder program a project on github so it can easily be changed. You may know that he incorporated your program (he of course credited you) into his.
Since the creator of the shape builder is not really online since quite a few days and he has not responded to questions in his thread and per pm it might be he is gone now.

And since a versatile shape builder could be more useful than like 5 small ones, I am asking you if you would like that idea and might want to help with it.

Sure, encourage moving this on to a github repo. If you post the URL I'll look it up and may well contribute. In particular this could use some tidying up.

#44 Keridos

  • Members
  • 75 posts

Posted 07 March 2013 - 03:33 PM

Ok, i created the repo here:
https://github.com/K.../Shape-Builder/

Since you are one of the original authors and i would like to have at least a second man with commit privileges, would you like to get the authorization to push commits?

#45 pruby

  • Members
  • 48 posts
  • LocationWellington, New Zealand

Posted 07 March 2013 - 04:41 PM

Hi Keridos,

Great thing with github is you don't need to have multiple people committing to the same repo. I maintain quite a few projects through github, often where the original author has disappeared entirely. I'll fork it over the weekend and send you back a pull request with any changes.

Cheers,

Tim

#46 R167

  • Members
  • 24 posts

Posted 08 March 2013 - 02:44 PM

View PostHalleyelec, on 10 May 2012 - 08:21 AM, said:

Hi, first of all I love this! Secondly, Im not sure if its an issue with Turtles in general but when my Turtle is say creating a sphere, I save and exit then reload, the turtle running your program seems to stop. Are you aware of this? Like I said, im not sure if its all programs or just yours...
This is just the turtles and not the program. Turtles have a bug (i believe that it is this) that stops there program when you relog into the game.

#47 R167

  • Members
  • 24 posts

Posted 08 March 2013 - 02:45 PM

View Postpruby, on 07 March 2013 - 02:43 PM, said:

View PostKeridos, on 07 March 2013 - 12:42 PM, said:

I have an idea: I am thinking of making the shape builder program a project on github so it can easily be changed. You may know that he incorporated your program (he of course credited you) into his.
Since the creator of the shape builder is not really online since quite a few days and he has not responded to questions in his thread and per pm it might be he is gone now.

And since a versatile shape builder could be more useful than like 5 small ones, I am asking you if you would like that idea and might want to help with it.

Sure, encourage moving this on to a github repo. If you post the URL I'll look it up and may well contribute. In particular this could use some tidying up.
I would favor this to be on pastebin personally. That way you can download it using the pastebin program.

#48 NIckodemus

  • Members
  • 3 posts

Posted 08 March 2013 - 06:59 PM

Would indeed be very nice to see this up on Pastebin. :)

#49 sjkeegs

  • Members
  • 75 posts

Posted 09 March 2013 - 04:07 AM

View PostR167, on 08 March 2013 - 02:44 PM, said:

This is just the turtles and not the program. Turtles have a bug (i believe that it is this) that stops there program when you relog into the game.
This is not a bug. When the chunk that a turtle or computer gets unloaded they stop operating, and when they get loaded again they boot up to the OS screen. To make them continue to operate the program that they are running has to be designed to work that way (saving its state), and there has to be a startup mechanism to start the program up again.

#50 Keridos

  • Members
  • 75 posts

Posted 09 March 2013 - 10:32 AM

As long as it is on the github repo I will update the pastebin code whenever we fix/add something.
The pastebin code in the shape builder thread in my last post is up to date.
Soon I will start its own Thread here and link to the pastebin code and the github repo.
Just waiting a bit more for Aeolun but it looks as if he does not get back online (hasn't been here since a few weeks)

Shape Builder on pastebin: http://pastebin.com/RAHj4r2K

#51 KriLL3

  • New Members
  • 2 posts

Posted 15 March 2013 - 05:53 AM

This might be an obvious suggestion but why not add a feature that basically does the reverse of what the excavate command does? return to the starting point to load up on materials from a chest (can use a big chest to ensure it lasts, or feed it using RP2/BC/hopper etc if a really big prodject.

#52 Keridos

  • Members
  • 75 posts

Posted 17 March 2013 - 06:56 AM

pruby you think a new shape builder thread might be appropriate?
Seems as Aeolun is not getting back online so I thought about starting a new Thread for the shape builder. Also take a look at the github, I recently restructured the program a bit and you said that you may need to take a look at your code. Did not find the time yet to fully understand it. Also added a branch that contains code that you can use with a resupply turtle and station (from Miscperipherals).

/edit: merged the branch into the main program. So now we only have 1 program for all turtles. It automatically detects and uses mining and resupply modules. Chunkloader modules make the turtle not stop when you leave the age they work in (in smp)

#53 KriLL3

  • New Members
  • 2 posts

Posted 18 March 2013 - 02:26 PM

Also why does the turtle not use the last 7 slots of it's inventory?

#54 luochen1990

  • Members
  • 31 posts

Posted 19 March 2013 - 02:59 AM

View PostOrwell, on 26 September 2012 - 09:31 PM, said:

Well, the algorithm used is very good for spheres. I couldn't even get near that efficiency when using an ellipse as base. I don't think I could make something build ellipses as good as this programs builds spheres. And I don't really need ellipse-shaped sphere thingies anyways. :P/>
It's easy to describe a ellipse so it's not hard to get a ellipse one in fact . :)

#55 luochen1990

  • Members
  • 31 posts

Posted 19 March 2013 - 03:07 AM

View PostBigSHinyToys, on 10 May 2012 - 05:01 PM, said:

View PostHalleyelec, on 10 May 2012 - 08:21 AM, said:

Hi,

first of all I love this!

Secondly, Im not sure if its an issue with Turtles in general but when my Turtle is say creating a sphere, I save and exit then reload, the turtle running your program seems to stop. Are you aware of this?

Like I said, im not sure if its all programs or just yours...
all computers and turtles shutdown when you leave the game. that means when you boot it again the turtle or computer will have lost all its vars and the program will not be running. This can be fixed bt maing the turtle save its pos in a file but that is not realy a good solution. for the time being just make shore you have finished any builds before closing.
I had also found that problem , which makes automatic production impossible. If this could be solved (better if without a file writting authority) , the cc mod will be the most useful and interesting mod !

#56 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 19 March 2013 - 02:40 PM

View Postluochen1990, on 19 March 2013 - 02:59 AM, said:

View PostOrwell, on 26 September 2012 - 09:31 PM, said:

Well, the algorithm used is very good for spheres. I couldn't even get near that efficiency when using an ellipse as base. I don't think I could make something build ellipses as good as this programs builds spheres. And I don't really need ellipse-shaped sphere thingies anyways. :P/>
It's easy to describe a ellipse so it's not hard to get a ellipse one in fact . :)
Mathematically, not at all. But approximating it as accurate as possible with cubes and building it with as less moves as possible is something this program is very good at for spheres. It's not at all that practical to do so for ellipses. I didn't say it's impossible of course. The truth is simply that spheres and cubes are directly related through one variable (even if the relation isn't linear), thus finding an equivalency between a sphere and cubes is easier than between an ellipse/ellipsoid and cubes. It's a matter of interpolation really. It's still possible for ellipsoids though, the approximation would just be worse (that's what you get with a cuboid world).

#57 luochen1990

  • Members
  • 31 posts

Posted 20 March 2013 - 02:53 AM

View PostOrwell, on 19 March 2013 - 02:40 PM, said:

View Postluochen1990, on 19 March 2013 - 02:59 AM, said:

View PostOrwell, on 26 September 2012 - 09:31 PM, said:

Well, the algorithm used is very good for spheres. I couldn't even get near that efficiency when using an ellipse as base. I don't think I could make something build ellipses as good as this programs builds spheres. And I don't really need ellipse-shaped sphere thingies anyways. :P/>
It's easy to describe a ellipse so it's not hard to get a ellipse one in fact . :)
Mathematically, not at all. But approximating it as accurate as possible with cubes and building it with as less moves as possible is something this program is very good at for spheres. It's not at all that practical to do so for ellipses. I didn't say it's impossible of course. The truth is simply that spheres and cubes are directly related through one variable (even if the relation isn't linear), thus finding an equivalency between a sphere and cubes is easier than between an ellipse/ellipsoid and cubes. It's a matter of interpolation really. It's still possible for ellipsoids though, the approximation would just be worse (that's what you get with a cuboid world).
yes , i posted a ellipsoid dome builder , which is based on a 3d printer and not work as less moves as possible , but that is not hard anyway , just a pre search for a path .

#58 Keridos

  • Members
  • 75 posts

Posted 20 March 2013 - 09:54 AM

luochen, you might want to work that in the shape builder program, it is open source and we could need the addition of a ellipsoid building routine.
pruby already has his code in the program: https://github.com/K.../Shape-Builder/
If you need any more info or do not know how to use github, just pm me.

#59 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 20 March 2013 - 10:52 AM

View Postluochen1990, on 20 March 2013 - 02:53 AM, said:

View PostOrwell, on 19 March 2013 - 02:40 PM, said:

View Postluochen1990, on 19 March 2013 - 02:59 AM, said:

View PostOrwell, on 26 September 2012 - 09:31 PM, said:

Well, the algorithm used is very good for spheres. I couldn't even get near that efficiency when using an ellipse as base. I don't think I could make something build ellipses as good as this programs builds spheres. And I don't really need ellipse-shaped sphere thingies anyways. :P/>/>
It's easy to describe a ellipse so it's not hard to get a ellipse one in fact . :)/>
Mathematically, not at all. But approximating it as accurate as possible with cubes and building it with as less moves as possible is something this program is very good at for spheres. It's not at all that practical to do so for ellipses. I didn't say it's impossible of course. The truth is simply that spheres and cubes are directly related through one variable (even if the relation isn't linear), thus finding an equivalency between a sphere and cubes is easier than between an ellipse/ellipsoid and cubes. It's a matter of interpolation really. It's still possible for ellipsoids though, the approximation would just be worse (that's what you get with a cuboid world).
yes , i posted a ellipsoid dome builder , which is based on a 3d printer and not work as less moves as possible , but that is not hard anyway , just a pre search for a path .
You don't quite get it. The approximation is the hard part. The algorithm Prudy uses is optimal and ellipsoids made out of cubes couldn't ever have the same accuracy. That was my statement. You seem to have missed the essence two times in a row. Minimalising movement for example wasn't the essence.

#60 Shini

  • Members
  • 3 posts

Posted 25 March 2013 - 03:01 AM

>_> is there a way to make continue its work after reloading/restart





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users