Quantcast

Jump to content

» «
Photo

fastman92 IMG Console

10 replies to this topic
fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#1

Posted 12 September 2012 - 07:01 PM Edited by fastman92, 12 May 2013 - 07:39 AM.

fastman92 IMG Console


This open-source tool, easy to use IMG Console allows to create/modify GTA IMG archives with simplicity.
And two modes are available: interactive mode and script mode.
In interactive mode you can type commands from keyboard and execute in command prompt.
Script mode will be useful for modders who want to create automatic modification of IMG archives and depends on script file.
An application works with more one version of IMG archives:

- version 1 (GTA III, GTA VC, GTA III Mobile)
- version 2 (GTA SA)

IMG archive of max 8 terabytes is supported.
- - - - - - - - - - - - - - - - -

Download
http://www.mediafire...49he7q4i6tgf246

***** Usage (after you installed mod)
To run application in interactive mode just run fastman92ImgConsole32.exe/fastman92ImgConsole64.exe without any parameters.
Type -help to get list of available commands.
It's also possible to run script by specifying additional parameter as in example:
fastman92ImgConsole.exe -script "myScript.txt"

***** Script syntax:
Each command is preceeded by '-' (dash)
Empty lines will be skipped.
// is used to comment line.

**** Example of script:
-open "test.img"
// -import "test.txt"
-import "my.txt"

-rename "my.txt" "look.txt"
-close

***** IMG limits:
128 MB - max filesize
8 TB - max .img archive size

IMG class used in tool can reach these limits with no errors.

**** Note:
C++ programmers may take (GTASA_CRC32.h, GTASA_CRC32.cpp, IMG.h and IMG.cpp) and use these files in newly compiled programs.

**** Changelog
** 1.9
- added new commands (rebuildIfArchiveWasModified, rebuildIfMoreUselessSpaceThanValueOrArchiveWasModified)
- design of IMG class was a bit modified

** 1.8
- added new command -printString
- fixed RootPath problem in script mode, file paths are relative to the directory with executed script
- IMG class recreated with std::list for ListOfEntries instead of indexes, it's better for programmers

** 1.7
- fixed crash when ImportFromDirectory command was executed on existing, but empty directory

** 1.6
- line numbers are displayed in case of command error in script mode
- application has got a console title
- implemented proper handling of binary IPL files, they're dependant on each other when adding/replacing
- fixed FindFirstEmptySpaceForFile, can return offset before the first file now

** 1.5
- fixed error with offsets occuring when there existed files of 0 length in IMG archive
- fixed crashing when command name was unexpectedly too long (buffer overflow)
- fixed comments, they work now, use // two slashes at the beginning of line
- added new command: -importFromDirectory "path\\to\\directory"
- added new command: -getAmountOfUnusedSpace
It imports all files from specified directory.

** 1.4
- fixed export command, second argument is directory path now.

** 1.3
- delete & rename commands crashed a console when specified file in IMG archive did not exist. Fixed.

** 1.2
- export command crashed a console when specified file in IMG archive did not exist. Fixed.

** 1.1:
- added -rebuild and -rebuildifmoreuselessspacethan commands
- added line numbers in script mode
- comments were introduced and require two slashes //
- empty lines in script file are being skipped now
- fixed RebuildArchive function in IMG class
- fixed GetSizeOfUnusedSpace function in IMG class

**** Thanks to:
Function-X for creating EXE icon.
JF-Mir2 for letting me to fix an error with incorrect DLLs for 64-bit Windows, when Microsoft C++ Reditributable is not installed
seggaeman for noticing error in help, unneccessary dashes before strings.
ThirteenAG for telling me of crashing bug when importing from existing, but empty directory.

Copyright © 2012, fastman92
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

***** Informations:
Date of release: 12-05-2013 (d-m-Y)
Author: fastman92
Version: 1.9
For: GTA San Andreas
E-mail: [email protected]
Visit fastman92-page.tk

ThirteenAG
  • ThirteenAG

    Foot Soldier

  • Members
  • Joined: 29 Dec 2008
  • None

#2

Posted 12 September 2012 - 11:07 PM Edited by ThirteenAG, 12 September 2012 - 11:10 PM.

