Btw, I've seen there are recent unsolved threads about save names... maybe is related.
So, after updating from 1.81.5 to 1.81.7, saving with custom labels stopped to work, and no saves names can be changed. Both on Editor and Runtime.
Previous behaviour: I used your tutorial on how to add custom label to save files. I'll drop you the pics of the actionlists anyway. (PS: I also tried filling the Slot ID option on the Click Save on Input menu, not change)
Originally it was set on Time and Date, and I tried Date Only and didn't work either.
Original behaviour:
-Click on Save Slot executes the script that assigns SlotID to variable. And Opens Input Panel. Input panel appears with the name of the save, or the name "New Save" if is a new slot.
-If User delete the text, it will be saved with updated Time and Date. If not or change the input, the save is saved with the correct name.
-(User clicks save/press enter, the ClickOnSaveInput AC executes and saves it correctly)
New Behaviour:
-Trying to Overwrite a Save slot Always keep original name of the file. Doesn't matter if leaving it empty or changing name.
-Creating new saves are created with correct new Time and Data
-Saves loads without problem tho. The Save Name Variable is also updated with the new custom label as it should.
PS: All menus use TextMeshPro. Save Name/or slot variable is not linked to anything.
pics:
https://ibb.co/rwnfVTK
https://ibb.co/7nKQXzt
https://ibb.co/c8Qqzd2
Could maybe just that the save ocurrs before the variable is updated? I've not change anything since previous versions...
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
We'll need to first rule out this being an issue with the variable.
In your Save: Save or load Action that runs the "Overwriting Existing Save** method, replace the [var:224] token with some set text, e.g. My custom label.
Does that appear when overwriting the save? If not, does it show upon exiting/re-entering Play mode?
I tried and put that to "custom label". No change. Is still saving with Time and Data (or only Data if changed) when new game.... Keeping old name if overwritten.
I guess that discards the variable not being changed in time.
Just brainstorming:
Unrelated I guess: the "Pre-Process Tokens" checkmarks on actionlists are not explained in the AC manual, I only learnt what are they searching in the forums (like how they're handled on journal pages) and sometimes when having trouble I wonder what they exactly do in any specific actionlist... I understand what role they play in the journal but I don't really what role they play in every Action with strings, or just have no effect, like in the Save or Load Action. Are the pre-processing the Menu element names or the saving variable? Anyway, checking or uncheking it doesn't make a change.
Also, an important thing. When I did the initial important change on AC version some months ago, (From 1.6 or 1.7 to 1.8.5) some actionlist that worked before, they stopped working until I changed them to use Parameters instead of the previous way of working. Maybe that same kind of "requirement" affects the Save or Load Action and now requieres the variable to be feed only via parameter instead of text / variable token... but there are no option for put a parameter there.
I guess is not that because name saving worked in 1.81.5 ( I also had to tweak it a bit to make it work from my previous old AC version), but you have updated saving related scripts up to 1.81.7 so no idea, as said, just brainstorming.
Switch it back to "Time And Date", and then update your Save menu's SavesList element by checking Save when click on? and clearing the ActionList when click/save field (so that saving is instant and doesn't rely on the custom label logic). Do the labels update then?
Surpringsily, No, removing the custom label logic Does not update the labels with new dates either. (On Overwrite). Keeps creating new saves with correct date correctly
Three things to try, separately:
1) Open up AC's SaveSystem script and uncomment the following around line 150:
2) Re-comment the above, and instead comment out the same around line 1144.
3) Run the New Game Wizard to create a new game, with the sample scene, enable Time And Date, and test the behaviour of the default Save Menu.
1) That line there was already uncommented.
2) Second line was also uncommented. Commenting first line makes no difference. Leaving first one uncommented and second commented makes no difference.
3)Not tried yet, but are your asking to testing without custom labels Actionlists, just regular behaviour?
Yes - the earlier tests suggest that the custom labels aren't a factor.
I may have a fix for this, to be included in AC's v1.82 update - PM me if you'd like to be involved in testing.