[UNMAINTAINED] The Jawa Toolbox - Alpha - Update v1.22 - 15.07.14

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#1
Wanted to release this now before I go semi inactive for a while. It's missing quite a bunch, but it's enough to experiment with, I think.

The GUI's are sort of a mess to a degree for now, I aimed to mainly make them present as much information as possible in order to make experimentation easier and faster. This is an experimental build, so be warned if it appears overwhelming.

The labels for values are mainly generic to the fact that I haven't experimented/documented what everything does, I simply don't have the time at the moment, but I'll gladly add them in, you guys post feedback/documentation you've gotten through experimentation.

Things that aren't in but planned for the very near future:

  • Copy/Cut/Paste Contextmenu's for all TreeViews.
  • Update check and prompt if there is one to download.
  • camera/ .IFF Editor
  • .TRN Header/Family/Layer Editor
  • .SAT Editor
  • .LOD Editor
  • .STF Editor

Download is pulled, download Sytner's Iff Editor
Note: .TRE stuff isn't enabled.
This version of the tool is officially unsupported, currently rewriting it.

List of currently covered files:
  • .APT - Appearance File
  • .CDF - Client Data File
  • .CEF - Client Effect File
  • .EFT - Effect File
    • SCAP v04-v07 - PreCU
    • SCAP v08-v09 - CU+
    • Shader (Data) v08-v09 - PreCU
    • Shader (Data) v10 - CU+
  • .IFF (Datatable) - Datatable File
  • .LMG - LMG File
  • .PRT - Particle File
    • v06-v13 - PreCU
    • v14 - CU+
  • .SHT - Shader File
  • .SND - Sound File
  • .SPR - Sprite File
  • .SWH - Swoosh File
    • v00 - PreCU
    • v01 - CU+
  • .WS - World Snapshot File

Currently in progress:
  • Object .IFF (70% done)


This is my equivalent to a 'Hello Word' program, first attempt at coding anything ever in my life, so expect bugs and oddities. Please, if you have feedback on anything at all, let me know so I can improve on what I've made!

If you experience in game crashes, Jawa Toolbox crashes or errors, something not working, etc, please let me know and I'll look into it so I can fix it. But please, provide me the filename of whatever you've edited and the error (if there is one), or what you did before it happened. The more information I receive, the faster I'll be able to track it down and fix it.








_______________________________________​


Update v1.2 - 15.07.14

  • New

    • General
      • Fixed a critial bug in one of my Functions, regarding Integers. (Thanks to Uli!) All Integers should now be 100% correct.
      • Save Dialogs now contains the filename of the currently opened file, in the filename Textbox.

      File Specific
      • .DT IFF Editor.
        • You can now Copy/Cut/Add/Paste between multiple Datatables.
        • You can now edit the Default Value of a Column (Right click on a Column Header > Edit Column)
        • Added a 'none' option to 'v' type DropDowns.
        • Added a minimum size for the Window.



    Fixes/Changes

    • General
      • Made it so the Main window can only be called once. You can still open multiple Editors and files.

      File Specific
      • .CEF
        • Fixed various Open and Save bugs, .CEF files should now save correctly.
        • Fixed the 3 bytes not showing up in the Textbox.
        • Fixed Checkboxes and the Version Dropdown not being checked/changed when you opened a file via File Association.
        • Changed it so files can be saved without .PRT or .SND chunks.
      • DT .IFF
        • Fixed a rare crash on certain files (Error due to wrongly reading the default value).
        • Fixed the DTIIFORM size integer.
      • .EFT
        • Fixed a bug where two extra blank Nodes would get added when you opened a file via File Association.
        • Fixed a wrongful "You need to add an item first." popup that prevented being able to save.
      • .LMG
        • Made the Window resizable.
        • Fixed the File Extension label from ".msh" to ".mgn"
      • .PRT
        • Fixed a bug where an extra blank Node would get added when you opened a file via File Association.
      • .SHT
        • Fixed the TXM version not being set when you opened a file via File Association.
        • Fixed the Texture Checkbox not enabling/disabling the textbox.
        • Changed it so the Texture Checkbox is enabled as default.
      • .SND
        • Fixed various Open and Save bugs, .SND files should now save correctly. Note: There is still some unexplainable FORM length fuckup with the 0001 chunks, it's typical SOE. Saves should work, going to leave it as is for now.
      • .SWH
        • Fixed the way files are read, should now load all files correctly.
        • Fixed Checkboxes and the Version Dropdown not being checked/changed when you opened a file via File Association.
        • Fixed the Window title being wrongly ladled as '.APT' when a file is open.
      • .WS
        • Fixed the File Association not opening the .WS Editor.
        • Fixed Object .IFF links not saving after having been changed.
        • Fixed an empty string being added to the OTNL chunk.
        • Fixed 'Cell' nodes receiving the wrong OTNL string.
        • Fixed nodes being marked green without having been changed.
        • Changed the default X axis for 'Cell' items to 1 from 0 (Based on all the other original Cells).
        • Fixed the structure of nodes (Thanks to Sytner!), 'Scale' removed (I had the wrong documentation), Cell ID added. Axis should now be correct, too.
        • Fixed Cells not having a Cell ID.
        • Fixed certain .WS files giving an error at load.
        • Fixed a rare bug created wrong FORM lengths (1-2 per file) on some .WS files getting saved.
        • Switched the Y and Z values around on Position, it is now XZY, just as you see on the in game compass.
 

