Skip to content
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

headless download update #1

Closed
tomik opened this issue Mar 1, 2016 · 8 comments
Closed

headless download update #1

tomik opened this issue Mar 1, 2016 · 8 comments

Comments

@tomik
Copy link

tomik commented Mar 1, 2016

Hello,

we have updated the headless server download mechanism. So I just thought I would give you a heads up. Now the server is for download for free for anyone even without an account. Check it out on the web: https://www.factorio.com/download-headless/stable. Also I don't quite understand what is the point of the user specifying the package name when this is only for headless server (and those are only linux packages).

Edit:

Hmm,now I actually checked the code and see that you are using the updater api, not parsing the website (that was my original impression). So this will be of no use to you then, sorry. We will see how to tackle this properly - I would say by supporting the update in headless natively.

Cheers

@narc0tiq
Copy link
Owner

narc0tiq commented Mar 1, 2016

Native support would be a lot better than my little hack, and I do appreciate that you're thinking about it. Thanks for the notification!

@howar31
Copy link

howar31 commented Mar 4, 2016

Hi, I recently joined Factorio and hosting a headless server. I bought the game on Steam. And I cannot find updater-token in player-data.json.

Dunno if this is related to the change that headless server is free now. How and where can I find my token though? :/

@narc0tiq
Copy link
Owner

narc0tiq commented Mar 5, 2016

Fairly related, yes -- the updater token is for the in-game updater; with Steam there's no reason to ever run in-game updates, so no token. I don't have a good solution for it, though; I suspect you'll just need to rely on manual downloads for a bit.

@howar31
Copy link

howar31 commented Mar 6, 2016

@narc0tiq Thanks for reply. It's quite inconvenient to update server manually due to so many minor hotfix. But before new official API, I think that's what I have to do for now.

Thanks for this great script anyways! :D

@tomik
Copy link
Author

tomik commented Mar 7, 2016

Hi guys,

so I have updated our updater server. If you are asking for the headless package now there is no need for authentication. Just to be more specific:

  • get-available-versions if there is no username then it will return headless packages
  • get-download-link if there is no username and package is headless then returns response with download link

This should make the integration much easier. Let me know if there are any issues.

@narc0tiq
Copy link
Owner

narc0tiq commented Mar 7, 2016

Indeed, I appear to not need to change my code at all -- it just worked. So it looks like I just need to bring my documentation up to date.

Many thanks, @tomik, you've saved my script! 👍

@Hackmodford
Copy link

How does one update without the user and token? Do I just leave those parameters out?

@tomik
Copy link
Author

tomik commented Mar 7, 2016

Yes=)

On Mon, Mar 7, 2016 at 4:20 PM, Brandon Butler notifications@github.com
wrote:

How does one update without the user and token? Do I just leave those
parameters out?


Reply to this email directly or view it on GitHub
#1 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants