Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Sprotiel on December 02, 2007, 08:47:27 PM

Title: White curves in graphs RESOLVED 2.43y
Post by: Sprotiel on December 02, 2007, 08:47:27 PM
Sometimes, "Corpse" curves are displayed in white in the graphs. This doesn't persist after saving and reloading, and I haven't noticed any pattern for when the problem appears (it might happen more often in IM, but I'm not sure). Resetting graphs doesn't help (even though bot species colours change).
Title: White curves in graphs RESOLVED 2.43y
Post by: Sprotiel on December 05, 2007, 08:02:24 AM
One thing I have noticed: every time it happens, "Corpse" is somehow added to the species list. Probably, that's what messes things up.
Title: White curves in graphs RESOLVED 2.43y
Post by: Testlund on December 05, 2007, 08:45:00 AM
I've seen this too. I was wondering if maybe somebody had named a species 'Corpse'.
Title: White curves in graphs RESOLVED 2.43y
Post by: EricL on December 05, 2007, 12:13:10 PM
No, it's a bug.  I use the bot's color for the species graph colors when they first enter a sim through teleportation.  Corpses are white, not black, so they become white if they are not native to that sim.  I need to special case them like they are natively.

Fixed in 2.43v
Title: White curves in graphs RESOLVED 2.43y
Post by: Sprotiel on December 05, 2007, 05:22:35 PM
Perhaps Corpses shouldn't be teleported. I don't see the point of doing it and I guess it's a source of trouble if a Corpse appears in a sim with corpse mode disabled.
Title: White curves in graphs RESOLVED 2.43y
Post by: EricL on December 05, 2007, 05:29:50 PM
Quote from: Sprotiel
Perhaps Corpses shouldn't be teleported. I don't see the point of doing it and I guess it's a source of trouble if a Corpse appears in a sim with corpse mode disabled.
I agree for internet mode.  I still have to fix the bug for regular teleporters where teleporting corpses is an option but I'll change the IM teleporter to ignore corpses.
Title: White curves in graphs RESOLVED 2.43y
Post by: Numsgil on December 05, 2007, 05:31:38 PM
We talked at once point about keeping ties on corpses.  Is it possible for a MB to drift through a teleporter with a corpse attached.
Title: White curves in graphs RESOLVED 2.43y
Post by: EricL on December 05, 2007, 05:36:23 PM
Quote from: Numsgil
We talked at once point about keeping ties on corpses.  Is it possible for a MB to drift through a teleporter with a corpse attached.
Yup, another reason.

So, what I should I do when a corpse appears in a sim not running corpse mode?  Filter it out at materialization time?  Evaporate it over time at internal hard coded rate and method?
Title: White curves in graphs RESOLVED 2.43y
Post by: Numsgil on December 05, 2007, 05:45:53 PM
My natural inclination would be to allow it in anyway, but I'm sure that's not the best way to handle it.
Title: White curves in graphs RESOLVED 2.43y
Post by: EricL on December 08, 2007, 01:31:40 PM
This isn't fixed all the way in 2.43v.  I fixed the case for new sims.  For new sims joining internet mode, when a corpse first comes in, it should be black.  But not for existing sims which already have a corpse record in their specie list.
Title: White curves in graphs RESOLVED 2.43y
Post by: EricL on December 30, 2007, 07:17:44 PM
Okay, this is better in 2.43y.  I didn't go so far as to add a bunch of logic to remove existing species named "Corpse", so some IM connected sims may still show a non-black color for corpses for awhile, but over time, this shoudl disappear.  In particular, new sims connected to IM should now always show black for Corpses.