[Library WIP] Lua http requests

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

djfhe
Posts: 11
Joined: Tue, 23. Apr 13, 15:07
x4

[Library WIP] Lua http requests

Post by djfhe »

Still completely wip, but for those who are interested:

[url]https://github.com/djfhe/x4_http[/url] enables you to perform async http requests in the lua environment of X4. Under the hood, luasocket & luasec is used.
Currently only works on windows, since i had to compile both libs against X4's lua lib and i have done it only for windows so far.

In the future, i will use this lib to perform the necessary requests to interface with LLMs as already shown in my reddit post [url]https://www.reddit.com/r/X4Foundations/ ... gpt_in_x4/[/url].

Just wanted to share some progress and maybe some lua guru will take a look, which would be very much appreciated (Complete lua novice here).

Cheers!

Return to “X4: Foundations - Scripts and Modding”