The Daily Click ::. Forums ::. General Chat ::. Real men use .ini's
 

Post Reply  Post Oekaki 
 

Posted By Message

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
5th February, 2008 at 16:40:14 -

INI's are awesome, especially if you rig up some way to stuff like 8 different values into 1 line.

 
Craps, I'm an old man!

Billybobjoe198



Registered
  12/01/2007
Points
  221
5th February, 2008 at 16:47:07 -

I like ini's because I can goof with stuff.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
5th February, 2008 at 17:10:41 -


Originally Posted by Knudde (Shab)
INI's are awesome, especially if you rig up some way to stuff like 8 different values into 1 line.


String Parser ftw.

I use INI's for simple stuff like game options, but I use Apppath$ to make sure they don't flutter over into the Windows directory. I use arrays topped with Blowfish for save files.

PS: Why does the name "Blowfish" sound so wrong? I had to check like 2 times, just to make sure I was typing it right.

Image Edited by the Author.

 
http://www.facebook.com/truediamondgame

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
5th February, 2008 at 17:12:24 -

Yeah, sting parser would have definately made my life easier, but I did it the manual way beacuse that's how I do everything (TGF holdovers).

 
Craps, I'm an old man!

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
5th February, 2008 at 19:27:32 -

I just hate how big the INI expressions get in the expression editor. Otherwise it pwns arrays with a bit of encryption

I used to use arrays for data storage, then it got annoying finding where I put which value. I also used the data store object, but that one messes up any timed events its connected to.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
5th February, 2008 at 19:50:01 -

Arrays usually don't show their full color until you start working with level editors and need a quick efficient way to save and load them.

 
http://www.facebook.com/truediamondgame

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
5th February, 2008 at 19:58:52 -

Come to think of it, I used INI's alot in some of my projects where I absolutely needed more than 3 values because none of the values were constant.

 
Craps, I'm an old man!

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
5th February, 2008 at 20:43:24 -

After saving all my level files as ini's with gridquest, i'll say its as easy and quick to use as possible. Its just that small matter of the filesizes being 100x as large. Seems to write/read instantly for all purposes, and allows me to do many things I couldn't possibly due in arrays (comment the file's data, store both strings and variables as needed anywhere, put random data in the same package as my level grid, etc)

Its incredibly nice to have my ini files lined up in extremely easy to read formats, at least for me. I can read through them if theres any errors and figure it out without even having to open up TGF alot of the time.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
5th February, 2008 at 21:29:44 -

Arrays are faster at level editors merely because it has built in save and load for the entire array, and the entire extension is already built in a grid, which is what a level editor generally always is. As far as saving random information in an array, you can do that too. Remember, array's are multi-layer. You have X and Y to mark positions for the level, but you also have an entire Z layer which seems to have no real use for a 2D editor, other then storing extra information.

 
http://www.facebook.com/truediamondgame

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
5th February, 2008 at 22:07:52 -

Arrays are good if you're making grid-based level editors. But I don't like level editors anyway, they make the levels look too mechanical

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
5th February, 2008 at 22:08:31 -

I'm using the 1 Z position to store level data, and Z3 to store alternate versions of levels (Like after a room blows up)

 
Craps, I'm an old man!

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
6th February, 2008 at 01:22:37 -

Ini's are good for scripts and similar but for save files I prefer to use something encoded.

 
http://www.SilverNova.co.uk

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
6th February, 2008 at 01:28:34 -

You can encode the INI file. It just takes like, 1 event.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
6th February, 2008 at 01:43:39 -

INI files are handy for their ease of use, and useful for your nice, amorphously-expandable data storage needs... They get a little unreliable if you try to access them too intensively, though, and can cause fierce slowdowns or even random freezing.

I really like binary files for levels, though. You can refer to a single byte, drawing upon its value, or a particular string (which is ideal for using the Text Blitter). And if you plan the file structure correctly, you can store all the extra data you need in a file header, and have a neat little file format.

I rarely use arrays any more, but they still have their uses.

 
Go Moon!

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
6th February, 2008 at 02:14:14 -

Associative array FTW!

I'd use the binary array for a level editor though, CNC arrays are only good because they are so easy.

Image Edited by the Author.

 
Image
http://bfollington.tumblr.com
   

Post Reply



 



Advertisement

Worth A Click