User contributions for The GTA
Jump to navigation
Jump to search
1 February 2014
- 19:0319:03, 1 February 2014 diff hist +49 MTA:Eir/FileSystem No edit summary
- 18:5818:58, 1 February 2014 diff hist −5 File:Path derivation tree.png No edit summary current
- 18:5818:58, 1 February 2014 diff hist +172 N File:Path derivation tree.png MTA:Eir FileSystem Path types illustration. Should provide you with a quick overview of the paths. After all, proper path handling is very important in this the FileSystem.
- 16:0316:03, 1 February 2014 diff hist +57 MTA:Eir No edit summary
- 15:0615:06, 1 February 2014 diff hist +914 MTA:Eir/FileSystem →Browsing a File System using Paths
- 14:4814:48, 1 February 2014 diff hist +23 m MTA:Eir/FileSystem/file/functions →FileSystem File Functions current
- 14:4814:48, 1 February 2014 diff hist +23 m MTA:Eir/FileSystem/atranslator/functions →FileSystem Archive Translator Functions
- 14:4714:47, 1 February 2014 diff hist +23 m MTA:Eir/FileSystem/translator/functions →FileSystem Translator Functions
- 14:4614:46, 1 February 2014 diff hist +23 m MTA:Eir/FileSystem/namespace/functions →FileSystem Namespace Functions
- 14:4614:46, 1 February 2014 diff hist +23 m MTA:Eir/FileSystem/functions No edit summary
- 14:4514:45, 1 February 2014 diff hist +82 MTA:Eir/FileSystem No edit summary
- 14:4414:44, 1 February 2014 diff hist +1 MTA:Eir/FileSystem →Browsing a File System using Paths
- 14:4114:41, 1 February 2014 diff hist +1 MTA:Eir/FileSystem No edit summary
- 14:4014:40, 1 February 2014 diff hist +4,981 N MTA:Eir/FileSystem Created page with "The '''MTA:Eir FileSystem''' is the framework used for accessing persistent data in MTA:Eir on places like the harddisk and .zip archives. It is a cross-platform library that..."
- 12:1612:16, 1 February 2014 diff hist +47 MTA:Eir/Classes No edit summary current
- 12:1212:12, 1 February 2014 diff hist +48 MTA:Eir/FileSystem/createZIPArchive No edit summary
- 12:1212:12, 1 February 2014 diff hist +48 MTA:Eir/FileSystem/createArchiveTranslator No edit summary
- 11:5911:59, 1 February 2014 diff hist +3 m MTA:Eir/FileSystem/createFilesystemInterface No edit summary
- 11:5811:58, 1 February 2014 diff hist +127 MTA:Eir/FileSystem/createFilesystemInterface No edit summary
- 11:5411:54, 1 February 2014 diff hist −4 m MTA:Eir/FileSystem/atranslator/save No edit summary
- 11:5311:53, 1 February 2014 diff hist +2,113 N MTA:Eir/FileSystem/atranslator/save Created page with "__NOTOC__ This function attempts to save the contents of an archive into its source file. This is only possible if the source file has been opened as writable. ==Syntax== <syntaxhighlight lang="lua">..."
- 11:3011:30, 1 February 2014 diff hist +47 MTA:Eir/FileSystem/functions No edit summary
- 11:2911:29, 1 February 2014 diff hist +89 N MTA:Eir/FileSystem/atranslator/functions Created page with "==FileSystem Archive Translator Functions== *save"
31 January 2014
- 16:4616:46, 31 January 2014 diff hist +372 N MTA:Eir/FileSystem/file/readUInt Created page with "__NOTOC__ This function attempts to read an unsigned integer (native type) from a file and returns it. The amount of bytes read should be four. ==Syntax== <syntaxhighlight lang="lua"> unsigned..."
- 16:4516:45, 31 January 2014 diff hist +380 N MTA:Eir/FileSystem/file/readUShort Created page with "__NOTOC__ This function attempts to read an unsigned short (native type) from a file and returns it. The amount of bytes read should be two. ==Syntax== <syntaxhighlight lang="lua"> unsigned_sh..."
- 16:4316:43, 31 January 2014 diff hist +1,236 N MTA:Eir/FileSystem/file/isReadable Created page with "__NOTOC__ This function returns whether a stream is readable. If a stream is not readable, then all read operations should result in nil operations (they will return zero bytes r..."
- 16:3816:38, 31 January 2014 diff hist +1,066 N MTA:Eir/FileSystem/file/isWritable Created page with "__NOTOC__ This function returns whether a stream is writable. If a stream is not writable, then all write operations should result in nil operations (they will return zero bytes ..."
- 16:2316:23, 31 January 2014 diff hist +1,494 N MTA:Eir/FileSystem/file/flush Created page with "__NOTOC__ This function writes all temporary buffers of a file/stream object into the output storage. This feature shall be interpreted as a hint, not a necessity. Implementation..."
- 14:5514:55, 31 January 2014 diff hist +1,476 N MTA:Eir/FileSystem/file/eof Created page with "__NOTOC__ This function returns whether the runtime can still read data from the file/stream. This is an implementation defined state that should return false if no data can be i..."
- 14:4514:45, 31 January 2014 diff hist +1,410 N MTA:Eir/FileSystem/file/seek Created page with "__NOTOC__ This function changes the location of the current stream pointer. Like that you can skip file sections, set the stream pointer to a specific location or head to the end..."
- 14:4014:40, 31 January 2014 diff hist +1,094 N MTA:Eir/FileSystem/file/tell Created page with "__NOTOC__ This function returns the current absolute position inside of the file/stream object. It should be the number of bytes that the current stream pointer is set from the b..."
- 14:3514:35, 31 January 2014 diff hist −4 m MTA:Eir/FileSystem/file/stat No edit summary
- 14:3414:34, 31 January 2014 diff hist +390 N MTA:Eir/FileSystem/file/stat Created page with "__NOTOC__ This function returns immediate statistics about this file/stream object. The output should be of same structure like that of [[MTA:Eir/FileSystem/translator/stat|trans..."
- 14:3214:32, 31 January 2014 diff hist +957 N MTA:Eir/FileSystem/file/size Created page with "__NOTOC__ This function returns the size of a specific file/stream from beginning to end. Not all streams have to support this operation. ==Syntax== <syntaxhighlight lang="lua"> int file.size ..."
- 14:2714:27, 31 January 2014 diff hist +515 N MTA:Eir/FileSystem/file/writeBoolean Created page with "__NOTOC__ This function attempts to write a boolean into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be one. ==Syntax..."
- 14:2514:25, 31 January 2014 diff hist +601 N MTA:Eir/FileSystem/file/writeDouble Created page with "__NOTOC__ This function attempts to write a double into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be eight. ==Synta..."
- 14:2414:24, 31 January 2014 diff hist +547 N MTA:Eir/FileSystem/file/writeFloat Created page with "__NOTOC__ This function attempts to write a float into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be four. ==Syntax=..."
- 14:2114:21, 31 January 2014 diff hist +553 N MTA:Eir/FileSystem/file/writeUInt Created page with "__NOTOC__ This function attempts to write an unsigned integer into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be four..."
- 14:2014:20, 31 January 2014 diff hist +544 N MTA:Eir/FileSystem/file/writeInt Created page with "__NOTOC__ This function attempts to write an integer into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be four. ==Synt..."
- 14:1714:17, 31 January 2014 diff hist +1 MTA:Eir/FileSystem/file/writeShort No edit summary
- 14:1714:17, 31 January 2014 diff hist +1 MTA:Eir/FileSystem/file/writeUShort →Returns
- 14:1714:17, 31 January 2014 diff hist +549 N MTA:Eir/FileSystem/file/writeUShort Created page with "__NOTOC__ This function attempts to write an unsigned short integer into a file/stream and returns how many bytes have actually been written. The amount of bytes written should b..."
- 14:1614:16, 31 January 2014 diff hist +478 N MTA:Eir/FileSystem/file/writeShort Created page with "__NOTOC__ This function attempts to write a short integer into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be two. ==..."
- 14:1414:14, 31 January 2014 diff hist +481 N MTA:Eir/FileSystem/file/writeUByte Created page with "__NOTOC__ This function attempts to write an unsigned byte into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be one. =..."
- 14:1314:13, 31 January 2014 diff hist +478 N MTA:Eir/FileSystem/file/writeByte Created page with "__NOTOC__ This function attempts to write a signed byte into a file/stream and returns how many bytes have actually been written. The amount of bytes written should be one. ==Sy..."
- 13:5913:59, 31 January 2014 diff hist +6 m MTA:Eir/FileSystem/file/readUByte No edit summary
- 13:5713:57, 31 January 2014 diff hist 0 MTA:Eir/FileSystem/file/readUByte No edit summary
- 13:5713:57, 31 January 2014 diff hist +3,024 N MTA:Eir/FileSystem/file/readUByte Created page with "__NOTOC__ This function attempts to read an unsigned byte (native type) from a file and returns it. The amount of bytes read should be one. ==Syntax== <syntaxhighlight lang="lua"> unsigned_byt..."
- 09:4209:42, 31 January 2014 diff hist +261 MTA:Eir/FileSystem/file/readByte No edit summary
- 09:3709:37, 31 January 2014 diff hist +5,774 N MTA:Eir/FileSystem/file/readByte Created page with "__NOTOC__ This function attempts to read a signed byte (native type) from a file and returns it. The amount of bytes read should be one. ==Syntax== <syntaxhighlight lang="lua"> signed_byte fil..."
- 07:5607:56, 31 January 2014 diff hist +396 MTA:Eir/FileSystem/file/functions →FileSystem File Functions
30 January 2014
- 23:5223:52, 30 January 2014 diff hist 0 m MTA:Eir/FileSystem/file/readBoolean No edit summary
- 23:4923:49, 30 January 2014 diff hist +2,381 N MTA:Eir/FileSystem/file/write Created page with "__NOTOC__ This function attempts to write a string of bytes (characters) into the file. It returns the amount of bytes that have actually been written. ==Syntax== <syntaxhighlight lang="lua"> ..."
- 23:1123:11, 30 January 2014 diff hist +4,670 N MTA:Eir/FileSystem/file/readBoolean Created page with "__NOTOC__ This function attempts to read a boolean (native type) from a file and return it. The amount of bytes read should be one. ==Syntax== <syntaxhighlight lang="lua"> boolean file.readBoo..."
- 22:1922:19, 30 January 2014 diff hist +2,797 N MTA:Eir/FileSystem/file/readDouble Created page with "__NOTOC__ This function attempts to read a double (native type) from a file and return it. The amount of bytes read should be eight. ==Syntax== <syntaxhighlight lang="lua"> double file.readDou..."
- 10:5510:55, 30 January 2014 diff hist +108 MTA:Eir/FileSystem/file/functions →FileSystem File Functions
- 10:5410:54, 30 January 2014 diff hist −1 m MTA:Eir/FileSystem/file/readFloat →Example
- 10:5410:54, 30 January 2014 diff hist +7,175 N MTA:Eir/FileSystem/file/readFloat Created page with "__NOTOC__ This function attempts to read a float (native type) from a file and return it. The amount of bytes read should be four. ==Syntax== <syntaxhighlight lang="lua"> float file.readFloat ..."
- 09:2309:23, 30 January 2014 diff hist +1,890 N MTA:Eir/FileSystem/file/readInt Created page with "__NOTOC__ This function attempts to read an integer (native type) from a file and return it. The amount of bytes read should be four. ==Syntax== <syntaxhighlight lang="lua"> int file.readInt (..."
- 08:5008:50, 30 January 2014 diff hist +2,276 N MTA:Eir/FileSystem/file/readShort Created page with "__NOTOC__ This function attempts to read a short (native type) from a file and returns it. The amount of bytes read should be two. ==Syntax== <syntaxhighlight lang="lua"> short file.readShort ..."
- 08:0208:02, 30 January 2014 diff hist +1,375 N MTA:Eir/FileSystem/file/read Created page with "__NOTOC__ This function attempts to read the specified amount of bytes from the file. The actual amount of bytes read equals to the length of the Lua string. ==Syntax== <syntaxhighlight lang="lua">[l..."
- 07:4307:43, 30 January 2014 diff hist +102 MTA:Eir/FileSystem/file/functions →FileSystem File Functions
- 07:4007:40, 30 January 2014 diff hist −5 m MTA:Eir/FileSystem/translator/getFiles No edit summary
- 07:4007:40, 30 January 2014 diff hist −157 MTA:Eir/FileSystem/translator/getDirs No edit summary
- 07:3707:37, 30 January 2014 diff hist +8 m MTA:Eir/FileSystem/translator/getFiles No edit summary
- 07:3607:36, 30 January 2014 diff hist +1,689 N MTA:Eir/FileSystem/translator/getFiles Created page with "__NOTOC__ This function returns a list of all files that are found under the wild-card and directory parameters. It is similar to MTA:Eir/FileSystem/translator/scanDir but re..."
- 07:3407:34, 30 January 2014 diff hist +8 m MTA:Eir/FileSystem/translator/getDirs No edit summary
- 07:3407:34, 30 January 2014 diff hist +1 MTA:Eir/FileSystem/translator/getDirs No edit summary
- 07:3307:33, 30 January 2014 diff hist +92 MTA:Eir/FileSystem/translator/getDirs No edit summary
- 07:3307:33, 30 January 2014 diff hist +1,612 N MTA:Eir/FileSystem/translator/getDirs Created page with "__NOTOC__ This function returns a list of all directories that are found under the wild-card and directory parameters. It is similar to MTA:Eir/FileSystem/translator/scanDir ..."
- 07:1307:13, 30 January 2014 diff hist −1 MTA:Eir/FileSystem/translator/scanDirEx No edit summary
29 January 2014
- 23:2523:25, 29 January 2014 diff hist +1 MTA:Eir/FileSystem/translator/absPathRoot No edit summary
- 19:5919:59, 29 January 2014 diff hist +3,139 N MTA:Eir/FileSystem/translator/scanDirEx Created page with "__NOTOC__ This function loops through all translator filesystem entries that are captured by the wildcard and the directory specifier. The wildcard is glob-style and supports '''..."
- 19:4919:49, 29 January 2014 diff hist +2,860 N MTA:Eir/FileSystem/translator/scanDir Created page with "__NOTOC__ This function loops through all translator filesystem entries that are captured by the wildcard and the directory specifier. The wildcard is glob-style and supports '''..."
- 14:2414:24, 29 January 2014 diff hist +1,355 N MTA:Eir/FileSystem/translator/absPathRoot Created page with "__NOTOC__ This function resolves a specified path into its absolute version. The path is resolved from the translator root. This function can be used to get a unique version of a..."
- 14:1214:12, 29 January 2014 diff hist +998 N MTA:Eir/FileSystem/translator/absPath Created page with "__NOTOC__ This function resolves a specified path into its absolute version. This function can be used to get a unique version of a path (without scripting symbols such as '..')...."
- 13:2213:22, 29 January 2014 diff hist +1,434 N MTA:Eir/FileSystem/translator/relPathRoot Created page with "__NOTOC__ This function transform a path that is passed to it into a path that is relative to the translators root directory. The path must be accessible from the translator. The..."
- 12:4312:43, 29 January 2014 diff hist +1,198 N MTA:Eir/FileSystem/translator/relPath Created page with "__NOTOC__ This function transform a path that is passed to it into a path that is relative to the translators current directory. The path must be accessible from the translator. ..."
- 12:3412:34, 29 January 2014 diff hist +1,352 N MTA:Eir/FileSystem/translator/stat Created page with "__NOTOC__ This function queries common information about a filesystem object and returns it as a dictionary. Example of its return value: <syntaxhighlight lang="lua"> { accessTime = 139099795..."
- 12:1512:15, 29 January 2014 diff hist −1 MTA:Eir/FileSystem/translator/size No edit summary
- 12:1412:14, 29 January 2014 diff hist +1,322 N MTA:Eir/FileSystem/translator/size Created page with "__NOTOC__ This function queries the size of a filesystem object. The size of a filesystem object is the count of bytes that it logically fills on the storage media. ==Syntax== <..."
- 12:0712:07, 29 January 2014 diff hist +994 N MTA:Eir/FileSystem/translator/rename Created page with "__NOTOC__ This function moves a file from a source location to a destination location inside of a filesystem. This function is the fastest way to move data from one location to a..."
- 10:3210:32, 29 January 2014 diff hist +1,097 N MTA:Eir/FileSystem/translator/copy Created page with "__NOTOC__ This function copy a file from a source location to a file at the destination. This function copies the contents of the source file, so that source and destination have..."
- 10:2510:25, 29 January 2014 diff hist +3 MTA:Eir/FileSystem/translator/delete No edit summary
- 10:2410:24, 29 January 2014 diff hist +947 N MTA:Eir/FileSystem/translator/delete Created page with "__NOTOC__ This function deletes an entry on the translator filesystem. If the path points at a directory, the whole content of it is recursively deleted. A typical reason when de..."
- 10:1910:19, 29 January 2014 diff hist +1,650 N MTA:Eir/FileSystem/translator/chdir Created page with "__NOTOC__ This function changes the current directory pointer of the translator. All operations on the FileSystem translator are executed relative to the current directory. The t..."
- 10:0610:06, 29 January 2014 diff hist +1,132 N MTA:Eir/FileSystem/translator/createDir Created page with "__NOTOC__ This function creates a directory inside of a translator directory hierarchy. ==Syntax== <syntaxhighlight lang="lua"> bool translator.createDir ( string dirPath ) </syntaxhighlight> ==Argument..."
- 09:5609:56, 29 January 2014 diff hist 0 MTA:Eir/FileSystem/createFilesystemInterface No edit summary
- 03:0503:05, 29 January 2014 diff hist +86 MTA:Eir/Classes No edit summary
- 03:0103:01, 29 January 2014 diff hist +1,110 N MTA:Eir/FileSystem/translator/exists Created page with "__NOTOC__ This function checks whether a specified file exists on a MTA:Eir FileSystem translator. ==Syntax== <syntaxhighlight lang="lua"> bool translator.exists ( string filePath ) </syntaxhighlight> ..."
- 02:5102:51, 29 January 2014 diff hist +1,459 N MTA:Eir/FileSystem/translator/open Created page with "__NOTOC__ This function opens a link to a file instance on a given MTA:Eir FileSystem translator. Using a file link, you can write and/or receive data from filesystems. ==Syntax..."
- 02:3302:33, 29 January 2014 diff hist +3,808 N MTA:Eir/FileSystem/createZIPArchive Created page with "__NOTOC__ This function creates a .zip archive inside of the given MTA:Eir file/stream class and returns its translator handle. The archive will not be written into the stream un..."
- 01:4201:42, 29 January 2014 diff hist +2,117 N MTA:Eir/FileSystem/createArchiveTranslator Created page with "__NOTOC__ This function creates a FileSystem archive translator. A FileSystem archive translator is a virtual FileSystem that grants access to the contents of archives. You can b..."
- 01:2101:21, 29 January 2014 diff hist +44 MTA:Eir/FileSystem/createTranslator No edit summary
- 01:2001:20, 29 January 2014 diff hist +12 MTA:Eir/FileSystem/createTranslator No edit summary
- 01:2001:20, 29 January 2014 diff hist +1,713 N MTA:Eir/FileSystem/createTranslator Created page with "__NOTOC__ This function creates a FileSystem translator. A FileSystem translator represents a directory on a real or virtual filesystem. Through translators you get access to the..."
- 00:5000:50, 29 January 2014 diff hist 0 MTA:Eir/FileSystem/createFilesystemInterface No edit summary
- 00:4500:45, 29 January 2014 diff hist +1,116 MTA:Eir/FileSystem/createFilesystemInterface No edit summary
- 00:3600:36, 29 January 2014 diff hist +739 N MTA:Eir/FileSystem/file/functions Created page with "==FileSystem File Functions== *read *readShort *readInt *[[MTA:Eir/File..."
- 00:3500:35, 29 January 2014 diff hist −701 MTA:Eir/FileSystem/functions No edit summary