EinEinfach / CaSSAndRA

Cascaded sunray server and rover application
MIT License
30 stars 17 forks source link

First "Mow Area" - Settings after Start Cassandra Service #115

Closed duemchen closed 7 months ago

duemchen commented 9 months ago

Version 0.99.2, auch schon bei 'turn-figure-tests'

Neustart Cassandra. Map wird angezeigt. Mow Settings zeigt Mow Area = True Taste "Mow all or selected area" betätigt Fehler: Nur die Ränder werden berechnet.

Mow Settings aufrufen Mow Area = False setzen Mow Area = True setzen Speichern Taste "Mow all or selected area" betätigt Alles OK: Area wird berechnet.

Das Flag Mow Area wird nach Neustart nur optisch angezeigt, aber nicht korrekt initialisiert.

ShadedSelf commented 9 months ago

Were those settings created with an older Cassandra version? Where are you applying the settings, on the gear button in the main page or on the settings page?

EinEinfach commented 9 months ago

Can't confirm that. All works as it should be. 1 Test:

2 Test:

duemchen commented 9 months ago

I'd make settings on main page Yes, older settings, transferred to the new dir .cassandra. I will test with setting page again. I will test it then with initial setting files from your sources and give report. Thanks. (if this is the reason, i hope, at least the maps will be compatible all time in future)

ShadedSelf commented 9 months ago

I chaged the old string based dropdowns to boolean based switches a while ago. Seems like the switches are fine interpreting strings as booleans but Cassandra logic is not?

Should be fixed by reapplying settings or by manually removing the quotes from any boolean setting in the settings files.

Should we keep this issue open in case there is anyone else out there with old files?

duemchen commented 9 months ago

I have tested it. It is, like ShadedSelf say.

OLD "mowarea": "yes", "mowborder": 2, "mowexclusion": "yes", "mowborderccw": "yes"

change to this and all is ok:

NEW "mowarea": true, "mowborder": 2, "mowexclusion": true, "mowborderccw": true

If I save under Page Settings, the Format is updated to the new. But the Error remains. You must restart the service. Then all is ok.

Simple, but tricky and avoidable. In the future, such "structural" changes should be better checked and corrected automatically when the service is started. (I don't want to imagine maps are affected!) Thank you for your support!