Code center > Darwinbots3

Bot testbed

<< < (7/13) > >>

Shadowgod2:
Ok well what should i look for when it crashes so i don't post repeats?

Numsgil:
I meant because I'm fixing all the crashes you're posting, you end up finding novel ways to break things each time.  Definitely post all your crashes.

spike43884:

--- Quote from: Numsgil on April 09, 2017, 07:57:08 AM ---
--- Quote from: Shadowgod2 on April 08, 2017, 10:24:30 PM ---i have me a crude swimmer :D finally..

--- End quote ---

Ah, it's pretty sweet :)  I haven't started with fluid stuff yet (fixing all the crashes you've been finding), but soon.


--- Quote from: spike43884 ---Do 9900 perhaps as it's a multiple of 180 (which is half of 360) -> 55*180 = 9999

--- End quote ---

Problem is you can't represent 45 degrees if 360->9900 (since 9900 doesn't divide evenly in to 8 parts), and that's a fairly important angle.


--- Quote ---Also, I can't imagine you using 9999 memory locations (though, I may be wrong) so if you then made it so memory locations greater than 9900 (those which can't standardly be selected by cos/sin) as custom memory locations, for people to store their own data in (including epigenetic locations?) - 99 in most cases should be enough.

--- End quote ---

At the moment there are only 999 memory locations.  I'll probably expand that to 9999 at some point, but point is don't confuse how many memory slots there are (999) with what values they can store ([-9999, 9999]).

At some point I'll reserve a large contiguous memory block for user use.  At the moment I'm not sure how many sysvars I'll need for normal bot stuff yet, so I don't want to jump on to segmenting up the memory just yet.

--- End quote ---

Ahh k.
I just think trying to achieve a slightly nicer number to mark the end of sin/cos range might be better, so that people can memorise the division quicker to make coding bots a bit easier.

I can't imagine you needing even 999 memory slots, although expanding early on might be best just to ensure you don't run out, and so it doesn't end up with dedicated free slots sandwiched inbetween slots defined to a sysvar.

Shadowgod2:
actually i can see you needing more for some advanced complex bots, especially when you get into some multibots.

ok this bug i know where its coming from, its when i close the lid of my computer with the program still running:

--- Code: ---RootLevelException = {
    Description = "SharpDX.SharpDXException",
    Message = "Unknown error (HRESULT = 0x88760868)",
    Source = "System.Windows.Forms.ControlMarshaledInvoke",
    Stack Trace = {
        File = "\Modules\Darwinbots3\Bot.Testbed\Main.cs:140:17",
        File = "\Modules\Darwinbots3\Bot.Testbed\Renderer.cs:109:13",
        File = "\Modules\Darwinbots3\Bot.Testbed\Renderer.cs:149:17",
    },
    Data = {
        radiiOut = {
            0 = "0.031980198 //0x3FA05FB5613AB3DC",
            1 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            2 = "0.0159945995 //0x3F9060E3665F5248",
            3 = "0.0179927993 //0x3F926CB451E214F6",
            4 = "0.0219891989 //0x3F96845628E79A52",
            5 = "0.0289828983 //0x3F9DADB1613143B4",
            6 = "0.0269846985 //0x3F9BA1E075AE8104",
            7 = "0.0229882988 //0x3F978A3E9EA8FBA9",
            8 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            9 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            10 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            11 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            12 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            13 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            14 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            15 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            16 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            17 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            18 = "0.0159945995 //0x3F9060E3665F5248",
            19 = "0.0179927993 //0x3F926CB451E214F6",
            20 = "0.0219891989 //0x3F96845628E79A52",
            21 = "0.0289828983 //0x3F9DADB1613143B4",
            22 = "0.0269846985 //0x3F9BA1E075AE8104",
            23 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            24 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            25 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            26 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            27 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            28 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            29 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            30 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            31 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            32 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            33 = "0.0159945995 //0x3F9060E3665F5248",
            34 = "0.0179927993 //0x3F926CB451E214F6",
            35 = "0.0219891989 //0x3F96845628E79A52",
            36 = "0.0289828983 //0x3F9DADB1613143B4",
            37 = "0.0269846985 //0x3F9BA1E075AE8104",
            38 = "0.0229882988 //0x3F978A3E9EA8FBA9",
            39 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            40 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            41 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            42 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            43 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            44 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            45 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            46 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            47 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            48 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            49 = "0.0159945995 //0x3F9060E3665F5248",
            50 = "0.0179927993 //0x3F926CB451E214F6",
            51 = "0.0219891989 //0x3F96845628E79A52",
            52 = "0.0289828983 //0x3F9DADB1613143B4",
            53 = "0.0269846985 //0x3F9BA1E075AE8104",
            54 = "0.0229882988 //0x3F978A3E9EA8FBA9",
            55 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            56 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            57 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            58 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            59 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            60 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            61 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            62 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            63 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            64 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            65 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            66 = "0.0229882988 //0x3F978A3E9EA8FBA9",
            67 = "0.0269846985 //0x3F9BA1E075AE8104",
            68 = "0.0289828983 //0x3F9DADB1613143B4",
            69 = "0.0219891989 //0x3F96845628E79A52",
            70 = "0.0179927993 //0x3F926CB451E214F6",
            71 = "0.0159945995 //0x3F9060E3665F5248",
            72 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            73 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            74 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            75 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            76 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            77 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            78 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            79 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            80 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            81 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            82 = "0.0229882988 //0x3F978A3E9EA8FBA9",
            83 = "0.0269846985 //0x3F9BA1E075AE8104",
            84 = "0.0289828983 //0x3F9DADB1613143B4",
            85 = "0.0219891989 //0x3F96845628E79A52",
            86 = "0.0179927993 //0x3F926CB451E214F6",
            87 = "0.0159945995 //0x3F9060E3665F5248",
            88 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            89 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            90 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            91 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            92 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            93 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            94 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            95 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            96 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            97 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            98 = "0.0269846985 //0x3F9BA1E075AE8104",
            99 = "0.0289828983 //0x3F9DADB1613143B4",
            100 = "0.0219891989 //0x3F96845628E79A52",
            101 = "0.0179927993 //0x3F926CB451E214F6",
            102 = "0.0159945995 //0x3F9060E3665F5248",
            103 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            104 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            105 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            106 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            107 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            108 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            109 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            110 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            111 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            112 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            113 = "0.0229882988 //0x3F978A3E9EA8FBA9",
            114 = "0.0269846985 //0x3F9BA1E075AE8104",
            115 = "0.0289828983 //0x3F9DADB1613143B4",
            116 = "0.0219891989 //0x3F96845628E79A52",
            117 = "0.0179927993 //0x3F926CB451E214F6",
            118 = "0.0159945995 //0x3F9060E3665F5248",
            119 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
        },
    },
}
--- End code ---

spike43884:
I decided to pull out desmos just to try a few sine graphs.

Equation 1 satisfies full wavelengths for 999 and 9990.
Equation 2 satisfies fitting a number of half wavelengths for 999 and 9999.
Equation 3 satisfies fitting a full number of wavelengths for 9999.
Equation 4 satisfies fitting a full number of wavelengths for 999 and 9999.



In this case 1 wavelength = 999. For that type of equation within a sine function the wavelength = the denominator

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version