HOME | DD

zareef — XPS ASCII Editor v1.9 [Tool]
Published: 2015-06-13 14:01:34 +0000 UTC; Views: 235666; Favourites: 242; Downloads: 0
Redirect to original
Description XPS ASCII Editor v1.9
This tool edits XNALara/XPS model files of ".ascii" format. It has a lame name, but I think it will do.
I originally created it to help me edit the model files, because I need to edit every model I port.. extensively... I thought I should share this tool in case someone needs it.
If you find any bug/error, please notify me.





Requirements:
- For Windows 8 and 10 users: nothing is needed. It should work right away.
- For Windows 7 and Vista: you need to install Microsoft .NET Framework 4.5

www.microsoft.com/en-us/downlo…



WARNING: This tool doesn't support the old meshes format, which only has the mesh name. The tool requires at least the render group and the name in order to load the mesh.


Download link is down below.







How to use:- First, open the ascii file you want to edit. The tool needs some time to load the model, it could take up to a minute depending on the file size, number of UV layers, etc.. but in average, it should take about 30 seconds (at least for most models I tested).
- When the model loads, there are a lot of things you can do. I split the user interface into 2 tabs:

1. Bones:This wasn't really my main concern. Because of this and my lack of knowledge about bone data in XPS (just being honest!), there are not many things to do here.

(Image from v1.8)

You can rename bones and edit their data directly in the corresponding text box if you know what you are doing. You should click "Save changes" button before you select another bone or your changes won't be saved (obviously!).
If you hide/unhide a bone using the button or use the rename button, you don't need to click "Save changes" button.
It is also worth noting that any changes you make won't be saved to the ascii file until you save the file yourself from File -> Save As (Ctrl+S).

Update: A "Rename" button was added in v1.1 so you can select and rename multiple bones at once. You can also hide/unhide multiple bone at once too.

Update 2: "Convert" button was added in v1.2 which allows you to rename all bones or selected bones based on a template. It is the same idea as my other tool; "XPS pose converter". It uses the same template format. You can also use XPS's BoneDict.txt templates (supported in v1.7 and above).


