OldUnreal / UnrealTournamentPatches

Other
976 stars 29 forks source link

[469c] When clicking new map button does not prompt to save existing map #1114

Open no0nehere opened 1 year ago

no0nehere commented 1 year ago

If you have spent hours on a map and accidentally click on the New Map button (top left)

The editor does not prompt to save existing map .so all work is lost.

Dangerous.

SeriousBuggie commented 1 year ago

Only if you have empty undo history. Like build geometry/paths/lights recently. on other cases it is ask.

SeriousBarbie commented 1 year ago

That I-have-been-modified-since-last-save flag still seems broken. Sometimes UnrealEd ignores changes (in case above), in other cases UnrealEd asks for saving a just saved map when closing.

SeriousBuggie commented 1 year ago

No such flag. As flag used fact empty undo buffer or no. And undo buffer erased on any build. And not altered when you rebuild scripts on map.

SeriousBarbie commented 1 year ago

Thanks for the explanation. "flag" is meant here not as variable but more as a modified state. My (and probably most user ones) expectation is that when map's representation in memory is different from persistent stored representation it should be indicated by such a "modified" flag or state, and consequently reflect this in enabling/disabling saving commands and asking for save on closing if modified.

no0nehere commented 1 year ago

To fix , unrealed should ask to save your work regardless of already been saved or not if user clicks on the New Map button.

It always asks to save if you Load a Map.. so why not if you wish to create a new one?

SeriousBuggie commented 1 year ago

It behave exactly same when you open new map or when you load any existing map. Both ways is bugged in same way. And both not ask in some cases (not all time).

stijn-volckaert commented 1 year ago

Confirmed, but this will take a while to fix.