IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

This section is for obtaining help on creating and releasing tools

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (3) [1] 2 3   ( Go to first unread post ) Reply to this topicStart new topicStart Poll

 [REL] Yet another IMG Editor -- Spark

 
aru  
Posted: Friday, Jun 24 2005, 04:06
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




Since I'm not maintaining this software anymore... source code is now provided.

Source (GPL): here

A few things were started but never completed... including rebuilding. See spark.txt for the milestones I had. smile.gif

---

I know there are a couple of IMG editors out there... so why another one?
Well, a couple of reasons...

1. New files get added to the end of the IMG file, which means the archive will get bigger and bigger in size... until you rebuild it. But what happens to the space that was reclaimed from deleted files?
2. The concept of keeping the layout state of the archive in memory. What this pretty much means is that you should be able to add new files or delete files from an IMG file without worrying about (a) accidental overwrites of existing files, (b) accidental deletion of existing files. Unless you ask to save, nothing is saved.
3. Integration with other Windows programs... Drag and drop from Explorer (or even winzip/winrar) into a IMG file?

I have been writing a simple IMG editor (named Spark) that takes these factors into account. It's only for GTA:SA for now... it doesn't support the old archive format. As I haven't tested it as much as I would have liked to, and since it doesn't have all the features I want it to have, I'm just going to release it here as a beta.

Some Screenshots:

user posted image

user posted image

Current Features:

- User friendly interface
- Open, save, and create new IMG archives for GTA San Andreas
(older version of the IMG format from GTA3 and Vice City are not
supported currently)
- Sort files by name, offset or size.
- View files in a detailed view, list view or iconic view
(Note: Iconic view might be slow for large files such as gta3.img)
- Search for files in archive directly from the toolbar.
- Automatically reuses space left over from previously deleted files
reducing the need to rebuild archives.
- Maintians the layout state of the archive in memory allowing you
to add/remove/delete files without committing directly to disk.
Nothing is saved until you say you want it to be saved!
- Drag and drop support from and to Explorer, and any other program
that supports drag and drop of files.
- Some limits to prevent accidental drag and drop of the all the files
in the archive.

Some things that are not supported yet... but planning to add support for them soon:
- Association with .IMG files
- In-place archive rebuilding

Download Here

Source Code

Any suggestions, comments, etc are welcome smile.gif.

This post has been edited by aru on Saturday, Sep 12 2009, 20:06
PM
  Top
 

 
aad  
Posted: Friday, Jun 24 2005, 06:30
Quote Post


3d artist
Group Icon
Group: Members
Joined: Mar 15, 2004

nl.gif

Member Award




I never saw an build in txd viewer in an img tool so i would like that if you could make a small addon in this for viewing and browsing the txd files at the same time this time it will speed up searching for cool textures.
PMYahoo
  Top
 

 
satasha  
Posted: Friday, Jun 24 2005, 09:21
Quote Post


Rodent Boy
Group Icon
Group: Members
Joined: Apr 25, 2005

XXXXX



Sort by type would be helpful. Congrats on your prog!
PM
  Top
 

 
Cerbera  
Posted: Friday, Jun 24 2005, 14:06
Quote Post


Ben "Cerbera" Millard
Group Icon
Group: Members
Joined: Jun 22, 2002

en.gif

Member Award




Some very good ideas and a pretty design too! smile.gif

Presenting the contents of the IMG in an Explorer-like folder view is an inspired piece of interfacing. Making the right-click menu mimmick some of the features of Explorer and generally making this tool operate like an extended Explorer form could really help newcomers get an easy introduction to installing modifications. Things like "Arrange Icons > Name/Date/Modified/Size" and "View > Icons/List/Details" in the right-click menu would make this a fantastically easy tool to work with.

Not saving the file until the user selected Save or Save As... is a sorely missed feature. Would you be coding much of an Edit > Undo feature for this?

Looks like you are using C++ or C# perhaps? In VB6, the drag-drop code is handled by a pair of OLE (Object Linking and Embedding) events of the main form.
CODE
Private Sub Form_OLEDragOver(Data As DataObject _
, Effect As Long, Button As Integer, Shift As Integer _
, x As Single, y As Single, State As Integer)
On Error Resume Next 'very basic error handling

'Determine what is being dragged over the form:
If Data.GetFormat(vbCFFiles) = True Then 'data is file list:
   Effect = vbDropEffectCopy And Effect 'inform source of intentions
Else 'data is not file list:
   Effect = vbDropEffectNone 'inform source of intentions
End If

End Sub

Private Sub Form_OLEDragDrop(Data As DataObject _
, Effect As Long, Button As Integer, Shift As Integer _
, x As Single, y As Single)
On Error Resume Next 'very basic error handling
Dim i As Long 'used with looping
Dim FileItem As Variant 'used to loop through Data collection

'Prepare for operation:
Screen.MousePointer = vbHourglass 'change cursor
Call mnuViewData_Click(0) 'Standard Data view

'Test what has just been dropped onto the form:
If Data.GetFormat(vbCFFiles) = True Then 'data is file list:
   For Each FileItem In Data.Files 'loop through them all:
       'Test if this item is actually a folder:
       If FSO.FileExists(FileItem) = True Then 'valid file path:
           Call ReadFile(FileItem) 'open the file
           
           'Recover from operation:
           Me.Caption = "CFG Studio - [" _
           & FSO.GetAbsolutePathName(FileItem) & "]"
           Screen.MousePointer = vbNormal 'return cursor
           Exit Sub 'stop subprocedure here
       Else 'invalid file path:
           'do nothing
       End If
   Next FileItem
Else 'data is not file list:
   'do nothing
End If

'Recover from operation:
Screen.MousePointer = vbNormal 'return cursor

End Sub
That's the way I am using it. FSO is the "File System Object" scripting library. It's fairly readable and I always write lots of comments in my code, so you might be able to find equivalent events and commands in the language you are using?

Automatically detecting and supporting GTA3 and GTAVC IMG formats would be a real bonus for the modern modifying scene, since all three editions are still worked with by many people.

This post has been edited by Cerbera on Friday, Jun 24 2005, 14:15
Users WebsitePM
  Top
 

 
Jackington  
Posted: Friday, Jun 24 2005, 17:41
Quote Post


Rat
Group Icon
Group: Members
Joined: Feb 4, 2005

wa.gif

XXXXX



It dosent work cryani.gif cryani.gif cryani.gif cryani.gif cryani.gif cryani.gif cryani.gif cryani.gif .

This is the second img editing tool Iv tried and NONE OF THEM WORK!!!! cryani.gif cryani.gif

When I click on spark.exe, or open the program in any way, it says "application failed to initalize properly (this is a long number which I can't rememba) Click OK to terminate application"

What shall I do? Please help!

I am so angry.gif angry.gif angry.gif angry.gif at this because I cant get this, a single program, to initialize!!!
PM
  Top
 

 
Stretchnutter  
Posted: Friday, Jun 24 2005, 23:48
Quote Post


Also known as Racer_S
Group Icon
Group: Members
Joined: Jun 15, 2002

us.gif

Member Award




lol... i like your interface style aru, just likemy iRipper program, but more aimed toward just GTASA .... mine was designed for several titles with 'structured' archives... gtasa just has a huge list.. something my program cant handle too well tounge.gif

anyway, great job!
Users WebsitePM
  Top
 

 
aru  
Posted: Saturday, Jun 25 2005, 06:11
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




aad: I wrote up a quick TXD loader and a DXT decoder.

user posted image

Doesn't work with all the txd files yet... I'm going to fix up it first before releasing the update smile.gif

I had to decode the txd file over again since I couldn't find the txd specifications on the forum... it got deleted when the forum was prunned for archives... anyone still have a copy of it?

satasha: That shouldn't be a problem. I think I can add that.

Cerbera: Yup, I'm doing something very similar for drag and drop. It's written completely in C# though. GTA3 and VC will come on later... the current object model of the program is such that it's not such a big issue adding new formats. Undo... possible, but I would have to think about it.

Jackington: You probabbly need the .NET framework. Read the requirements section of the readme.txt file.

This post has been edited by aru on Saturday, Sep 12 2009, 20:05
PM
  Top
 

 
aru  
Posted: Saturday, Jun 25 2005, 22:58
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




New version... Added TXD Preview support plus a bit more. Here's the new features list:

Version: 0.9.2002

- Sort by file type

- "Arrange Icons By" menu in the View menu

- New "Explorer" view for previewing files inside archives

- Explorer preview support for San Andreas TXD files

- File association support (Manual association required)

For previewing TXD files, click on View -> Explorer. smile.gif

Download Here

PM
  Top
 

 
DiCanio  
Posted: Sunday, Jun 26 2005, 00:57
Quote Post


Foot Soldier
Group Icon
Group: Members
Joined: Jul 22, 2002

XXXXX



looking great
nice to be able to see TXDs

keep up the good work smile.gif
PM
  Top
 

 
Marklund  
Posted: Saturday, Jul 2 2005, 23:47
Quote Post


GTAStunter
Group Icon
Group: Members
Joined: Jan 28, 2005

sd.gif

XXXXX



cookie.gif

Now that's great!
How's it going with it? Would be awsome with a dff viewer in it.
Users WebsitePM
  Top
 

 
LeeDFXP  
Posted: Sunday, Jul 3 2005, 19:53
Quote Post


Snitch
Group Icon
Group: Members
Joined: May 31, 2004

be.gif

XXXXX



awesome job m8, gonna test it out now wink.gif
Users WebsitePMMSN
  Top
 

 
aru  
Posted: Monday, Jul 4 2005, 04:45
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




QUOTE (Marklund @ Jul 2 2005, 18:47)
cookie.gif

Now that's great!
How's it going with it? Would be awsome with a dff viewer in it.

I could... if someone can give me a file format description for the SA dff files.
PM
  Top
 

 
Vercetti Gangsta  
Posted: Monday, Jul 4 2005, 08:48
Quote Post


Li'l G Loc
Group Icon
Group: Members
Joined: Jan 12, 2004

nk.gif

XXXXX



Very nice job! Could you also do it VC & GTA3 compatible?
PM
  Top
 

 
YeTi  
Posted: Monday, Jul 4 2005, 08:55
Quote Post


S'up Bitches?
Group Icon
Group: Andolini Mafia Family
Joined: Mar 28, 2005

en.gif

Member Award




Cool good work. I'll try it out later.
Users WebsitePMMSNICQ
  Top
 

 
gtasanandreasmaster  
Posted: Monday, Jul 4 2005, 16:25
Quote Post


SAN ANDREAS !!!!!!!!!!&a
Group Icon
Group: BUSTED!
Joined: Jan 13, 2005

uk.gif

XXXXX



it aint workin for me cryani.gif
get this error

user posted image
PM
  Top
 

 
aru  
Posted: Monday, Jul 4 2005, 17:05
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




QUOTE (gtasanandreasmaster @ Jul 4 2005, 11:25)
it aint workin for me cryani.gif
get this error

user posted image

You need the .NET framework. Read the "Requirements" section of the readme.txt file.

Ways to get it:
- Windows Update (http://www.windowsupdate.com)
- Direct Download:
http://www.microsoft.com/downloads/details...&displaylang=en

PM
  Top
 

 
gtasanandreasmaster  
Posted: Monday, Jul 4 2005, 17:20
Quote Post


SAN ANDREAS !!!!!!!!!!&a
Group Icon
Group: BUSTED!
Joined: Jan 13, 2005

uk.gif

XXXXX



thx will this affect the way any of my other progs work?
PM
  Top
 

 
aru  
Posted: Tuesday, Jul 5 2005, 11:15
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




QUOTE (gtasanandreasmaster @ Jul 4 2005, 12:20)
thx will this affect the way any of my other progs work?

Shouldn't really... it's an official MS update.
PM
  Top
 

 
gtasanandreasmaster  
Posted: Tuesday, Jul 5 2005, 15:21
Quote Post


SAN ANDREAS !!!!!!!!!!&a
Group Icon
Group: BUSTED!
Joined: Jan 13, 2005

uk.gif

XXXXX



kk shud be no probs if it is a ms update
PM
  Top
 

 
Voodooman  
Posted: Friday, Jul 29 2005, 12:24
Quote Post


JUSTICE WARRIOR
Group Icon
Group: Members
Joined: Jul 28, 2005

ru.gif

XXXXX



Cool tool, and will be realy cool with embeded DFF viewer (maybe textured).
Thx again for console version.
And how about 2 recompile it using Visual Studio 6 to aboid framework adiction?
Users WebsitePMMSNICQ
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Pages: (3) [1] 2 3 

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG