LUA Script requests in here ...

  • #30, by LexaurThursday, 07. February 2013, 14:38 13 years ago
    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.

    Newbie

    0 Posts


  • #31, by afrlmeThursday, 07. February 2013, 14:53 13 years ago
    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.

    Imperator

    7286 Posts

  • #32, by mowrenFriday, 08. February 2013, 09:39 13 years ago
    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.

    Newbie

    10 Posts

  • #33, by LexaurSunday, 10. February 2013, 21:28 13 years ago
    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.

    Newbie

    0 Posts