About SIE

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: Sytner's Iff Editor 3

Arioch said:
Cant think of a better place to post this since it MAY be an issue with SIE... when I add (new) planets to the travel list, I get a charge of -1 credits (which does add a credit to my bank) coming and going to the new planets. I cant seem to avoid it, not sure why that is. it may be there is another list I need to add my planets to that Im not aware of, but as far as I can tell its just the travel.iff.

The other thing is that I STILL cannot get resources to spawn on new planets for some reason.. again it may be that Im not adding the planet to a list somewhere but no matter what I do to resource_tree.iff, they refuse to spawn. Thanks for any help on these issues theyve bugged me for a while, took a break from it and still cant find the fix. Thanks for anything you guys can help with.
Can you send me your travel.iff? I'm pretty sure I fixed any bugs in regards to that. Worst case, ask Lasko, he's worked with this before.

Second one seems to be server related, I'd assume.
 

Phoenix

Moderator
Staff member
Moderator
Joined
Sep 25, 2010
Messages
235
RE: Sytner's Iff Editor 3

Travel.iff should be only thing you have to edit.
Resource_tree.iff and also the lua for resource_manager.lua I believe are what you edit. might be a few other things. I'd have to look to be honest.
 

fortross

New Member
Joined
Aug 3, 2012
Messages
15
RE: Sytner's Iff Editor 3

Anyone good with .ans files? I need some advices to be able add animations unpacking to my tool
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: Sytner's Iff Editor 3

No editor for it at the moment, no.

We'll have an editor for it someday down the road though.
 

fortross

New Member
Joined
Aug 3, 2012
Messages
15
RE: Sytner's Iff Editor 3

Timbab said:
No editor for it at the moment, no.

We'll have an editor for it someday down the road though.
Well, i don't need editor right now, i just need clarify it's format to add algorithms to my tool , :D as for editor, we already have some kind of ones, thanx to autodesk or whatever, we just need to get data in and out :cool:
 

Waverunner

New Member
Joined
Nov 5, 2012
Messages
10
RE: Sytner's Iff Editor 3

fortross said:
Timbab said:
No editor for it at the moment, no.

We'll have an editor for it someday down the road though.
Well, i don't need editor right now, i just need clarify it's format to add algorithms to my tool , :D as for editor, we already have some kind of ones, thanx to autodesk or whatever, we just need to get data in and out :cool:
Not sure what you know already but I was researching into the ANS file a long time ago for one of my person projects. I don't do that much with SWG anymore outside of working on PSWG when I have the chance. Here's the notes that I have on it. It uses the Interchangable File Format structure so it consists of Forms and Chunks. Some of these chunks have propably already been RE'd so you should look around, but these are all the chunks and forms that makeup the animation files as far as I'm aware. Timbab and Sytner will know a lot more on the structure than I do, but here's what I grabbed from my old notes.

Code:
Form CKAT Structure (*.ans)
{
    Form 0001 (Version)
    {
        Chunk INFO
        {
            float fps
            short animationFrameCount
            short transformsSize
            short rotationChannelsSize
            short staticRotationsSize
            short translationChannelSize
            short staticTranslationsSize
        }
        
        Form XFRM
        {
            for transform in transforms
            {
                Form XFIN
                {
                    byte animatedRotation (true == 1 else 0)
                    short rotationChannelIndex
                    byte translationMask
                    short translationChannelIndexX
                    short translationChannelIndexY
                    short translationChannelIndexZ
                }
            }
        }
        
        Form AROT
        {
            for rotation in rotationChannels
            {
                Chunk QCHN
                {
                    short keyframesSize
                    // compressed x ?
                    // compressed y ?
                    // compressed z ?
                    
                    for keyframe in keyframes
                    {
                        short frame
                        int? unk // Not sure on this data type, could be a long or it could be another compressed value
                    }
                }
            }
        }
        
        Chunk SROT
        {
            for rotation in staticRotations
            {
                // Compressed again
                byte x
                byte y
                byte z
                Quaternion? rotationCompressed?
            }
        }
        
        Form ATRN
        {
            Chunk CHNL // n times translationChannelSize
            {
                
            }
        }
        
        Chunk STRN
        {
            for staticTranslation in staticTranslations
            {
                float staticTranslation
            }
        }
        
        // Not all *.ans have the remaining Chunks/Forms
        
        Form MSGS
        {
            Chunk INFO
            {
                int animations
            }
            // Data relating to animations is here, not sure on struct
        }
        
        Chunk LOCT
        {
            // Data relating to locomation states I believe, not sure on format
        }
        
        Chunk QCHN
        {
            // Looks like it's the same data structure as prior QCHN in the file
        }
    }
}
 

fortross

New Member
Joined
Aug 3, 2012
Messages
15
RE: Sytner's Iff Editor 3

What kind of compression has been used? same ZLIB as for TRE chunks?
 

Sytner

Administrator
Staff member
Administrator
Joined
Sep 18, 2010
Messages
426
RE: Sytner's Iff Editor 3

IMPORTANT

SWB has updated from MSVC2013 to MSVC2015, as such so has the dependency for SIE. Please get the x64 version from https://www.microsoft.com/en-gb/download/details.aspx?id=48145.

Please note also that .NET 4.5.1 or greater, not 4.5.0 is required. This may or may not have been the case previously.

VERSION 3.5.0.0

Happy new year all. A new SIE version to start us off for 2016. A lot of polish, changes in anticipation of future features and a few new toys as well. Thanks as always to Timbab for his work on this release.

Updated to version 3.5.0.0.
  • New Features
    • General
      • Added a more proper default size for floating forms (untabbed editors, etc). You can set your own default size via the "floatingFormSize" variable found inside the settings.lua.
    • Datatable Editor
      • Added the ability to export the datatable as a CSV file.
      • Added the ability to copy rows to the clipboard in CSV format. Current keybind: Ctrl+Alt+C
      • Added Find & Replace. Note: It'll only find and then replace whole string (String collumn) values, not parts of a string value. Current keybind: Ctrl+R.
      • Added the ability to copy cell content as text to the clipboard. Current keybind: Ctrl+Shift+C.
      • Added the ability to copy and paste integers, floats (Decimals) and text straight onto cells matching its type. Note: Pasting text decimal numbers slightly breaks if they have decimal commas, example: 3,5.
      • Added the ability to paste copied rows under the last selected row.Current keybind: Ctrl+Shift+V.
      • Added the ability to copy onto the empty blank bottom row (Both cells and an entire row).
      • Added two buttons that allow you to resize the column by column header width or cell width on the fly after the table has already been loaded.
    • File Search
      • Added a File Search pop up window to the repo, which can be found under 'Extras'. It allows you to either search inside certain variable fields inside certain file types by either matching text input or seeing if the variable contains that text input (It'll also list the found variable(s)), or list files that contain certain chunks, which might come in handy for files such as Client Data Files. Naturally, you can also open the found files straight from that window, copy the filename and the found variable(s).
      • Currently supported files and searchable variables:
        • Object Files (.IFF)
          • Appearance File
          • Portal Layout File
          • Client Data File
        • Client Data Files (.CDF)
          • Ambient Sound Files
          • Creature Sound Files
          • Interpolated Sound Files
          • Client Effect Files
          • Child Appearance Files
          • Child Object Files
          • Contains Ambient Sound Files
          • Contains Creature Sound Files
          • Contains Interpolated Sound Files
          • Contains Client Effect Files
          • Contains Child Appearance Files
          • Contains Child Object Files
          • Contains Wearables
          • Contains Light Objects
          • Contains Hardpoint Light Objects
        • Client Effect Files (.CEF)
          • Sound Files
          • Particle Files
          • Force Feedback Files
          • Contains Force Feedback
          • Contains Light
          • Contains Camera Shake
        • Datatable Files (.IFF)
          • String Cells
        • Mesh Files (.MSH)
          • Shader Files
        • Skeletal Mesh Files (.MGN)
          • Shader Files
        • Shader Files (.SHT)
          • Texture Files
          • Effect File
          • Contains Custom Texture Operations
          • Palette Files
        • Sound Files (.SND)
          • Audio Files
        • Sprite Files (.SPR)
          • Shader Files
    • IFF Editor
      • Added full undo/redo support.
      • Added keybindings to the FORM/Chunk treeview:
        • Ctrl+X - Copies and cuts the selected FORM/Chunk.
        • Ctrl+C - Copies the selected FORM/Chunk.
        • Ctrl+V - Pastes and adds the selected FORM/Chunk to either the bottom of the selected FORM, or in the location of the selected Chunk.
        • Delete - Deletes the selected FORM/Chunk.
        • F2 - initiates renaming of the selected FORM/Chunk.
      • Pasting nodes with a chunk selected inserts the new nodes above the current chunk.
    • Repository
      • Added the ability to copy either filename or the full filepath from a selected entry in the Repo browser.
      • Added the ability to open files that have dedicated editors to be opened with the default IFF Editor.
      • Added "repoFileSelectAutoplayAudio" as a setting for the repo pop up when you try to add a filename value.
      • Added SWB backend for extract is now threaded using the glorious Intel® TBB. On my machine I can now do a full pub14 extract in 20-30 seconds. All extract methods call this backend and multiple extract operations can be started at once, if you so wish.
    • Sound Editor
      • Added a missing Dropdown.
      • Added the ability to double click audio files in the listbox in order to play them.
    • WS Editor
      • Added the ability to manual edit IDs and ParentIDs. Be cautious!
      • Added cell preview to the renderer if a cell is selected. Very basic/temporary until the new renderer is in.
  • Fixes/Changes
    • General
      • Performance improvements.
      • Enabled all Object .IFF's to work with all preview renderers.
      • Fixed file association (Opening a file from Windows Explorer) for when SIE wasn't running.
      • Fixed key binding problems across all editors.
      • Fixed a problem with objects and nodes not being selected when a filter was applied in an object list view.
      • Fixed .SSA generation.
      • Fixed a bug that would incorrectly change some of the Editor tab names, including that of the Repo.
    • Datatable Editor
      • Changed the way row paste works, it now pastes over the selected rows versus inserting under the last selected row.
      • Fixed a problem with default values when creating a new column.
      • Fixed a bug when saving datatables with new bool columns and its default values.
      • Fixed a bug where the Save/SaveAs buttons didn't get properly enabled at times.
      • Fixed an error with the empty blank bottom row.
      • Fixed an issue and an error when you enter a wrong value into a CRC/Hex Hash cell. It now reverts back to the original value after the warning.
    • IFF Editor
      • Updated some of the visual aspects of the UI in some of the window pop ups to match the rest.
      • Changed it so the editor starts with a new file by default.
      • Changed it so templates no longer have to be applied to a chunk before creating a new chunk from template.
      • Changed it so Iff handling now uses the SWB backend - might be some teething problems but hopefully this will solve any lingering bugs.
      • Changed it so right clicking on a node to bring up the Context Menu keeps that node selected.
      • Changed it so when you delete a node, it selects the next node instead of the node's parent.
      • Changed the HexBox keybindings to:
        • Ctrl+A - Selects/highlights all bytes.
        • Ctrl+C - Copies selected/highlighted bytes.
        • Ctrl+V - Pastes bytes.
        • Ctrl+Shift+C - Copies selected/highlighted bytes as string, replaces '00' bytes with 'Space'.
        • Ctrl+Shift+V - Pastes text in its byte form, replaces any 'Space' characters with '00' bytes.
        • Ctrl+Alt+C - Copies selected bytes as a raw hex string.
      • Fixed a bug with string arrays in templates.
      • Fixed a bug where pasting a node would create a reference rather than a new node.
      • Fixed a bug relating to editing template values containing strings.
      • Fixed an error case with drag/drop.
      • Renamed "autoTemplateApply" in settings.lua to "iffAutoTemplateApply".
      • Renamed "autoTemplateNamingOn" in settings.lua to "iffAutoTemplateNamingOn".
      • Renamed "showCSharpHelper" in settings.lua to "iffShowCSharpHelper".
    • Repository
      • You can now only have a single repository window. This simplifies how your repository interacts with other editors which require it. You now have a primary repository defined by the lua scripts as before (these can now be switched in the main window). Any tree/toc you open in the window becomes a secondary repository, which takes precedence when fetching files over the primary repository.
      • Overhauled .TRE extracting and packing.
      • Updated the .TRE Era list with recent findings.
      • Updated 'Extract Directory' to extract all subfolders, too.
      • Changed it so the first node in the list gets selected when changing or applying filters and when selecting a new directory/subfolder.
      • Fixed a problem when trying to build unusually large .TRE archives.
      • Fixed a bug that prevented full File Chain Extraction in some cases. 
      • Fixed a crash when trying to load a repo .lua which contains missing .TRE/.TOC files.
      • Fixed some problems with file history.
      • Fixed a problem when repo .LUA lists were too long. 
      • Fixed a case where if you dragged a .TRE container onto SIE, it wouldn't instantly set the tab name.
      • Fixed an issue with some object files not showing up in the renderer.
      • Fixed an issue that broke correct file history extraction.
      • Fixed audio playback being stopped when closing a repo window.
      • Fixed a problem with the horizontal scrollbar not appearing when selecting an .inc, .ui or .txt file that has lines longer than the preview window.
    • Sound Editor
      • Fixed a bug that prevented saving changes on Dropdowns.
    • WS Editor
      • Changed how the OTNL chunk is generated.
      • Changed it so when you edit a node, it automatically gets updated visually in the big node list.
      • Changed it so the first node in the list gets selected when changing or applying filters.
      • Fixed a couple of .WS ID Rearranger bugs.
      • Fixed a bug that made pasted nodes share the same ID with its children.
      • Fixed a problem with the object path not being set correctly on the object filename editing window popup.
      • Renamed "radiusAroundSnapshotNodes" in settings.lua to "wsRadiusAroundSnapshotNodes".
      • Renamed "showRadiusAroundSnapshotNodes" in settings.lua to "wsShowRadiusAroundSnapshotNodes".
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: Sytner's Iff Editor 3

Happy new years, everyone! :)

