Game Development Community

$pref::player::bestScore

by Kevin James · in Torque Game Builder · 04/03/2005 (8:05 pm) · 2 replies

I set this to "0" in the prefs.cs file, but when T2D reads it for the first time, it sets it to "999" for some reason. Any ideas why?

About the author

Computer security, digital forensics, and platform jumper enthusiast. shells.myw3b.net/~syreal/


#1
04/03/2005 (8:46 pm)
I got it to work. But I have to change the $pref name if I want to reset the high score. Does it store this in the registry somewhere? very weird.
#2
04/04/2005 (12:47 am)
No, the problem is that the $prefs get saved to all the mods that are active so you'll probably get this added to the particle/tile editor mods as well.

When you start-up again, these prefs are reloaded and the last one that is loaded has the final say.

In the default T2D SDK, this is the particle editor so edit that one. In the space-shooter demo, it should be the one in the spacescroller directory.

This will be changing in the near future as it's a pain.

- Melv.