Super Factory Manager ( SFM )

Super Factory Manager ( SFM )

16M Downloads

Settings not saved

Proha5 opened this issue ยท 3 comments

commented

Sorry for bad english.

I set some checkboxes in user preferences.
Reload world. And all checboxes is unchecked.

commented

Tested in singleplayer on the same world, after creating a new world, and on a server. Each time the settings persisted. Can you give exact steps for reproduction?

commented

I play singleplayer.

My steps:
Open "User preferences" window.
Check "Automaticaly select empty black list" and "Automaticaly select one side for input/output"
Close the game. Run game. Load world. Open preferences. I see, that all checboxes is unchecked.

I open SuperFactoryManagerInside.dat (in config folder)
its contain only 3 bytes:
01 60 00 (HEX)

commented

Config dir is only specified after proxy init, so it isn't able to find the config. Not sure why I wasn't able to reproduce earlier.

proxy.preInit();
FileHelper.setConfigDir(event.getModConfigurationDirectory());

Will comment here once fix is posted.