4.0 is still on track, hopefully there won't be too much time between this one and that. It's close enough that we considered delaying this patch a bit further and including it in 4.0.

And as always, if you find any bugs, anything breaks or behaves oddly, please do let us know so we can try to fix it!
 

ilikenwf

Member
Joined
Jul 30, 2014
Messages
45
RE: Sytner's Iff Editor 3

Wow, this blows the other releases out of the water!

Nice work guys!

The speed is incredible, stability too...I haven't yet looked at the luas yet, but I'm assuming it would be fairly easy to setup a final cu lua filter as well?

I did have a few issues with my copy of the tre/toc history project but that could be related to hosting them on a network share.
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: Sytner's Iff Editor 3

Yeah toc history broke with the current set up, I'll need to upload new ones (They're already made).

Also, yep, you can set up a final CU filter too without too many problems.
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: Sytner's Iff Editor 3

Yeah, toc history broke with some of the repo changes, forgot to upload it prior to the release, but it should be up now. Please redownload the entire list for it to work with SIE 3.5.

Also, yep, you can set up a final CU filter too without too many problems.
 

Sytner

Administrator
Staff member
Administrator
Joined
Sep 18, 2010
Messages
426
RE: Sytner's Iff Editor 3

Updated to version 3.5.0.3.

  • New Features
    • Repository
      • Added config option "repositoryInTab" to the settings.lua which toggles whether the repoisitory window is seperate or in a tab.
  • Fixes/Changes
    • Datatable Editor
      • Fixed a critical bug that broke the save when the table contained a bool column with a default value.
      • Fixed default values being properly loaded and shown when editing a column.
      • Fixed a bug that caused issues when creating or editing a bool column's default value.
      • Fixed a problem with BitVector columns not changing its default value when one tried to edit it.
      • Fixed the Column Append and Edit window to properly resizing controls when you resize the window.
    • Repository
      • Fixed issue where previewing old versions of certain files would instead display the most recent version.
 

