Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TedMar, dr_panther), 1,049 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Liamissimo] #330909
06/30/10 19:09
06/30/10 19:09
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
I also set that public users can write to it


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Liamissimo] #334106
07/21/10 09:54
07/21/10 09:54
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Hey Liam,

sorry for the belated answer. But you should also make sure that the folder where your score.php is located should have "777" rights.

Hope that helps...

Regards
TSGames

Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: TSG_Torsten] #334108
07/21/10 10:09
07/21/10 10:09
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Everything works, I had the Free Version, surprise surprise laugh


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Liamissimo] #350174
12/14/10 10:42
12/14/10 10:42
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Sorry, again a question. It seems like after I finished a level he is taking the old score and put they also in the new score table. So in level 1 I had 95 score, in level 2 78 but it also shows my 95 from before.

Code:
return_code = webscore_send(pname,level_name,str_for_num(NULL,score),str_for_num(NULL,zeit));
	if(return_code==-1) error("Upload: Missing DLL");
	else if(return_code==-2) error("Upload: No Connection");
	else if(return_code==-3) error("Upload: Wrong Key");
	else if(return_code==-4) error("Upload: Wrong Data/URL");
	return_code=webscore_get("temp.txt",level_name); // Get Scores from score table my_scores to temp.txt
	if(return_code==-1) error("Download: Missing DLL");
	else if(return_code==-2) error("Download: No Connection");
	else if(return_code==-3) error("Download: Wrong Key");
	else if(return_code==-4) error("Download: Wrong Data/URL");
	else
	{
		STRING* temp_str; // To store our score entries
		var i,j;
		for(i=0;1;i++)
		{
			temp_str=webscore_get_line("temp.txt",i); // Read score
			if(str_cmp(temp_str,"")) break;
			str_cat(scores_name,"\n"); // add a line break to the score output table
			str_cat(scores_points,"\n");
			str_cat(scores_time,"\n");
			str_cat(scores_name,webscore_get_index(temp_str,0)); // Read the name from the entry
			str_cat(scores_points,webscore_get_index(temp_str,1)); // Read the score from the entry
			str_cat(scores_time,webscore_get_index(temp_str,2)); // Read the time from the entry
		}
	}
	file_delete("temp.txt");

But I can't explain why, it deletes temp and so on?


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Liamissimo] #350179
12/14/10 12:02
12/14/10 12:02
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Haven't tried the contribution, but it seems from code that indeed it adds the score to the list, under the old one. The code does not take levels in regard, it just adds any score to the file. Maybe try write a code that changes the filename to your level? Then you get different textfiles for each level with fitting hiscores.

Sorry if I misunderstood.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Joozey] #350238
12/14/10 19:04
12/14/10 19:04
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
Sorry, my fault, I had to reset the strings every time, I have implemented it in Lift it Up! wink


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Page 2 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1