Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

LUA Script requests in here ...

  • #30, by Lexaur 14 years ago Zitieren
    Steam probably have it's own libraries but you get access to those if you are in Steam, so that is not an option.

    What I want is more centered towards following up on how many of the people who download the game even start it, or how many of the ones who start it even play more than 10 minutes. Do you get my point?

    I have gathered that you could send a HTTP POST from inside the game to for example mixpanel.com servers but you need to encode it with base64 first and this is what I am having problems with. The thing as a whole is quite complex to get working. Good thing is that mixpanel is free for small amount of traffic.

  • #31, by afrlme 14 years ago Zitieren
    I'm sorry man, I know what you want but I don't have a clue how to go about it! maybe divo on here knows & can tell you if it's possible or not.
  • #32, by mowren 14 years ago Zitieren
    You would have to do the base64 en- and decoding yourself. So basicly you need some functions like these: https://gist.github.com/bortels/1436940

    Didn't test the code but it looks like it should work. Didn't try the http.request either but Visionaire got a full Lua implementation so theoreticly this should work.

  • #33, by Lexaur 14 years ago Zitieren
    Can someone confirm that the http.request works ? As I just can't get it to work.

    local http = require("socket.http" )

    Even that produces a error : Module "Socket.http" not found.