Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
Since it's been 2 months since my last activity, and the forums now have the seperated discussion and help sections (finally), I'm taking advantage of it (I'M BORED)
So uhhm, I was wondering if there are still people using dini and dcmd instead of mysql and zcmd... or if people are still making commands in strcmp <(^-^)> I've always used dini and dcmd, and I still use it, and whenever I script I will use it. How bout y'all?
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
Damn that was quick, yeah I've studied the define line, yet I count them as 2 different things, as you use them differently. P.S. another reason I still use dcmd/dini is because I just don't care about performance, it's like me and games, idk bout graphics, more bout gameplay.. (just to give u an idea)
Posts: 1,317
Threads: 23
Joined: Feb 2010
Reputation:
0
It has nothing to do with the gameplay, the fact that Dini takes seconds instead of miliseconds to get some data from a file is just showing how outdated and bad it is to use right now. You are just ignorant if you don't care about performance. (It will bite you in the ass one day).
Posts: 449
Threads: 48
Joined: Jan 2010
Reputation:
0
As Y_Less said, using dcmd and dini is not oldscool, its an inefficient way of scripting. Anyway, if you care what I call oldschool, these old roleplay servers which script-wisely had almost no systems, but somewhy where very interesting and attractive.
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
Now the great point of this is, that I never will and never have to script a server ^^ and now I think about it, i shud've changed the title.. :P oh well, doesn't matter.. it's all discussion.. dini/dcmd might be inefficient, they're trusted ways of scripting for me, that's the main reason.
Posts: 1,317
Threads: 23
Joined: Feb 2010
Reputation:
0
In that case I wouldn't take a scripting lesson from you.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Mike_Peterson
Now the great point of this is, that I never will and never have to script a server ^^ and now I think about it, i shud've changed the title.. :P oh well, doesn't matter.. it's all discussion.. dini/dcmd might be inefficient, they're trusted ways of scripting for me, that's the main reason.
|
But you're teaching people how to script and you're advising them to use bad methods.
Stop being lazy and learn the new methods, zcmd actually works out to be a lot more simple to use and you can do a lot more with the new file function includes (like y_ini) than you could with dini.
Posts: 2,322
Threads: 260
Joined: Jul 2010
Reputation:
0
You can never compare dini with MySQL.
Most of the reasons of usage are the same, but they are completly diferent functions.
Posts: 15,941
Threads: 0
Joined: Jun 2008
You know there are other, better, ini systems right?
[HLF]Southclaw
Unregistered
I still use strcmp for one or two things, I wrote a CallLocalFunction based command system (that's how ZCMD works) for standard commands but I have some "dynamic" sort of commands that change during runtime, I couldn't figure out a way to incorporate public functions to do that so I just used a simple loop+strcmp (It loops about 50-60 times)
It's for teleports, so I have an array of coordinates and commands, you type for instance "/ls" it loops the array, checks each string and if it matches it teleports you to the right place.
Call me lazy, but I didn't really want to write (or write a function to write) 50-60 command functions for teleports!
As for files, just listen to everyone else, and don't offer scripting help if you have to ask about things like this!
Posts: 357
Threads: 52
Joined: Feb 2012
Reputation:
0
For me, DCMD and DINI are hard, I find Y_INI, ZCMD, YCMD and those kind of modern codes way better, but sometimes I get confused from Y_INI .. Either it mixes data or it's just me sucking in scripting lol.
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
Well 90% scripts that are on Balkan servers or made/edited by someone from Balkan are using dcmd or strcmp and for saving mostly its a saving system made by Fear for GF (Yes they are still using GF or GF edits)
Posts: 140
Threads: 28
Joined: Jul 2010
Reputation:
0
improved dini (by me) and strcmp commands.
Posts: 340
Threads: 12
Joined: May 2011
Reputation:
0
My benchmarks say that basically strcmp and dini are good enough for me. Dini is bad, but it doesn't take even a second to do it's job (mostly just loading & saving stats)
I still don't "believe" in command processors, that's just how my mind works :P
Posts: 815
Threads: 65
Joined: May 2010
Dini is really inefficient, and even though you only compare one file open, close, write, and whatnot, it's only ONE file.
Large servers obviously don't use it because hundreds of files being opened, closed, written, and read at the same time inefficiently is defiantly not the way to go.