Author Topic: Bug in 2.4.1  (Read 29788 times)

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #45 on: October 20, 2005, 01:39:35 PM »
Debugging one step further, the offending shot was fired by an unevolved Carnatis Orbis and is hitting a normal Alga Minimalis.

I almost always use my Carnatis Orbis as a test subject because he is so good at ferreting out bugs.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #46 on: October 20, 2005, 01:43:02 PM »
It has just occurred to me that the power of a shot passing through another bot should be decreased but it appears to be increasing.

D'you think it might be some kind of slingshot effect?  ;)

Probably not. I expect the formula is screwed up somehow.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
Bug in 2.4.1
« Reply #47 on: October 20, 2005, 01:45:20 PM »
> > another thing I have to keep checking is that the veggies are "blocked" ...
> > that box never seems to come up checked.
 

> It isn't supposed to. veggies are by default Unblocked since the blocked veggies
> are unrealistic under most simulation conditions.[/QUOTE]

ah ... ok.
for some reason I thought it allowed them to be affected by gravity ...
 
> > where does the prog get it's initial default settings from ...
> > you know ... the very first time one runs it out of the box?
 
> It loads them in from the "default.set" file which is included with the installation
 
ok. then if one were to replace that with a known working .set ...
then that might allow Testlund  to load and run a sim.
this is what I had to do with 2.37 ... as the default.set that came with
it didn't function on my computer for whatever reason.

> > but I can see no way to attach or upload files here.
 
> At the botom of the window which you use to type in your messages,
> (just below the post icons) there is a browse button.  

well duh! ;)  how did I miss that?  :redface:

ok ... here's  2.43_starter.set ...
using  "&#\Robots" for location so it should find the path as long as
it is in the same folder ...
and it requires Alga_Minimalis.txt and Animal_Minimalis2.4.txt ...
or an edit of the setting to call the new refix animalmininmlis whatever
one has named it.

this one works for me ...
but not for long ... the new animals lasting about 1100 cycles b4 dying off.

~griz~
« Last Edit: October 20, 2005, 01:48:22 PM by Griz »
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Bug in 2.4.1
« Reply #48 on: October 20, 2005, 02:09:04 PM »
Ok. tried out Griz example above by using the starter set. The only difference is that the program doesn't crash and the alga seems to grow!
The internet is corrupt and controlled by criminally minded people.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #49 on: October 20, 2005, 02:25:26 PM »
OK this is just weird.

I restrrted the program, made absolutely no adjustments to the options window, just hit the GO button.

Ran perfectly

It should be noted though that the default settings file loads in a value of 3 into the tmpopts.ygravity when the sim is first run using an old settings file.

If you just press go then a working settings file will be created. The next time you run it should be fine if you load that one back in.

Well I managed to run Carnatus Orbis for a long old time without crashing after I commented out the second half of the code that calculates the power left in a shot aftr going through an opponent.

Eventually I decided to have a change so I restarted with Destinatus Preliator. Now we get errors!

I get a subscript out of range error in the "Translocation" routine

Code: [Select]
If counter >= 1 And counter <= .DnaLen - 1 Then
  tempDNA(second) = .DNA(counter)
  .DNA(counter).tipo = 0
  .DNA(counter).value = 0
  second = second + 1
Else
  length = length - 1
End If

in line "tempDNA(second) = .DNA(counter)"

Second has a value of 91 at the time
Counter = 568
.DnaLen = 638

This routine is a completely new one to me so I am not even going to try to debug this one just yet.

Interestingly, I thought I had mutations disabled at the time  :blink:

Another GUI error is that in the mutations window, it appears to be impossible to turn mutations on or off.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
Bug in 2.4.1
« Reply #50 on: October 20, 2005, 02:32:39 PM »
Quote
Ok. tried out Griz example above by using the starter set. The only difference is that the program doesn't crash and the alga seems to grow!
perhaps this is progress? ;)

