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

Posted by Audeuro on Monday, March 23, 2009 05:51PM - 3 comments / Members say: yea +1, nay -1

« Using scores and medals in your game · Conquer Huds »

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

 

 

Programming Help

Get Started - A quick overview of the tools available for learning to program in BYOND.

DM Guide - This is the first place you should look if you're new to BYOND's language DM. Some people call this the "blue book".

ZBT parts 1, 2, & 3 - Zilal's excellent tutorial series, teaching you the basics of how to get started writing games in BYOND.

Your First World and Step BYOND - Sample games that you can study to help you learn.

DM Reference - Handy for novice users and advanced programmers alike, this documents everything you need to know about the DM language.

Skin Reference - If you want to give your game a custom interface, this tells you what you can do with "skins" and how to work with them.

BYOND Resources - Demos and libraries you can download to help you with your creation.

Publishing Games

Publishing Games - A guide for putting your creations on the BYOND hub to share with others.

Recording Videos - If you want to find out how to make a video of your game and put it on YouTube or another site, this can get you started.

Keywords