-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updater on windows #25
Comments
I've honestly never tried it on Windows, and I do know for sure there's one definite incompatibility - it'll try using That said, this shouldn't apply here. To me, it looks like it's failed to read the current version out of the Factorio binary output. I have no idea why. I'll look into it when I get back to a computer tomorrow. |
Ok, so I have bad news -- the updater simply can't work with Factorio on Windows (to be fair, I've never tried it and am not sure why you'd want to):
The in-game updater worked flawlessly, so I'd recommend just using that. This is the most support I can give to Windows; if you or anyone else can find a way to make it work, I accept pull requests! But that's as much time as I can spare for this. |
on windows, you could do something like this - for example in an batch:
and then call the python script with these variables |
So you're saying that running it with Edit: Yup, this worked: version_output = subprocess.check_output(["start", "/B", args.apply_to, "--version"], universal_newlines=True, shell=True) |
at least it works in my batch - within the for-loop... after that loop, this call: |
I finally had some time to try it again, and found the following:
I'm sorry, it's a lost cause -- Windows Factorio just doesn't want to work that way. On the other hand, all I'm doing is what the in-game updater is doing, so you should be able to use that instead. |
I'm using a modified version of your script to update the windows client, and I got it to work by constantly scanning all processes (with |
Well, I'm not going to officially support Windows but if you want to try to make it work I'll take the patch -- someone will find a use for it. The only use I can think of is that if you have an unstable Internet connection, Otherwise, I have a hard time figuring out why you'd want to use this given that
Also, please note there may not be an administrator/escalated process if your Factorio lives in an unprivileged location (e.g., I have mine in |
It's useful when the computer you're applying the patches on does not have a (reliable) internet connection, so you download the updates on another computer, and transfer them.
Alright, PR will be coming in the following days, probably this weekend. Thanks! |
Also, although I don't run Factorio on Linux myself, I'll try to make that work too. |
so i am trying to use this on windows and get this when trying to update
The text was updated successfully, but these errors were encountered: