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

Windows Support #3

Open
FM1337 opened this issue Jul 27, 2017 · 7 comments
Open

Windows Support #3

FM1337 opened this issue Jul 27, 2017 · 7 comments

Comments

@FM1337
Copy link
Collaborator

FM1337 commented Jul 27, 2017

So I have not been able to get FactorioCord to work on windows correctly. it won't write to the factorio.log and it will not allow messages to be sent or received between discord and in-game. As such I'm going ahead and releasing version 1.1 and will attempt to have Windows support in a future version. Sorry about this.

If anyone wants to take a stab at trying to fix it, help would be most appreciated thanks!

@FM1337
Copy link
Collaborator Author

FM1337 commented Jul 30, 2017

Error sending discord chat to in-game

2017-07-30 12:29:44.0106185 -0300 ADT: An error occurred when attempting to send Discord chat to in-game
Details: write |1: The pipe is being closed.

@FM1337
Copy link
Collaborator Author

FM1337 commented Jul 30, 2017

also

2017-07-30 12:43:13.7054626 -0300 ADT: An error occurred when attempting to pass input to the console
Details: write |1: The pipe is being closed.

@notAreYouScared
Copy link

Was just trying this on my pc and windows server both give the exact same errors. I even tried the first release, it dosnt throw an error. It just does nothing. It connects to discord but refused to relay any messages. The stop connect worked great, but only killed the bot, not the server.

@FM1337
Copy link
Collaborator Author

FM1337 commented Nov 4, 2017

@cjmwid yeah, I worked on it for a few weeks trying to figure it out, and couldn't get it to work correctly on windows, and I don't have any time to continue trying to find a fix for it for now. Anyone is welcome to try to find a fix and it would be really appreciated.

@notAreYouScared
Copy link

According to one of the people I talked to in the Golang discord chat they said line 159 in main.go might be causing the issue. You know more then me thought I'd share

@zackman0010
Copy link

From what I was told by someone else trying the same thing, the headless server on Windows is not actually a console, as that version of Factorio was not built to be a console program. It is instead a GUI that mimics a console. As such, the usual STDIN/STDOUT redirects do not work. I've written my own server management program in C that uses the same process (start a new process and redirect the pipes) to allow communication with Discord, and it runs into the same problem.

@szentigrad3
Copy link

is this still been worked on?

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

No branches or pull requests

4 participants