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?
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.
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*
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).