The Daily Click ::. Forums ::. Klik Coding Help ::. How to make the High scores cleared after re-install?
 

Post Reply  Post Oekaki 
 

Posted By Message

Zub



Registered
  02/10/2002
Points
  221
23rd June, 2004 at 13:26:38 -

When I re-install (or re-extract), the old high scores are still there. How to make the high score list go away with the game? Im using TGF.

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
23rd June, 2004 at 13:43:36 -

TGF scores are stored in c:\windows\gfscores.ini (I think), so you could either delete that file or use TGF to clear the contents where the game matches the one in the file

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
23rd June, 2004 at 14:45:09 -

If you install the same game into a different folder it doesn't remember the highscores tho.

 
a/n

Zub



Registered
  02/10/2002
Points
  221
23rd June, 2004 at 17:42:53 -

Ah, so there is where itīs hiding... How to get the high score file protected and in the same dir as the game?

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Kramy



Registered
  08/06/2002
Points
  1888
24th June, 2004 at 02:02:16 -

You'll have to build your own high-score table in TGF, then use the ini to save it, then use something like the file encryption object to encrypt it. Actually, if you put the scores before names, a listfile could probably do the sorting for you.(although you'd probably want to use text objects' alterable strings to display the scores, since a list object is rather ugly)

TGF doesn't have $appdrive + $appdir does it? You may have to use the file object to get the ini to save in the same dir.

 
Kramy

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
24th June, 2004 at 03:39:40 -

TGF does have that

appdrive$ + appdir$ + "highscores.ini" or something.

 
a/n

Zub



Registered
  02/10/2002
Points
  221
24th June, 2004 at 06:30:39 -

Hmm, Iīve never really worked with ini-files in TGF. Maybe itīs better to just leave it the way it is.

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
24th June, 2004 at 06:51:47 -

Bear in mind that all scores from TGF games are stored in that one INI file in the windows directory, so if you delete that then any other TGF games on your computer will lose their scores aswell.

I have a tutorial on my site for saving and protecting a high score table in TGF and MMF:

http://www.fpp-games.com/tutorials/advanced_high_score.php

 
n/a

Zub



Registered
  02/10/2002
Points
  221
24th June, 2004 at 10:24:45 -

Thank you, Iīll check out!

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Zub



Registered
  02/10/2002
Points
  221
26th June, 2004 at 14:16:55 -

I tried 2 times by following your tutorial, but it doesnīt work. Only when I deleted all my events in the high scores frames and copied the evenst from the tutorial it worked. The scores doesnīt load or save (donīt know wich) the list. I think Iīm going to look at it one more time now.

Image Edited by the Author.

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Arf :: FPP Games



Registered
  15/05/2002
Points
  1364
27th June, 2004 at 10:53:09 -

Hmm, maybe try deleting the INI file and trying again. Though I'm not sure what the problem is.

 
n/a

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
27th June, 2004 at 11:08:20 -

As mentioned before, deleting the INI file removes the scores of all other TGF games as well

With a custom scoreboard you can choose what INI file to put the scores in, which makes it safe to delete.

 
a/n

Kramy



Registered
  08/06/2002
Points
  1888
27th June, 2004 at 14:06:53 -

Does the ini++ object have a "delete item" command?

If so, find out what your game saves the scores under in the file.

When the game starts, and a file in your game's dir doesn't exist, delete all the scores. Then create a new file in your game's directory.

When uninstalled, the file should be removed. If you use install creator you could even have it install a file with something like:

[commands]
clear=1

Then just set clear to 0 after clearing all the scores.(if they exist)

Kramy

 
Kramy

Zub



Registered
  02/10/2002
Points
  221
27th June, 2004 at 16:06:50 -

Deleting the ini-file didnīt help, I guess I have to look over it one more time.

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
27th June, 2004 at 23:00:52 -

Deleting the .ini file would screw up all the other games that use the TGF high score object.

 
http://www.klik-me.com

Zub



Registered
  02/10/2002
Points
  221
28th June, 2004 at 03:40:39 -

No, not that ini-file, Iīm talking about the one created following the tutorial Arf posted.

 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Zub



Registered
  02/10/2002
Points
  221
8th July, 2004 at 05:30:57 -

Arf: I added this to the help-file:
"Thanks to FFP-games.com and Arf for the Advanced high score table tutorial that helped me with the high score list."



 
X( "p1" ) - 24
TGF user, working on simple projects sometimes. Current Project: Farm with Chickens.
Also a member of IGD - Insane Geme Design [ igd.dongrif.com ]

Teapot

Does he even go here

Registered
  02/10/2003
Points
  2631

VIP Member
8th July, 2004 at 09:04:52 -

Here's a clue: Don't use the TGF highscore object. It's not actually too hard to make your own. And don't bother encrypting the INI, only morons bother to fiddle around with them anyway.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click