Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make INI Files Look Appealing Again...
#5
I'm not saying INIs are better, I'm just saying there is a way to make them look better.

As for "sSpaces = Space(5000)", that just defines 5000 as the maximum length for a string to return. The only reason I can see it being that high is for the MOTD or descriptions. You could set it to 500 or something, but 255 may be cutting it too close where you start to lose functionability.

Didn't notice I missed the Dim, thanks for pointing that out.

I haven't actually tried, but I'd like to think that binary delivers the same or similar file size reduction. Somebody will have to get me a number, but the Elysium account file example reduced the size by almost 18 times. The only real differences between binary and ini files is that one uses more text than it needs to make identifying possible ("Name=" is just extra space used up, but it is only 4 times larger than Binary) and that binary files need to be loaded all at once and saved into memory.

Once again, I'm not telling you to run out and change the binary formats back to INI, I'm just saying that some simple changes can make it much better than it is right now.

Heck, if you want to try it out, get me the size of the binary version of the default items file and I'll see what I can with INI. Eh?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)