Torleif
Visitor
|
Palabre db mod - 2006/08/15 09:27
In responce to this thread and to some degree this one to I have created my own mod of the palabre server.
Grab the server Grab the source
Theres a mod.txt where you can read about what it does in detail, but basiclly what it does is allow peoples name, password and data to be stored on the sever, though palabre.
when the person logs in, it gives them back their data they put in. users have to sign up before they can log in. (optinal though, you can set it to have guests 'browsing a game') users can update their own data, and nobody elses.
So, what can happen is when say a player creates a custom car, he can save it to the server and the next time he logs in, he will get the same looking car back.
On the more technical side of things, it uses the pythons dictonaray ADT (wich uses hashing to get values) to get the data from the database. if you dont know what that means, it means that all insertions/ reqests /deletes happen in O(1) time. Thats really fast, but the space in RAM is O(N). the reason why i did this (instead of a orderd list & binaray serach O(log n)) is because in reality flash can only handle about 100 objects at once. so it would be safe to have 10,000 entrys in the data file (it would take up about 10 meg) but you wouldent want to have 1 million entrys. but by that time any person trying to connect to the server from flash would have their computer freeze on them anyway.
Questions?
|