Halyn

That One Guy
Staff member
Moderator
Joined
Jan 11, 2015
Messages
257
Location
Empire in Flames
RE: Sytner's Iff Editor 3

Need help with troubleshooting. Just went from SIE 3.3.2, which worked fine, to 3.5.0.3, which won't launch.

EDIT: Missed the part about needing a different runtime. Downloading and installing now.
 

Andarai

New Member
Joined
Mar 24, 2013
Messages
28
RE: Sytner's Iff Editor 3

this it's just perfect.
To say somehting about some things i saw....sometimes when im editing big tables, rows are not well copied or in resources_tree for example, its hard to track because it auto order and sometimes misses the row you duplicate etc... minor things... or the thing there is an export button but no import thing.

But the tool itself it's really great!


PD: ok after several try's i need to say something is happening with database editor on win 7 x64 atleast here on my pc.
When i add a row copy/add it adds in a place where its not ok.

 I mean, i take a row in resource_tree.iff, yavinian domesticated milk i duplicate, its suposed to put under domesticated milk but no, it go at the bottom of the table. I know that because after adding several resources... just one and i dont know how... its in correct place, and its the only one i can see ingame -_-... the others simply dont appear and throw errors when im starting the server.

After see that i try to open with 3.5.0.0 ( im working with the last one 3.5.0.3) 

