Poll

Should Shots be saved in sim files?

Yes, please add it in a backwards compatabile manner.
6 (100%)
No, leave it as it is.
0 (0%)
I like cheese.
0 (0%)
It's only a cold sore.
0 (0%)

Total Members Voted: 6

Author Topic: Should shots be saved in sim files?  (Read 3407 times)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Should shots be saved in sim files?
« on: November 17, 2006, 02:59:48 PM »
Shots are not currently saved in sim files.  This means saved sim files do not accurately represent the state of the sim with regard to shots when it was saved.  This can be critical for debugging shot related problems (they often can't be reproduced from a saved sim file since all the shots are lost in the saved sim).  It can also cause unexpected behaviour when sims that are shot dependent are reloaded.  For example, the population in a sim where nrg shots last forever and bots have evolved to depend on a high frequency of random nrg shot impacts can crash when initally loaded since the abundance of nrg shots they need tp survive is absent.

Downside?  Well, adding shots to saved sims would increase their size proportional to the number of shots.  Not sure how much the per shot cost would be, perhaps a few hundred bytes per shot.
Many beers....

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Should shots be saved in sim files?
« Reply #1 on: November 17, 2006, 05:50:23 PM »
I say let's save them!   After all, the point of saving a sim is to save a sim.  I would suggest adding another option somewhere, but I suspect that newbies won't appreciate my concern for flexibility
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Should shots be saved in sim files?
« Reply #2 on: November 17, 2006, 11:06:52 PM »
First, I think we need to look into some compression schemes for saved sims before we make them bloatier

Zlib is a good choice.

The only hard part is going to be interfacing it with Visual Basic.

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Should shots be saved in sim files?
« Reply #3 on: November 20, 2006, 11:21:46 AM »
Seems like a sensible idea.
If you try and take a cat apart to see how it works, the first thing you have in your hands is a non-working cat.
Douglas Adams

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Should shots be saved in sim files?
« Reply #4 on: November 20, 2006, 11:51:06 AM »
FYI, unless there are strong objections, I plan to add shots to sims sooner rather than later and then pursue built in compression.
Many beers....

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Should shots be saved in sim files?
« Reply #5 on: November 20, 2006, 03:20:48 PM »
Good idea!  
The internet is corrupt and controlled by criminally minded people.

Offline Zinc Avenger

  • Bot Builder
  • **
  • Posts: 56
    • View Profile
Should shots be saved in sim files?
« Reply #6 on: November 24, 2006, 07:38:20 AM »
Amen, I can't say I've ever had a problem with shots not being saved, but I'd rather have shots saved than an extra handful of megabytes free on my gazillion-hundred-gigabyte hard drive.