A custom database system

Posts 1–15 of 21 · Page 1 of 2
A custom database system
This is a database system based on .txt files (sounds weird, but the way it is designed so far is actually very efficient - noticeable speeds improvements in logging in and loading characters).

It's more of a learning experience for me, the point of this is to create a stable and efficient old-client source.
It will be released to everyone once it is finished or I decide to quit working on it.

Here's a video;
 
Hello


Most of the hardest stuff is done now (loading characters, requesting char/list etc.). I just thought it would be interesting to show this off here.
If you're going to do it like this why not just have everything in one file using a dict instead of having to deal with the overhead of (un)loading files repeatedly.
Quote Originally Posted by Kushala Daora View Post
If you're going to do it like this why not just have everything in one file using a dict instead of having to deal with the overhead of (un)loading files repeatedly.
Using 1 file it would have to take some time to find the correct line and values. At least I think so, the way this works, is it grabs the account ID from the email.txt, and then grabs data from the account table for the specified ID, so the speed will always be the same, even if there were millions of those files
Quote Originally Posted by sgrawsreghawrhgwrhgr View Post
Using 1 file it would have to take some time to find the correct line and values. At least I think so, the way this works, is it grabs the account ID from the email.txt, and then grabs data from the account table for the specified ID, so the speed will always be the same, even if there were millions of those files
from the looks of it, email.txt sounds like an email to accountID index, which certainly helps retrieval of the account itself after authentication has occured

but from what I remember, a user has to login with email and password. do you have some sort of string hashing method that would allow for email searches to stay low complexity?
Quote Originally Posted by r.p View Post
from the looks of it, email.txt sounds like an email to accountID index, which certainly helps retrieval of the account itself after authentication has occured

but from what I remember, a user has to login with email and password. do you have some sort of string hashing method that would allow for email searches to stay low complexity?
Not currently, no, as shown in the video.
I will probably have to add some sort of hashing method to passwords if I want to release the source to the public though, but for testing and debugging purposes, they are just plain text
I had the same exact idea a few weeks ago when I wanted to make a single player game out of a pserver source xD this way all the player would need is the client and the server and wserver and it would create the db txt files as the user plays (this way the person wouldnt have to do all that mysql bullshit)

Never even started it tho lul
Quote Originally Posted by sgrawsreghawrhgwrhgr View Post
This is a database system based on .txt files (sounds weird, but the way it is designed so far is actually very efficient - noticeable speeds improvements in logging in and loading characters).

It's more of a learning experience for me, the point of this is to create a stable and efficient old-client source.
It will be released to everyone once it is finished or I decide to quit working on it.

Here's a video;
 
Hello


Most of the hardest stuff is done now (loading characters, requesting char/list etc.). I just thought it would be interesting to show this off here.
i did this with xml, it was nice, only thing it lacked was speed
For anyone who is interested in this project -> I have uploaded some new videos on the YouTube channel I posted the first video on.

General progress
Vaults
Glowing
Legends
Deaths
Class Stats
Logging in
Loading characters
Saving characters
A couple of packets are functioning now

Will write a new guild system (not exactly new, just more efficient) for the source soon, after that, all the hard/technical stuff is done -- just dungeons, and content (abilities etc.) remaining.
A lot has been added to the RotMGTxt source.

Progress
Packages
Mystery boxes
XML behavior system
Effects
Movement
Guilds fully working (not shown in the video; forgot about them, there is another video which showcases them though)
Merchants

 
Video
Quote Originally Posted by sgrawsreghawrhgwrhgr View Post
A lot has been added to the RotMGTxt source.

Progress
Packages
Mystery boxes
XML behavior system
Effects
Movement
Guilds fully working (not shown in the video; forgot about them, there is another video which showcases them though)
Merchants

 
Video
I have an AS3 source project going, where I experiemented with this, using StreamWriter and StreamReader, for exporting and reading the data, stored in txt files. However I have some questions about it, if you don't mind me asking you, on Skype or dis-cord'?
Quote Originally Posted by lkdjnfoskjednfblksjdfn View Post
I have an AS3 source project going, where I experiemented with this, using StreamWriter and StreamReader, for exporting and reading the data, stored in txt files. However I have some questions about it, if you don't mind me asking you, on Skype or dis-cord'?
"Thenired" i tried contacting you on Dcord but you are always offline name Newdale
#8060 i have a question it's not you writing the code. Just some help.
Quote Originally Posted by lkdjnfoskjednfblksjdfn View Post
I have an AS3 source project going, where I experiemented with this, using StreamWriter and StreamReader, for exporting and reading the data, stored in txt files. However I have some questions about it, if you don't mind me asking you, on Skype or dis-cord'?
Sure.
Skilly#9837
There is one problem in acc data you don't know what you're changing ?
Quote Originally Posted by TR4C3 View Post
There is one problem in acc data you don't know what you're changing ?
Yes, that would ordinarily be a problem. However, the structure for each type of data is documented in his custom DatabaseInstance.cs, so it's pretty easy to keep track of what data you're changing.

Skilly thinks of it all. Hehe.
Quote Originally Posted by sgrawsreghawrhgwrhgr View Post
This is a database system based on .txt files (sounds weird, but the way it is designed so far is actually very efficient - noticeable speeds improvements in logging in and loading characters).

It's more of a learning experience for me, the point of this is to create a stable and efficient old-client source.
It will be released to everyone once it is finished or I decide to quit working on it.

Here's a video;
 
Hello


Most of the hardest stuff is done now (loading characters, requesting char/list etc.). I just thought it would be interesting to show this off here.
Have you tried looking into a NoSQL solution to the db instead?
Posts 1–15 of 21 · Page 1 of 2

Post a Reply

Similar Threads

Talk with us