.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPWW2 > Campaigns, Scenarios & Maps
Notices


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #36  
Old April 17th, 2020, 02:43 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,956
Thanks: 465
Thanked 1,897 Times in 1,235 Posts
Mobhack is on a distinguished road
Default Re: 3rd Guards Mech Corps Campaign feedback

Yep - soft deletion was what used to bloat Microsoft Word files - lots of no-longer used data (like embedded pictures say) was still stored in the file after a zillion edits. The SOP for those docments was to save it to a temporary file, delete the old working copy and then rename the temporary file back to the old filename. Apparently saving as a new file did not carry the cruft over. Not sure if that applies to modern editions of Word, but was cerainly true back around 2005. I use LibreOffice now, with it set to save as a docx type (so if I send it to oters they do not get confused) so have not had to suffer Word and its foibles in a decade+!

So I now have a "cruft clearance" routine run over files on load, and will do so on save as well. That may save a fair few bytes since the run length compression will pack a load of 0's down to a couple of bytes.

This scenario's cruftiness was shown up by the user campaign's reshuffling of the unit deck to insert the campaign core troops and supports etc, so some cruft tables then found themselves aligned with reshuffled 'live' units, and the cruft had been tabled to fire a programmed routine. Hilarity then ensued!. Cruft removal ensures the side tables are deleted as well as zeroing the crufty "inactive" units lying around in the main unit table.
Reply With Quote
The Following User Says Thank You to Mobhack For This Useful Post:
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.