INI files include - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: INI files include (
/showthread.php?tid=265351)
INI files include -
StandaxXx - 30.06.2011
I recently returned to scripting after several years and I wonder what includes do you use to edit INI files. I tried to search on wiki, but I couldn't find anything. Before I used dcmd for saving everything, but I don't know if it is still efficent. Then I looked at YSI, which I don't understand much yet, and it looked that it hasn't been updated for 2 years. Could you help me out?
Thanks a lot for all answers
Never mind I found out fini and I will probably use that one.
Re: INI files include -
Sasino97 - 30.06.2011
Try to use djson. It makes .json files that are more efficient than .ini files.
In the past I used SII as .ini include.
Re: INI files include -
Sasino97 - 30.06.2011
Quote:
Originally Posted by ******
YSI has been updated, but it's a new branch.
As for .json files - on what are you basing the claim that they're more efficient (in PAWN)?
|
I started using Dracoblue's JavaScriptObjectNotation for PAWN 2 weeks ago.
I think that because you can save all the data on one line and all in one file. I know YSI_INI can save all accounts in one file with [tags], but I understood djson and SII better. I have downloaded YSI, and in some scripts I include some parts of it.
Re: INI files include - Double-O-Seven - 30.06.2011
Quote:
Originally Posted by [GF]Sasino97
Try to use djson. It makes .json files that are more efficient than .ini files.
In the past I used SII as .ini include.
|
DJSON is NOT efficient if you compare it's speed against any other .ini file include.
DJSON gets very slow very fast when you have more and bigger files.
I've made a test where I've compared speeds of reading and writing 1000 values and DJSON was slower than all 6-10 other INI scripts...