Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 838 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Online Highscore System - all in one (lite-c, DLL, PHP) #320124
04/19/10 19:39
04/19/10 19:39
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
Hi all,

I want to give you something I think almost everyone of you could use: A whole online highscore system.

Download Here

Including support for different score tables (or scores for different difficulties, levels, whatever you want).

It contains:
- A lite-c include offering functions to insert and get scores from the online highscore tables
- A DLL (to make downloading/uploading possible)
- A PHP-Script for almost every webserver

How does it work?
It's not that complex. After you call a send-function in lite-c, a dll-function will call your php-script which will get data from your game and store it in an online highscore file (a plain text file).
While storing, it already inserts the score at the right position.

When your game wants to get the scores, the dll will download the online scores, temporary place it in the game folder and you can read the data.

How to start
Take a look at the ReadMe.txt and run the Example.c to check it out!

I hope you enjoy this contribution!
A credit would be fair, I think wink

If someone wants to, he can also re-write the script to work with another online dll. But I think there is no need to.

If you find bugs, crashes, or if you simply like it, you're welcome to tell it laugh

Regards
TSGames

Last edited by TSG_Torsten; 04/19/10 22:32.
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: TSG_Torsten] #320152
04/19/10 22:27
04/19/10 22:27
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
That is a great contribution, thank you very much!
It will take some time until I'm able to test it, though.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Superku] #320567
04/22/10 17:49
04/22/10 17:49
Joined: Feb 2005
Posts: 16
Italy
C
Cecia Offline
Newbie
Cecia  Offline
Newbie
C

Joined: Feb 2005
Posts: 16
Italy
Hi TSGames,
I've tested your DLL

I've change domain name and add permission serverside

The server and local files are created but when i lauch Example.c return this error:
ERROR E1515
Invalid arguments in main.

A7 Professional 7.21

Cecia

Last edited by Cecia; 04/22/10 17:50.
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Cecia] #320569
04/22/10 17:52
04/22/10 17:52
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
A7 Pro 7.21 --> UPDATE !!!

EDIT: This old version have a lot of Bugs...

Last edited by Widi; 04/22/10 17:53.
Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Widi] #320579
04/22/10 21:24
04/22/10 21:24
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
@Cecia
As Widi already mentioned, you've to update. I think this will cause the error, on the latest engine version the script runs fine.

Regards
TSGames

Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: TSG_Torsten] #320634
04/23/10 11:12
04/23/10 11:12
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
@ceica
to update the software, go to the download-section http://www.3dgamestudio.com/download.php and get the setup of the current version V7.82.
look for your username and passwort (can be found in the gamestudio-program-directory) and enter it if you´re asked by the setup

Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: Tempelbauer] #321048
04/26/10 19:16
04/26/10 19:16
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
I've updated the scripts and re-written the ReadMe-File to give some more information on how to implement it.

Any comments or suggestions would be fine.

Regards
TSGames

Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: TSG_Torsten] #321565
04/30/10 09:57
04/30/10 09:57
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
am trying to learn how to do an online server list, would studying how this works help? i just want an idea

Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: darkinferno] #321676
05/01/10 13:31
05/01/10 13:31
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
Sure, you could even use the DLL from it to get and send your online servers. It isn't that hard to develop, if you want to I could help you doing this (I've already developed on in c-script). (feel free to PM me in this case wink )

Regards
TSGames

Re: Online Highscore System - all in one (lite-c, DLL, PHP) [Re: TSG_Torsten] #330908
06/30/10 19:05
06/30/10 19:05
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 always get an error of Wrong Data / URL.

This is my link http://liamschnell.sagenundmeinen.de/score.php
and it is working with the browser? I also set the key, so I don't know.


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Page 1 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