Posts: 900
Threads: 83
Joined: Aug 2010
Reputation:
0
It seems Dini won't work with Linux. I saw another thread about it and someone said: "Linux file system is case sensitive as far as I remember. So the only way is always convert player name to lower/upper case each time you read/write with dini." Well what exactly does this mean, could someone explain please?
Posts: 582
Threads: 30
Joined: Apr 2011
Reputation:
0
I think, "This Is Text" should be "this is text".
Maybe, I'm wrong...
Posts: 900
Threads: 83
Joined: Aug 2010
Reputation:
0
Could you explain further? I got that part, but I don't know what part of text it means exactly.
Posts: 118
Threads: 7
Joined: Feb 2009
Reputation:
0
/users/lightning.ini
/users/Lightning.ini
/users/LiGhtniNg.ini
/users/LIGHTNING.ini
In linux these are all different files.
Convert the file name to lower case before saving like my first example. Dutils has a strlower function which is useful for this.
e.g.
format(file, sizeof(file), "/users/%s.ini", strlower(name));
So any case of my name will always come out as /users/lightning.ini
Posts: 900
Threads: 83
Joined: Aug 2010
Reputation:
0
Thanks, where do I put the function exactly? lol..