Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Shadowgod2

Pages: 1 [2] 3 4 ... 26
16
Darwinbots3 / Re: Bot testbed
« on: April 08, 2017, 10:24:30 PM »
i have me a crude swimmer :D finally..
Code: [Select]
const seg 120
const maxh 20
const minh 5
const timer 10
'1 is always maxed
maxh 10 add .1

'wave up if count is 0 and prev seg is not 0ed

seg 2 div 1 add {
 dup 300 add ref sgn abs neg 1 add mul
 dup 1 sub ref minh sub sgn 1 sub sgn 1 add mul
 dup dup ref maxh swap sub 2 div swap ref add 1 add swap store } loop

'wave down if at or above max hight or -1 counter

seg 2 div 1 add {
 dup dup 300 add ref sgn 1 add sgn neg 1 add swap
 ref maxh sub sgn 1 add sgn add sgn mul
 dup dup dup ref swap ref  minh sub 2 div 1 add sub swap store
-1 swap 300 add store } loop

'count down from 3 to 0 when 0ed, 0 starts the wave, -1 is reverse on wave
''set timer to x if 0ed and timer is -1

seg 2 div 1 add {
dup ref minh swap sub sgn 1 add sgn mul
dup 300 add ref sgn 1 add sgn neg 1 add mul
300 add timer swap store } loop

''count down

seg 2 div 1 add {
300 add dup ref sgn 1 sub sgn 1 add mul
dup ref 1 sub swap store } loop

'mirror other side
seg 2 div 1 add { dup ref swap neg seg add 2 add store } loop

basic but good enough to test with.. now lets see if i can get an ellipse as the minh to weigh against for a better looking movement in the waves

