Author Topic: Poison bug.  (Read 13197 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Poison bug.
« Reply #30 on: November 01, 2005, 07:02:53 PM »
Quote
Testlund ...
can you upload a 'settings' for this ...
or perhaps a zip of the sim just prior to the crash?
I can upload my settings file. A saved sim is no use as you can't load a saved sim anyway, can you? Also I can't no when I'm going to crash either. When you have loaded my settings file you need to change the following as it isn't saved in the settings file:

Set waste treshold to 100.

Turn boyancy on.

Enable corpse mode.

Set repopulation cooldown period to 50.

Happy bughunting!  ^_^
The internet is corrupt and controlled by criminally minded people.

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
Poison bug.
« Reply #31 on: November 01, 2005, 08:22:31 PM »
Quote
can upload my settings file. A saved sim is no use as you can't load a saved sim anyway, can you? Also I can't no when I'm going to crash either. When you have loaded my settings file you need to change the following as it isn't saved in the settings file:
no.
not so.
that is the problem with 2.36 ...
2.37 does save and upload sims and settings ...
but until now was not as stable as 2.36.
believe me ... it is easy to become confused with the differences of all these versions!!!

so you should be able to upload a saved sim...
certainly if it was saved with 2.37.
and if you zip and upload it here ...
I should be able to load it as well ...
and yes ...
as long as you provide me the settings that for whatever reason ...
don't load in with the sim and/or settings.

also ...
I suggest enabling  using a user defined 'seed'.
I think this is under the General Tab.  
with this as part of your settings ...
the random number generator is forced ...
(iif the program doesn't re-randomize to the timer during some operation)
to use the same starting sequence to generate the pseudo random sequence ...
which will be exacty the same if you designate the intitial 'seed'  ...
and should provide exactly the same results.
otherwise ...
every sim is begun using a sequence that is different ...
and unrepeatable (at least for our purposes).

so yes ...
do zip and upload a sim that you find leads to a bug ...
or even to interesting behavior ...
you know ... the ones you develope that keep you watching. ;)
that's what I am interested in sharing ....
our own experiments that we find to be of interest.
« Last Edit: November 01, 2005, 08:31:17 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
Poison bug.
« Reply #32 on: November 01, 2005, 09:28:40 PM »
DAMN! You were right! It WORKS to load a saved simulation in this version. ..and nobody told me before when I was complaining. I guess because it didn't work in some versions I never thought about trying it in this version. Ok, it's 3:26 am over here. I'll start a new sim now, go to bed and if it hasn't crashed before the morning I'll save it. If it crash after I've saved it I can upload the save here and you can check it out too. Goodnight.  :sleep:
The internet is corrupt and controlled by criminally minded people.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Poison bug.
« Reply #33 on: November 02, 2005, 09:00:04 AM »
Sometimes it works to load a sim, sometimes it don't. I have a saved sim here that I can't load. It says Alga_Minimalis.txt is not a valid robot. Doesn't make any sense.
The internet is corrupt and controlled by criminally minded people.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Poison bug.
« Reply #34 on: November 02, 2005, 09:02:56 AM »
That just means that the saved path to "alga minimalis.txt" in the file is incorrect. You can edit this manually in Notepad if you like.
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
Poison bug.
« Reply #35 on: November 02, 2005, 09:28:01 AM »
Quote
Sometimes it works to load a sim, sometimes it don't. I have a saved sim here that I can't load. It says Alga_Minimalis.txt is not a valid robot. Doesn't make any sense.

like Nums says ...
That just means that the saved path to "alga minimalis.txt" in the file is incorrect.
You can edit this manually in Notepad if you like.

This often happens if you use a setting/sim from someone else ...
as they may keep, or have loaded, their bots in from a different location than you.
I think its about the 8th line of so in the settings file ...
which will show you where it expects to find the first one ...
and this is repeated further down for each species of bot.
so when using other's settings, you have to check to see if that path is the
same as yours ... and .... that you have the bots they are calling for.
I see your Darwin2367.set uses "&#\Robots".
so that would look in the same parent directory as the settings folder ...
for the Robot folder.

another way to avoid this is ....
once you have loaded in the settings ...
to delete all of the species, and then load them in yourself from wherever
you keep your Robots.
then resave the settings and the path to them will be correct.

btw ...
I renamed Num's new remix of Animalis remix ....
and that may be something other that the name you have for it ...
so you have to watch for that as well ... and load in the bot under
whatever name YOU have for it.
I'll have to go put the original name on it I guess ...
just seemed overlong so I had streamlined it ...
not thinking ahead that it might cause others a problem if they
load in my settings. that's for 2.4x anyway.
« Last Edit: November 02, 2005, 09:29:08 AM 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 PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Poison bug.
« Reply #36 on: November 14, 2005, 03:09:17 PM »
OK the poison bug has reared its ugly head again.

This time I managed to track the reason for it.

The "power" variable had somehow gone negative, causing a shot to contain negative poison which then overflowed the mem(poison) register in the bot's memory when it got hit by the poison shot.

This bug is well and truly squashed for the next release. (hopefully later this week)
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D