Scripts / [SOLVED] A way to send GET requests or to manipulate Files using GG's LUA

Author
Message
Rednayt
6
Years of Service
User Offline
Joined: 29th Jun 2017
Location:
Posted: 10th Apr 2020 06:44
Hello everyone,
First of all, I would like to apologize, because I'm not a native speaker, and I know that I do a lot of mistakes..

Anyway, I'm an old user or FPS Creator in my childhood, and I decided to buy and use Game Guru for my recent participation in a "local" (small :p) Game Jam. I appreciated a lot but the LUA scripting was maybe a little restrictive for me.

Today, I've a rather big project with GameGuru, and I would like to send GET requests (to a Web server) or a way to write files in the game's directory. If so, I'll write a little program that will send requests to the server using the files written by GG engine.

The main idea is to integrate "news" about the game, create a "Score board" visible in the website and ask player for feedback, directly in the game. Have you got any tips for that please ?

In my opinion, the best way could be to create a new Lua command to launch Python script. I think that it is an easy way to make coding more powerfull on GG.

Thank you in advance.

The author of this post has marked a post as an answer.

Go to answer
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Apr 2020 11:21
you will need some sort of external code to talk with your server (i.e. written outside of GG) then run that from a lua script with os.execute()
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Rednayt
6
Years of Service
User Offline
Joined: 29th Jun 2017
Location:
Posted: 10th Apr 2020 11:28
Thank you for the answer.
Perhaps I'm miss-searching, but is there any doc, listing all commands (including os.execute() ) ?

Take care.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Apr 2020 23:16
This post has been marked by the post author as the answer.
it's part of lua so you can check the manual - i think GG uses 5.1 or 5.2
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 11th Apr 2020 00:00
Version 5.2
Been there, done that, got all the T-Shirts!
PM
Rednayt
6
Years of Service
User Offline
Joined: 29th Jun 2017
Location:
Posted: 11th Apr 2020 10:03
Perfect,
thank you all for your answers !
See you soon.
PM

Login to post a reply

Server time is: 2024-04-16 18:46:40
Your offset time is: 2024-04-16 18:46:40