17
Darwinbots3 / Re: Bot testbed
« on: April 08, 2017, 12:14:05 AM »
i tried the randomizing mirroring code i had above (which i realized wasn't complete for some reason and had fixed) and the render crashed so here's the log:

Code: [Select]
RootLevelException = {
    Description = "System.Exception",
    Message = "Encountered another boundary edge when building monotone polygon for boundary edge.",
    Source = "Annulus.CSG.StraightSkeletonDecompose",
    Stack Trace = {
        File = "\Modules\Annulus\Annulus\CSG\StraightSkeleton.cs:137:25",
        File = "\Modules\Blacklight\Core\Core\Drawables\Polygon.cs:48:13",
        File = "\Modules\Darwinbots3\Bot.Testbed\Renderer.cs:200:17",
        File = "\Modules\Darwinbots3\Bot.Testbed\Renderer.cs:101:13",
        File = "\Modules\Darwinbots3\Bot.Testbed\Renderer.cs:149:17",
    },
    Data = {
        radiiOut = {
            0 = "0.0199909991 //0x3F9478853D64D7A4",
            1 = "0.0109990999 //0x3F8686B23330D729",
            2 = "0.0199909991 //0x3F9478853D64D7A4",
            3 = "0.0199909991 //0x3F9478853D64D7A4",
            4 = "0.0159945995 //0x3F9060E3665F5248",
            5 = "0.0139963996 //0x3F8CAA24F5B91F34",
            6 = "0.0179927993 //0x3F926CB451E214F6",
            7 = "0.0199909991 //0x3F9478853D64D7A4",
            8 = "0.0119981998 //0x3F8892831EB399D7",
            9 = "0.0199909991 //0x3F9478853D64D7A4",
            10 = "0.0119981998 //0x3F8892831EB399D7",
            11 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            12 = "0.0179927993 //0x3F926CB451E214F6",
            13 = "0.0129972997 //0x3F8A9E540A365C85",
            14 = "0.0179927993 //0x3F926CB451E214F6",
            15 = "0.0169936994 //0x3F9166CBDC20B39E",
            16 = "0.0179927993 //0x3F926CB451E214F6",
            17 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            18 = "0.0189918992 //0x3F93729CC7A3764C",
            19 = "0.0169936994 //0x3F9166CBDC20B39E",
            20 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            21 = "0.0169936994 //0x3F9166CBDC20B39E",
            22 = "0.0129972997 //0x3F8A9E540A365C85",
            23 = "0.0129972997 //0x3F8A9E540A365C85",
            24 = "0.0199909991 //0x3F9478853D64D7A4",
            25 = "0.0169936994 //0x3F9166CBDC20B39E",
            26 = "0.0159945995 //0x3F9060E3665F5248",
            27 = "0.0139963996 //0x3F8CAA24F5B91F34",
            28 = "0.0119981998 //0x3F8892831EB399D7",
            29 = "0.0159945995 //0x3F9060E3665F5248",
            30 = "0.0109990999 //0x3F8686B23330D729",
            31 = "0.0109990999 //0x3F8686B23330D729",
            32 = "0.0139963996 //0x3F8CAA24F5B91F34",
            33 = "0.0179927993 //0x3F926CB451E214F6",
            34 = "0.0159945995 //0x3F9060E3665F5248",
            35 = "0.0109990999 //0x3F8686B23330D729",
            36 = "0.0199909991 //0x3F9478853D64D7A4",
            37 = "0.0159945995 //0x3F9060E3665F5248",
            38 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            39 = "0.0129972997 //0x3F8A9E540A365C85",
            40 = "0.0189918992 //0x3F93729CC7A3764C",
            41 = "0.0189918992 //0x3F93729CC7A3764C",
            42 = "0.0139963996 //0x3F8CAA24F5B91F34",
            43 = "0.0169936994 //0x3F9166CBDC20B39E",
            44 = "0.0169936994 //0x3F9166CBDC20B39E",
            45 = "0.0199909991 //0x3F9478853D64D7A4",
            46 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            47 = "0.0119981998 //0x3F8892831EB399D7",
            48 = "0.0139963996 //0x3F8CAA24F5B91F34",
            49 = "0.0129972997 //0x3F8A9E540A365C85",
            50 = "0.0189918992 //0x3F93729CC7A3764C",
            51 = "0.0129972997 //0x3F8A9E540A365C85",
            52 = "0.0139963996 //0x3F8CAA24F5B91F34",
            53 = "0.0119981998 //0x3F8892831EB399D7",
            54 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            55 = "0.0199909991 //0x3F9478853D64D7A4",
            56 = "0.0169936994 //0x3F9166CBDC20B39E",
            57 = "0.0169936994 //0x3F9166CBDC20B39E",
            58 = "0.0139963996 //0x3F8CAA24F5B91F34",
            59 = "0.0189918992 //0x3F93729CC7A3764C",
            60 = "0.0189918992 //0x3F93729CC7A3764C",
            61 = "0.0129972997 //0x3F8A9E540A365C85",
            62 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            63 = "0.0159945995 //0x3F9060E3665F5248",
            64 = "0.0199909991 //0x3F9478853D64D7A4",
            65 = "0.0109990999 //0x3F8686B23330D729",
            66 = "0.0159945995 //0x3F9060E3665F5248",
            67 = "0.0179927993 //0x3F926CB451E214F6",
            68 = "0.0139963996 //0x3F8CAA24F5B91F34",
            69 = "0.0109990999 //0x3F8686B23330D729",
            70 = "0.0109990999 //0x3F8686B23330D729",
            71 = "0.0159945995 //0x3F9060E3665F5248",
            72 = "0.0119981998 //0x3F8892831EB399D7",
            73 = "0.0139963996 //0x3F8CAA24F5B91F34",
            74 = "0.0159945995 //0x3F9060E3665F5248",
            75 = "0.0169936994 //0x3F9166CBDC20B39E",
            76 = "0.0199909991 //0x3F9478853D64D7A4",
            77 = "0.0129972997 //0x3F8A9E540A365C85",
            78 = "0.0129972997 //0x3F8A9E540A365C85",
            79 = "0.0169936994 //0x3F9166CBDC20B39E",
            80 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            81 = "0.0169936994 //0x3F9166CBDC20B39E",
            82 = "0.0189918992 //0x3F93729CC7A3764C",
            83 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            84 = "0.0179927993 //0x3F926CB451E214F6",
            85 = "0.0169936994 //0x3F9166CBDC20B39E",
            86 = "0.0179927993 //0x3F926CB451E214F6",
            87 = "0.0129972997 //0x3F8A9E540A365C85",
            88 = "0.0179927993 //0x3F926CB451E214F6",
            89 = "0.0149954995 //0x3F8EB5F5E13BE1E1",
            90 = "0.0119981998 //0x3F8892831EB399D7",
            91 = "0.0199909991 //0x3F9478853D64D7A4",
            92 = "0.0119981998 //0x3F8892831EB399D7",
            93 = "0.0199909991 //0x3F9478853D64D7A4",
            94 = "0.0179927993 //0x3F926CB451E214F6",
            95 = "0.0139963996 //0x3F8CAA24F5B91F34",
            96 = "0.0159945995 //0x3F9060E3665F5248",
            97 = "0.0199909991 //0x3F9478853D64D7A4",
            98 = "0.0199909991 //0x3F9478853D64D7A4",
            99 = "0.0109990999 //0x3F8686B23330D729",
        },
    },
}

hopefully ill get a basic swimmer tonight.. ill edit to here if no one posts like usual..

18
Darwinbots3 / Re: Bot testbed
« on: April 06, 2017, 06:41:01 PM »
as i understand it that would be the case if you so wished it. consider shapes as the decaying bots with all the energy and nutrients in the bot still there but locked up till another bot picks it up. the nutrients might be everywhere but concentrated in the shapes and living bots, where in the open the nutrients can be livable but not necessarily enough to grow much. at the start of a sim that would be a different story but as time went on less so forcing evolution to diversify and keep those nutrients in circulation in the environment.

i have figured out mirroring, now i can work on the waves..

seg = segment numbers:

const seg 120

seg 2 div 1 add { 10 rand swap store } loop

seg 2 div 1 add { dup ref swap neg seg add 2 add store } loop

19
Darwinbots3 / Re: Bot testbed
« on: April 06, 2017, 12:06:39 PM »
Alright no problem. I'll still play with the bot dna see what i get. I feel like im getting pretty close to getting what i need to know for a basic swimmer or something allong those lines.. crude but workable.

20
Darwinbots3 / Re: Bot testbed
« on: April 06, 2017, 08:56:01 AM »
Yea seems to be a bug when you start everything to 0 and try to just add 1 to it, it adds the 1 but seems to stop after that which is why i was confused. Thanks

21
Darwinbots3 / Re: Bot testbed
« on: April 05, 2017, 09:36:01 PM »
well probably same bug as above but it might be easier to find the bugs... idk i'm not a programmer but if you set the seg number to 5 the rendering crashes at 13. seems to only be 13 but you'll have to play with it

macro seg 5
seg 2 div { dup seg 2 div add swap seg add swap store } loop


seg is the number of segments btw... now to figure out how to mirror to the other side

also how do you read the memory of a location like this:

120 { dup (get memory of said location, modify it) swap store } loop

22
Darwinbots3 / Re: Bot testbed
« on: April 05, 2017, 09:09:24 AM »
seems to make mine crash from the start :/

23
Darwinbots3 / Re: Bot testbed
« on: April 05, 2017, 12:43:07 AM »
well this will be a while.. basically learning a proper programing language.. my brain does not compute well  :wacko:.. trying to figure out how to make an ellipse without long handing it... maybe im reaching too high right now and should basically mess with the shape in other ways... if i can make the spindles dependent of each other that would be a good start.

cant wait for evolution to do this for me.. :D jk

24
Darwinbots3 / Re: Bot testbed
« on: April 04, 2017, 02:09:41 PM »
Primitive it is... i with i could see the memory similarly to db2 but i do have an idea on a swimmer, just after i figure out how the dna works more hopefully i will get a working swimmer in a few days. Looks good.

25
Evolution and Internet Sharing Sims / Re: duel sim eco
« on: April 04, 2017, 08:36:28 AM »
you mean like my alga? lol

26
Evolution and Internet Sharing Sims / Re: duel sim eco
« on: March 31, 2017, 12:02:19 AM »
well its not really rock solid but definitely helps. i've actually found that animal_min.. and alga_min.. aren't very compatible with each other which is why i made a alga that was.. you can get a sim with them though but it has to be huge weighed more towards the alga and the sim would run very slow...

also i just looked at the description of the mutations sim in red and its not far off from what i do.. definitely needs an update since the chloroplasts... i'll start one up..


i also let the sims interact a little and i think i need to start over because even though mutations seem to go well before it almost seemed to have stopped for algas in one sim and animals in the other before i interacted them... but was still interesting to watch happen.

27
Evolution and Internet Sharing Sims / Re: duel sim eco
« on: March 24, 2017, 12:00:10 AM »
really you cant get a stable eco? i have this one running just fine... also update.. i've modified the sets for a river type sim mostly because evo had slowed a bit.. now explosions in diversity of plants but in one they've become semi cancerous trying to get the animal now to evolve more too to help keep them under control, tweaking the sets slightly.

so to enable a river type sim i put in a little gravity and fluid density to it. then i put in 10 random shapes with drift on although i think its a bit too fast even on the slowest settings..(i personally like extremely slow to let evolution take place a bit first..) unfortunately animal is a bit too slow on mutating now and almost stopped evolving. however i do have 2 stable animals in the same eco although they aren't very different atm.

nice btw bots, is that the one you've been evolving here lately? also i you want some tips on getting a stable eco i might be able to help on that.

28
Evolution and Internet Sharing Sims / Re: duel sim eco
« on: March 18, 2017, 12:33:20 AM »
actually im modifying the environment to hopefully get good numbers for a potential predator prey system evolve after some time. unfortunately i modified the environments too much and forgot to save them and caused an extinction in one of the sims and almost in the other one too and had to back off the changes. so im starting again with the system that survived... :dry: oh well hopefully i wont make that mistake again.. then again what if i let the alga evolve in an empty sim for again before reintroducing animals again... yea lets do that lol

also its a matter of modifying the settings a little bit and in a stable way as not to kill them and to start out with an already stable pop

29
Evolution and Internet Sharing Sims / Re: duel sim eco
« on: March 16, 2017, 11:53:42 PM »
well ive started another go but went a different rout.. instead of using animal min... i used a much simpler bot and had it in a populations stable, high mutations environment for a while till it had around 30 mutations. i saved the bots and started a new sim split.. the mutations rate is still high but not as high as the starter sim at around 1 stable or permanent mutation every 10 generations. although behavior hasn't changed much yet they are very different bots now in their dna currently at around 30 mutations. the color verifies this but one being yellow and the other almost black when they both started out red. i'm thinking of either letting them evolve till they have 100 mutations or just different behaviors. oddly the alga haven't changed much in color.. still green at about 25 mutation.

30
ill try again but last time which was right after my post above after 2 days as far as  could tell it never started a restart... it just kept going with the same sim.. am i missing something? do all the bots have to die before it starts a restarts? ill pause my eco sims for now both to try it again and to make a mutations friendly animal min if i can


edit: it seems to be working ok...

Pages: 1 [2] 3 4 ... 26