Quote:
Originally Posted by BlueFlame11
O.O Okay but i still like flat file + you can make a server tool to do all that for you ;O
|
Personally I feel flat files should only apply to things that won't be changing often.
The obvious would include things like portals, items, composition info, base monsters, maybe monster spawns, guilds (depending on how you structure your guild system/database). Things that you won't care to add new fields to often and won't need large numbers of entries.
Personally I would find it a complete pain to have to write a program to re-write every single created entry/file simply to add a new field.
Anything like accounts, characters, character items and things along those lines are just infinitely easier to do using sql...
If you get a problem with certain data, run a sql query. If you want to add something new (character tables are prime examples.. I've added so many new fields for different things!) it's a simple matter of a few clicks. Same with the in source side. Sql queries (while I admit, it's what I'm used to) is so much simpler. You run your command and your data is then there which you can organize however you want in your server structures.
Anyways, back on topic I suppose seeing as everyone has their own preference. Flatfiles are perfectly fine depending on if you know what you are doing and are comfortable working with them... personally I'm just not.
@ Thread:
Sounds like it's been answered. Depending on how easy you want name change to be on your server, you may want to write a new script to load up the character flatfile and change everything properly in that... the problem I see there though is searching through all the other character files to ensure the name isn't already taken.. (another reason why I like sql lol, all the data is right there without all sorts of fuss).
You should be able to run a check for other chars with that name, modify it in both the account files and the character ones (as account is linked to character. changing character name and not the account file will make it not know what character to point to... aka not being able to log). Then either disconnect the client or (I THINK) you can change it while logged in by removing and re-spawning the client (Not sure on that though, never done it)
Best of luck. Hopefully you get everything working.