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?
Possible to open TCP connections?
Re: Possible to open TCP connections?
Any network actions are prohibited and currently there is no plan to allow them I think.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?
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Possible to open TCP connections?
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.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Re: Possible to open TCP connections?
If the game were open-source, I'd send a pull request to enable just the IRC bridge.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.
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.
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Possible to open TCP connections?
You can write files via the API - why not make something that tails a file and sends new entries to IRC?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Re: Possible to open TCP connections?
It turns into a rube-goldberg machine. I'd need to combine it with ii, or something.aubergine18 wrote:You can write files via the API - why not make something that tails a file and sends new entries to IRC?
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?
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
Factorio Mod Portal Notifier - https://fac-notify.ml/
Cut and paste tools - https://mods.factorio.com/mods/mickael9/cut-and-paste
Portable Chests - https://mods.factorio.com/mods/mickael9/portable-chests
Cut and paste tools - https://mods.factorio.com/mods/mickael9/cut-and-paste
Portable Chests - https://mods.factorio.com/mods/mickael9/portable-chests
Re: Possible to open TCP connections?
Well, it's exactly the sort of rube-goldberg machine I was hoping not to have to write.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
Which means I don't have to write it. I absolutely will use it. Thanks! ^_^