Page 1 of 1
Possible to open TCP connections?
Posted: Sun Aug 07, 2016 1:53 pm
by Baughn
I'd like to build a Factorio-to-IRC bridge, similar to
EiraIRC.
This would require me to either load arbitrary C code (probably straight out), or at least open a TCP connection to the IRC server. Is that latter something I can do with the current API?
Re: Possible to open TCP connections?
Posted: Sun Aug 07, 2016 2:12 pm
by orzelek
Baughn wrote:I'd like to build a Factorio-to-IRC bridge, similar to
EiraIRC.
This would require me to either load arbitrary C code (probably straight out), or at least open a TCP connection to the IRC server. Is that latter something I can do with the current API?
Any network actions are prohibited and currently there is no plan to allow them I think.
Re: Possible to open TCP connections?
Posted: Sun Aug 07, 2016 9:23 pm
by aubergine18
As an end-user, I'd find any game that allows this level of modding (either access to file system or network) to be very dubious. I've seen some games that do allow this level of modding (eg. cities skylines) but the game devs have to check the source of every single non-content mod (ie. any code-based mods) which is a lot of extra work.
Re: Possible to open TCP connections?
Posted: Sun Aug 07, 2016 9:51 pm
by Baughn
aubergine18 wrote:As an end-user, I'd find any game that allows this level of modding (either access to file system or network) to be very dubious. I've seen some games that do allow this level of modding (eg. cities skylines) but the game devs have to check the source of every single non-content mod (ie. any code-based mods) which is a lot of extra work.
If the game were open-source, I'd send a pull request to enable just the IRC bridge.
Since it's not... well, all I can do is hope for that level of modding ability. Network access, on its own, shouldn't be terribly dangerous; if necessary, it could be limited using a permissions system. *Not* being able to connect to IRC is a massive drag, though.
Re: Possible to open TCP connections?
Posted: Mon Aug 08, 2016 6:05 pm
by aubergine18
You can write files via the API - why not make something that tails a file and sends new entries to IRC?
Re: Possible to open TCP connections?
Posted: Mon Aug 08, 2016 7:33 pm
by Baughn
aubergine18 wrote:You can write files via the API - why not make something that tails a file and sends new entries to IRC?
It turns into a rube-goldberg machine. I'd need to combine it with
ii, or something.
Which is fine for *me*, but makes it a lot harder to contemplate offering it for others to use.
Re: Possible to open TCP connections?
Posted: Thu Aug 11, 2016 8:45 pm
by mickael9
Not sure if that's the exact use case you're looking for but if you're interested, I already made a Factorio-IRC bridge via log parsing/RCON commands:
viewtopic.php?f=133&t=29019
Re: Possible to open TCP connections?
Posted: Wed Aug 17, 2016 12:47 pm
by Baughn
mickael9 wrote:Not sure if that's the exact use case you're looking for but if you're interested, I already made a Factorio-IRC bridge via log parsing/RCON commands:
viewtopic.php?f=133&t=29019
Well, it's exactly the sort of rube-goldberg machine I was hoping not to have to write.
Which means I don't have to write it. I absolutely will use it. Thanks! ^_^