![]() |
Databases and text file usages
It was mentioned that using DB NPCs and text files were better to save information like guilds rather than using clientr flags. Is the usage between the two preference?
IE: Choosing DB over text files or clientr. And what are all the advantages of using the two methods? Just looking to get the most information out of these methods that I can. Thanks for any assistance. |
i guess clientr isnt as easy to control as txt :0 as client flags are stored individually within player attributes... has a better structure and the source to read is only one then, instead of having the flags all scrambled over accross different accounts
DB NPCs?... |
Sorry for any confusion, I just mean databases.
Edit: just to say I've never used text files before, so getting into them is new for me. And I'm just getting the hang of using Databases |
Quote:
|
text files are wack, store everthing in .bmp images and code your own OCR.
|
Quote:
Hmm, I'll just make this part easy and say I really wouldn't know the best method then lol. I do plan on adding a lot of features. |
Imagine you wish to find a list of all players in a certain guild. If you store the guild as a clientr variable (like clientr.guild=Vimes), then if you wanted to list all players in Vimes, you need to search every player who has ever logged on to the server. (This is impractically slow for most uses.)
If you store it in a text file or DB NPC, you could instead store an array guild.Vimes=cbk1994,Seeya and easily get that list. Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Honestly, setting it up is really easy. I'd lookup SQLite and take tutorials on it. There's not a lot that's different other than syntax. I'm sure others here have really great resources to provide.
|
Basically you should do what Tim just said. Thats great advice since graal uses sqlite. However if you want you can go to youtube and watch a few video tutorials. Then head over the W3 School's and look up query examples. You would be surprised how much even those of us who know this stuff have to constantly look back at references. As long as you kinda get the idea of how it works you should be fine. If you want, for extra credit you can look up advanced sql techniques such as the logic data modeling that I learned about a few years ago and theres plenty of other optimizations you can do however just the basics will work very well with graal :)
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 08:01 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.