r0fld4nc3/Stellaris-Exe-Checksum-Patcher

The program cannot create this file automatically

wzvidewo opened this issue ยท 10 comments

Traceback (most recent call last):
File "main.py", line 2, in
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "UI_init
.py", line 11, in
from utils.global_defines import logger, config_folder, updater, settings
File "", line 1007, in _find_and_load
File "", line 986, in find_and_load_unlocked
File "", line 680, in load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "utils\global_defines.py", line 25, in
logger = Logger(is_debug=is_debug, logger_name="StellarisChecksumPatcherLogger")
File "logger\Logger.py", line 81, in init
file_handler = logging.FileHandler(self.log_file)
File "logging_init
.py", line 1146, in init
File "logging_init
.py", line 1175, in _open
FileNotFoundError: [Errno 2] No such file or directory: 'C:\ProgramData\r0fld4nc3\Apps\Stellaris\ChecksumPatcher\StellarisChecksumPatcherLog.txt'

I need to manually create the file for this path to run the program, which should be a problem

Hello @wzvidewo

Thank you for the report!
I apologise for the inconvenience.

Interesting that it would error on this as I tried to make sure that the file would be created if not present. If it wasn't created then it could be a permissions issue.

Regardless, I will change the location from ProgramData to Local AppData, just to be on the safe side as it is more common to house such files there.

Hopefully later today I can push this update.

Hi There, any news on the update? getting the same issue as dewo.

@PJTheFellHanded

Hey! Yes, good news indeed. I've just implemented the changes and am quickly testing to make sure they don't cause problems.
So far so good, so hopefully within the next few minutes I will have it up!

Amazing, I just came across this after trying for 2 days to make achievments work, cannot for the life of me get the checksum to be valid with Ironman, even with reinstalls etc, hoping this will work, plus let me use my UI mods!

@PJTheFellHanded

I understand your pains! Theoretically it should work, and I am hoping this is still the case unless they changed something, in which case the problem goes deeper.

I recently also tried getting the With Thunderous Applause achievement and that didn't trigger. It prompted me to try it without mods and the vanilla executable and even still it also didn't pop.

Let's cross fingers this little workaround is still valid ๐Ÿ™‚

I've got faith in you

@PJTheFellHanded @wzvidewo

Updated release to 1.0.6! Hope this fixes the issue! Thank you for bringing it to my attention!

I won't close it in case a relevant issue to this Github Issue creeps up, but if it's all good feel free to close it!

Patch works, thank you very much, seeing that sweet green text as opposed to the red feels great.

Glad to hear it! ๐Ÿ˜€

Great, it's working now, problem solved. I think I'm going to have a good time playing Stellaris this weekend.