Jump to content

[REL|BIN/SRC|Beta] SparkIV


Recommended Posts

wow i didnt expect an import feature this fast smile.gif

 

crashes for me though, i run it, click open, then this:

 

 

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.MissingMethodException: Method not found: 'System.String System.Windows.Forms.OpenFileDialog.get_SafeFileName()'.  at bz.g(Object A_0, EventArgs A_1)  at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)  at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)  at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)  at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)  at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)  at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)  at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)  at System.Windows.Forms.Control.WndProc(Message& m)  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)  at System.Windows.Forms.ToolStrip.WndProc(Message& m)  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)************** Loaded Assemblies **************mscorlib   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.42 (RTM.050727-4200)   CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------SparkIV   Assembly Version: 0.4.0.0   Win32 Version: 0.4.0.0   CodeBase: file:///C:/Dokumente%20und%20Einstellungen/Administrator/Desktop/SparkIV-0.4.0/SparkIV.exe----------------------------------------System.Windows.Forms   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.198 (QFE.050727-1900)   CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.42 (RTM.050727-4200)   CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Drawing   Assembly Version: 2.0.0.0   Win32 Version: 2.0.50727.42 (RTM.050727-4200)   CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.For example:<configuration>   <system.windows.forms jitDebugging="true" /></configuration>When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.

 

wow i didnt expect an import feature this fast smile.gif

 

crashes for me though, i run it, click open, then this:

 

[snip]

Download and install .NET Framework 3.5 @ here. If you installed GTAIV on the computer you're running this on, you should already have .NET 3.5 as RGSC requires it.

hmm ive had rgsc installed but now i downloaded and installed it from ms and now it works, maybe rgsc doesnt install the whole thing? the rgsc .net installation is much faster than the ms one too.

 

either way, glad it runs now, great work icon14.gif

Updated first post with a new version (0.4.5).

 

New features include...

- Texture (*.wtd) preview and support for exporting textures

- Experimental Model (*.wdr) preview

- Double click/Press enter on a supported file to preview it

- Fixed bug in resource file segment size calculation when importing data in Resoursaur.

 

The Model preview is done using M$'s WPF/Avalon thing... not sure how well it works on the majority of computers out there, but we'll find out soon enough I guess.

 

Download link in first post smile.gif

 

Epic work aru, all working great. I see some weird textures with colours all mixed, looks corruption but I don't know what to say, maybe they're like that or something. Anyway, great work! the model preview works perfectly  biggrin.gif

Ooh.. which ones in particular?

 

 

@Millenia, yeah.. MW was almost about 2-3 years ago smile.gif

 

 

@Harmalarm... haven't figured out the texture assignment data yet, but we'll get there eventually.

Edited by aru
Epic work aru, all working great. I see some weird textures with colours all mixed, looks corruption but I don't know what to say, maybe they're like that or something. Anyway, great work! the model preview works perfectly  biggrin.gif

Ooh.. which ones in particular?

 

 

@Millenia, yeah.. MW was almost about 2-3 years ago smile.gif

 

 

@Harmalarm... haven't figured out the texture assignment data yet, but we'll get there eventually.

I find them in every wtd, they aren't spec maps or normal maps, just regular textures with all the colors a bit mixed up.

 

Here is a screeny of one wtd inside the Manhattan folder:

 

user posted image

@Jost_Vice... interesting... I guess it only happens for DXT1 textures. There must be something wrong with my decoder.

 

@mr.Dageron.. I'm not going to be spending time on the 360 version. I rather be spending it on something worthwhile that will eventually help the majority of the community. Modding the 360 version probably won't.

 

@FunGt... Only wdr files are supported for now. wft files are not supported and wdd files are not supported.

 

@City_Poke912... Nope, the vehicle models are wft files and can't be previewed currently. Their format is somewhat different from the wdr files.

 

@Hollaz... you must have been reaaaaally bored because that must have taken a while by hand smile.gif.

Since the release of SparkIV 0.4.5, I took the liberty to start a list of the content inside the IMG files.

Check it : http://www.gtaforums.com/index.php?showtopic=385483

 

It is only a basic list, I will complete it in the future. Don't hesitate to add your infos !

Thank you so much for this tool. It allowed me to unpack some audio data. I have some informations about the music format used in GTA IV.

 

I've used SparkIV to open LOADING.RPF file (package containing loading tunes used in the game). Now, I got this:

user posted image

 

I exported the highlighted file.

Then, I decided to investigate a bit. I launched Audacity (a sound editing program - really good one) and tried to open the exported file. I got an error about the file not being recognized by the program. Clicked OK, then used "Import RAW data" option. Selected the exported audio file, and I began experimenting with the audio format settings. After messing with the format settings, I was able to hear the actual music.

 

These are the settings I've used to listen to the track:

user posted image

 

The playback is messy a bit though. The file structure seems to be like this:

 

[few seconds of noise] + [first 10 seconds of stereo channel 1] + [first 10 seconds of stereo channel 2] + [next 10 seconds of stereo channel 1] + [next 10 seconds of stereo channel 2] ... ... ...

 

Thought it's interesting; I hope I helped a bit.

Edited by NonToXIC

Great start to the tool so far, looking forward to importing textures and not only exporting/saving them.

Is it possible to create an option where you set your IV directory and you mod folder to make multiple file swaps a little more fluid.

So when go click open it will jump to your IV directory and if you click on export or import it will automatically jump to your mod directory. Still having the drop down to selct others of course.

 

Love it so far, nice work.

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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