anyway ...
that is what at least allowed me to get 2.37 and 2.43 to run ...
and now I can at least get 2.37 to save and load settings/sims ...
so think I'll stick with 2.36  for now.
besides, I like having a small amount of gravity ...
and developing bots that can overcome it to reach the 'carrots' help up high.

btw ... even the moon setting from gravity is way to high, imo ...
I would prefer having a slider so I could utilize more subtle differences ...
a vernier control if you will. same for other settings like friction.

how about this idea for a place to stash saved settings users
come up with ... interesting setups ... either here or at the wiki?


~griz~
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #51 on: October 20, 2005, 02:36:51 PM »
Here is a tested settings file that has zero gravity

Just copy this into your "settings" folder and it will overwrite your existing default.set file.

Note this file uses Carnatus Orbis so if you don't have that robot then you will need to download it first from the beastiary.

The path to the robot in this settings file is \\DarwinbotsII\Robots\formula1\Carnatus Orbis.txt
You will need to use this exact path or you will get an error.
It also uses Alga Minimalis from the root Robot directory.

Of course it is always possible to delete all species before running the sim then add your own. The rest of the settings will remain the same. Once you have it running just save the settings file again and it should run every time from then onward.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #52 on: October 20, 2005, 02:38:30 PM »
Quote
btw ... even the moon setting from gravity is way to high, imo ...
I would prefer having a slider so I could utilize more subtle differences ...
a vernier control if you will. same for other settings like friction.

There is one. It is found in the advanced control window under "Y Gravity"

The moon and Earth settings are just presets.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #53 on: October 20, 2005, 02:42:45 PM »
Hehehe  :D

Carnatus orbis gets really fat in V2.4.3

I didn't call him "fat circle" for nothing.  :lol:
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Bug in 2.4.1
« Reply #54 on: October 20, 2005, 02:46:14 PM »
Okay, after looking at the settings files, the only thing that should be behaving screwy is the species list window in the first tab.  I'm fixing that now...

I've also fixed that power shot thing PY was talking about.

Translocation mutations are by far the trickiest.

There should be a control to turn mutations on/off, and it should be working.

I think you're right Griz, even default gravity is way too high.  I'll probably go in and set the range you can use much lower and finer.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Bug in 2.4.1
« Reply #55 on: October 20, 2005, 02:48:51 PM »
Oh, you can slow the rate of descent of the bots by setting the "big blue field" to either a liquid or a solid and choosing appropriate values for friction or drag.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #56 on: October 20, 2005, 02:53:04 PM »
The veggie population cap doesn't seem to work either. I have it capped at 25 and I currntly have 367 veggies  :D
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #57 on: October 20, 2005, 02:55:34 PM »
DP just crashed Translocate again. Same line as before. This time he was definitely not mutating.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Bug in 2.4.1
« Reply #58 on: October 20, 2005, 03:04:48 PM »
Tried out PurpleYouko's Default setting. Just starting up a sim whould give the error message that the Cornatus orbis is not a valid robot file. If I DELETE it from the species list and add it myself from the formula folder it works, though the simulation is still crazy. At the bottom it said 9 bots and 10 veggies, when it in fact was 0 veggies. The 9 bots were swimming around like crazy, that's all.

Also, it might be importent to mension that one must spell the name of the robot text file EXACTLY the same as it is in the settings file.
« Last Edit: October 20, 2005, 03:06:46 PM by Testlund »
The internet is corrupt and controlled by criminally minded people.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Bug in 2.4.1
« Reply #59 on: October 20, 2005, 03:09:07 PM »
There seems to be a problem with the robot selection window.

I found that a number of times I would delete one bot then add another, only to find the supposedly deleted bot still in th esim when I restarted it. Other times when I add a bot it says it isn't a valid robot file.

It seems that what you need to do is "delete all" to get rid of unwanted bots then add new ones.

Once you have them, repeatedly select each one in turn to make sure that the right details come up. Go to another tab then return and check them again. If they are still there now then the sim will pretty much always run OK.

Sounds like you have no veggie species in your sim. Add Alga Minimalis again and do as I suggested above. It should run fine.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D