In 3.5.0.0 its nice because you do that and all its ok, but when i try to save crash... if i say continue the next row i add goes to the bottom like 3.5.0.3 so i think its a problem there ( i have all dependencies installed ) it might be my problem idk, just posting here fyi.

PD2: lol well opening with 3.5.0.0 save crashing, opening with 3.5.0.3 and now resources are in place. Something is happening for sure. like i need to do this steps to correct some table errors made the 3.5.0.3 version . The server when loading don't throw errors but, ingame in resource deed when i choose a place where it should be a resource the window lags as hell like is something wrong there... and then nothing. So as i say above i think or my pc has a problem with something, or the tool has some conflicts if was an expert xd i can say what is going on here. Need to clarify only happens on resource_tree.iff the others tables works like a charm :/


PD3: well ... im using with admin rights ... without it seems more stable. Also my fault was i had framework 4.5.2 not 4.5.1 , crashes still persist time to time, but now it seems to work without admin rights and saving exit ,entering saving. ( if not doesn't work well )
 

Timbab

Administrator
Staff member
Administrator
Moderator
Joined
Oct 6, 2010
Messages
1,057
Location
Magna Germania
RE: Sytner's Iff Editor 3

@Andarai
Hm, will need to look into some of what you've said. Will post back when I have.

Halyn said:
Are we now only able to copy/paste one row in a datatable at a time?
Unsure what you mean? Multi row copying works fine for me.
 

Andarai

New Member
Joined
Mar 24, 2013
Messages
28
RE: Sytner's Iff Editor 3

Yeah multirows isn't working for me.

I found a solution to my multisaving xd if i dont touch anything, just open the resources_tree.iff and edit things all ok, when i order something for class or something then the table mess up xd and then i need to reopen the resources_tree.iff. If not they will mess the iff file and ingame doesn't work.

I hope it helps my explanation xd
 
Top Bottom