cookie.gif cookie.gif cookie.gif
Damn, where were this tool when i tried to organize my 3.96gb gta3.img with IMG manager. Succeed though, splitted it with IMG manager 1.5, then organized with spark and img organizer, rebuilded all archives with img manager 2.0beta. One hell of a quest. But it's done and seems working, so... requesting IMG Organizer for GTA 3 and VC smile.gif

headmetalbanger
  • headmetalbanger

    A Dose of Metal you need!!!

  • Members
  • Joined: 11 May 2012
  • Unknown

#3

Posted 12 September 2012 - 11:47 PM

Cool, thanks 'fastman92', (respect) sly.gif

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#4

Posted 14 September 2012 - 09:35 PM

I released fastman92 IMG Console 1.1, there are many fixes and added new possibilities.

direstraits
  • direstraits

  • Feroci Racing
  • Joined: 08 Mar 2011
  • Portugal

#5

Posted 17 September 2012 - 05:59 PM

Now i use this for modify VC because of the multiple replace function.

Good work. icon14.gif

5x cookie.gif

ThirteenAG
  • ThirteenAG

    Foot Soldier

  • Members
  • Joined: 29 Dec 2008
  • None

#6

Posted 20 September 2012 - 11:08 PM

I noticed a bug:
CODE
-open "models/gta3.img"
-export "null.dff" "models/exported/null.dff"

If null.dff doesn't exist, console just crashes. gta3.img v.1 from GTA3.

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#7

Posted 22 September 2012 - 11:53 AM Edited by fastman92, 22 September 2012 - 12:01 PM.

Thanks for the info.

fastman92 IMG Console 1.2 has been released.
- export command crashed a console when specified file in IMG archive did not exist. Fixed.

Concerning the IMG Organizer for GTA 3 and GTA VC, there is one more thing to do:

IMG & Stream Limit Adjuster for GTA VC.
Until breaking the limitation of amount of IMG archives, only 8 IMG archives may be loaded in GTA VC. One archive is always loaded - gta3.img
By now your IMG organizer shouldn't create more than 7 additional archives and put names in gta.dat, otherwise game will crash.

IMG & Stream Limit Adjuster is only available to GTA SA at the moment.

direstraits
  • direstraits

  • Feroci Racing
  • Joined: 08 Mar 2011
  • Portugal

#8

Posted 03 October 2012 - 07:29 PM

Can you please add the following command?
CODE
-importfromfolder "C:\\Test"

It basically import all files from a folder to IMG archive.

One last thing, How comment a line? I tried this:
CODE
-open "gta3.img"
//This will import hermes
-import "hermes.dff"
-import "hermes.txd"


But it says :
CODE
'-' expected, but '/' found.

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#9

Posted 07 October 2012 - 06:58 PM

direstraits, thanks for reply.

fastman92 IMG Console 1.5 released:

- fixed error with offsets occuring when there existed files of 0 length in IMG archive
- fixed crashing when command name was unexpectedly too long (buffer overflow)
- fixed comments, they work now, use // two slashes at the beginning of line
- added new command: -importFromDirectory "path\\to\\directory"
- added new command: -getAmountOfUnusedSpace
It imports all files from specified directory.

HackMan128
  • HackMan128

    alovelyday

  • Members
  • Joined: 09 Jul 2006
  • None
  • Best Map 2013 "ViceCityStories PC Edition"

#10

Posted 15 October 2012 - 09:03 PM

jeez, everywhere "fastman92" mercie_blink.gif
Anyway, isn't too much these IMG editors?

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#11

Posted 15 October 2012 - 10:43 PM

QUOTE (HackMan128 @ Monday, Oct 15 2012, 22:03)
jeez, everywhere "fastman92" mercie_blink.gif
Anyway, isn't too much these IMG editors?

if you're about stuff then all of or projects below are different projects. Made for different purpose:
IMG C++ class: for programmers, to include in project solution.
Native IMG Builder - build IMG archive from directory structure like probably R★ did.
farman92 IMG Console - use commands to operate on archive.

IMG stream & limit adjuster - increase limit on number of IMG archives that a game can load.
IMG Organizer - splits big game archives into small archives with structure inspired by GTA IV.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users