Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support
Action.OpenFile "sendscore.bat"
reneuend wrote:There's a dozen ways to do it. The coolest way would be a plugin!
Here is what I was thinking:
1. add the score to an html file from the game and save it to the external directory. In this example, I'm using score.html.
2. use this command in AM to launch an ftp script:
- Code: Select all
Action.OpenFile "sendscore.bat"
sendscore.bat
-------------------
open <ftp.domain.com>
<username>
<password>
cd public_html
put score.html
disconnect
ftp
open <ftp.domain.com>
<username>
<password>
cd public_html
put score.html
disconnect
bye
Action.OpenFile "sendscore.bat"
reneuend wrote:Thank you for the correction, doggy.
I tested it against my host site and it works. Now the only other issue would be securing the password!
So, we're back to using an executable! Oh well, it was fun anyway.
public class FTPforAM{
public static void main(String args[]){
Process ls_proc = Runtime.getRuntime().exec("ftp\nopen <ftp.domain.com>\n<username>\n<password>\ncd public_html\nput score.html\ndisconnect\nbye");
}
}
Return to Adventure Maker General Discussion
Users browsing this forum: No registered users and 0 guests