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.

Topics - Sprotiel

Pages: [1] 2
Bugs and fixes / Bots piling on each other RESOLVED (2.43v)
« on: December 06, 2007, 05:34:50 PM »
I thought this couldn't happen anymore, but I currently have a large number veggies atop each other in the lower right corner of my sim (see image). If you want the corresponding sim, I'll upload it.

Bugs and fixes / White curves in graphs RESOLVED 2.43y
« 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).

Bug reports / Bitwise shift operators are incorrect
« on: January 27, 2007, 03:21:58 PM »
The way bitwise shift operators are implemented doesn't make any sense whenever one or both the operands are negative. There are several different ways of defining bit-shift operators, but I'll assume the one we want is the arithmetic shift. Shifts with negative offsets are usually errors, but we should probably take it to mean a shift in the reverse direction, with an offset equal to the absolute value of the offset specified.

Now, here are the results of some bitshift operations in 2.43:
-4 1 >> is 0, but should be -2
-4 1 << is 2, but should be -8
-4 -1 >> is -1, but should probably be -8
-4 -1 << is -2, but should probably be -2

Bugs and fixes / Large sim won't load
« on: January 23, 2007, 09:51:42 PM »
I have a (very) large sim which I can't load, no matter what I do. I've tried to strip the mutation details, successfully I believe since it works for other files, but the resulting file won't load either, with DB giving the same error message it gives for the full file: "blablabla Invalid property value DarwinBots 380 0".

I'm adding both files, in case my procedure is incorrect.

PS: Seeing the trouble I had to upload the small one, I won't upload the large file here.

Bugs and fixes / Large sim won't load
« on: January 23, 2007, 09:47:29 PM »
I have a (very) large sim which I can't load, no matter what I do. I've tried to strip the mutation details, successfully I believe since it works for other files, but the resulting file won't load either, with DB giving the same error message it gives for the full file: "blablabla Invalid property value DarwinBots 380 0".

I'm adding both files, in case my procedure is incorrect.

PS: This stupid forum won't let me upload files, I'll try again later...

Bug reports / Inconsistent handling of logic functions
« on: January 21, 2007, 06:27:13 PM »
In 2.42.9u, on an empty condition stack:
* 'not' is true
* 'and' is true
* 'or' is true
* 'xor' is false
*'(true) and' is true
*'(false) and' is false
*'(true) or' is true
*'(false) or' is true
*'(true) xor' is true
*'(false) xor' is true
This is inconsistent in the sense that it is not possible to assume that a boolean is generated to fill the missing operands, contrarily to what happens with the integer stack (missing operands are replaced by 0).
Since an empty stack is true, as far as gene execution is concerned, what would make the most sense would be to use 'true' as default, fill-in value. Besides, it only causes a change of behaviour in the 2 italicized cases out of 10.

Evolution and Internet Sharing Sims / Phylogenetic trees from sim files
« on: January 19, 2007, 09:03:09 PM »
I've created a small Python script to analyse mutation histories in saved simulation files. What it does is building a phylogenetic tree from the mutation details (taking advantage of their being saved in plain text). There must be some useful things to do with this, but I only print the tree with the numbers of bots having a particular genome, or having it as an ancestor.

Limitations : it ignores bots that never mutated, may give nonsensical results if you've ever stripped mutation details or if you have more than one species mutating.

To use it, you need to have Python installed. If you know some Python, I hope you'll figure out what it does, otherwise, I'm also including a handy batch file on which you can drag and drop .sim files.

Bug reports / Graphs not correctly resized
« on: January 09, 2007, 03:18:35 PM »
Some graphs aren't resized properly, energy stats seem to be most affected by that.

While I'm on the topic, I'd like to point out also that the fact that all species appear on graphs makes most of them barely useable once a sim has settled somewhat since it forces the use of an unappropriate scale.

Bug reports / Bug in statistics
« on: December 19, 2006, 08:49:56 PM »
I think every per species average wrongly divides the sum of the relevant properties by the total number of bots instead of dividing by the number of bots of the species. E.g. if you start a sim with 10 vegs and 5 animals with 5000 nrg each, the average energy for vegs will appear as 3333, and for animals as 1667.

Bug reports / 'You need MSSTDFMT.DLL'
« on: December 19, 2006, 08:45:48 PM »
Since 2.42.9L (or earlier), I get a runtime error 713 'Class not registered' whenever I try to access the custom costs panel. It's not really a problem since downloading the offending DLL AND typing "regsvr32.exe msstdfmt.dll" in the command box of Windows' Start menu solves it, but it might bother newbies.

Bugs and fixes / Stores not executed in 'else' blocks
« on: December 17, 2006, 01:54:39 AM »
For my demonstration, I used an Animal_Minimalis slightly modified to have a search pattern in wide irregular circles.

If for the first gene, I use
Code: [Select]
0 1 =
10 .up store
10 .up store
bots stay put while turning when they see nothing instead of describing wide circles. However, the code should be correct because replacing the condition with '0 0 =' yields expected behaviour.

To get the else block to execute properly, I need to write:
Code: [Select]
0 1 =
10 .up
10 .up


Obviously, the problem comes from store instructions not being executed inside the 'else'-block.

Solution: in Private Sub ExecuteDNA(n As Integer), replace the second line of
Code: [Select]
      Case 7 'store, inc and dec
        If CurrentFlow = body Then
Code: [Select]
If CurrentFlow = body Or CurrentFlow = ELSEBODY Then

Bug reports / Locale bug in settings
« on: November 15, 2006, 06:34:52 AM »
This bug is particularly manifest in cost settings but it seems to affect all settings with float values.

I have a french WinXP Pro and hence comma as default decimal separator. Here's what happens on my system:
Let's assume translational energy per bang is set to 0.1. When I click on "Custom simulation costs" and the costs panel appears, it's printed as "0,1" (note the comma). If I click on Okay without changing anything, the cost is changed to 0, which I can easily check by reopening the costs panel. If I want to leave the costs unchanged, I must manually replace each instance of a comma by a dot. Bizarrely, clicking on F1 Default yields dot-separated costs which are hence correctly applied when clicking Okay.

I guess the problem is a discrepancy between the output decimal separator, which is locale-dependent, and the input decimal separator, which is ".". Since DB is in english, the best solution would be to set both to ".".

Bug reports / Shapes preventing bots from reproducing
« on: November 13, 2006, 08:01:47 PM »
I believe bots are unable to reproduce despite storing something in .repro when they are in certain locations close to shapes. In any case, I'm getting vegs (Alga Minimalis) trying to repro but failing when they are located close below the only shape in my sim, though there seem to be no reason why repro should fail and while vegs located elsewhere repro correctly.

To reproduce the bug with the sim attached, pull a newly spawned veg just below the shape, it'll quickly reach 6000 nrg and start spinning, which indicates its repro gene is activated.

Suggestions / C++ code
« on: January 02, 2006, 05:23:10 PM »
Happy new year everyone! I'm glad to see that the C++ port is under way and I'd like to help. I have a few remarks:

*Information is scattered all over the forum, and also on the wiki and the source tracker. It might be a good idea to create a C++ code subforum and the roles of the various sites should be clarified.
*There should be some kind of roadmap with a set of goals and milestones.
*Having read the code, I must say it's quite a mess - or a nice demonstration that VB isn't an objet-oriented language. We need documents outlining the code's structure and the algorithms.

Anyway, if someone (I guess that means Nums?) could tell me what needs to be done and give me SVN access, I'd be happy to do some coding.

Bugs and fixes / Veggie pop control
« on: June 23, 2005, 11:50:52 AM »
The way I understand population control, it only allows vegetables to reproduce when there's less of them than the threshold, in which case all of them trying to repro are allowed to do so, which means that veggie pop can reach up to twice the threshold. The trouble is that right now, I have a sim with pop max = 1000 and 2192 vegetables!

Pages: [1] 2