Game Statistics Linked with Website?

Posted By: dice

Game Statistics Linked with Website? - 11/28/11 17:51

Hey Folks,

is it possible to let your game communicate with a webserver and send information like string's and int's?

The game itself plays offline, but when you finish a level, the score shall be transmitted to a website.

Im using the Extra Edition of 3D Gamestudio and read this thread before... Connecting to a web server using gamestudio

But I dont want to create a multiplayer game...

GreetZ,
dice
Posted By: Tempelbauer

Re: Game Statistics Linked with Website? - 11/29/11 09:45

theoretically yes.
the http_...-functions are available in pro edition only.

the payed solution:
if you use anet-web-edition (~30€) you can do this with this plugin (http://anet-plugin.com).

the free solution:
you have also the choice to use a C/C++-Libary (like enet) to extend gamestudio with a network-functionality by yourself. then you can create sockets and you could implement a http-function (sending the correct http-header and payload through a socket to your statistics-server)
Posted By: dice

Re: Game Statistics Linked with Website? - 11/29/11 15:35

Ok... I see... what would you recommend? I also want to use Shaders etc. in my game and the pro edition allows all this stuff...

Extending Gamestudio with the network functionality based on enet isnt that easy, isnt it? ;D

GreetZ,
dice
Posted By: dice

Re: Game Statistics Linked with Website? - 12/02/11 11:58

I found another method:

exec("http://www.mjip.de/?code=1234", 0);

This method opens the standard browser and applys the php code given behind the link.

But the game always minimizes, when I call the function... is there another solution to send sth without opening the browser?
Posted By: Rackscha

Re: Game Statistics Linked with Website? - 12/02/11 18:15

if i remember correctly, Anet has those webfunction aswell. So why not use them?
Posted By: dice

Re: Game Statistics Linked with Website? - 12/02/11 18:32

I tried the free trial Version of ANet and it works correctly laugh

But GSTNet should support this HTTPPost function as well... I dont want to buy the ANet Web Edition for only using one simple function smirk

Maybe I do sth wrong, here is my code:
Code:
sResult = str_create("#100000");

while(GSTNet_HTTPBusy()){wait(1);}

GSTNet_HTTPPost(_str("www.mjip.de"),_str("/wordpress/answer.php"),_str("a=test"), sResult);


© 2024 lite-C Forums