I know someone may have posted this in the past (But me like you, who could be bothered searching for it). But does anyone know how to make TGF/MMF write and read MYSQL entries for scoring?
MMF has a Database object that can connect to any database if you have a driver for. However if it's an EXE you are creating I would be more inclined to use an Access database which can be utilised the same way.
~Mike ¿
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
it can easily be achived with php and mysql. The problem lies in encryption. Afaik, php can use something called MD5 encryption, and i'm not sure that's achievable in MMF.
In mmf i would open a browser doing something like this:
The problem, as you can see, is that any user could easily edit this url and give himself a much higher score.
I dunno if you could use algorythms. Maybe convert the score to hex, and use the average of the score as a checksum or something.
n/a
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
1st October, 2004 at 05:43:28 -
MD5 encryption is only one way. i.e. one encrypted, it's impossible to get it back to its original form. you could write your own algorithm for encryption - make it as complicated as you want, do it in MMF, then have your PHP script decrypt it.
a simple example would be
score = (score + 5) * 27
in MMF, then in PHP do:
score = (score / 27) - 5
obviously that'd be easy to crack, so you'd have to make it more complicated, but that's the basic idea.
yeah, that's what i've been thinking i had to do. Also, if there was a way to convert numbers to the octal system, and back again it would be great. The reason for this is that hex is becoming somewhat known so it might be decodable. Hmm, come to think of it, hex ranges from 1 to F (16 numbers), and the octal system must obviously have to be a system with 8 numbers. Maybe they could interact somehow ?
try base 36 no one would ever guess that, then you need to byte shift it by 128, then after that bytemod it by 128, then Add your credit card number to it, then let me test the engine...ok, so I'm kidding about the credit card number part, but that should encrypt it pretty well. If you don't know what bytemod is, it's an encryption engine I invented myself, it's byte shift by CharNo % Key, I bet I could even make one in JavaScript!
HAR HAR HAR! I OWN STOCKS IN JAVASCRIPT!
Javascript is really a lot more powerful than people give it credit for...people are always using it for rollovers and stuff, don't they see it can be used for much more than just that? JavaScript can even create dynamic web pages. Just use the search and hash section of the location. Get them thorugh location.search and location.hash. The URLs are formatted like this: http://www.blahblahblah.com/blah.html?Search#Hash. when you retrieve the hash and search part though, you'll get the ? and # with it too, just a matter of a few simple parsing techniques...now how'd I get off on this irrelevant tangent?
As a boy, I wanted to be a train. I didn’t realize this was unusual—that other kids played with trains, not as them.
well, not everyone has php support on their servers FTP could always work...then you have the problem of hacking the passwords though...:S can't win with everything