My solution to making circles in Starmade

    Joined
    Jan 17, 2014
    Messages
    73
    Reaction score
    20
    So, I found myself making a circular structure in Starmade for the umpteenth time. For this I usually go to my favourite Minecraft circle generator, counting the blocks in each straight run and listing adjacent duplicate runs with a x2, x3 etc.
    The result is a bunch of time spent doing something that a computer can do better and faster.....

    I thought about writing a program to do this, but I haven't done code in years. And I then said to myself, why not use a spreadsheet? So that's what I did. All I have to do is put the desired radius in the appropriate spot on sheet 1(named "Variables"), the work gets done on sheet 2, and sheet 3 (named "Instructions") has a list of block run lengths and how many runs at that length.

    I'm posting the spreadsheet file here in it's original format and one or two MS Office formats ( zipped together), because I'll just bet there's at least one other person out there that likes to make radial designs in their buildings and stations.

    If anyone would like a quick tutorial on how I use this to speed my building, let me know.

    I'll re-post this in the mod's section (thanks for the advice, 'Fid).

    And if anybody wants to improve this, feel free.

    -edit-
    And now a version 0.2 from a suggestion by Lancake.
     

    Attachments

    Last edited:
    Joined
    Aug 30, 2013
    Messages
    221
    Reaction score
    329
    • Modder
    • Community Content - Silver 1
    • Legacy Citizen 2
    Awesome. :) gave you a useful rate. Glad to see you take an active rule in in community support. Always glad to see players from our server getting it done :)
     
    • Like
    Reactions: BillGHero
    Joined
    Jan 22, 2014
    Messages
    1,047
    Reaction score
    299
    Ok, I guess I didn't understand your issue. I have two monitors, making it very easy to have Plotz open on one, and StarMade on the other.
     

    Lancake

    Head of Testing
    Joined
    Aug 20, 2013
    Messages
    794
    Reaction score
    560
    • Schine
    • Tester
    Plotz has a limit too. Although I find mineconics.net easier to work with (no limit either), it doesn't note down the numbers on the circles. I made a java program for that but this worksheet is a little easier to use ^^ Thanks a lot BillGHero.

    I have a small request though, can you make it look like this?


    If this is easily done of course, I prefer this format ^^
     
    • Like
    Reactions: BillGHero

    NeonSturm

    StormMaker
    Joined
    Dec 31, 2013
    Messages
    5,110
    Reaction score
    617
    • Wired for Logic
    • Thinking Positive
    • Legacy Citizen 5
    JavaScript:
    import static java.lang.Math.*;
    
    public class Circle
    {
        public static void main( String p[] )
        {
            float x = Float.parseFloat( p[0] );
            float y = x;
            if( p.length >1) y = Float.parseFloat( p[1] );
            int lastResult = (int)y;
            int repeat = 1;
            for( float i =0; i <= x; i++ )
            {
                int result = (int)round(sin((acos(i/x) ))*y);
                if( result == lastResult ) repeat++;
                else
                {
                    System.out.println(repeat +"x   "+ (result-lastResult) +" y" );
                    System.out.println(""); // extra line between different results if you want it
                    repeat = 1;
                    lastResult = result;
                }
            }
        }
    }
    cd path/to/your/program/directory/
    javac ./circle.java
    java ./circle x y
    ellipsoids are possible by entering different x and y.

    Maybe it helps peoples which don't like Excel or MicroSoft.
     
    • Like
    Reactions: BillGHero
    Joined
    Jan 17, 2014
    Messages
    73
    Reaction score
    20
    JavaScript:
    import static java.lang.Math.*;
    
    public class Circle
    {
        public static void main( String p[] )
        {
            float x = Float.parseFloat( p[0] );
            float y = x;
            if( p.length >1) y = Float.parseFloat( p[1] );
            int lastResult = (int)y;
            int repeat = 1;
            for( float i =0; i <= x; i++ )
            {
                int result = (int)round(sin((acos(i/x) ))*y);
                if( result == lastResult ) repeat++;
                else
                {
                    System.out.println(repeat +"x   "+ (result-lastResult) +" y" );
                    System.out.println(""); // extra line between different results if you want it
                    repeat = 1;
                    lastResult = result;
                }
            }
        }
    }
    cd path/to/your/program/directory/
    javac ./circle.java
    java ./circle x y
    ellipsoids are possible by entering different x and y.

    Maybe it helps peoples which don't like Excel or MicroSoft.

    I'll have to try this.

    As an aside, Excel/Microsoft aren't necessary. Two of the included formats are aimed at OpenOffice and Libre' Office.
     
    Joined
    Jan 17, 2014
    Messages
    73
    Reaction score
    20
    Plotz has a limit too. Although I find mineconics.net easier to work with (no limit either), it doesn't note down the numbers on the circles. I made a java program for that but this worksheet is a little easier to use ^^ Thanks a lot BillGHero.

    I have a small request though, can you make it look like this?


    If this is easily done of course, I prefer this format ^^


    Let me see what I can do.

    __>Update Try this one, Lancake. :)
     

    Attachments

    Last edited: