Quantcast

Jump to content

» «
Photo

fastman92 IMG Console

33 replies to this topic
fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#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
  • Tomasak and Logofero like this

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#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

    ?

  • BUSTED!
  • 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
  • Contribution Award [Mods]

#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
  • 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

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#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
  • Contribution Award [Mods]

#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
  • 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
  • Contribution Award [Mods]

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

HM128
  • HM128

    alovelyday

  • Feroci
  • 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
  • Contribution Award [Mods]

#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.
  • erickesau likes this

Logofero
  • Logofero

    fERO

  • Members
  • Joined: 25 Nov 2014
  • None

#12

Posted 23 March 2015 - 05:33 PM

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


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#13

Posted 24 March 2015 - 02:42 PM

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.

Logofero
  • Logofero

    fERO

  • Members
  • Joined: 25 Nov 2014
  • None

#14

Posted 27 March 2015 - 10:26 AM

 

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 :)


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#15

Posted 27 March 2015 - 03:28 PM

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.

Concavax
  • Concavax

    Punk-ass Bitch

  • Members
  • Joined: 26 Dec 2013
  • None

#16

Posted 28 March 2015 - 01:39 AM

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?


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#17

Posted 01 June 2015 - 06:23 PM

New IMG console coming soon!

Expect a new functionality.

  • viruxe, DK22Pac, direstraits and 1 other like this

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#18

Posted 23 June 2015 - 04:18 PM Edited by fastman92, 23 June 2015 - 04:19 PM.

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/...img-console-2-0
  • miclin and Concavax like this

miclin
  • miclin

    old stager

  • Members
  • Joined: 22 Mar 2009

#19

Posted 24 June 2015 - 12:05 PM

nice work. 


cabron-jon
  • cabron-jon

    The Last Hero

  • Members
  • Joined: 12 Jan 2012
  • Russia

#20

Posted 4 weeks ago

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

 

c751ff4e1e62aae247170209f910ac4a.png


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#21

Posted 4 weeks ago

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.

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#22

Posted 3 weeks ago Edited by ThirteenAG, 3 weeks ago.

Tried to install GTA LC with 2.0, this happened:
JNyA1Xd.jpg

With 1.9 everything's fine.
  • fastman92 likes this

NcShane
  • NcShane

    Eat apple, aipao!

  • Members
  • Joined: 25 Dec 2013
  • China

#23

Posted 2 weeks ago

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

  • fastman92 likes this

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#24

Posted 2 weeks ago Edited by fastman92, 2 weeks ago.

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.

  • viruxe likes this

Tomasak
  • Tomasak

  • The Yardies
  • Joined: 04 Jan 2009
  • None

#25

Posted A week ago

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


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#26

Posted A week ago Edited by fastman92, A week ago.

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?

  • Tomasak likes this

inadequate
  • inadequate

    Midnight Emulator

  • Members
  • Joined: 11 Apr 2012
  • Unknown

#27

Posted A week ago

What is VCLF mod?

 

Vice City Leftovers Fix


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#28

Posted A week ago Edited by fastman92, A week ago.

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/...img-console-2-1
 

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

  • Tomasak likes this

Tomasak
  • Tomasak

  • The Yardies
  • Joined: 04 Jan 2009
  • None

#29

Posted A week ago Edited by Tomasak, A week ago.

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


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None
  • Contribution Award [Mods]

#30

Posted A week ago Edited by fastman92, A week ago.

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users