INI Reader
| A summary for INI Reader |
A BYONDscape Classic! For a brief introduction to INI files, look here: http://en.wikipedia.org/wiki/INI_file . INI files are suited to many of the same tasks as XML files (see Deadron's XML library, http://www.byond.com/members/ DreamMakers?command=view_post&post=36895 for more info), but for many applications, you may find that you prefer the brevity of an INI file. -- Gughunter
http://www.byond.com/developer/Audeuro/ini_reader
http://www.byond.com/developer/Audeuro/ini_reader
Posted by Audeuro on Monday, March 23, 2009 05:51PM
- 3 comments
(link)
/
Keywords:
libraries,
databases_and_files
Login to post a comment.
#3 Haywire:
This randomly inspired me, the link to the wiki article caught my attention. After reading through it I went and started playing with .ini files in C++, reading them and writing them, now I find them really useful and I appreciate Audeuro's library all the more. I never knew what they were but that wiki link taught me quite a bit. Thanks Audeuro, I'm going to find configuration files so useful in future developments of mine in C++ and DM as well as other languages I may run into.
Haywire
Tuesday, March 24, 2009 02:42PM
#2 Gughunter:
That's excellent, Masterdan. Thanks for the testimonial and real-world example!
Monday, March 23, 2009 06:27PM
#1 Masterdan:
:) I use the ini library for NarutoGOA, it allows us to do server settings such as:
-The playerlimite for a server
-The name of the server as shown on the BYOND hub
-The type of server being run (we have modes such as Roleplay mode that can be turned on)
-The interval in which saves are done on the server (saves are done on logout, but sometimes when a server has problems with crashing a more arbitrary interval save system is good, when a server on the otherhand is very stable having interval saves not happen or happen infrequently reduces wasted cpu cycles and allows for increased efficiency, since this is server specific it is a pretty good idea.)
-Multiple Connections blocking (multikey allowing or non-allowing, some servers may choose to allow multiple people from a LAN network at a home to connect to a game for situations such as brothers playing a game together or LAN cafe's or networks such as University or High school networks.
- The address of an affiliated server (for us the address of the MySQL database server)
With this type of flexibility for servers, no new compiled version needs to be re-distributed or recompiled every time a server-side setting needs to be changed. This has allowed us to do a lot of time saving implementations and I highly recommend any game owner include some scope of ini reading into their game.
Monday, March 23, 2009 06:02PM