Code center > Suggestions
Should we do away with settings files?
EricL:
--- Quote from: Numsgil ---This is true only if you don't seed the random number generator. If you do that, the simulation will run identically on every instance.
--- End quote ---
Um, no, it won't. If you don't specify a seed, the code uses the seconds since midnight as a seed.
EDIT: Oh, wait. I misread you. Right, if you explicitly seed the generator with the same seed each time, then right, yes, you will get repeatability. Unless you use teleporters cross sim where the timing will be different each time.....
Testlund:
Well, I guess it whould be ok if settings doesn't need to be saved separately, but then I whould like every little thing that I set up to be saved when I save the sim, like drifting speed for shapes, shape colors, movement vectors, you name it. That way it whould be easier for you to debug it if someone sends you a sim with an error. But when I start a new sim I whould like just to start the program, go into settings and it should work the same as it does now. So, I guess I'll vote for maybe.
Jez:
I just use league settings so not really bothered, if a saved sim saves all the settings a setting file saves then I don't see a problem. I also used saved sims instead of setting files when ever I did change the settings.
If it makes DB a bit more streamlined and easier to use, especially for new players, then I don't see it as a problem.
On the other hand, if evo peeps or people who like creating specific settings think it would be a problem then perhaps we should listen to them...
EricL:
I want to bring this topic back to the forefront.
Settings files are out of date. I have not been keeping up with all the new features like I have with sim files. I bet there are a dozen bugs today where newer settings don't round trip through settings files because I have neglected to add them to the save and load routines for settigns files. No one seems to have noticed.
As above, sim files contain everything settings file do and more. I'd really like to do away with settings files completly. If people want, I'd be happy to implement a "load settings from sim" option would would suck all the settings out of any sim file, but not load the actual bot instances and not start a sim. If people really demanded it, I could in addition impliment a "Save sim without bots" option to save smaller sim files that would server the role settings files do today. (Personally I think we don't need that.)
But, I'm tired of having two concepts, two file formats and two bodies of code that do almost exactly the same thing.
Comments?
Peter:
Ok the difference between the settings file and a sim file seems pretty simple to me, as in a settings-file you can chance the bots you put in, you can chance mutations of the bots. If anything that could be changed in a settings file could be changed in a sim-file I agree.
Could even be nice if you could chance the mutation rates really harsly in a sim.
So the possibility to add bots.
Well I mean with zerobots I often set pointmutations to the max. Later on I would like to lower these incredebly, even more then is possible on the mutations tab.
There are some settings specifically set only in the settings(I though)so these would also be set in a sim.
But, heh wait isn't a sim is normally started from a settings-file, you're setting the settings for a sim right. eh, right.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version