Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

      1. News
      2. Red Dead Online
      3. The Armadillo Inn
    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

fastman92

fastman92 IMG Console

Recommended Posts

fastman92

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

 

***** 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

Edited by fastman92

Share this post


Link to post
Share on other sites
ThirteenAG

cookie.gifcookie.gifcookie.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

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
headmetalbanger

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

Share this post


Link to post
Share on other sites
fastman92

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

Share this post


Link to post
Share on other sites
direstraits

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

 

Good work. icon14.gif

 

5x cookie.gif

Share this post


Link to post
Share on other sites
ThirteenAG

I noticed a bug:

 

-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.

Share this post


Link to post
Share on other sites
fastman92

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.

Edited by fastman92

Share this post


Link to post
Share on other sites
direstraits

Can you please add the following command?

 

-importfromfolder "C:\\Test"

 

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

 

One last thing, How comment a line? I tried this:

 

-open "gta3.img"//This will import hermes-import "hermes.dff"-import "hermes.txd"

 

 

But it says :

'-' expected, but '/' found.

 

Share this post


Link to post
Share on other sites
fastman92

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.

Share this post


Link to post
Share on other sites
KNN.

jeez, everywhere "fastman92" mercie_blink.gif

Anyway, isn't too much these IMG editors?

Share this post


Link to post
Share on other sites
fastman92

 

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.

Share this post


Link to post
Share on other sites
Logofero

Only good thing is why the program does not accept console commands are passed as arguments without file script.txt?

Example I want to unpack the model simple bat file created extract.bat it added text:

fastman92ImgConsole32.exe -open "C:\\Games\\GTA-SA\\models\\gta3.img" -export "bullet.dff" "bullet_backup\\" -close

But in reality, this design does not work. Disappointing..

Share this post


Link to post
Share on other sites
fastman92

Only good thing is why the program does not accept console commands are passed as arguments without file script.txt?

 

Example I want to unpack the model simple bat file created extract.bat it added text:

fastman92ImgConsole32.exe -open "C:\\Games\\GTA-SA\\models\\gta3.img" -export "bullet.dff" "bullet_backup\\" -close
But in reality, this design does not work. Disappointing..

 

Because IMG console doesn't support arguments like this.

Share this post


Link to post
Share on other sites
Logofero

 

Only good thing is why the program does not accept console commands are passed as arguments without file script.txt?

 

Example I want to unpack the model simple bat file created extract.bat it added text:

fastman92ImgConsole32.exe -open "C:\\Games\\GTA-SA\\models\\gta3.img" -export "bullet.dff" "bullet_backup\\" -close
But in reality, this design does not work. Disappointing..

 

Because IMG console doesn't support arguments like this.

 

Why not enable console commands, simplify and expand its mission. The more that is named console img.

No console commands - specifically?

 

PS: I like its functionality but lack of support in the first cmd complicates the task.

 

Thanks for your work, I like your application :)

Share this post


Link to post
Share on other sites
fastman92

 

 

Only good thing is why the program does not accept console commands are passed as arguments without file script.txt?

 

Example I want to unpack the model simple bat file created extract.bat it added text:

fastman92ImgConsole32.exe -open "C:\\Games\\GTA-SA\\models\\gta3.img" -export "bullet.dff" "bullet_backup\\" -close
But in reality, this design does not work. Disappointing..

 

Because IMG console doesn't support arguments like this.

 

Why not enable console commands, simplify and expand its mission. The more that is named console img.

No console commands - specifically?

 

PS: I like its functionality but lack of support in the first cmd complicates the task.

 

Thanks for your work, I like your application :)

 

Maybe in the future.

Share this post


Link to post
Share on other sites
Concavax

Hi! i make a post about this problem but didn't response... anyway.

 

I have a problem with this tool.

 

I make a video that explain the problem.

 

https://drive.google...iew?usp=sharing

 

Resume:

Img console dint work with skin.img. Can export/import the file but cant rebuild the archive.
Maybe i do something wrong?

Share this post


Link to post
Share on other sites
fastman92

New IMG console coming soon!

Expect a new functionality.

Share this post


Link to post
Share on other sites
fastman92

Version 2.0 released!

 

Changelog:

 

** 2.0, 23-06-2015

- added complete support of fastman92 GTA SA IMG archives. Supported all features like compression and encryption.

- added full support of GTA IV IMG archives.

 

Look -help for new commands.

 

fastman92_GTASA IMG format requires my limit adjuster installed and "enhanced IMG archives" enabled in .ini configuration.

 

 

fastman92 IMG console, download: http://fastman92.ml/index.php/10-fastman92-img-console-2-0

Edited by fastman92

Share this post


Link to post
Share on other sites
miclin

nice work.

Share this post


Link to post
Share on other sites
cabron-jon

Why is there no support for Windows x64? :catspider:

 

c751ff4e1e62aae247170209f910ac4a.png

Share this post


Link to post
Share on other sites
fastman92

Why is there no support for Windows x64? :catspider:

 

c751ff4e1e62aae247170209f910ac4a.png

You can use a 32-bit version.

I didn't make a 64-bit version because of ZLIB library that I couldn't afford to compile in 64-bit.

Share this post


Link to post
Share on other sites
ThirteenAG

Tried to install GTA LC with 2.0, this happened:

JNyA1Xd.jpg

 

With 1.9 everything's fine.

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
KELASHI

Maybe large archive support is broken. I tried to import a 4.41GB folder, but got a 4.00GB archive.

Share this post


Link to post
Share on other sites
fastman92

Maybe large archive support is broken. I tried to import a 4.41GB folder, but got a 4.00GB archive.

Thanks for the report. I tried the same and there's something to be fixed.

 

// Edit: I fixed the problem.

I used a DWORD type instead of QWORD in one function.

please wait for IMG console 2.1

 

 

Tried to install GTA LC with 2.0, this happened:

JNyA1Xd.jpg

 

With 1.9 everything's fine.

 

You have to create me files that will cause a crash.

 

Anyone, try a -hell command to fix the bugs. Should help.

Edited by fastman92

Share this post


Link to post
Share on other sites
George Costanza

Can I use your IMG Console in auto-instalator of VCLF mod. You name will be of course included in instalator

Share this post


Link to post
Share on other sites
fastman92

Can I use your IMG Console in auto-instalator of VCLF mod. You name will be of course included in instalator

please wait until the end of today. Then you can.

 

What is VCLF mod?

Edited by fastman92

Share this post


Link to post
Share on other sites
fastman92

Version 2.1 released!

Changelog:

** 2.1, 19-07-2015
- removed a useless debugging code when opening the IMG archive version 3
- bug with saving a list of files in IMG version 1 or fixed.
- bug with setting the default encryption and compression type for IMG formats that haven't these features, fixed.
- fixed 8 TB IMG archive support.
- added setArchiveMetadataEncryption command



Look -help for commands.

fastman92_GTASA IMG format requires my limit adjuster installed and "enhanced IMG archives" enabled in .ini configuration.


fastman92 IMG console, download: http://fastman92.ml/index.php/11-fastman92-img-console-2-1


Tomasak, now you can use IMG console for your project, but remember to download the latest version available.

Edited by fastman92

Share this post


Link to post
Share on other sites
George Costanza

Ok, thanks. Btw this tool is really cool! Unlike others img editors this one is working like charm

Edited by Tomasak

Share this post


Link to post
Share on other sites
fastman92

Ok, thanks. Btw this tool is really cool! Unlike others img editors this one is working like charm

Now it's working correctly as it should, has 100% (I hope) correct support of IMG archives, but has one disadvantage: it's a console application as the name implies.

You can also create script files.

I should make it GUI in the future.

Edited by fastman92

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.