Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Menaze on Mon 22/08/2005 15:04:45

Title: Sending and displaying variables on my website
Post by: Menaze on Mon 22/08/2005 15:04:45
Hello,

I was wondering if i can send a variable to a website.
The Player of my Game would get the ability to send his/her score to my homepage, where it is saved in a txt./html./etc. file or something.

So here are my questions:

1. Is it possible to send something to the net via AGS?
2. If not can i do a workaround? F.e. using the tcp/ip plugin? (no idea if this could work, maybe someone can tell me)
3. If both, 1 and 2, dont work, can i make a bat. file or something similar build up
like this:    start ags-ags outputs variable-variable is send to the web?

I havent found any threads like this yet, maybe other people have thought of this already, maybe its useful for some games. In any case it would be a nice feature. What do you think. Can anybody help. Thank you *Menaze*


edit:
in case this works i have another question:
can i read a variable FROM the website and display it in my AGS game?
Title: Re: Sending and displaying variables on my website
Post by: Ishmael on Mon 22/08/2005 15:08:48
AGS itself cannot do that, but if you have a server you can send the info to, you might be able to do it with the tcp/ip plugin.
Title: Re: Sending and displaying variables on my website
Post by: Menaze on Tue 23/08/2005 08:33:27
Well, I dont have any experience with the tcp/ip plugin yet. It makes multiplayer games possible. But can it also access a web server? Also i would need a function that saves the variable in a file on the server...?
Maybe someone who is more experienced with tcp/ip can help.

I also thought of another way,
I could make a batch build up like this (dont mind the syntax):

-----------------.bat-----------------
-open ags.exe
          ags filewrites test.php
-open test.php (when ags closed-it doesnt work as long ags is open,right?)
          test.php sends variables to server
---------------------------------------

does this make sense or am i wrong ? your help is very welcome...
thank you *Menaze*
Title: Re: Sending and displaying variables on my website
Post by: Mr Jake on Tue 23/08/2005 10:01:47
Its unlikely to work. As the user would require the PHP engine installed, I believe few people actually have this.

Edit by strazer:

Try this plugin (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=28261).