![]() |
Scripts can't read INI files?
For some reason, when I try to use loadlines to read an INI file, It doesn't seem to work!
PHP Code:
And yes it is downloadable: Quote:
Quote:
When I change the format, it does, but I want .ini support :( |
Scripts are restricted to certain file extensions to avoid someone writing exes or similar
|
Aw man, I wanted to use .ini files for my MUD library :(
Ah well. Restricted to .arc x-x |
Quote:
|
INI looks good, Lol.
Oh well no more use for this thread. Off to ASCII art thread ^^; |
hmm, are .xml files usable?
|
Quote:
|
Quote:
btw I use a DAT file ^^ |
Actually i intended to use XML to store objects, XML would easily allow storing of complex objects.
|
I would assume XML files are allowed considering:
TGraalVar.loadxml(str) TGraalVar.loadxmlfromstring(str) TGraalVar.savexml(str, int) TGraalVar.savexmltostring() - returns string |
Quote:
|
Ok added .ini to the allowed file extensions, it will not work before the next update of npcserver or client though.
XML files are supported, you can ready and write them and also use the built-in functions (also use obj.addnamedstring(name,value)). It requires some more functions to be more usuable though, also on clientside it is very simple right now. |
Alright, Thanks :)
|
Ini does sound cool, and I like that as an extension.
... I have had a revelation! Ini files would be nice way of storing multiple archetypes. PHP Code:
|
Quote:
PHP Code:
The downside to such a thing is that the .ini file can become massive and confusing. It could also become faster to load indivudual files in the end. p.s. omg...like...C&C3!!...like...omg |
Ini files don't use the slashes at the end of each block, it just switches to the new one, the normal kind anyways.
|
| All times are GMT +2. The time now is 12:36 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.