Hello,
I would like to send http request from my mod to some external code on localhost over http. Is that possible? I cant figure out how to inject the lua http library into the game since most of them end up depending on non lua code that I don't think is possible to inject into the game.
Is there http library written in pure lua that I can inject? How do mods like Clusterio communicate?
http requests
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: http requests
No.
game.write_file + server commands
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: http requests
What do you mean by server commands?
Re: http requests
Server side scripts that work with file that game writes and process them accordingly.
And I'd guess it uses rcon to send info back to game somehow since write file is only output.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: http requests
That.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: http requests
thanks!