Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Vegar

A change of EL ini format?

Recommended Posts

It's really simple. You just change the meaning of #. Lines starting with # are comments instead of options. It wouldn't require many changes in the client code either.

 

I always see people that are having problems with the .ini files because the think lines starting with a # are comments.

 

At least you should change the file extension to something other than .ini.

Ini files usually have a format like this, which would be perfect for EL:

[section1]

; some comment on section1
var1 = foo
var2 = doodle

[section2]

; another comment
var1 = baz
var2 = shoodle

http://en.wikipedia.org/wiki/Ini_file

Share this post


Link to post
Share on other sites

Couldn't agree more. It has always had me wondering from the start.

 

It might also make this clearer to read when looking for comments...

Share this post


Link to post
Share on other sites

while I agree that it's backwards, the problem is what to do when you change formats. whether you require people to edit the new file to use the options they had before, support both types of file for a while, or have a converter.

all are possible, with varying difficulty and preference for users.

spending a little while figuring out the best format that's future-proofed could prevent a similar problem later as well

Share this post


Link to post
Share on other sites

oh but there is nothing stoping newbies from fucking stuff up.

hell, people even delete key files and folders at times as they think it only takes up space...

Share this post


Link to post
Share on other sites

I have to disagree with this proposal.

If all you want to do is sort it out, Sure do it.

 

--Section Header

#command=blah

 

You can do that now, But moving away from the #'s would mean the ini

will no longer conform with in game commands

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×