Update 3: "Template editor" was added in v1.6 which helps you create or edit templates for renaming bones (read above). You don't need to load a model file in order to use the template editor. You can type the bone names and their renames directly or load a model file and use the bone list to create the template.
You can also open an existing template and edit it, add items to it or remove items from it.
Starting from v1.7, the "Template editor" supports XPS's templates (BoneDict).
- To add a new line to the template, type the bone name which the template will look for, then the name to which this bone will be renamed, then click "Add" button.
- To edit an existing item in the template, select it from the list on the right, then click "Edit". Now make your changes in "Bone name" and "Rename to" text boxes then click "Save" button (it's the same "Add" button). If you wish to cancel, simply click "Edit" button once again or select a bone from bones list; or another template item from the template list on the right.
- Make sure you save your template before you close the template editor. To save it, go to "File" menu -> "Save As". You can save the template file in either "XPS ascii editor" template format or XPS template format (select from the "Save as type" drop down menu in the save dialog box).
To use the template to rename bones, use "Convert" function as mentioned above ("Bones" tab -> "Convert").

(Image from v1.6)

Update 4: "Parenting bones" was added in v1.8 where you can select a bone or a number of bones and link them to another bone. Simply select the bone(s) from the list on the left then select the bone to which this/these bone(s) will be linked and press "Link" button.
Warning: changing hierarchy may cause unwanted results, so use this function with care.






2. Meshes:This is where most of the functions of the tool are. You can do a lot of things.

(Image from v1.9)

- General:
Here you can change the selected mesh name, render group, specular level and bump map 1 & 2 repeater.
To change the render group of the selected mesh, simply type the number of the new render group in the related box. The texture types and order in the new group will be automatically set under "Textures" below.
You must click "Save changes" button before you select another mesh or your changes won't be saved.
Note: Of course you can rename several meshes at once, set the specular levels of several meshes at once and also change the render groups of several meshes at once. To do this, please refer to the "R.G. Editor" section for explanation.

- Textures
Here you can edit the textures of the selected render group. It is self explanatory.
You should also click "Save changes" button when you are done.
Note: You can edit the render group of the selected mesh directly in the text box under "R.G. Editor".

- "Delete" button:
This will delete the selected mesh. This is irreversible.

- "Reload mesh" button:

This will reload all the data of the selected mesh. To be more precise, it will load the last saved data of the selected mesh. For example, if you are not happy with the changes you made to the selected mesh, you can reload its original data by clicking this button (unless you already saved them using "Save changes" button). Also, if you make some changes, save them, then make more changes but you aren't happy with the new unsaved changes, use this button and it will load the latest saved changes.


- "Flip normals" button:

It flips the normals of the selected mesh, It autosaves the change to the normals only, so if you make other changes to the mesh, you need to press "Save changes" button. (Available in v1.3 and above)


- R.G. Editor:
This is short for "Render group editor"
You can edit the render group textures of the selected mesh directly by editing the text box on the top left. It is the only editable text box under this tab.

You can save the render group (number & textures) of the selected mesh to the "Saved RG list" so you can change the render group of other mesh(es) later with a single click.
To save the current RG to the list, simply click "Save ->" button. You will be prompted to select a name for the RG to be displayed in the list. The list displays the RG number and name.
You can save the list to a text file to be used later on. To save the current list, use "Save" button below it.
To load a previously saved list, click "Load" button and browse for the list file.
To remove an item from the list, select it and click "Remove" button.
If you select a RG from the list, a preview of this RG will be displayed in the box below "Change selected R.G." button.



To change the RG of the selected mesh with one of the saved RGs, simply select the desired RG from the list then click "Change selected R.G." button. You don't need to click "Save changes" button after this operation because they will be saved automatically.

Changing properties of several meshes at once:
1. To change the RG of several meshes at once, check "Select multiple meshes" box. A new mesh list will appear. Select the meshes you want to change their RG, select the RG you want to use from the "Saved RG list" then click "Change selected R.G." button. See the image below:


2. You can rename several meshes as well, either by replacing a specific part of the name or by using serial names (for example: Mesh 01, Mesh 02, etc).
With "Select multiple meshes" box selected, select the meshes you want to rename (as in the picture above) and click "Rename" button. This is the rename dialog box, I think it is self explanatory:


3. Finally, you can also set the specular levels of several selected meshes. To do so, select the meshes from the list (as above) and click "Set specular" button, enter the value, then click OK.


- Mesh data:
This tab only displays the vertices and faces data of the selected mesh. You can edit them directly from the related text box if you know what you are doing. Changes will be saved when you click "Save changes" button or when you do one of the operations that autosave the data (such as changing RG of several meshes).

- Mesh operations:
Here you can copy/paste a mesh or several meshes within the same model or among several models.

-"Copy" button saves the selected mesh to the "Saved meshes" list.
-"Paste selected" button pastes the selected saved mesh from the list to the current model.
-"Paste all" button pastes all saved meshes (in the list) to the current model.
-"Remove mesh" button removes the selected mesh from the "Saved meshes" list. It doesn't delete any meshes from the model. To delete a mesh from the model, use "Delete" button below "Textures" like I said before.
-"Clear list" button: well, I don't think I need to say anything here.

Example: You can use these functions to copy a mesh or several meshes from one model to another model. To do so, open a model, select the mesh you want to copy, go to "Mesh operations" tab and click "Copy" button. You can repeat this to copy several other meshes to this list.
Now open the model you want to copy these meshes to, go to "Mesh operations" tab and paste the mesh(es).

(Image from v1.5)
-"Merge" button: Merge function allows you to merge (combine) several meshes into one mesh only.
  You can assign only one render group to the new mesh (obviously). The tool shows you the render group(s) the selected meshes use and lets you choose one to apply to the new mesh.
  You can also use the option "Merge according to RG" which combines the meshes from selection which share the same RG (render group). For example, if you select 10 meshes, 3 of which use render group A, and the other 7 use render group B, you will get 2 meshes; the first of them (a combination of the 3 meshes) uses render group A while the second (a combination of 7 meshes) uses render group B.
  (Available in v1.5 and above)




-Macro:
If you have several models that have the same meshes (with the same names), for example if you have several models of a character that have the same face, hair and skin meshes, but only the costume is different, the macro function can be very helpful.
This function records all the changes you make to the mesh(es), such as changing names, RG, textures, specular levels, etc. You can change any property multiple time or change the properties of several meshes at once (as before) without worry. The macro will record any change you make.

(Image from v1.7)

To use this function, go to "Macro" tab and click "Record" button. You should see "Status: Recording..." in red. To stop recording, return to this tab and click "Stop" button.
If you need to record more changes after you clicked "Stop", simply click "Record" and the macro will resume recording.
Make sure to save the macro to a macro file after recording because the macro will be reset if you load another model. Anyway, you will be prompted to save the current macro if you try to open a new model file, so don't worry.
To run a macro, open a model file, then go to "Macro" tab, click "Run macro" button and select a macro file. The macro will take only a moment to make the changes recorded in the macro file to the current model. When it is done, it will ask you if you want to keep the macro open for recording further changes.
To delete (clear) the current macro, click "Reset macro" button.
You can also load a macro ("Load macro" button). This function (available in v1.5) opens a macro file for use without "running" it, in other words, it doesn't apply the macro file to the current ascii file, it just loads it. This is useful if you wish to record changes and add them to the macro file even if it was recorded from another model file.

"Macro editor" (available in v1.7): it enables you to preview the contents of the current macro i.e. the changes the macro will make when applied to a model. You can also make changes to the parameters already recorded or even erase an item from the macro (Delete button). Simply select the item from the list, make any changes you want to it, then click "Save changes". To delete an item, select it, then click "Delete" button.






3. Commands menu:(Available in v1.4 and above)
1. Rearrange meshes: You can change the order of the meshes in the ascii file. As you may know, meshes are displayed in the meshes list in the same order as in the ascii file.
You can change their order however you like. First, go to "Commands" menu and activate "Rearrange meshes" option. To change the position of a mesh, use your mouse to drag and drop it to wherever you like; up or down the list. When you are done, deactivate "Rearrange meshes" option in "Commands" menu so that you don't move meshes by mistake.
2. Texture editor: (available in v1.8 or later) this gives you an easy way to add/edit the current render group (material) textures without having to do anything manually. It also shows you a preview of the texture maps, select a texture to see a preview on the right.
To add/change a texture, click the related button and select a texture map file. When you are done, click OK to save your changes.

(Image from v1.9)


3. Reset: (available in v1.9 or later) this command resets the application to its initial state. In other words, it closes the current model and macro files, resets all variables and arrays, and clears old data from RAM.









Important notes:1. All changes you make are not final. Meaning that they are not saved to the ascii model file until you save the file yourself from File -> Save As (Ctrl+S).
2. You can search for a mesh or bone (depending on which tab is currently selected) using "Find" function. Go to File -> Find or press Ctrl+F
3. In "R.G Editor", if the "Select multiple meshes" box is selected, all changes made by "Change selected R.G." button will be made to the meshes selected in this list, not the mesh selected in main "Meshes" list on the left of the application's UI. So don't forget to turn this option off when you don't need it.
4. After you save the model file as ascii, you can either use "MeshAsciiToBin.exe" tool to create the .mesh file from the ascii so you can load the model in XPS via "Add model" window, or you can load the ascii file directly in XPS from "Modify" menu -> "Load Generic_Item", then you can save the model as .mesh or .xps
5. Yes, I know you can edit the ascii file in any text editor as Notepad, but in my humble opinion I think this tool is easier to use especially with a user interface.
6. If you don't like this tool or you think I'm an idiot, no problem at all, just don't use it. On the other hand, if you have any criticism or suggestion to improve a current function or even add new functions, I will be glad to hear it.

7. I don't know, I didn't think of anything to say here yet !







Download:

mega.nz/#!J0YGkK4Z!z9QfVDptHz7…


File name: XPS ASCII Editor.exe
File size: 380 KB
CRC32: 21F0A0AE

MD5: D0AF9535E38F66066B12BA43CC64590F

Virus scan: Virustotal




Special thanks to:




Change log:

v1.9

- Added: Reset command.

- Texture editor: Added the option to either save changes automatically or not.

- Texture editor: Check boxes for 'using full path' and 'saving changes' keep their values upon exit.

- Fixed: A bug in meshes with more than 1 UV layer which resulted in reverting UV layers of the current mesh to 1 when "Save changes" button was pressed.

- Fixed: An error when loading model with meshes lacking specular, map repeater or camera target values.

- Fixed: A bug where progress wasn't displayed correctly in the status bar while loading a model.

- Some improvements to the code and UI.


v1.8

- Added "Parenting bones" function. You can now link two or more bones without an external 3D editor.
- Added "Texture editor".

v1.7
- Added support for XNALara/XPS template files (BoneDict). The tool can now create and use them.
- Added "Macro editor".
- Removed confirmation when saving changes to a bone.
- Fixed a bug where loading a model using drag & drop didn't enable "Load macro" button.
- Minor improvements to the code.

v1.6
- Added support for multiple UV layers.
- Added "Template editor" for renaming bones.
- Improved perception of template files used for renaming bones. Now you don't need to worry about your templates having unneeded spaces, blank lines, etc. The tool will fix everything for you automatically.
- Improved "Merge" function. You can now merge meshes with different UV layers.
- Several other improvements to the code.

v1.5
- Added Merge meshes function.
- Added "Load macro" function.
- Minor improvements to the code.

v1.4.4
- Fixed some bugs.

v1.4.3
- Added support for the new RG 26 and 27. The tool still supports the old versions of both of these RG.
- Added support for RG 34 and 35

v1.4.2
- Added support for render groups 42 and 43
- Minor UI improvement.

v1.4.1
- Fixed a bug where re-arranging meshes didn't update the "select multiple meshes" list.

v1.4
- Drag and drop function was added. You can now open files by dragging and dropping them into the tool.
- Re-arrange meshes function was added. Enable this option from "Commands" menu then use drag and drop to re-arrange the meshes.
- Prompt ask to save the current file before opening a new file.
- Ctrl+A can now be used to select all text in multi-line text boxes.
- Fixed a bug in searching bones where using search kept the current bone selected; adding to selection.
- Minor improvements to the code.

v1.3
- Added flip normals function.
- Minor improvements for more convenience.

v1.2
- Decreased loading time significantly. All models now take about 60-70% less time to load.
- The user interface is now responsive during model loading and shows the current progress in the status bar.
- Removed Delete bones button.
- Convert bone names function was added.
- Fixed some bugs.

v1.1.1
- Fixed some bugs

v1.1
- Added Bone rename function for multiple bones.
- Hide bones function now works on multiple bones.

v1.0
- Base release.

Related content
Comments: 269

blackneeds [2024-10-05 08:49:10 +0000 UTC]

👍: 0 ⏩: 0

Mikejohnson2023 [2024-08-19 04:08:30 +0000 UTC]

👍: 0 ⏩: 0

Nik-2213 [2022-07-17 14:27:13 +0000 UTC]

👍: 0 ⏩: 0

lawlaw91 [2020-12-05 14:43:18 +0000 UTC]

👍: 0 ⏩: 0

Taira2032 [2020-04-02 00:44:39 +0000 UTC]

👍: 0 ⏩: 1

zareef In reply to Taira2032 [2020-04-04 21:52:37 +0000 UTC]

Sorry for the late reply, I was away from DeviantArt and I just saw your message.

Would you please show me a screenshot ?

👍: 0 ⏩: 1

Taira2032 In reply to zareef [2020-05-08 20:12:24 +0000 UTC]

👍: 0 ⏩: 1

zareef In reply to Taira2032 [2020-05-08 23:28:58 +0000 UTC]

👍: 0 ⏩: 1

Taira2032 In reply to zareef [2020-05-10 22:23:20 +0000 UTC]

👍: 0 ⏩: 0

zareef [2019-08-10 14:22:41 +0000 UTC]

v1.9 is now available.


Change log:

- Added: Reset command.

- Texture editor: Added the option to either save changes automatically or not.

- Texture editor: Check boxes for 'using full path' and 'saving changes' keep their values upon exit.

- Fixed: A bug in meshes with more than 1 UV layer which resulted in reverting UV layers of the current mesh to 1 when "Save changes" button was pressed.

- Fixed: An error when loading model with meshes lacking specular, map repeater or camera target values.

- Fixed: A bug where progress wasn't displayed correctly in the status bar while loading a model.

- Some improvements to the code and UI.

👍: 1 ⏩: 0

craiteys [2019-08-01 23:05:43 +0000 UTC]

This tool looks like an absolute lifesaver but when I try to load the model, I get an error message that says "Unhandled exception has occurred in your application" and it's telling me to do a JIT debug. Do you know what could be causing this problem?

👍: 0 ⏩: 1

zareef In reply to craiteys [2019-08-02 02:13:33 +0000 UTC]

May I take a look on that model file ?

👍: 0 ⏩: 1

craiteys In reply to zareef [2019-08-02 04:01:58 +0000 UTC]

p3dm.ru/files/characters/human…

👍: 0 ⏩: 1

zareef In reply to craiteys [2019-08-03 03:00:49 +0000 UTC]

I see..

I guess the main issue here is that the meshes inside the ascii file don't have render groups. To load a mesh successfully, my tool requires a minimum of: render group + mesh name. I can't alter the code to get around it.

I haven't checked the whole ascii files, they are too big, but it seems they have other issues. I can't even load them in XPS. Also, one of the files (samuel-mad-jacket-cloth_skel.samuel-mad-jacket-cloth.ascii) has bones only, no meshes (what the heck ?).

I also can't convert them to binary format using the converter.

Where did you get these weird files ??

👍: 0 ⏩: 1

craiteys In reply to zareef [2019-08-03 23:27:00 +0000 UTC]

The files came in the zip file for samuel-island from the website I sent you. I guess whoever coded the ascii files screwed up somewhere. ¯\_(ツ)_/¯

However, even though it's not working, I appreciate the time you took to look at the files. Thank you

👍: 0 ⏩: 1

zareef In reply to craiteys [2019-08-04 02:11:28 +0000 UTC]

No problem.

I wish I could help somehow.

👍: 0 ⏩: 0

abdohanfi [2019-05-10 20:34:04 +0000 UTC]

hey its says unsupported rendering group can u help ?

👍: 0 ⏩: 1

zareef In reply to abdohanfi [2019-05-14 00:20:14 +0000 UTC]

Sure.. can you give me the file you are trying to load ?

👍: 0 ⏩: 1

abdohanfi In reply to zareef [2019-05-19 05:35:53 +0000 UTC]

The Evil Within 2 - Juli Kidman  here's the link 

👍: 0 ⏩: 1

zareef In reply to abdohanfi [2019-05-20 14:39:25 +0000 UTC]

This ascii file is written in a strange format, it can't even be loaded properly in xnalara xps. It's unusable. That's why my tool can't read it.

👍: 0 ⏩: 1

csrhiro In reply to zareef [2020-05-14 22:36:17 +0000 UTC]

👍: 0 ⏩: 1

zareef In reply to csrhiro [2020-05-16 22:06:16 +0000 UTC]

👍: 0 ⏩: 0

Fuee [2018-10-24 23:49:58 +0000 UTC]

Hey, I don't know if this is a bug or not, but I noticed when renaming meshes with multiple UV layers, it resets that number to 1, causing XPS to throw the "non negative number required" error when loading the model

Really useful tool, though

👍: 0 ⏩: 1

zareef In reply to Fuee [2018-10-26 01:02:23 +0000 UTC]

It shouldn't do that, that's weird.

I will check. Could you please send me the file ? it will help me immensely.

I already have a to-do list, I will add this to it.

👍: 0 ⏩: 1

Fuee In reply to zareef [2018-10-26 01:57:40 +0000 UTC]

Sure

RAR No Preview

👍: 0 ⏩: 0

GolgTracko3o [2018-01-10 15:09:43 +0000 UTC]

USEFUL!! THANK YOU! D

👍: 0 ⏩: 0

phay007 [2017-09-27 07:51:47 +0000 UTC]

Thank you so muhc~~~

👍: 0 ⏩: 0

LarsMasters [2017-09-25 08:33:19 +0000 UTC]

thank you

👍: 0 ⏩: 1

zareef In reply to LarsMasters [2017-09-26 14:33:35 +0000 UTC]

You are welcome

👍: 0 ⏩: 0

AnimalBear [2017-09-24 21:29:24 +0000 UTC]

And... a tool to easy port .blender to .xna?

👍: 0 ⏩: 1

zareef In reply to AnimalBear [2017-09-24 23:33:17 +0000 UTC]

No, why would we need that ? Blender has plug-ins to export models to XPS. It's what most people use.

👍: 0 ⏩: 1

AnimalBear In reply to zareef [2017-09-25 22:33:26 +0000 UTC]

Okay, i'm so shit to do it.

👍: 0 ⏩: 0

Evanime [2017-09-23 10:30:10 +0000 UTC]

Neat. The parenting bone feature should help fix a lot models.

👍: 0 ⏩: 1

zareef In reply to Evanime [2017-09-24 14:03:24 +0000 UTC]

Thanks.. I hope so.

👍: 0 ⏩: 0

Emperor-of-Mankind [2017-09-23 05:32:34 +0000 UTC]

Great job on this one, thanks for sharing it!

👍: 0 ⏩: 1

zareef In reply to Emperor-of-Mankind [2017-09-24 14:02:50 +0000 UTC]

Thank you

👍: 0 ⏩: 0

T0mbSt0n3 [2017-09-23 00:45:40 +0000 UTC]

Great update. Many thanks!

👍: 0 ⏩: 1

zareef In reply to T0mbSt0n3 [2017-09-23 01:19:53 +0000 UTC]

You are welcome

👍: 0 ⏩: 0

zareef [2017-09-22 21:21:27 +0000 UTC]

v1.8 is now available.

What's new:
- Added "Parenting bones" function. You can now link two or more bones without an external 3D editor.
- Added "Texture editor".

👍: 0 ⏩: 1

Spirus10 In reply to zareef [2017-09-23 00:38:50 +0000 UTC]

   
Thank you a lot!! For the update and for the effort.
   

👍: 0 ⏩: 1

zareef In reply to Spirus10 [2017-09-23 01:19:30 +0000 UTC]

You are welcome

👍: 0 ⏩: 0

mavgoddess [2017-09-13 15:06:21 +0000 UTC]

Hey... good to see you around. This update is quite useful. I was wondering.... have you tried to make the parenting of bones with a scroll list?. I'll explain it: When you load the model, you have a index of all the active bones (not the hidden). With that, you could select one of the bones to parent, then you scroll through a list of available bones, click the desired bone and presto!. PArenting bones with barely 3 clicks of distance.

On other topic I was reading the suggestion that Miss made. If there is a chance you could make a preview of the materials(as an addition to the preview of textures), it would be an extremely handy feature for this tool. I'm just guessing around... I don't know a lot about programming inside .Net framework.

👍: 0 ⏩: 3

zareef In reply to mavgoddess [2017-09-22 21:25:01 +0000 UTC]

It's done. The tool can now link bones.

👍: 0 ⏩: 1

mavgoddess In reply to zareef [2017-09-27 15:07:11 +0000 UTC]

WOAH!!!. That was quick. I'll take it a look. Thanks. 

👍: 0 ⏩: 0

zareef In reply to mavgoddess [2017-09-17 12:18:59 +0000 UTC]

OK, I will add the linking bones feature to the next version.

👍: 0 ⏩: 0

zareef In reply to mavgoddess [2017-09-16 00:53:21 +0000 UTC]

I need to practice and test parenting bones a bit to make sure that I understand how it works correctly. Of course I do know how it works, but I never tested it. If it works, I will add this feature. Coding it won't be an issue.

I can make a preview of a texture, but not the materials. I don't know anything about XNA framework.

👍: 0 ⏩: 0

BrianR95 [2017-09-09 13:21:13 +0000 UTC]

Thanks

👍: 0 ⏩: 0

kohtaex [2017-09-09 08:17:23 +0000 UTC]

Greatly appreciate how this has improved over the years. Thanks zareef.

👍: 0 ⏩: 0

mithos117 [2017-09-09 04:11:18 +0000 UTC]

How did I not know this existed. Thanks for your hard work. This is a life saver. 

👍: 0 ⏩: 0

Spirus10 [2017-09-09 00:23:02 +0000 UTC]

OMG! How didn't I know this program before? I was about to make something similar to save time! THANKS A LOT.

I still have to look at it but can I change the parent bones? Sometimes, when I export from Blender to XPS, some bones losses their parent and don't modify accordly to the rest. I have to re-parent on blender, or count bones and change the number just after the name of bone I want to re-parent.

👍: 0 ⏩: 1


| Next =>