online scores... tutorial + Live receiver...
Hi there,
that may be the return of a long gone topic, sorry for that.... But I definitely can't do anything with the replies i found by searching in the forum's archives... Using get object instead of live receiver sounds great but I cannot open the Easy_Score_Upload_Tutorial.mfa without the livereceiver...Thus i can't learn what I would be learning inside there :) Any updated version of this tutorial or anything that could help me out ? Thank you !
Re: online scores... tutorial + Live receiver...
Check Neatwares Extension List in the side bar--->. That way you can at least load up the Tutorial.
Marv
Re: online scores... tutorial + Live receiver...
Thanks but the download link to LiveReceiver is broken :( Also i forgot to ask but, should I be using the HIGHSCORE objects with any online scoring ? I haven;t opened the tutorial file yet so maybe this is a redundant question. But also just your honest opinion if it's easier without, with simple counters and or alterable values. Thanks.
Re: online scores... tutorial + Live receiver...
I think Jamie replaced "Live Receiver" with "GET Object". So I believe you'd just need to replace the actions of Live Receiver with one of GET Object.
Re: online scores... tutorial + Live receiver...
Well, he can't even open the MFA because he doesn't have Live Receiver. If I had a copy I'd upload it for you..
Re: online scores... tutorial + Live receiver...
http://www.speedyshare.com/files/22040821/LiveReceiver.rar
Here you go :)
Re: online scores... tutorial + Live receiver...
Hi Shmuper,
Have a look here
I use the opportunity and ask a question too.
According the tutorial if the table does not exit it will be created by a name as defined in config.php
Now if I want to utilize this as a web cart and want to make a table for each client to be named as the client’s name. In this case how can I let the table to be created without being dependent to the config.php?
/////////////////////////////////////////////////
// Check for the existing table if its not found create it
// This is really just here to make the life of new users of the script eaiser
// They won't have to go thru the script and create the table
/////////////////////////////////////////////////
if(!mysql_num_rows( mysql_query("SHOW TABLES LIKE '".$tname."'")))
{
$query = "CREATE TABLE `$tname` (`id` int(11) NOT NULL auto_increment,`gameid` varchar(255) NOT NULL,`playername` varchar(255) NOT NULL,`score` int(255) NOT NULL,`scoredate` varchar(255) NOT NULL,`md5` varchar(255) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
$create_table = mysql_query($query)or die (mysql_error());
}
-------------------------------------------------------
// Your table name for mySQL
// You can change this is you wish
$tname= 'scores';
With thanks
Re: online scores... tutorial + Live receiver...
You wouldn't, creating tables is a stupid idea.
Copy how this stores multiple games' high scores in one table, instead.
Also, if you're asking a new question, you should really be asking in your own thread.
Re: online scores... tutorial + Live receiver...
Re: online scores... tutorial + Live receiver...
Thanks Pasiunia. That Live Receiver Extension will help a lot of people out with that tutorial.
Marv
Re: online scores... tutorial + Live receiver...
Just remember not to actually use Live Reciever. Use the Get object instead.
EDIT: Maybe someone could update the example to use the Get object?
Re: online scores... tutorial + Live receiver...
Nice many thanks for the file. Hopefully it will be pretty straight forward to replace Live receiver by get object. Many thanks
Re: online scores... tutorial + Live receiver...
Quote:
Originally Posted by Jamie
Maybe someone could update the example to use the Get object?
I would also appreciate it, an example that works in Java, too!
Re: online scores... tutorial + Live receiver...
Can you test this out for me?
PDF instructions:
http://www.flyinvinteractive.com/online_scores/Easy_online_scores_readme.pdf
Scripts and MFA example files:
http://www.flyinvinteractive.com/online_scores/Easy_online_scores.zip
It worked in Flash -- should work in Java but you might have to sign your java applet -- I didn't have time to check it out.
Re: online scores... tutorial + Live receiver...
Wow updated tutorial files :) Awesome.
I Will get on that right away. Thanks. I don't know how fast it'll be, but I'll do my best :)
Re: online scores... tutorial + Live receiver...
Everything is working locally right now. I have yet to upload a version online and test inside a browser. But so far so good
Thanks again for the updated tutorial.
Re: online scores... tutorial + Live receiver...
Hi Jeff,
I do not know much about php scripts but I have noticed that in both the files”config.php” and “score_script.php” the script starts with <? Instead of <?php .
The MMF file is ok and can connect to "http://www.flyinvinteractive.com/online_scores/score_script.php"
I have tried it with a wamp server and MMF cannot connect to the server until changing <? To <?php in both ”config.php” and “score_script.php” files.
I can then have the entries registered in the database but still there is something wrong with the “score_script.php” loading the player name.
I think there is a probability that both the files ”config.php” and “score_script.php” provided in this examples are slightly different from the those on http://www.flyinvinteractive.com/online_scores/score_script.php
Am I right or I am making a terrible mistake?
With Regards
Re: online scores... tutorial + Live receiver...
Some servers require <?php and some just require <?. It depends on the server configuration.
Re: online scores... tutorial + Live receiver...
"<?" needs an option called "short_open_tag" in the php config.
Re: online scores... tutorial + Live receiver...
Well always something new to learn. I read the php.ini of the wamp server and it is there.
>>>>>; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.<<<<<
At the moment it is configured as:
short_open_tag = Off
Can this be the reason I am having problem with the player name?
do I have to change it to
short_open_tag = On
Regards
Re: online scores... tutorial + Live receiver...
It should work, or if you change all <? to <?php it should work.
Re: online scores... tutorial + Live receiver...
Hi Dynasoft,
I have deactivated short_open_tag = Off as
; short_open_tag = Off
And it works now regardless of <? Or <?php
But still there is a problem with the player name.
By clicking the upload this score button for The first time
It returnes the following as the player name:
<br />
<b>Notice</b>: Undefined index: status in
<b>C:\wamp\www\test\score_script.php</b> on line <b>40</b><br />
score and date are ok
nothing wrong in the database. data are entered correctly
Now if I click “upload this score” again then I get no error with the playername.
With Regards