Tonberry

Administrator
Administrator
Aug 30, 2010
372
0
0
www.modthegalaxy.com
#3
RE: The Jawa Toolbox - Alpha v1.0

Very much looking forward to seeing what people come up with using this. I know I'll be abusing it as much as possible. :p

Excellent work as always.
 

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#4
RE: The Jawa Toolbox - Alpha v1.0

<3

Yeah me too, hope to get some feedbacks and some error messages. Pretty positive I screwed up somewhere. Hope some people discovery new ways of stitching things together that easily achievable (or 'possible') before.
 

rosuto

New Member
Aug 1, 2011
69
0
0
#5
RE: The Jawa Toolbox - Alpha v1.0

Found a simple user interface error - When opening an LMG file and pushing the down arrow when no files are selected it gets angry at you. Should be easy to fix. Keep up the good work

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: item
at System.Windows.Forms.ListBox.ObjectCollection.Insert(Int32 index, Object item)
at TheJawaToolbox.CreateLMG.btn_fnDown_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)
 

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#8
RE: The Jawa Toolbox - Alpha v1.0

rosuto said:
Found a simple user interface error - When opening an LMG file and pushing the down arrow when no files are selected it gets angry at you. Should be easy to fix. Keep up the good work

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: item
at System.Windows.Forms.ListBox.ObjectCollection.Insert(Int32 index, Object item)
at TheJawaToolbox.CreateLMG.btn_fnDown_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)
Thanks!

Good catch, didn't know the listbox's updown was broken too. I'll try to fix some stuff today if I find the time. I'll also add in unique folder locations for everything, too. Should make it easier to use multiple tools at once then. Wanted to add that in before I released, but totally forgot. I want to add file association (double click on file > open correct tool with file loaded), but never done that before, so I'll need to see.
 

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#9
RE: The Jawa Toolbox - Alpha v1.0

Had a little bit of time to work on the Datatable Editor, it's nearly done and hugely upgraded/fixed over what's in the treExplorer (Added the information that treExplorer ignored). Feels less sluggish too, but got a slightly longer load due to extra stuff, it's still fairly fast though.

Might have time this week to finish the ObjectIFF editor, too, so I might do an update soon with those two and some fixes, such as the error above.

Might do the .WS editor if I have time, but we'll see.
 

rosuto

New Member
Aug 1, 2011
69
0
0
#10
RE: The Jawa Toolbox - Alpha v1.0

Sweet, now that you are making all these new and awesome things I'm starting to feel the urge to maybe do something. Maybe make another house or rip the sht creator out the msh exporter since you have a much better version.
 

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#11
RE: The Jawa Toolbox - Alpha v1.0

Haha, I'm glad I'm getting some people more interested in the scene again!

You could just make a full fledged .SHT editor in the script, too, instead of rippin it out. I can give you my documentation. :p

Or work on that .mgn, I know barely anything model structure related, but I'll help out where I can. No one ever has done the blend modes fully, so you'd be the first.

Hop on IRC sometime if ya wanna chat!
 

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#12
RE: The Jawa Toolbox - Alpha - Update v1.1 - 05.10.14

Updated the OP.

Update v1.1 - 10.05.14

  • New

    • General
      • New custom icon (Temporary).
      • Ability to load a file into the tool by double clicking on it. (You need to set The Jawa Toolbox as the default program for the file first, in the File Properties)
      • Individual directories for all Save/Open prompts.
      • Option to Copy/Paste node data and Copy/Cut/Add/Remove whole nodes in some TreeViews via right click Contextmenu. (An annoying bug is preventing me to bring it to all, at the moment)
      • Different colors for new or modified TreeView nodes. Dark Red: New, Green: Modified, Orange: Copied Data, Purple: Copied (New) Node

      File Specific
      • .WS Editor.
        • .WS Nodes are split into different categories for easier access.
        • Child/Cells have their own TreeView.
        • Ability to import a .POB that automatically fetches the CRC and, if enabled, the Children/Cells, too.
        • Modified Nodes are marked green, new Nodes are marked red.
      • Datatable .IFF Editor.
        • All cell types are now supported and displayed correctly. (NGE tables load correctly now, CRC Cells, DropDown lists instead of Integers)
        • Loads additional information that was missing in the TreExplorer. (DropDown lists content, 'Default' values when a new row gets created))
        • Rows and single Cells can be copied by Context Menu or Shortcut.
        • Rows can be deleted.
        • New Columns can be created.
        • Column Header names can be edited.
        • Note: The 'Find' function is currently not working.


    Fixes

    • General
      • Fixed the Up/Down control for listboxes.
      • Fixed the Up/Down for TreeViews.
      • Fixed the last edit/control not saving (But it needs verification, I haven't tested it thorougly).
      • Added missing error prompts if you try to save files that use a TreeView, which is empty.

      File Specific
      • .CDF
        • Fixed the "Wearable Shared Color Index" not showing up.
        • Fixed the 0000 node load.
        • Fixed the CSSI node error.
        • Fixed the "Add new" Child node.
        • Fixed the "Add new" Child 2 node.
      • .PRT
        • Fixed 'Particle Texture' integers not saving.
        • Fixed 'Particle Texture' not saving when Textbox was empty.
      • .SHT
        • Fixed v02 load and save.
        • Added a missing control box (TSNS) for v02.
 

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#17
RE: The Jawa Toolbox - Alpha - Update v1.1 - 10.05.14

Thanks. :)

Post feedback when ya can! I'm sure there are a bunch of bugs. Speaking of which...

All easy fixes, so I'll post a hotfix soon, maybe this month, depending how much time I have, along with a couple other minor features.

Currently known bugs

  • .CEF
    • Checkboxes don't get checked on file load (To enable chunks/controls)
    • Version won't get set/changed on load, based on file version

    .IFF (Datatable)
    • Default values don't get added when you create a new row (I think)
    • No 'None' Option for a certain type of DropDown list.

    .EFT
    • When a file is opened through double click/File Association, 2 blank extra nodes (Dark Red) gets created.
    • Texture checkbox doesn't disable/enable the textbox

    .PRT
    • When a file is opened through double click/File Association, one blank extra nodes (Dark Red) gets created.

    .SHT
    • Version doesn't get set on load, causes wrong save if version 02.

    .SND
    • One type of .SND seems to throw an error/gets read wrong.

    .SWH
    • One type of .SWH seems to throw an error/gets read wrong.

    .WS
    • When you load a file via double click/File Association, the .WS window doesn't appear.
 
Dec 15, 2012
61
1
8
#18
RE: The Jawa Toolbox - Alpha - Update v1.1 - 10.05.14

Creating a new .WS, inserting a few objects and saving produces a 1KB file that neither TRE explorer nor the client reads from properly it would seem.
 

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
1,003
9
38
27
Magna Germania
#19
RE: The Jawa Toolbox - Alpha - Update v1.1 - 10.05.14

Did you add the .iff names to each node?

I just saw that if you add 2 nodes, for example and don't add any .iff, that TRE Explorer doesn't know what to do with it because it looks for the ONTL list, which doesn't exist. If I set .iff's to them, I can open them without a problem.

P.S. Did you ever get the regular edits to work? You PM'd me about crashes ages ago on PSWG, but never replied to my reply with more information.

Edit:

Just found another bug, for some reason the second nodes .iff doesn't get saved then. This might or might not affect .iff changes in general, unsure right now, would need to look at the code.

I think I know what the problem is, but I'll look into it next week.
 
Dec 15, 2012
61
1
8
#20
RE: The Jawa Toolbox - Alpha - Update v1.1 - 10.05.14

Timbab said:
Did you add the .iff names to each node?

I just saw that if you add 2 nodes, for example and don't add any .iff, that TRE Explorer doesn't know what to do with it because it looks for the ONTL list, which doesn't exist. If I set .iff's to them, I can open them without a problem.

P.S. Did you ever get the regular edits to work? You PM'd me about crashes ages ago on PSWG, but never replied to my reply with more information.

Edit:

Just found another bug, for some reason the second nodes .iff doesn't get saved then. This might or might not affect .iff changes in general, unsure right now, would need to look at the code.

I think I know what the problem is, but I'll look into it next week.
I have not gotten regular edits to work either. I am beginning to wonder if there is an actual but subtle difference between 14.1 snapshots and NGE snapshots.