Code center > Bug reports
bugs 2.42.1
Griz:
hmmmmm ....
can't get 2.42.1 to run. I get a divide by zero error.
this is using 'new sim' which I guess would load in the default.sim
or the last sim I ran, eh?
even tried deleting/replacing the species ...
using only Alga_Minmalis and Animal_Minimals ...
but still get the error.
will run it thru VB when if get a chance later today/tonight.
attaching the error.sim
wonder if I might need to start with a working default.sim
that has been saved with the new version.
could you upload a simple starting default.sim?
Griz:
update:
started new sim.
deleted and reloaded species.
saved the settings.
reloaded the settings.
it ran.
exited the program, which I think saves a default somewhere.
now ...
when I start DB and 'new sim' ...
it seems to work. sort of. ;)
I can load in some old sims ...
although I sometimes get different error messages ...
like path to bots or invalid bots ...
and even divide by zero errors but it sometimes loads it in anyway and runs ...
other times the sim I intended to load isn't the one loaded ...
but some default or sim with only veggies.
however ... if I then edit and load in the settings I want ...
all seems to work.
getting closer. ;)
will play more later.
Testlund:
I don't know how you managed that, Griz. I tried the same thing, but it crashes everytime for me, with division by zero. I can't get it to run nomatter what.
EricL:
Yea, I was afraid that old sims would have problems. I'll look today and see if I can do something simple to make this less of a hassle, maybe turn off my fixes if I can detect a previous sim file version....
Beleive me, this really was so screwed up. I mean, the loop for saving/loading each species mutations settings (22 values) was executing the correct number of times on thr save (call it N, one for each listed in the species list box 22 values per species) but reading back in N+1 times, reading in the first 22 values of the 70 value costs array!!!!! The effect was just to fill locations in the species array that the program never used (because the number of species was saved and read in correctly) which was why the program would work although saved costs were all screwed up - the costs were off by 22 locations! But after the costs come the saved inital positions for each bot, which were never getting read back in I think because the end of the file would be hit before this. But now, if you read in an old file with the new code, including the default files, those psoiton values are getting read in and set, but what they are getting set with is off becuase of another loop bug in the save routine I.e. so what before were always defaulted are now being set with random stuff from the sim file if the sim file is from an older version of the code. This is only one example, there are other similar mis-matches. So, bottom line, using new code to read in old files has the potential to create really strange behaviour and crash...
Let me know if you see any problems once you get the settings where you want and save them. From that point on, you should be good to go.
Attached are well formatted default sim and settings files. Of course, people need to put them in the right places. I'll add them to the zip up download package.
-E
EricL:
Note that in addition to putting the new default files in the correct directories, you also have to delete your lastexit.set file in the Settings directory.
Navigation
[0] Message Index
[#] Next page
Go to full version