Online Highscore Board?

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Online Highscore Board?

Postby Ikonz101 » Fri Sep 11, 2009 7:46 am

Is there a way to have a online highscore board? You have a points system then after you lose or the game is over you can submit your score to a online highscore table?

Thank You
Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby Candle » Fri Sep 11, 2009 8:01 am

Not at this time.
Maybe some thing GM will add later on.
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3055
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby Ikonz101 » Fri Sep 11, 2009 8:43 am

Thats to bad but thank you for the response.

Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby Ikonz101 » Fri Sep 11, 2009 2:28 pm

Instead of having the score online is there a way to have a highscore board within the game itself?

Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby Lyberodoggy » Fri Sep 11, 2009 3:18 pm

Yes!
http://adventuremaker.com/phpBB2/viewtopic.php?t=3580&highlight=scoreboard

I was trying to implement online scoreboards, but except for the external application it would need to upload the scores, it would also need a server to host them
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Ikonz101 » Fri Sep 11, 2009 6:14 pm

This is great news!! How hard is it to implement the online feature?

Thank You
Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby reneuend » Fri Sep 11, 2009 6:42 pm

Probably the easiest way (without setting it up so you can connect to a database and submit a query) would be to FTP an html formatted file with the score to your directory on your account at the host server. The ftp agent would have to be set up and you would use a command line command to upload the score. If you can make a call to Window's FTP command, then this would work. It might have to be done as a plugin.

(sorry, just thinking outloud) :?
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Lyberodoggy » Fri Sep 11, 2009 10:25 pm

I was thinking more of an external app that would
A) Read the scoreboard.ini
B) transmit the data to the server
C) recieve response


Or
A) Read scoreboard.ini
B) Read database (could be in html)
C) Compare data
D) Update the database if needed
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby reneuend » Sat Sep 12, 2009 12:00 am

There's a dozen ways to do it. The coolest way would be a plugin! :wink:


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
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby mercedes » Sat Sep 12, 2009 1:45 am

Action.OpenFile "sendscore.bat"


I was under the impression that you could only open .exe files ..?
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby reneuend » Sat Sep 12, 2009 2:04 am

nope! it works with scripts also! :mrgreen:
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby mercedes » Sat Sep 12, 2009 3:37 am

What other kinds of files can we open using open file command...? Do u know..


I was sure I asked this before and i was told only .exe files...Good news to know..Thanks!~..:D
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Ikonz101 » Sat Sep 12, 2009 3:55 am

A plugin would probably work best for me cause I am completely lost on how to achieve this. :D Thank you for the explanation though much appreciated.

Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby reneuend » Sat Sep 12, 2009 5:16 am

Hi Mercedes - Anything that can be launched is fair game. So, if you can launch it from the OS, then it will work.

Hey Ikonz101 - I wish I had time to build this plugin, but I have a list of things that I"m working on, including a plugin I finished a couple months ago but still needs a demo. I'll put it on my list, but it will be awhile.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Ikonz101 » Sat Sep 12, 2009 5:23 am

I was also thinking about having a highscore system where you get a random code generated after each level (that totals your score). Then you input that random code into the website to present your score. Would this be complicated? Its alright reneuend I understand having a lot to do.

Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby reneuend » Sat Sep 12, 2009 6:03 am

So the random code would be a password? In that case, it wouldn't be random but based on an algorithm.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Lyberodoggy » Sat Sep 12, 2009 8:45 am

reneuend wrote:There's a dozen ways to do it. The coolest way would be a plugin! :wink:


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


Didn't know you could do that with dos (I mean opening an ftp connection etc)
I also don't know if opening the batch with the OpenFile command would run it or open it in edit mode with notepad...
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby reneuend » Sat Sep 12, 2009 3:17 pm

I've run scripts from AM before.
This code will work as long as you have an ftp server on your host site.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Lyberodoggy » Sat Sep 12, 2009 5:04 pm

That's great since I found this: http://www.drivehq.com/ftp/
Also your script needs a tiny correction (one "ftp" at the start and one "bye" at the end)


Code: Select all
ftp
open <ftp.domain.com>
<username>
<password>
cd public_html
put score.html
disconnect
bye
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby reneuend » Sun Sep 13, 2009 12:42 am

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.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Ikonz101 » Sun Sep 13, 2009 1:48 am

So basically this is all you would need to make a high score board online?

Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby reneuend » Sun Sep 13, 2009 3:19 am

From AM in the advanced tab of the frame where you want to register the score, You would build an html document with the score in it, then save it to disk. After this, you would add the call to run the ftp script as shown above.

Code: Select all
Action.OpenFile "sendscore.bat"


In my test, I used a hotspot, when I clicked on the hotspot it launched the ftp script and put an existing file on my host site. I didn't build the document, but that is what I would do.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Ikonz101 » Sun Sep 13, 2009 3:33 am

Yeah I am still confused about this. Sorry for the misunderstanding on my part. I will have to learn more about FTP and HTML and how to implement them unless a plugin is made to do all this. Thank you for telling me how this would be done though.

Ikonz101
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby Lyberodoggy » Sun Sep 13, 2009 9:48 am

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.



What I 'd do to secure the main pass would be to add a sub account on my FTP

Also, if we need to make it an exe, it's no problem since most languages support cmd commands. So we'd just have to copy/paste the bat script into a simple code.

Example in java:

Code: Select all
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");
 }
}
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Ikonz101 » Wed Sep 16, 2009 11:06 pm

How would I create the html document with the score in it? I am going to try the drivehq ftp site to test this out.

Thank You
Ikonz101

P.S. This is a very interesting prospect for AM. Especially if it worked for iPhone games as well :D
User avatar
Ikonz101
Frequent Poster
 
Posts: 128
Joined: Wed Nov 28, 2007 11:23 pm

Postby reneuend » Thu Sep 17, 2009 12:32 am

I'm not sitting where I can look up the command, but there is an AM command to write oiutput to a file. I would just write line by line the html information and then add the score variable in the output....I'll show you later when I can.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Lyberodoggy » Thu Sep 17, 2009 11:56 am

I don't think you can do that. Well you could, but you 'd have a "=" at the end of each line.
What do I mean:
The syntax of AM's file output command is this
WriteINI "filename",section,key,value

Were you can replace section and key with any number or phrase. So we could write what we wish in the key, but then again we would need a value. Else if we place the commands in the value argument, a key will be needed to be written before the value in the file. So it's practically impossible using AM's file creation system.
User avatar
Lyberodoggy
Administrator
 
Posts: 2519
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby reneuend » Thu Sep 17, 2009 1:14 pm

uhmmm....that's right! :shock:
Well, I opened my big mouth on this, so I'll find a way.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2690
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron