Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Game Statistics Linked with Website? #388134
11/28/11 17:51
11/28/11 17:51
Joined: Dec 2010
Posts: 66
München (Germany)
dice Offline OP
Junior Member
dice  Offline OP
Junior Member

Joined: Dec 2010
Posts: 66
München (Germany)
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

Re: Game Statistics Linked with Website? [Re: dice] #388173
11/29/11 09:45
11/29/11 09:45
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
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)

Re: Game Statistics Linked with Website? [Re: Tempelbauer] #388189
11/29/11 15:35
11/29/11 15:35
Joined: Dec 2010
Posts: 66
München (Germany)
dice Offline OP
Junior Member
dice  Offline OP
Junior Member

Joined: Dec 2010
Posts: 66
München (Germany)
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

Re: Game Statistics Linked with Website? [Re: dice] #388401
12/02/11 11:58
12/02/11 11:58
Joined: Dec 2010
Posts: 66
München (Germany)
dice Offline OP
Junior Member
dice  Offline OP
Junior Member

Joined: Dec 2010
Posts: 66
München (Germany)
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?

Re: Game Statistics Linked with Website? [Re: dice] #388421
12/02/11 18:15
12/02/11 18:15
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
if i remember correctly, Anet has those webfunction aswell. So why not use them?


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Game Statistics Linked with Website? [Re: Rackscha] #388422
12/02/11 18:32
12/02/11 18:32
Joined: Dec 2010
Posts: 66
München (Germany)
dice Offline OP
Junior Member
dice  Offline OP
Junior Member

Joined: Dec 2010
Posts: 66
München (Germany)
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);




Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1