Jump to content

3 Screenshots

About This File

This is a mod which visually alters the UI button labels for Save and Exit (and Save and Quit), to highlight the risk of using this one-step method. Two options are included.

The first option disables that choice completely. The second simply renames the buttons, but continues to perform the same function as before.

Buy me a coffee

 

Background Information

Regardless of how the save is initiated, the game writes out the city tile's game data which is in memory to the save file, along with updating neighbouring tiles. The potential problem can occur when using either of the and options (Save and Exit or Save and Quit).

Apparently Maxis never envisioned the sheer quantity of custom content many of us use today. When using either and option, the game code only allows a certain amount of time for the save to occur, before it proceeds to initiate the Exit or Quit. Should the save process not be completed when this happens, the save file will likely be corrupted.

Subsequent loading of a corrupted tile will either immediately crash to the desktop (CTD), or the whole city tile will be missing and show as a flat area in the region view.

 

Exceptions

Many times the one-step process is perfectly fine to use. Examples include when terraforming a region by hand, going through Mapper generated tiles to update the snapshot previews, or planting trees such as using the Flora Blast function. It's just the dangers of corruption become heightened when doing this for established cities with lots of development, and crucially featuring an abundance of custom content.

 

Purpose of this Mod

The idea is to discourage the one-step process for saving. My mod provides options to modify both the UI dialogs for saving, and changes the text shown on the buttons.

It does not save the game automatically, nor display any reminders to save.

By changing the appearance of the dialogs, this only intends to be a visual cue making this less desirable in normal circumstances.

 

Variations Included

There are 2 variations available. Pictured below are previews of each of the "Save and Exit to Region" dialogs. The same style is also done for the "Save and Quit" dialogs.

As follows:

Option A

SaveWarning-01_Disable_Exit_Quit.png

This is designed for those who wish to ensure they never accidentally Save and Exit. It completely prevents the button from being clicked out of habit. Regular direct saves (Ctrl+S) or clicking the Save Icon still work as they always have.

 

Option B

SaveWarning-02_Message_Button.png

This simply renames and styles the button as pictured. When clicking the top-most button highlighted in red, it still operates the standard function for saving and exiting just the same as always. It intends to be a visual clue so you're reminded of the potential risk.


Option A is the safest choice, since it's then not possible to trigger the one-step process for saving a tile. Option B is provided for those who are aware of the risks, but want a visual reminder each time when prompted at the save dialog.

 

Is the saving process changed?

No, not at all. Of course, there's still that potential risk for a city to become corrupted when saving with the direct one-step method. However, my mod alters nothing in the code with what the game's save routine does. In terms of functionality, it's still available when using Option B exactly how it is by default.

Option A prevents this from being triggered at all.

The recommended simple strategy is to make a habit of saving using the standard Save function. My mod merely encourages the use of such.

This can be done using the first button on the options panel at the bottom, or using the Ctrl+S keyboard combination. A confirmation dialog will appear after saving.

Upon clicking the button:

Save Button.png

A dialog is shown like so:

City Saved Dialog.png


Once this appears, it's safe to click OK and proceed to exit or quit as the next step. If so for the 2nd step after saving, you then select either Exit Without Saving or Quit Without Saving. (Remember you just saved it the regular way in the 1st step.)


Important Note  *:read:

It's worth mentioning how in any situation, switching focus from the game while saving is a very bad idea.

This is also known to result in city tile corruptions even if using the regular save and not exiting the tile.

So just remember to keep SC4 in view and not changing to another program (even if using Windowed mode). In other words, simply clicking another window removes focus from the game and has the potential to corrupt the save. Always wait for the save to complete before doing anything else.


Additionally, making regular full backups of your Regions folder is always a very wise idea. That way should you wish to restore a city in the event of issues occurring, or simply wanting to rollback to a previous instance for other reasons, it's a simple case of copying back individual named region subfolder (or the tiles inside).

See this topic for an overview of the basic process.

 

Installation

  This mod uses the standard process of installing SC4 content.


There are no dependencies.

Only ONE Option can be used at once. First choose either of the 2 available zip files when clicking the Download button.

Contained within each zip archive are the following:

Option A
SaveWarning_Disable_Exit_Quit.dat

Option B
SaveWarning_Message_Button.dat


Copy either of the above .dat files into your Plugins folder.


Hopefully this might prove useful. *:8)

 

Special Mention

A big thank you to  @CorinaMarie  for helping and supporting me with ideas for this project.

Cori has given valuable input on ways it should best be implemented, and also for encouraging me to finally get the mod dusted down, polished up, and released. *:)

 

  • Like 32
  • Thanks 6



User Feedback

Create an account or Sign In to leave a review

You need to be a member in order to leave a review

Sign In  

Already have an account? Sign in here.

Sign In Now

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account


CorinaMarie

   5 of 5 members found this review helpful 5 / 5 members

I've already been using this for months and I feel this is a Must Have for every SimCity 4 player. *:)

  • Like 4
  • Thanks 1

Share this review


Link to review
rsc204

   3 of 3 members found this review helpful 3 / 3 members

A great idea to mod this. I've known about the issue a long time since 2 of my cities suffered corruption some years back. Even so, accidentally clicking the undesirable option is something I still do from time to time. In effect this little mod will "save" me from myself. Terrible pun totally intended :D.

  • Like 2

Share this review


Link to review
Edvarz

   3 of 3 members found this review helpful 3 / 3 members

Oh wow, I didn't know I needed this but I deeefinitely do. I know about the corruption issue but I am so clumsy that accidentally clicking the 'Save and Exit' button it's more than probable. Thanks!!!!

  • Like 2

Share this review


Link to review
sejr99999

   3 of 3 members found this review helpful 3 / 3 members

thank you for this important info on some of the games inner workings and your fix    I will remember now to always to use the save button before exiting

  • Like 4

Share this review


Link to review
carlosmarcelo

   2 of 2 members found this review helpful 2 / 2 members

I liked it! Very good! It is very util to avoid this hazard.

I would like add a tip for all.
I use my regions folders and my plugins folders in google drive (Backup and Sync from Google) to desktop: before start the game, I turn off the sync, play a lot, save and, after to finish and close the game I turn on the sync.
The google drive keep some old versions of cities and plugins that help us to recover any disaster with the cities.

See this example in image:

gdrive and sc4.jpg

  • Like 2

Share this review


Link to review
tariely

   2 of 2 members found this review helpful 2 / 2 members

Having had the Flat City problem a few times way back and tearing at my hair with the “Why oh WHY ?” wail, I am very happy to understand it now. And even happier to have this mod to prevent the bug for reappearing. THANK YOU !

  • Like 2

Share this review


Link to review
cydonianmystery

   2 of 2 members found this review helpful 2 / 2 members

I had no idea that Save and Exit to Region had a possibility for corrupting files, so this mod's definitely gaining a permanent spot in my Plugins folder.

A must-have mod for people who weren't aware of this issue.

  • Like 2

Share this review


Link to review
KoreaJJ

   1 of 1 member found this review helpful 1 / 1 member

고맙습니다

  • Like 1

Share this review


Link to review
×

Thank You for the Continued Support!

Simtropolis depends on donations to fund site maintenance costs.
Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

Make a Donation, Get a Gift!

Expand your city with the best from the Simtropolis Exchange.
Make a Donation and get one or all three discs today!

STEX Collections

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections