Difference between revisions of "X Archive Poison"
Jump to navigation
Jump to search
m |
|||
Line 2: | Line 2: | ||
| version = 1.1 | | version = 1.1 | ||
| author = [[User:xmen|xmen]] | | author = [[User:xmen|xmen]] | ||
− | | game = [[ | + | | game = [[GTA 4]] |
− | | genre = | + | | genre = library |
}} | }} | ||
− | '''X Archive Poison''' is free .net library for GTA IV devs. It modifies in a very secured way through plenty of code lines those validates each operation prior to do changes. This library also provide manually validation as well as user can disable auto-validation. Current version is support only [[ | + | '''X Archive Poison''' is free .net library for GTA IV devs. It modifies in a very secured way through plenty of code lines those validates each operation prior to do changes. This library also provide manually validation as well as user can disable auto-validation. Current version is support only [[IMG]] operations, next version may have [[RPF]] operations as well. |
=== Version 1.0 === | === Version 1.0 === | ||
Line 61: | Line 61: | ||
*#*'''Padding''' - ''int'' | *#*'''Padding''' - ''int'' | ||
*#*:get or set padding | *#*:get or set padding | ||
− | |||
* Class : '''XOutput''' | * Class : '''XOutput''' | ||
Line 87: | Line 86: | ||
*#*'''ExtractFiles(string[] FileNames, string destDirectory)''' - ''XOutput'' | *#*'''ExtractFiles(string[] FileNames, string destDirectory)''' - ''XOutput'' | ||
*#*:extract file(s) by passing their names | *#*:extract file(s) by passing their names | ||
− | |||
[http://www.megaupload.com/?d=GQY6CBXG Download] | [http://www.megaupload.com/?d=GQY6CBXG Download] | ||
Line 94: | Line 92: | ||
=== Tools Using This === | === Tools Using This === | ||
− | * [ | + | * [[X Mod Installer]] |
Revision as of 23:27, 3 February 2009
Current version: | 1.1 (!) |
---|---|
Developed by: | xmen |
Supported games: | GTA 4 |
Type: | library |
X Archive Poison is free .net library for GTA IV devs. It modifies in a very secured way through plenty of code lines those validates each operation prior to do changes. This library also provide manually validation as well as user can disable auto-validation. Current version is support only IMG operations, next version may have RPF operations as well.
Version 1.0
- Class : Archive_IMG
- Variables
- Table - IMG_Table
- object
- ArchivePath - string
- contains currently opened archive
- Table - IMG_Table
- Function(params) - return type, Description
- Add(string[] filePaths, bool doValidate, ProgressBar pb) - XOutput
- adds file(s) in currently opened archive, if any file is invalid it will not add
- Delete(string[] fileNames, bool doValidate) - XOutput
- deletes file(s) from currently opened archive, if any file not found it will not delete
- ExtractBytes(uint offset, int size) - byte[]
- returns byte[] read from currently opened archive, returns null if ArchivePath is empty
- Open(string ArchivePath) - bool
- returns true if the archive opened successfully else false
- Rebuild(int RequiredGap, ProgressBar pb) - XOutput
- rebuilds currently opened archive
- Rename(string[] oldNames, string[] newNames, bool doValidate, ProgressBar pb) - XOutput
- searches all elements in oldNames array and change with newNames, if any oldName not found, it will not rename
- Replace(string[] filePaths, string[] fileNames, bool doValidate, ProgressBar pb) - XOutput
- searches all elements in fileNames array and replaces with filePaths, if any fileName not found, it will not replace
- Validate_Add(string[] filePaths) - XOutput
- manual validation for adding file(s)
- Validate_Delete(string[] fileNames, string backupDir) - XOutput
- manual validation for deleting file(s), backupDir param can have a directory path for file(s) backup. Leave empty if no backup required
- Validate_Rename(string[] oldNames, string[] newNames) - XOutput
- manual validation for renaming file(s)
- Validate_Replace(string[] filePaths, string[] fileNames, string backupDir) - XOutput
- manual validation for deleting file(s), backupDir param can have a directory path for file(s) backup. Leave empty if no backup required
- Add(string[] filePaths, bool doValidate, ProgressBar pb) - XOutput
- Variables
- Class : IMG_Table
- Variables
- Items - List<IMG_TableItem>
- contain all items info
- ItemNames - List<string>
- contains all items/files names
- Items - List<IMG_TableItem>
- Function(params) - return type, Description
- GetIndexByName(string name) - int
- returns the index of found item through name, returns -1 if no match
- GetIndexByName(string name) - int
- Variables
- Class : IMG_TableItem
- Variables
- Size - int
- original file size
- ResourceType - ResourceType
- OffsetBlock - uint
- UsedBlocks - short
- IsResourceFile - bool
- Size - int
- Properties
- Padding - int
- get or set padding
- Padding - int
- Variables
- Class : XOutput
- Variables
- IsException - bool
- true if output had exception
- Message - string
- contains the output message
- OtherInfo - string
- contains the OtherInfo of output
- IsException - bool
- Variables
- Class : Decryptor
- Properties
- GTA4Path - string
- get or set GTA IV Application path directly, starts recursion until user provide a valid App path or cancel
- GTA4Path - string
- Function(params) - return type, Description
- GetGTAIVApp() - void
- get the GTA IV Application path from user, starts recursion until user provide a valid App path or cancel
- GetGTAIVApp() - void
- Properties
Version 1.1
- Class : Archive_IMG
- Function(params) - return type, Description
- ExtractFiles(int[] FileIndexes, string destDirectory) - XOutput
- extract file(s) by passing their indexes
- ExtractFiles(string[] FileNames, string destDirectory) - XOutput
- extract file(s) by passing their names
- ExtractFiles(int[] FileIndexes, string destDirectory) - XOutput
- Function(params) - return type, Description
Please write author name in credits if you are using it ;)